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

#include "components/sync/protocol/theme_specifics.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 sync_pb {
class ThemeSpecifics_Empty::_Internal {
 public:
};

constexpr ThemeSpecifics_Empty::ParseTableT_ ThemeSpecifics_Empty::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ThemeSpecifics_Empty,
                            _impl_._cached_size_),  // no hasbits
      0, // no _extensions_
      0, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967295,  // skipmap
      offsetof(ParseTableT_, field_names),  // no field_entries
      0,  // 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<::sync_pb::ThemeSpecifics_Empty>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, // no field_entries, or aux_entries
    {{
    }},
  };
}


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

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

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

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


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

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

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

constexpr ThemeSpecifics::ParseTableT_ ThemeSpecifics::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_._has_bits_),
      0, // no _extensions_
      10, 120,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294966272,  // skipmap
      offsetof(ParseTableT_, field_entries),
      10,  // num_field_entries
      5,  // 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<::sync_pb::ThemeSpecifics>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional bool use_custom_theme = 1;
      {::_pbi::TcParser::FastV8S1,
       {8, 4, 0,
        PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.use_custom_theme_)}},
      // optional bool use_system_theme_by_default = 2;
      {::_pbi::TcParser::FastV8S1,
       {16, 5, 0,
        PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.use_system_theme_by_default_)}},
      // optional string custom_theme_name = 3;
      {::_pbi::TcParser::FastBS1,
       {26, 0, 0,
        PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.custom_theme_name_)}},
      // optional string custom_theme_id = 4;
      {::_pbi::TcParser::FastBS1,
       {34, 1, 0,
        PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.custom_theme_id_)}},
      // optional string custom_theme_update_url = 5;
      {::_pbi::TcParser::FastBS1,
       {42, 2, 0,
        PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.custom_theme_update_url_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional .sync_pb.ThemeSpecifics.BrowserColorScheme browser_color_scheme = 9;
      {::_pbi::TcParser::FastEr0S1,
       {72, 6, 3,
        PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.browser_color_scheme_)}},
      // optional .sync_pb.NtpCustomBackground ntp_background = 10;
      {::_pbi::TcParser::FastMtS1,
       {82, 3, 3,
        PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.ntp_background_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional bool use_custom_theme = 1;
      {PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.use_custom_theme_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool use_system_theme_by_default = 2;
      {PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.use_system_theme_by_default_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional string custom_theme_name = 3;
      {PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.custom_theme_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string custom_theme_id = 4;
      {PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.custom_theme_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string custom_theme_update_url = 5;
      {PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.custom_theme_update_url_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // .sync_pb.ThemeSpecifics.AutogeneratedColorTheme autogenerated_color_theme = 6;
      {PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.color_.autogenerated_color_theme_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .sync_pb.UserColorTheme user_color_theme = 7;
      {PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.color_.user_color_theme_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .sync_pb.ThemeSpecifics.Empty grayscale_theme_enabled = 8;
      {PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.color_.grayscale_theme_enabled_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .sync_pb.ThemeSpecifics.BrowserColorScheme browser_color_scheme = 9;
      {PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.browser_color_scheme_), _Internal::kHasBitsOffset + 6, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional .sync_pb.NtpCustomBackground ntp_background = 10;
      {PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.ntp_background_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::ThemeSpecifics_AutogeneratedColorTheme>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::ThemeSpecifics_AutogeneratedColorTheme_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::UserColorTheme>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::UserColorTheme_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::ThemeSpecifics_Empty>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::ThemeSpecifics_Empty_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::NtpCustomBackground>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::NtpCustomBackground_globals_},
        #endif
        {0, 3},
    }},
    {{
    }},
  };
}


inline constexpr ThemeSpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        custom_theme_name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        custom_theme_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        custom_theme_update_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        ntp_background_{nullptr},
        use_custom_theme_{false},
        use_system_theme_by_default_{false},
        browser_color_scheme_{static_cast< ::sync_pb::ThemeSpecifics_BrowserColorScheme >(0)},
        color_{},
        _oneof_case_{} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ThemeSpecificsGlobalsTypeInternal ThemeSpecifics_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* ThemeSpecifics_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return ThemeSpecifics_globals_.GetClassData();
#else
  return ThemeSpecifics_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace sync_pb
namespace sync_pb {
PROTOBUF_CONSTINIT const uint32_t ThemeSpecifics_BrowserColorScheme_internal_data_[] = {
    262144u, 0u, };
static const char ThemeSpecifics_BrowserColorScheme_names[] = {
    "BROWSER_COLOR_SCHEME_UNSPECIFIED"
    "DARK"
    "LIGHT"
    "SYSTEM"
};

static const ::google::protobuf::internal::EnumEntry ThemeSpecifics_BrowserColorScheme_entries[] = {
    {{&ThemeSpecifics_BrowserColorScheme_names[0], 32}, 0},
    {{&ThemeSpecifics_BrowserColorScheme_names[32], 4}, 3},
    {{&ThemeSpecifics_BrowserColorScheme_names[36], 5}, 2},
    {{&ThemeSpecifics_BrowserColorScheme_names[41], 6}, 1},
};

static const int ThemeSpecifics_BrowserColorScheme_entries_by_number[] = {
    0,  // 0 -> BROWSER_COLOR_SCHEME_UNSPECIFIED
    3,  // 1 -> SYSTEM
    2,  // 2 -> LIGHT
    1,  // 3 -> DARK
};

bool ThemeSpecifics_BrowserColorScheme_Parse(::absl::string_view name,
                                  ThemeSpecifics_BrowserColorScheme* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      ThemeSpecifics_BrowserColorScheme_entries, 4, name, &int_value);
  if (success) {
    *value = static_cast<ThemeSpecifics_BrowserColorScheme>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    ThemeSpecifics_BrowserColorScheme_strings[4] = {};

const ::std::string& ThemeSpecifics_BrowserColorScheme_Name(ThemeSpecifics_BrowserColorScheme value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      ThemeSpecifics_BrowserColorScheme_entries, ThemeSpecifics_BrowserColorScheme_entries_by_number, 4,
      ThemeSpecifics_BrowserColorScheme_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(ThemeSpecifics_BrowserColorScheme_entries,
                                  ThemeSpecifics_BrowserColorScheme_entries_by_number,
                                  4, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ThemeSpecifics_BrowserColorScheme_strings[idx].get();
}
// ===================================================================

ThemeSpecifics_AutogeneratedColorTheme::ThemeSpecifics_AutogeneratedColorTheme(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ThemeSpecifics_AutogeneratedColorTheme_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.ThemeSpecifics.AutogeneratedColorTheme)
}
ThemeSpecifics_AutogeneratedColorTheme::ThemeSpecifics_AutogeneratedColorTheme(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ThemeSpecifics_AutogeneratedColorTheme& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ThemeSpecifics_AutogeneratedColorTheme_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 ThemeSpecifics_AutogeneratedColorTheme::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

inline void ThemeSpecifics_AutogeneratedColorTheme::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.color_ = {};
}
ThemeSpecifics_AutogeneratedColorTheme::~ThemeSpecifics_AutogeneratedColorTheme() {
  // @@protoc_insertion_point(destructor:sync_pb.ThemeSpecifics.AutogeneratedColorTheme)
  SharedDtor(*this);
}
inline void ThemeSpecifics_AutogeneratedColorTheme::SharedDtor(MessageLite& self) {
  ThemeSpecifics_AutogeneratedColorTheme& this_ = static_cast<ThemeSpecifics_AutogeneratedColorTheme&>(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 ThemeSpecifics_AutogeneratedColorTheme_class_data_ =
    ThemeSpecifics_AutogeneratedColorTheme::InternalGenerateClassData_(ThemeSpecifics_AutogeneratedColorTheme_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
ThemeSpecifics_AutogeneratedColorTheme::GetClassData() const {
  return ThemeSpecifics_AutogeneratedColorTheme_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
ThemeSpecifics_AutogeneratedColorTheme::GetClassData() const {
  return ThemeSpecifics_AutogeneratedColorTheme_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ThemeSpecifics_AutogeneratedColorTheme::ParseTableT_
    ThemeSpecifics_AutogeneratedColorTheme::_table_ =
        ThemeSpecifics_AutogeneratedColorTheme::InternalGenerateParseTable_(ThemeSpecifics_AutogeneratedColorTheme_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void ThemeSpecifics_AutogeneratedColorTheme::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.ThemeSpecifics.AutogeneratedColorTheme)
  ::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_.color_ = 0u;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional uint32 color = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        1, this_._internal_color(), 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:sync_pb.ThemeSpecifics.AutogeneratedColorTheme)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t ThemeSpecifics_AutogeneratedColorTheme::ByteSizeLong(const MessageLite& base) {
  const ThemeSpecifics_AutogeneratedColorTheme& this_ = static_cast<const ThemeSpecifics_AutogeneratedColorTheme&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t ThemeSpecifics_AutogeneratedColorTheme::ByteSizeLong() const {
  const ThemeSpecifics_AutogeneratedColorTheme& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.ThemeSpecifics.AutogeneratedColorTheme)
  ::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 uint32 color = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_color());
    }
  }
  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 ThemeSpecifics_AutogeneratedColorTheme::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ThemeSpecifics_AutogeneratedColorTheme*>(&to_msg);
  auto& from = static_cast<const ThemeSpecifics_AutogeneratedColorTheme&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.ThemeSpecifics.AutogeneratedColorTheme)
  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_.color_ = from._impl_.color_;
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void ThemeSpecifics_AutogeneratedColorTheme::CopyFrom(const ThemeSpecifics_AutogeneratedColorTheme& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.ThemeSpecifics.AutogeneratedColorTheme)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void ThemeSpecifics_AutogeneratedColorTheme::InternalSwap(ThemeSpecifics_AutogeneratedColorTheme* 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_.color_, other->_impl_.color_);
}

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

ThemeSpecifics_Empty::ThemeSpecifics_Empty(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ThemeSpecifics_Empty_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.ThemeSpecifics.Empty)
}
ThemeSpecifics_Empty::ThemeSpecifics_Empty(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ThemeSpecifics_Empty& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ThemeSpecifics_Empty_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 ThemeSpecifics_Empty::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

inline void ThemeSpecifics_Empty::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
ThemeSpecifics_Empty::~ThemeSpecifics_Empty() {
  // @@protoc_insertion_point(destructor:sync_pb.ThemeSpecifics.Empty)
  SharedDtor(*this);
}
inline void ThemeSpecifics_Empty::SharedDtor(MessageLite& self) {
  ThemeSpecifics_Empty& this_ = static_cast<ThemeSpecifics_Empty&>(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 ThemeSpecifics_Empty_class_data_ =
    ThemeSpecifics_Empty::InternalGenerateClassData_(ThemeSpecifics_Empty_globals_._default);

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

  _internal_metadata_.Clear<::std::string>();
}

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

  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:sync_pb.ThemeSpecifics.Empty)
  return target;
}

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

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

  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 ThemeSpecifics_Empty::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ThemeSpecifics_Empty*>(&to_msg);
  auto& from = static_cast<const ThemeSpecifics_Empty&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.ThemeSpecifics.Empty)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void ThemeSpecifics_Empty::CopyFrom(const ThemeSpecifics_Empty& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.ThemeSpecifics.Empty)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void ThemeSpecifics_Empty::InternalSwap(ThemeSpecifics_Empty* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
}

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

void ThemeSpecifics::set_allocated_autogenerated_color_theme(::sync_pb::ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NULLABLE autogenerated_color_theme) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_color();
  if (autogenerated_color_theme) {
    ::google::protobuf::Arena* submessage_arena = autogenerated_color_theme->GetArena();
    if (message_arena != submessage_arena) {
      autogenerated_color_theme = ::google::protobuf::internal::GetOwnedMessage(message_arena, autogenerated_color_theme, submessage_arena);
    }
    set_has_autogenerated_color_theme();
    _impl_.color_.autogenerated_color_theme_ = autogenerated_color_theme;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.ThemeSpecifics.autogenerated_color_theme)
}
void ThemeSpecifics::set_allocated_user_color_theme(::sync_pb::UserColorTheme* PROTOBUF_NULLABLE user_color_theme) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_color();
  if (user_color_theme) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(user_color_theme)->GetArena();
    if (message_arena != submessage_arena) {
      user_color_theme = ::google::protobuf::internal::GetOwnedMessage(message_arena, user_color_theme, submessage_arena);
    }
    set_has_user_color_theme();
    _impl_.color_.user_color_theme_ = user_color_theme;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.ThemeSpecifics.user_color_theme)
}
void ThemeSpecifics::clear_user_color_theme() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (color_case() == kUserColorTheme) {
    if (GetArena() == nullptr) {
      delete _impl_.color_.user_color_theme_;
    } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
      if (_impl_.color_.user_color_theme_ != nullptr) {
        _impl_.color_.user_color_theme_->Clear();
      }
    }
    clear_has_color();
  }
}
void ThemeSpecifics::set_allocated_grayscale_theme_enabled(::sync_pb::ThemeSpecifics_Empty* PROTOBUF_NULLABLE grayscale_theme_enabled) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_color();
  if (grayscale_theme_enabled) {
    ::google::protobuf::Arena* submessage_arena = grayscale_theme_enabled->GetArena();
    if (message_arena != submessage_arena) {
      grayscale_theme_enabled = ::google::protobuf::internal::GetOwnedMessage(message_arena, grayscale_theme_enabled, submessage_arena);
    }
    set_has_grayscale_theme_enabled();
    _impl_.color_.grayscale_theme_enabled_ = grayscale_theme_enabled;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.ThemeSpecifics.grayscale_theme_enabled)
}
void ThemeSpecifics::clear_ntp_background() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.ntp_background_ != nullptr) _impl_.ntp_background_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
ThemeSpecifics::ThemeSpecifics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ThemeSpecifics_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.ThemeSpecifics)
}
PROTOBUF_NDEBUG_INLINE ThemeSpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::sync_pb::ThemeSpecifics& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        custom_theme_name_(arena, from.custom_theme_name_),
        custom_theme_id_(arena, from.custom_theme_id_),
        custom_theme_update_url_(arena, from.custom_theme_update_url_),
        color_{},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  ThemeSpecifics* 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_.ntp_background_ = (CheckHasBit(cached_has_bits, 0x00000008U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ntp_background_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, use_custom_theme_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, use_custom_theme_),
           offsetof(Impl_, browser_color_scheme_) -
               offsetof(Impl_, use_custom_theme_) +
               sizeof(Impl_::browser_color_scheme_));
  switch (color_case()) {
    case COLOR_NOT_SET:
      break;
      case kAutogeneratedColorTheme:
        _impl_.color_.autogenerated_color_theme_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.color_.autogenerated_color_theme_);
        break;
      case kUserColorTheme:
        _impl_.color_.user_color_theme_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.color_.user_color_theme_);
        break;
      case kGrayscaleThemeEnabled:
        _impl_.color_.grayscale_theme_enabled_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.color_.grayscale_theme_enabled_);
        break;
  }

  // @@protoc_insertion_point(copy_constructor:sync_pb.ThemeSpecifics)
}
PROTOBUF_NDEBUG_INLINE ThemeSpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        custom_theme_name_(arena),
        custom_theme_id_(arena),
        custom_theme_update_url_(arena),
        color_{},
        _oneof_case_{} {}

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

