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

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

constexpr ChromeColorInfo::ParseTableT_ ChromeColorInfo::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ChromeColorInfo, _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<::sync_pb::ChromeColorInfo>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional int64 last_daily_update_timestamp_unix_epoch_millis = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 0, 0,
        PROTOBUF_FIELD_OFFSET(ChromeColorInfo, _impl_.last_daily_update_timestamp_unix_epoch_millis_)}},
      // optional int32 theme_color_id = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(ChromeColorInfo, _impl_.theme_color_id_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int32 theme_color_id = 1;
      {PROTOBUF_FIELD_OFFSET(ChromeColorInfo, _impl_.theme_color_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int64 last_daily_update_timestamp_unix_epoch_millis = 2;
      {PROTOBUF_FIELD_OFFSET(ChromeColorInfo, _impl_.last_daily_update_timestamp_unix_epoch_millis_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


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

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

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

constexpr ThemeAndroidSpecifics::ParseTableT_ ThemeAndroidSpecifics::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ThemeAndroidSpecifics, _impl_._has_bits_),
      0, // no _extensions_
      4, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967280,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // num_field_entries
      3,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::ThemeAndroidSpecifics>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional .sync_pb.ChromeColorInfo chrome_color_info = 4;
      {::_pbi::TcParser::FastMtS1,
       {34, 2, 2,
        PROTOBUF_FIELD_OFFSET(ThemeAndroidSpecifics, _impl_.chrome_color_info_)}},
      // optional bool use_custom_theme = 1;
      {::_pbi::TcParser::FastV8S1,
       {8, 3, 0,
        PROTOBUF_FIELD_OFFSET(ThemeAndroidSpecifics, _impl_.use_custom_theme_)}},
      // optional .sync_pb.NtpCustomBackground ntp_background = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(ThemeAndroidSpecifics, _impl_.ntp_background_)}},
      // optional .sync_pb.UserColorTheme user_color_theme = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 1, 1,
        PROTOBUF_FIELD_OFFSET(ThemeAndroidSpecifics, _impl_.user_color_theme_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional bool use_custom_theme = 1;
      {PROTOBUF_FIELD_OFFSET(ThemeAndroidSpecifics, _impl_.use_custom_theme_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional .sync_pb.NtpCustomBackground ntp_background = 2;
      {PROTOBUF_FIELD_OFFSET(ThemeAndroidSpecifics, _impl_.ntp_background_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .sync_pb.UserColorTheme user_color_theme = 3;
      {PROTOBUF_FIELD_OFFSET(ThemeAndroidSpecifics, _impl_.user_color_theme_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .sync_pb.ChromeColorInfo chrome_color_info = 4;
      {PROTOBUF_FIELD_OFFSET(ThemeAndroidSpecifics, _impl_.chrome_color_info_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::NtpCustomBackground>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::NtpCustomBackground_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::ChromeColorInfo>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::ChromeColorInfo_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr ThemeAndroidSpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        ntp_background_{nullptr},
        user_color_theme_{nullptr},
        chrome_color_info_{nullptr},
        use_custom_theme_{false} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ThemeAndroidSpecificsGlobalsTypeInternal ThemeAndroidSpecifics_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* ThemeAndroidSpecifics_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return ThemeAndroidSpecifics_globals_.GetClassData();
#else
  return ThemeAndroidSpecifics_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace sync_pb
namespace sync_pb {
// ===================================================================

void ThemeAndroidSpecifics::clear_ntp_background() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.ntp_background_ != nullptr) _impl_.ntp_background_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
void ThemeAndroidSpecifics::clear_user_color_theme() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.user_color_theme_ != nullptr) _impl_.user_color_theme_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
ThemeAndroidSpecifics::ThemeAndroidSpecifics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ThemeAndroidSpecifics_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.ThemeAndroidSpecifics)
}
PROTOBUF_NDEBUG_INLINE ThemeAndroidSpecifics::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::ThemeAndroidSpecifics& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  ThemeAndroidSpecifics* 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, 0x00000001U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ntp_background_)
                : nullptr;
  _impl_.user_color_theme_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.user_color_theme_)
                : nullptr;
  _impl_.chrome_color_info_ = (CheckHasBit(cached_has_bits, 0x00000004U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.chrome_color_info_)
                : nullptr;
  _impl_.use_custom_theme_ = from._impl_.use_custom_theme_;

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite ThemeAndroidSpecifics_class_data_ =
    ThemeAndroidSpecifics::InternalGenerateClassData_(ThemeAndroidSpecifics_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ABSL_DCHECK(_impl_.ntp_background_ != nullptr);
      _impl_.ntp_background_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.user_color_theme_ != nullptr);
      _impl_.user_color_theme_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.chrome_color_info_ != nullptr);
      _impl_.chrome_color_info_->Clear();
    }
  }
  _impl_.use_custom_theme_ = false;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL ThemeAndroidSpecifics::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const ThemeAndroidSpecifics& this_ = static_cast<const ThemeAndroidSpecifics&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL ThemeAndroidSpecifics::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const ThemeAndroidSpecifics& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:sync_pb.ThemeAndroidSpecifics)
  ::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, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        1, this_._internal_use_custom_theme(), target);
  }

  // optional .sync_pb.NtpCustomBackground ntp_background = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.ntp_background_, this_._impl_.ntp_background_->GetCachedSize(), target,
        stream);
  }

  // optional .sync_pb.UserColorTheme user_color_theme = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.user_color_theme_, this_._impl_.user_color_theme_->GetCachedSize(), target,
        stream);
  }

  // optional .sync_pb.ChromeColorInfo chrome_color_info = 4;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        4, *this_._impl_.chrome_color_info_, this_._impl_.chrome_color_info_->GetCachedSize(), target,
        stream);
  }

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t ThemeAndroidSpecifics::ByteSizeLong(const MessageLite& base) {
  const ThemeAndroidSpecifics& this_ = static_cast<const ThemeAndroidSpecifics&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t ThemeAndroidSpecifics::ByteSizeLong() const {
  const ThemeAndroidSpecifics& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.ThemeAndroidSpecifics)
  ::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>(0x00000008U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // optional .sync_pb.NtpCustomBackground ntp_background = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.ntp_background_);
    }
    // optional .sync_pb.UserColorTheme user_color_theme = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.user_color_theme_);
    }
    // optional .sync_pb.ChromeColorInfo chrome_color_info = 4;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.chrome_color_info_);
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

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

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      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, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.user_color_theme_ != nullptr);
      if (_this->_impl_.user_color_theme_ == nullptr) {
        _this->_impl_.user_color_theme_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.user_color_theme_);
      } else {
        _this->_impl_.user_color_theme_->MergeFrom(*from._impl_.user_color_theme_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.chrome_color_info_ != nullptr);
      if (_this->_impl_.chrome_color_info_ == nullptr) {
        _this->_impl_.chrome_color_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.chrome_color_info_);
      } else {
        _this->_impl_.chrome_color_info_->MergeFrom(*from._impl_.chrome_color_info_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.use_custom_theme_ = from._impl_.use_custom_theme_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

inline void ChromeColorInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, last_daily_update_timestamp_unix_epoch_millis_),
           0,
           offsetof(Impl_, theme_color_id_) -
               offsetof(Impl_, last_daily_update_timestamp_unix_epoch_millis_) +
               sizeof(Impl_::theme_color_id_));
}
ChromeColorInfo::~ChromeColorInfo() {
  // @@protoc_insertion_point(destructor:sync_pb.ChromeColorInfo)
  SharedDtor(*this);
}
inline void ChromeColorInfo::SharedDtor(MessageLite& self) {
  ChromeColorInfo& this_ = static_cast<ChromeColorInfo&>(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 ChromeColorInfo_class_data_ =
    ChromeColorInfo::InternalGenerateClassData_(ChromeColorInfo_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
ChromeColorInfo::GetClassData() const {
  return ChromeColorInfo_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
ChromeColorInfo::GetClassData() const {
  return ChromeColorInfo_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ChromeColorInfo::ParseTableT_
    ChromeColorInfo::_table_ =
        ChromeColorInfo::InternalGenerateParseTable_(ChromeColorInfo_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void ChromeColorInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.ChromeColorInfo)
  ::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)) {
    ::memset(&_impl_.last_daily_update_timestamp_unix_epoch_millis_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.theme_color_id_) -
        reinterpret_cast<char*>(&_impl_.last_daily_update_timestamp_unix_epoch_millis_)) + sizeof(_impl_.theme_color_id_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // optional int64 last_daily_update_timestamp_unix_epoch_millis = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
            stream, this_._internal_last_daily_update_timestamp_unix_epoch_millis(), 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.ChromeColorInfo)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t ChromeColorInfo::ByteSizeLong(const MessageLite& base) {
  const ChromeColorInfo& this_ = static_cast<const ChromeColorInfo&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t ChromeColorInfo::ByteSizeLong() const {
  const ChromeColorInfo& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.ChromeColorInfo)
  ::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 int64 last_daily_update_timestamp_unix_epoch_millis = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_last_daily_update_timestamp_unix_epoch_millis());
    }
    // optional int32 theme_color_id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_theme_color_id());
    }
  }
  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 ChromeColorInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ChromeColorInfo*>(&to_msg);
  auto& from = static_cast<const ChromeColorInfo&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.ChromeColorInfo)
  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->_impl_.last_daily_update_timestamp_unix_epoch_millis_ = from._impl_.last_daily_update_timestamp_unix_epoch_millis_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.theme_color_id_ = from._impl_.theme_color_id_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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