void ThemeSpecifics::clear_color() {
// @@protoc_insertion_point(one_of_clear_start:sync_pb.ThemeSpecifics)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (color_case()) {
    case kAutogeneratedColorTheme: {
      if (GetArena() == nullptr) {
        delete _impl_.color_.autogenerated_color_theme_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.color_.autogenerated_color_theme_ != nullptr) {
          _impl_.color_.autogenerated_color_theme_->Clear();
        }
      }
      break;
    }
    case kUserColorTheme: {
      if (GetArena() == nullptr) {
        delete _impl_.color_.user_color_theme_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.color_.user_color_theme_ != nullptr) {
          _impl_.color_.user_color_theme_->Clear();
        }
      }
      break;
    }
    case kGrayscaleThemeEnabled: {
      if (GetArena() == nullptr) {
        delete _impl_.color_.grayscale_theme_enabled_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.color_.grayscale_theme_enabled_ != nullptr) {
          _impl_.color_.grayscale_theme_enabled_->Clear();
        }
      }
      break;
    }
    case COLOR_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = COLOR_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite ThemeSpecifics_class_data_ =
    ThemeSpecifics::InternalGenerateClassData_(ThemeSpecifics_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
ThemeSpecifics::GetClassData() const {
  return ThemeSpecifics_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
ThemeSpecifics::GetClassData() const {
  return ThemeSpecifics_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ThemeSpecifics::ParseTableT_
    ThemeSpecifics::_table_ =
        ThemeSpecifics::InternalGenerateParseTable_(ThemeSpecifics_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void ThemeSpecifics::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.ThemeSpecifics)
  ::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_.custom_theme_name_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.custom_theme_id_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.custom_theme_update_url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(_impl_.ntp_background_ != nullptr);
      _impl_.ntp_background_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000070U)) {
    ::memset(&_impl_.use_custom_theme_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.browser_color_scheme_) -
        reinterpret_cast<char*>(&_impl_.use_custom_theme_)) + sizeof(_impl_.browser_color_scheme_));
  }
  clear_color();
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

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

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

  // optional string custom_theme_update_url = 5;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    const ::std::string& _s = this_._internal_custom_theme_update_url();
    target = stream->WriteStringMaybeAliased(5, _s, target);
  }

  switch (this_.color_case()) {
    case kAutogeneratedColorTheme: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          6, *this_._impl_.color_.autogenerated_color_theme_, this_._impl_.color_.autogenerated_color_theme_->GetCachedSize(), target,
          stream);
      break;
    }
    case kUserColorTheme: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          7, *this_._impl_.color_.user_color_theme_, this_._impl_.color_.user_color_theme_->GetCachedSize(), target,
          stream);
      break;
    }
    case kGrayscaleThemeEnabled: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          8, *this_._impl_.color_.grayscale_theme_enabled_, this_._impl_.color_.grayscale_theme_enabled_->GetCachedSize(), target,
          stream);
      break;
    }
    default:
      break;
  }
  // optional .sync_pb.ThemeSpecifics.BrowserColorScheme browser_color_scheme = 9;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        9, this_._internal_browser_color_scheme(), target);
  }

  // optional .sync_pb.NtpCustomBackground ntp_background = 10;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        10, *this_._impl_.ntp_background_, this_._impl_.ntp_background_->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:sync_pb.ThemeSpecifics)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t ThemeSpecifics::ByteSizeLong(const MessageLite& base) {
  const ThemeSpecifics& this_ = static_cast<const ThemeSpecifics&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t ThemeSpecifics::ByteSizeLong() const {
  const ThemeSpecifics& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.ThemeSpecifics)
  ::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(0x00000030U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x0000004fU)) {
    // optional string custom_theme_name = 3;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_custom_theme_name());
    }
    // optional string custom_theme_id = 4;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_custom_theme_id());
    }
    // optional string custom_theme_update_url = 5;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_custom_theme_update_url());
    }
    // optional .sync_pb.NtpCustomBackground ntp_background = 10;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.ntp_background_);
    }
    // optional .sync_pb.ThemeSpecifics.BrowserColorScheme browser_color_scheme = 9;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_browser_color_scheme());
    }
  }
  switch (this_.color_case()) {
    // .sync_pb.ThemeSpecifics.AutogeneratedColorTheme autogenerated_color_theme = 6;
    case kAutogeneratedColorTheme: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.color_.autogenerated_color_theme_);
      break;
    }
    // .sync_pb.UserColorTheme user_color_theme = 7;
    case kUserColorTheme: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.color_.user_color_theme_);
      break;
    }
    // .sync_pb.ThemeSpecifics.Empty grayscale_theme_enabled = 8;
    case kGrayscaleThemeEnabled: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.color_.grayscale_theme_enabled_);
      break;
    }
    case COLOR_NOT_SET: {
      break;
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

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

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_custom_theme_name(from._internal_custom_theme_name());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_custom_theme_id(from._internal_custom_theme_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_custom_theme_update_url(from._internal_custom_theme_update_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(from._impl_.ntp_background_ != nullptr);
      if (_this->_impl_.ntp_background_ == nullptr) {
        _this->_impl_.ntp_background_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ntp_background_);
      } else {
        _this->_impl_.ntp_background_->MergeFrom(*from._impl_.ntp_background_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.use_custom_theme_ = from._impl_.use_custom_theme_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.use_system_theme_by_default_ = from._impl_.use_system_theme_by_default_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.browser_color_scheme_ = from._impl_.browser_color_scheme_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  if (const uint32_t oneof_from_case =
          from._impl_._oneof_case_[0]) {
    const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
    const bool oneof_needs_init = oneof_to_case != oneof_from_case;
    if (oneof_needs_init) {
      if (oneof_to_case != 0) {
        _this->clear_color();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kAutogeneratedColorTheme: {
        if (oneof_needs_init) {
          _this->_impl_.color_.autogenerated_color_theme_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.color_.autogenerated_color_theme_);
        } else {
          _this->_impl_.color_.autogenerated_color_theme_->CheckTypeAndMergeFrom(*from._impl_.color_.autogenerated_color_theme_);
        }
        break;
      }
      case kUserColorTheme: {
        if (oneof_needs_init) {
          _this->_impl_.color_.user_color_theme_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.color_.user_color_theme_);
        } else {
          _this->_impl_.color_.user_color_theme_->CheckTypeAndMergeFrom(*from._impl_.color_.user_color_theme_);
        }
        break;
      }
      case kGrayscaleThemeEnabled: {
        if (oneof_needs_init) {
          _this->_impl_.color_.grayscale_theme_enabled_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.color_.grayscale_theme_enabled_);
        } else {
          _this->_impl_.color_.grayscale_theme_enabled_->CheckTypeAndMergeFrom(*from._impl_.color_.grayscale_theme_enabled_);
        }
        break;
      }
      case COLOR_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void ThemeSpecifics::InternalSwap(ThemeSpecifics* 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_.custom_theme_name_, &other->_impl_.custom_theme_name_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.custom_theme_id_, &other->_impl_.custom_theme_id_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.custom_theme_update_url_, &other->_impl_.custom_theme_update_url_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.browser_color_scheme_)
      + sizeof(ThemeSpecifics::_impl_.browser_color_scheme_)
      - PROTOBUF_FIELD_OFFSET(ThemeSpecifics, _impl_.ntp_background_)>(
          reinterpret_cast<char*>(&_impl_.ntp_background_),
          reinterpret_cast<char*>(&other->_impl_.ntp_background_));
  swap(_impl_.color_, other->_impl_.color_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

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