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

#ifndef components_2fsync_2fprotocol_2ftheme_5fspecifics_2eproto_2epb_2eh
#define components_2fsync_2fprotocol_2ftheme_5fspecifics_2eproto_2epb_2eh

#include <limits>
#include <string>
#include <type_traits>
#include <utility>

// clang-format off
#include "google/protobuf/runtime_version.h"
#if PROTOBUF_VERSION != 7035001
#error "Protobuf C++ gencode is built with an incompatible version of"
#error "Protobuf C++ headers/runtime. See"
#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/repeated_field.h"  // IWYU pragma: export
#include "google/protobuf/extension_set.h"  // IWYU pragma: export
#include "google/protobuf/generated_enum_util.h"
#include "components/sync/protocol/theme_types.pb.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"

#define PROTOBUF_INTERNAL_EXPORT_components_2fsync_2fprotocol_2ftheme_5fspecifics_2eproto

namespace google {
namespace protobuf {
namespace internal {
template <typename T>
::absl::string_view GetAnyMessageName();
}  // namespace internal
}  // namespace protobuf
}  // namespace google

// Internal implementation detail -- do not use these members.
struct TableStruct_components_2fsync_2fprotocol_2ftheme_5fspecifics_2eproto {
  static const ::uint32_t offsets[];
};
namespace sync_pb {
enum ThemeSpecifics_BrowserColorScheme : int;
extern const uint32_t ThemeSpecifics_BrowserColorScheme_internal_data_[];
class ThemeSpecifics;
struct ThemeSpecificsGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern ThemeSpecificsGlobalsTypeInternal ThemeSpecifics_globals_;
extern const ::google::protobuf::internal::ClassDataLite ThemeSpecifics_class_data_;
#else
extern const ThemeSpecificsGlobalsTypeInternal ThemeSpecifics_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class ThemeSpecifics_AutogeneratedColorTheme;
struct ThemeSpecifics_AutogeneratedColorThemeGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern ThemeSpecifics_AutogeneratedColorThemeGlobalsTypeInternal ThemeSpecifics_AutogeneratedColorTheme_globals_;
extern const ::google::protobuf::internal::ClassDataLite ThemeSpecifics_AutogeneratedColorTheme_class_data_;
#else
extern const ThemeSpecifics_AutogeneratedColorThemeGlobalsTypeInternal ThemeSpecifics_AutogeneratedColorTheme_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class ThemeSpecifics_Empty;
struct ThemeSpecifics_EmptyGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern ThemeSpecifics_EmptyGlobalsTypeInternal ThemeSpecifics_Empty_globals_;
extern const ::google::protobuf::internal::ClassDataLite ThemeSpecifics_Empty_class_data_;
#else
extern const ThemeSpecifics_EmptyGlobalsTypeInternal ThemeSpecifics_Empty_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
}  // namespace sync_pb
namespace google {
namespace protobuf {
template <>
internal::EnumTraitsT<::sync_pb::ThemeSpecifics_BrowserColorScheme_internal_data_>
    internal::EnumTraitsImpl::value<::sync_pb::ThemeSpecifics_BrowserColorScheme>;
}  // namespace protobuf
}  // namespace google

namespace sync_pb {
enum ThemeSpecifics_BrowserColorScheme : int {
  ThemeSpecifics_BrowserColorScheme_BROWSER_COLOR_SCHEME_UNSPECIFIED = 0,
  ThemeSpecifics_BrowserColorScheme_SYSTEM = 1,
  ThemeSpecifics_BrowserColorScheme_LIGHT = 2,
  ThemeSpecifics_BrowserColorScheme_DARK = 3,
};

extern const uint32_t ThemeSpecifics_BrowserColorScheme_internal_data_[];
inline constexpr ThemeSpecifics_BrowserColorScheme ThemeSpecifics_BrowserColorScheme_BrowserColorScheme_MIN =
    static_cast<ThemeSpecifics_BrowserColorScheme>(0);
inline constexpr ThemeSpecifics_BrowserColorScheme ThemeSpecifics_BrowserColorScheme_BrowserColorScheme_MAX =
    static_cast<ThemeSpecifics_BrowserColorScheme>(3);
inline bool ThemeSpecifics_BrowserColorScheme_IsValid(int value) {
  return 0 <= value && value <= 3;
}
inline constexpr int ThemeSpecifics_BrowserColorScheme_BrowserColorScheme_ARRAYSIZE = 3 + 1;
const ::std::string& ThemeSpecifics_BrowserColorScheme_Name(ThemeSpecifics_BrowserColorScheme value);
template <typename T>
const ::std::string& ThemeSpecifics_BrowserColorScheme_Name(T value) {
  static_assert(::std::is_same<T, ThemeSpecifics_BrowserColorScheme>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to BrowserColorScheme_Name().");
  return ThemeSpecifics_BrowserColorScheme_Name(static_cast<ThemeSpecifics_BrowserColorScheme>(value));
}
bool ThemeSpecifics_BrowserColorScheme_Parse(
    ::absl::string_view name, ThemeSpecifics_BrowserColorScheme* PROTOBUF_NONNULL value);
using ::google::protobuf::internal::generated_enum::AbslParseFlag;
using ::google::protobuf::internal::generated_enum::AbslUnparseFlag;

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


// -------------------------------------------------------------------

class  ThemeSpecifics_Empty final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:sync_pb.ThemeSpecifics.Empty) */ {
 public:
  inline ThemeSpecifics_Empty() : ThemeSpecifics_Empty(nullptr) {}
  ~ThemeSpecifics_Empty() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(ThemeSpecifics_Empty* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(ThemeSpecifics_Empty));
  }
#endif

  template <typename = void>
  explicit constexpr ThemeSpecifics_Empty(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline ThemeSpecifics_Empty(const ThemeSpecifics_Empty& from) : ThemeSpecifics_Empty(nullptr, from) {}
  inline ThemeSpecifics_Empty(ThemeSpecifics_Empty&& from) noexcept : ThemeSpecifics_Empty(nullptr, ::std::move(from)) {}
  inline ThemeSpecifics_Empty& operator=(const ThemeSpecifics_Empty& from) {
    CopyFrom(from);
    return *this;
  }
  inline ThemeSpecifics_Empty& operator=(ThemeSpecifics_Empty&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const ThemeSpecifics_Empty& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<ThemeSpecifics_Empty>(&ThemeSpecifics_Empty_globals_);
  }
  static constexpr int kIndexInFileMessages = 1;
  friend void swap(ThemeSpecifics_Empty& a, ThemeSpecifics_Empty& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(ThemeSpecifics_Empty* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(ThemeSpecifics_Empty* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  ThemeSpecifics_Empty* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<ThemeSpecifics_Empty>(arena);
  }
  void CopyFrom(const ThemeSpecifics_Empty& from);
  void MergeFrom(const ThemeSpecifics_Empty& from) { ThemeSpecifics_Empty::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(ThemeSpecifics_Empty* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "sync_pb.ThemeSpecifics.Empty"; }

  explicit ThemeSpecifics_Empty(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  ThemeSpecifics_Empty(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ThemeSpecifics_Empty& from);
  ThemeSpecifics_Empty(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ThemeSpecifics_Empty&& from) noexcept
      : ThemeSpecifics_Empty(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  // @@protoc_insertion_point(class_scope:sync_pb.ThemeSpecifics.Empty)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<0, 0,
                          0, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const ThemeSpecifics_Empty& from_msg);
    ::google::protobuf::internal::CachedSize _cached_size_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2fsync_2fprotocol_2ftheme_5fspecifics_2eproto;
};
// -------------------------------------------------------------------

class  ThemeSpecifics_AutogeneratedColorTheme final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:sync_pb.ThemeSpecifics.AutogeneratedColorTheme) */ {
 public:
  inline ThemeSpecifics_AutogeneratedColorTheme() : ThemeSpecifics_AutogeneratedColorTheme(nullptr) {}
  ~ThemeSpecifics_AutogeneratedColorTheme() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(ThemeSpecifics_AutogeneratedColorTheme));
  }
#endif

  template <typename = void>
  explicit constexpr ThemeSpecifics_AutogeneratedColorTheme(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline ThemeSpecifics_AutogeneratedColorTheme(const ThemeSpecifics_AutogeneratedColorTheme& from) : ThemeSpecifics_AutogeneratedColorTheme(nullptr, from) {}
  inline ThemeSpecifics_AutogeneratedColorTheme(ThemeSpecifics_AutogeneratedColorTheme&& from) noexcept : ThemeSpecifics_AutogeneratedColorTheme(nullptr, ::std::move(from)) {}
  inline ThemeSpecifics_AutogeneratedColorTheme& operator=(const ThemeSpecifics_AutogeneratedColorTheme& from) {
    CopyFrom(from);
    return *this;
  }
  inline ThemeSpecifics_AutogeneratedColorTheme& operator=(ThemeSpecifics_AutogeneratedColorTheme&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const ThemeSpecifics_AutogeneratedColorTheme& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<ThemeSpecifics_AutogeneratedColorTheme>(&ThemeSpecifics_AutogeneratedColorTheme_globals_);
  }
  static constexpr int kIndexInFileMessages = 0;
  friend void swap(ThemeSpecifics_AutogeneratedColorTheme& a, ThemeSpecifics_AutogeneratedColorTheme& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<ThemeSpecifics_AutogeneratedColorTheme>(arena);
  }
  void CopyFrom(const ThemeSpecifics_AutogeneratedColorTheme& from);
  void MergeFrom(const ThemeSpecifics_AutogeneratedColorTheme& from) { ThemeSpecifics_AutogeneratedColorTheme::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "sync_pb.ThemeSpecifics.AutogeneratedColorTheme"; }

  explicit ThemeSpecifics_AutogeneratedColorTheme(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  ThemeSpecifics_AutogeneratedColorTheme(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ThemeSpecifics_AutogeneratedColorTheme& from);
  ThemeSpecifics_AutogeneratedColorTheme(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ThemeSpecifics_AutogeneratedColorTheme&& from) noexcept
      : ThemeSpecifics_AutogeneratedColorTheme(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kColorFieldNumber = 1,
  };
  // optional uint32 color = 1;
  bool has_color()
      const;
  void clear_color() ;
  ::uint32_t color() const;
  void set_color(::uint32_t value);

  private:
  ::uint32_t _internal_color() const;
  void _internal_set_color(::uint32_t value);

  public:
  // @@protoc_insertion_point(class_scope:sync_pb.ThemeSpecifics.AutogeneratedColorTheme)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<0, 1,
                          0, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const ThemeSpecifics_AutogeneratedColorTheme& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::uint32_t color_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2fsync_2fprotocol_2ftheme_5fspecifics_2eproto;
};
// -------------------------------------------------------------------

class  ThemeSpecifics final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:sync_pb.ThemeSpecifics) */ {
 public:
  inline ThemeSpecifics() : ThemeSpecifics(nullptr) {}
  ~ThemeSpecifics() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(ThemeSpecifics* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(ThemeSpecifics));
  }
#endif

  template <typename = void>
  explicit constexpr ThemeSpecifics(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline ThemeSpecifics(const ThemeSpecifics& from) : ThemeSpecifics(nullptr, from) {}
  inline ThemeSpecifics(ThemeSpecifics&& from) noexcept : ThemeSpecifics(nullptr, ::std::move(from)) {}
  inline ThemeSpecifics& operator=(const ThemeSpecifics& from) {
    CopyFrom(from);
    return *this;
  }
  inline ThemeSpecifics& operator=(ThemeSpecifics&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const ThemeSpecifics& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<ThemeSpecifics>(&ThemeSpecifics_globals_);
  }
  enum ColorCase {
    kAutogeneratedColorTheme = 6,
    kUserColorTheme = 7,
    kGrayscaleThemeEnabled = 8,
    COLOR_NOT_SET = 0,
  };
  static constexpr int kIndexInFileMessages = 2;
  friend void swap(ThemeSpecifics& a, ThemeSpecifics& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(ThemeSpecifics* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(ThemeSpecifics* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  ThemeSpecifics* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<ThemeSpecifics>(arena);
  }
  void CopyFrom(const ThemeSpecifics& from);
  void MergeFrom(const ThemeSpecifics& from) { ThemeSpecifics::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(ThemeSpecifics* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "sync_pb.ThemeSpecifics"; }

  explicit ThemeSpecifics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  ThemeSpecifics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ThemeSpecifics& from);
  ThemeSpecifics(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ThemeSpecifics&& from) noexcept
      : ThemeSpecifics(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------
  using AutogeneratedColorTheme = ThemeSpecifics_AutogeneratedColorTheme;
  using Empty = ThemeSpecifics_Empty;
  using BrowserColorScheme = ThemeSpecifics_BrowserColorScheme;
  static constexpr BrowserColorScheme BROWSER_COLOR_SCHEME_UNSPECIFIED = ThemeSpecifics_BrowserColorScheme_BROWSER_COLOR_SCHEME_UNSPECIFIED;
  static constexpr BrowserColorScheme SYSTEM = ThemeSpecifics_BrowserColorScheme_SYSTEM;
  static constexpr BrowserColorScheme LIGHT = ThemeSpecifics_BrowserColorScheme_LIGHT;
  static constexpr BrowserColorScheme DARK = ThemeSpecifics_BrowserColorScheme_DARK;
  static inline bool BrowserColorScheme_IsValid(int value) {
    return ThemeSpecifics_BrowserColorScheme_IsValid(value);
  }
  static constexpr BrowserColorScheme BrowserColorScheme_MIN = ThemeSpecifics_BrowserColorScheme_BrowserColorScheme_MIN;
  static constexpr BrowserColorScheme BrowserColorScheme_MAX = ThemeSpecifics_BrowserColorScheme_BrowserColorScheme_MAX;
  static constexpr int BrowserColorScheme_ARRAYSIZE = ThemeSpecifics_BrowserColorScheme_BrowserColorScheme_ARRAYSIZE;
  template <typename T>
  static inline const ::std::string& BrowserColorScheme_Name(T value) {
    return ThemeSpecifics_BrowserColorScheme_Name(value);
  }
  static inline bool BrowserColorScheme_Parse(
      ::absl::string_view name, BrowserColorScheme* PROTOBUF_NONNULL value) {
    return ThemeSpecifics_BrowserColorScheme_Parse(name, value);
  }

  // accessors -------------------------------------------------------
  enum : int {
    kCustomThemeNameFieldNumber = 3,
    kCustomThemeIdFieldNumber = 4,
    kCustomThemeUpdateUrlFieldNumber = 5,
    kNtpBackgroundFieldNumber = 10,
    kUseCustomThemeFieldNumber = 1,
    kUseSystemThemeByDefaultFieldNumber = 2,
    kBrowserColorSchemeFieldNumber = 9,
    kAutogeneratedColorThemeFieldNumber = 6,
    kUserColorThemeFieldNumber = 7,
    kGrayscaleThemeEnabledFieldNumber = 8,
  };
  // optional string custom_theme_name = 3;
  bool has_custom_theme_name()
      const;
  void clear_custom_theme_name() ;
  const ::std::string& custom_theme_name() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_custom_theme_name(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_custom_theme_name();
  ::std::string* PROTOBUF_NULLABLE release_custom_theme_name();
  void set_allocated_custom_theme_name(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_custom_theme_name() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_custom_theme_name(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_custom_theme_name();

  public:
  // optional string custom_theme_id = 4;
  bool has_custom_theme_id()
      const;
  void clear_custom_theme_id() ;
  const ::std::string& custom_theme_id() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_custom_theme_id(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_custom_theme_id();
  ::std::string* PROTOBUF_NULLABLE release_custom_theme_id();
  void set_allocated_custom_theme_id(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_custom_theme_id() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_custom_theme_id(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_custom_theme_id();

  public:
  // optional string custom_theme_update_url = 5;
  bool has_custom_theme_update_url()
      const;
  void clear_custom_theme_update_url() ;
  const ::std::string& custom_theme_update_url() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_custom_theme_update_url(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_custom_theme_update_url();
  ::std::string* PROTOBUF_NULLABLE release_custom_theme_update_url();
  void set_allocated_custom_theme_update_url(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_custom_theme_update_url() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_custom_theme_update_url(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_custom_theme_update_url();

  public:
  // optional .sync_pb.NtpCustomBackground ntp_background = 10;
  bool has_ntp_background()
      const;
  void clear_ntp_background() ;
  const ::sync_pb::NtpCustomBackground& ntp_background() const;
  ::sync_pb::NtpCustomBackground* PROTOBUF_NULLABLE release_ntp_background();
  ::sync_pb::NtpCustomBackground* PROTOBUF_NONNULL mutable_ntp_background();
  void set_allocated_ntp_background(::sync_pb::NtpCustomBackground* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_ntp_background(::sync_pb::NtpCustomBackground* PROTOBUF_NULLABLE value);
  ::sync_pb::NtpCustomBackground* PROTOBUF_NULLABLE unsafe_arena_release_ntp_background();

  private:
  const ::sync_pb::NtpCustomBackground& _internal_ntp_background() const;
  ::sync_pb::NtpCustomBackground* PROTOBUF_NONNULL _internal_mutable_ntp_background();

  public:
  // optional bool use_custom_theme = 1;
  bool has_use_custom_theme()
      const;
  void clear_use_custom_theme() ;
  bool use_custom_theme() const;
  void set_use_custom_theme(bool value);

  private:
  bool _internal_use_custom_theme() const;
  void _internal_set_use_custom_theme(bool value);

  public:
  // optional bool use_system_theme_by_default = 2;
  bool has_use_system_theme_by_default()
      const;
  void clear_use_system_theme_by_default() ;
  bool use_system_theme_by_default() const;
  void set_use_system_theme_by_default(bool value);

  private:
  bool _internal_use_system_theme_by_default() const;
  void _internal_set_use_system_theme_by_default(bool value);

  public:
  // optional .sync_pb.ThemeSpecifics.BrowserColorScheme browser_color_scheme = 9;
  bool has_browser_color_scheme()
      const;
  void clear_browser_color_scheme() ;
  ::sync_pb::ThemeSpecifics_BrowserColorScheme browser_color_scheme() const;
  void set_browser_color_scheme(::sync_pb::ThemeSpecifics_BrowserColorScheme value);

  private:
  ::sync_pb::ThemeSpecifics_BrowserColorScheme _internal_browser_color_scheme() const;
  void _internal_set_browser_color_scheme(::sync_pb::ThemeSpecifics_BrowserColorScheme value);

  public:
  // .sync_pb.ThemeSpecifics.AutogeneratedColorTheme autogenerated_color_theme = 6;
  bool has_autogenerated_color_theme()
      const;
  private:
  bool _internal_has_autogenerated_color_theme() const;

  public:
  void clear_autogenerated_color_theme() ;
  const ::sync_pb::ThemeSpecifics_AutogeneratedColorTheme& autogenerated_color_theme() const;
  ::sync_pb::ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NULLABLE release_autogenerated_color_theme();
  ::sync_pb::ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NONNULL mutable_autogenerated_color_theme();
  void set_allocated_autogenerated_color_theme(::sync_pb::ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_autogenerated_color_theme(::sync_pb::ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NULLABLE value);
  ::sync_pb::ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NULLABLE unsafe_arena_release_autogenerated_color_theme();

  private:
  const ::sync_pb::ThemeSpecifics_AutogeneratedColorTheme& _internal_autogenerated_color_theme() const;
  ::sync_pb::ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NONNULL _internal_mutable_autogenerated_color_theme();

  public:
  // .sync_pb.UserColorTheme user_color_theme = 7;
  bool has_user_color_theme()
      const;
  private:
  bool _internal_has_user_color_theme() const;

  public:
  void clear_user_color_theme() ;
  const ::sync_pb::UserColorTheme& user_color_theme() const;
  ::sync_pb::UserColorTheme* PROTOBUF_NULLABLE release_user_color_theme();
  ::sync_pb::UserColorTheme* PROTOBUF_NONNULL mutable_user_color_theme();
  void set_allocated_user_color_theme(::sync_pb::UserColorTheme* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_user_color_theme(::sync_pb::UserColorTheme* PROTOBUF_NULLABLE value);
  ::sync_pb::UserColorTheme* PROTOBUF_NULLABLE unsafe_arena_release_user_color_theme();

  private:
  const ::sync_pb::UserColorTheme& _internal_user_color_theme() const;
  ::sync_pb::UserColorTheme* PROTOBUF_NONNULL _internal_mutable_user_color_theme();

  public:
  // .sync_pb.ThemeSpecifics.Empty grayscale_theme_enabled = 8;
  bool has_grayscale_theme_enabled()
      const;
  private:
  bool _internal_has_grayscale_theme_enabled() const;

  public:
  void clear_grayscale_theme_enabled() ;
  const ::sync_pb::ThemeSpecifics_Empty& grayscale_theme_enabled() const;
  ::sync_pb::ThemeSpecifics_Empty* PROTOBUF_NULLABLE release_grayscale_theme_enabled();
  ::sync_pb::ThemeSpecifics_Empty* PROTOBUF_NONNULL mutable_grayscale_theme_enabled();
  void set_allocated_grayscale_theme_enabled(::sync_pb::ThemeSpecifics_Empty* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_grayscale_theme_enabled(::sync_pb::ThemeSpecifics_Empty* PROTOBUF_NULLABLE value);
  ::sync_pb::ThemeSpecifics_Empty* PROTOBUF_NULLABLE unsafe_arena_release_grayscale_theme_enabled();

  private:
  const ::sync_pb::ThemeSpecifics_Empty& _internal_grayscale_theme_enabled() const;
  ::sync_pb::ThemeSpecifics_Empty* PROTOBUF_NONNULL _internal_mutable_grayscale_theme_enabled();

  public:
  void clear_color();
  ColorCase color_case() const;
  // @@protoc_insertion_point(class_scope:sync_pb.ThemeSpecifics)
 private:
  class _Internal;
  void set_has_autogenerated_color_theme();
  void set_has_user_color_theme();
  void set_has_grayscale_theme_enabled();
  inline bool has_color() const;
  inline void clear_has_color();
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<4, 10,
                          5, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const ThemeSpecifics& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr custom_theme_name_;
    ::google::protobuf::internal::ArenaStringPtr custom_theme_id_;
    ::google::protobuf::internal::ArenaStringPtr custom_theme_update_url_;
    ::sync_pb::NtpCustomBackground* PROTOBUF_NULLABLE ntp_background_;
    bool use_custom_theme_;
    bool use_system_theme_by_default_;
    int browser_color_scheme_;
    union ColorUnion {
      constexpr ColorUnion() : _constinit_{} {}
      ::google::protobuf::internal::ConstantInitialized _constinit_;
      ::google::protobuf::MessageLite* PROTOBUF_NULLABLE autogenerated_color_theme_;
      ::google::protobuf::MessageLite* PROTOBUF_NULLABLE user_color_theme_;
      ::google::protobuf::MessageLite* PROTOBUF_NULLABLE grayscale_theme_enabled_;
    } color_;
    ::uint32_t _oneof_case_[1];
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2fsync_2fprotocol_2ftheme_5fspecifics_2eproto;
};

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




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


#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// -------------------------------------------------------------------

// ThemeSpecifics_AutogeneratedColorTheme

// optional uint32 color = 1;
inline bool ThemeSpecifics_AutogeneratedColorTheme::has_color() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void ThemeSpecifics_AutogeneratedColorTheme::clear_color() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.color_ = 0u;
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline ::uint32_t ThemeSpecifics_AutogeneratedColorTheme::color() const {
  // @@protoc_insertion_point(field_get:sync_pb.ThemeSpecifics.AutogeneratedColorTheme.color)
  return _internal_color();
}
inline void ThemeSpecifics_AutogeneratedColorTheme::set_color(::uint32_t value) {
  _internal_set_color(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_set:sync_pb.ThemeSpecifics.AutogeneratedColorTheme.color)
}
inline ::uint32_t ThemeSpecifics_AutogeneratedColorTheme::_internal_color() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.color_;
}
inline void ThemeSpecifics_AutogeneratedColorTheme::_internal_set_color(::uint32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.color_ = value;
}

// -------------------------------------------------------------------

// ThemeSpecifics_Empty

// -------------------------------------------------------------------

// ThemeSpecifics

// optional bool use_custom_theme = 1;
inline bool ThemeSpecifics::has_use_custom_theme() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
  return value;
}
inline void ThemeSpecifics::clear_use_custom_theme() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.use_custom_theme_ = false;
  ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
}
inline bool ThemeSpecifics::use_custom_theme() const {
  // @@protoc_insertion_point(field_get:sync_pb.ThemeSpecifics.use_custom_theme)
  return _internal_use_custom_theme();
}
inline void ThemeSpecifics::set_use_custom_theme(bool value) {
  _internal_set_use_custom_theme(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000010U);
  // @@protoc_insertion_point(field_set:sync_pb.ThemeSpecifics.use_custom_theme)
}
inline bool ThemeSpecifics::_internal_use_custom_theme() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.use_custom_theme_;
}
inline void ThemeSpecifics::_internal_set_use_custom_theme(bool value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.use_custom_theme_ = value;
}

// optional bool use_system_theme_by_default = 2;
inline bool ThemeSpecifics::has_use_system_theme_by_default() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
  return value;
}
inline void ThemeSpecifics::clear_use_system_theme_by_default() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.use_system_theme_by_default_ = false;
  ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
}
inline bool ThemeSpecifics::use_system_theme_by_default() const {
  // @@protoc_insertion_point(field_get:sync_pb.ThemeSpecifics.use_system_theme_by_default)
  return _internal_use_system_theme_by_default();
}
inline void ThemeSpecifics::set_use_system_theme_by_default(bool value) {
  _internal_set_use_system_theme_by_default(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000020U);
  // @@protoc_insertion_point(field_set:sync_pb.ThemeSpecifics.use_system_theme_by_default)
}
inline bool ThemeSpecifics::_internal_use_system_theme_by_default() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.use_system_theme_by_default_;
}
inline void ThemeSpecifics::_internal_set_use_system_theme_by_default(bool value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.use_system_theme_by_default_ = value;
}

// optional string custom_theme_name = 3;
inline bool ThemeSpecifics::has_custom_theme_name() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void ThemeSpecifics::clear_custom_theme_name() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.custom_theme_name_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::std::string& ThemeSpecifics::custom_theme_name() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:sync_pb.ThemeSpecifics.custom_theme_name)
  return _internal_custom_theme_name();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void ThemeSpecifics::set_custom_theme_name(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  _impl_.custom_theme_name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:sync_pb.ThemeSpecifics.custom_theme_name)
}
inline ::std::string* PROTOBUF_NONNULL ThemeSpecifics::mutable_custom_theme_name()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::std::string* _s = _internal_mutable_custom_theme_name();
  // @@protoc_insertion_point(field_mutable:sync_pb.ThemeSpecifics.custom_theme_name)
  return _s;
}
inline const ::std::string& ThemeSpecifics::_internal_custom_theme_name() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.custom_theme_name_.Get();
}
inline void ThemeSpecifics::_internal_set_custom_theme_name(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.custom_theme_name_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL ThemeSpecifics::_internal_mutable_custom_theme_name() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.custom_theme_name_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE ThemeSpecifics::release_custom_theme_name() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:sync_pb.ThemeSpecifics.custom_theme_name)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  auto* released = _impl_.custom_theme_name_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.custom_theme_name_.Set("", GetArena());
  }
  return released;
}
inline void ThemeSpecifics::set_allocated_custom_theme_name(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  }
  _impl_.custom_theme_name_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.custom_theme_name_.IsDefault()) {
    _impl_.custom_theme_name_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.ThemeSpecifics.custom_theme_name)
}

// optional string custom_theme_id = 4;
inline bool ThemeSpecifics::has_custom_theme_id() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  return value;
}
inline void ThemeSpecifics::clear_custom_theme_id() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.custom_theme_id_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline const ::std::string& ThemeSpecifics::custom_theme_id() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:sync_pb.ThemeSpecifics.custom_theme_id)
  return _internal_custom_theme_id();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void ThemeSpecifics::set_custom_theme_id(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  _impl_.custom_theme_id_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:sync_pb.ThemeSpecifics.custom_theme_id)
}
inline ::std::string* PROTOBUF_NONNULL ThemeSpecifics::mutable_custom_theme_id()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::std::string* _s = _internal_mutable_custom_theme_id();
  // @@protoc_insertion_point(field_mutable:sync_pb.ThemeSpecifics.custom_theme_id)
  return _s;
}
inline const ::std::string& ThemeSpecifics::_internal_custom_theme_id() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.custom_theme_id_.Get();
}
inline void ThemeSpecifics::_internal_set_custom_theme_id(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.custom_theme_id_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL ThemeSpecifics::_internal_mutable_custom_theme_id() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.custom_theme_id_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE ThemeSpecifics::release_custom_theme_id() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:sync_pb.ThemeSpecifics.custom_theme_id)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  auto* released = _impl_.custom_theme_id_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.custom_theme_id_.Set("", GetArena());
  }
  return released;
}
inline void ThemeSpecifics::set_allocated_custom_theme_id(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }
  _impl_.custom_theme_id_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.custom_theme_id_.IsDefault()) {
    _impl_.custom_theme_id_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.ThemeSpecifics.custom_theme_id)
}

// optional string custom_theme_update_url = 5;
inline bool ThemeSpecifics::has_custom_theme_update_url() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  return value;
}
inline void ThemeSpecifics::clear_custom_theme_update_url() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.custom_theme_update_url_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline const ::std::string& ThemeSpecifics::custom_theme_update_url() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:sync_pb.ThemeSpecifics.custom_theme_update_url)
  return _internal_custom_theme_update_url();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void ThemeSpecifics::set_custom_theme_update_url(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  _impl_.custom_theme_update_url_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:sync_pb.ThemeSpecifics.custom_theme_update_url)
}
inline ::std::string* PROTOBUF_NONNULL ThemeSpecifics::mutable_custom_theme_update_url()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::std::string* _s = _internal_mutable_custom_theme_update_url();
  // @@protoc_insertion_point(field_mutable:sync_pb.ThemeSpecifics.custom_theme_update_url)
  return _s;
}
inline const ::std::string& ThemeSpecifics::_internal_custom_theme_update_url() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.custom_theme_update_url_.Get();
}
inline void ThemeSpecifics::_internal_set_custom_theme_update_url(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.custom_theme_update_url_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL ThemeSpecifics::_internal_mutable_custom_theme_update_url() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.custom_theme_update_url_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE ThemeSpecifics::release_custom_theme_update_url() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:sync_pb.ThemeSpecifics.custom_theme_update_url)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  auto* released = _impl_.custom_theme_update_url_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.custom_theme_update_url_.Set("", GetArena());
  }
  return released;
}
inline void ThemeSpecifics::set_allocated_custom_theme_update_url(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  }
  _impl_.custom_theme_update_url_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.custom_theme_update_url_.IsDefault()) {
    _impl_.custom_theme_update_url_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.ThemeSpecifics.custom_theme_update_url)
}

// .sync_pb.ThemeSpecifics.AutogeneratedColorTheme autogenerated_color_theme = 6;
inline bool ThemeSpecifics::has_autogenerated_color_theme() const {
  return color_case() == kAutogeneratedColorTheme;
}
inline bool ThemeSpecifics::_internal_has_autogenerated_color_theme() const {
  return color_case() == kAutogeneratedColorTheme;
}
inline void ThemeSpecifics::set_has_autogenerated_color_theme() {
  _impl_._oneof_case_[0] = kAutogeneratedColorTheme;
}
inline void ThemeSpecifics::clear_autogenerated_color_theme() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (color_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();
      }
    }
    clear_has_color();
  }
}
inline ::sync_pb::ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NULLABLE ThemeSpecifics::release_autogenerated_color_theme() {
  // @@protoc_insertion_point(field_release:sync_pb.ThemeSpecifics.autogenerated_color_theme)
  if (color_case() == kAutogeneratedColorTheme) {
    clear_has_color();
    auto* temp = reinterpret_cast<::sync_pb::ThemeSpecifics_AutogeneratedColorTheme*>(_impl_.color_.autogenerated_color_theme_);
    if (GetArena() != nullptr) {
      temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
    }
    _impl_.color_.autogenerated_color_theme_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::sync_pb::ThemeSpecifics_AutogeneratedColorTheme& ThemeSpecifics::_internal_autogenerated_color_theme() const {
  return color_case() == kAutogeneratedColorTheme ? static_cast<const ::sync_pb::ThemeSpecifics_AutogeneratedColorTheme&>(*reinterpret_cast<::sync_pb::ThemeSpecifics_AutogeneratedColorTheme*>(_impl_.color_.autogenerated_color_theme_))
                     : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::sync_pb::ThemeSpecifics_AutogeneratedColorTheme>(&::sync_pb::ThemeSpecifics_AutogeneratedColorTheme_globals_);
}
inline const ::sync_pb::ThemeSpecifics_AutogeneratedColorTheme& ThemeSpecifics::autogenerated_color_theme() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:sync_pb.ThemeSpecifics.autogenerated_color_theme)
  return _internal_autogenerated_color_theme();
}
inline ::sync_pb::ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NULLABLE ThemeSpecifics::unsafe_arena_release_autogenerated_color_theme() {
  // @@protoc_insertion_point(field_unsafe_arena_release:sync_pb.ThemeSpecifics.autogenerated_color_theme)
  if (color_case() == kAutogeneratedColorTheme) {
    clear_has_color();
    auto* temp = reinterpret_cast<::sync_pb::ThemeSpecifics_AutogeneratedColorTheme*>(_impl_.color_.autogenerated_color_theme_);
    _impl_.color_.autogenerated_color_theme_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline void ThemeSpecifics::unsafe_arena_set_allocated_autogenerated_color_theme(
    ::sync_pb::ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NULLABLE value) {
  // We rely on the oneof clear method to free the earlier contents
  // of this oneof. We can directly use the pointer we're given to
  // set the new value.
  clear_color();
  if (value) {
    set_has_autogenerated_color_theme();
    _impl_.color_.autogenerated_color_theme_ = reinterpret_cast<::google::protobuf::MessageLite*>(value);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:sync_pb.ThemeSpecifics.autogenerated_color_theme)
}
inline ::sync_pb::ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NONNULL ThemeSpecifics::_internal_mutable_autogenerated_color_theme() {
  if (color_case() != kAutogeneratedColorTheme) {
    clear_color();
    set_has_autogenerated_color_theme();
    _impl_.color_.autogenerated_color_theme_ = reinterpret_cast<::google::protobuf::MessageLite*>(
        ::google::protobuf::MessageLite::DefaultConstruct<::sync_pb::ThemeSpecifics_AutogeneratedColorTheme>(GetArena()));
  }
  return reinterpret_cast<::sync_pb::ThemeSpecifics_AutogeneratedColorTheme*>(_impl_.color_.autogenerated_color_theme_);
}
inline ::sync_pb::ThemeSpecifics_AutogeneratedColorTheme* PROTOBUF_NONNULL ThemeSpecifics::mutable_autogenerated_color_theme()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::sync_pb::ThemeSpecifics_AutogeneratedColorTheme* _msg = _internal_mutable_autogenerated_color_theme();
  // @@protoc_insertion_point(field_mutable:sync_pb.ThemeSpecifics.autogenerated_color_theme)
  return _msg;
}

// .sync_pb.UserColorTheme user_color_theme = 7;
inline bool ThemeSpecifics::has_user_color_theme() const {
  return color_case() == kUserColorTheme;
}
inline bool ThemeSpecifics::_internal_has_user_color_theme() const {
  return color_case() == kUserColorTheme;
}
inline void ThemeSpecifics::set_has_user_color_theme() {
  _impl_._oneof_case_[0] = kUserColorTheme;
}
inline ::sync_pb::UserColorTheme* PROTOBUF_NULLABLE ThemeSpecifics::release_user_color_theme() {
  // @@protoc_insertion_point(field_release:sync_pb.ThemeSpecifics.user_color_theme)
  if (color_case() == kUserColorTheme) {
    clear_has_color();
    auto* temp = reinterpret_cast<::sync_pb::UserColorTheme*>(_impl_.color_.user_color_theme_);
    if (GetArena() != nullptr) {
      temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
    }
    _impl_.color_.user_color_theme_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::sync_pb::UserColorTheme& ThemeSpecifics::_internal_user_color_theme() const {
  return color_case() == kUserColorTheme ? static_cast<const ::sync_pb::UserColorTheme&>(*reinterpret_cast<::sync_pb::UserColorTheme*>(_impl_.color_.user_color_theme_))
                     : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::sync_pb::UserColorTheme>(&::sync_pb::UserColorTheme_globals_);
}
inline const ::sync_pb::UserColorTheme& ThemeSpecifics::user_color_theme() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:sync_pb.ThemeSpecifics.user_color_theme)
  return _internal_user_color_theme();
}
inline ::sync_pb::UserColorTheme* PROTOBUF_NULLABLE ThemeSpecifics::unsafe_arena_release_user_color_theme() {
  // @@protoc_insertion_point(field_unsafe_arena_release:sync_pb.ThemeSpecifics.user_color_theme)
  if (color_case() == kUserColorTheme) {
    clear_has_color();
    auto* temp = reinterpret_cast<::sync_pb::UserColorTheme*>(_impl_.color_.user_color_theme_);
    _impl_.color_.user_color_theme_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline void ThemeSpecifics::unsafe_arena_set_allocated_user_color_theme(
    ::sync_pb::UserColorTheme* PROTOBUF_NULLABLE value) {
  // We rely on the oneof clear method to free the earlier contents
  // of this oneof. We can directly use the pointer we're given to
  // set the new value.
  clear_color();
  if (value) {
    set_has_user_color_theme();
    _impl_.color_.user_color_theme_ = reinterpret_cast<::google::protobuf::MessageLite*>(value);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:sync_pb.ThemeSpecifics.user_color_theme)
}
inline ::sync_pb::UserColorTheme* PROTOBUF_NONNULL ThemeSpecifics::_internal_mutable_user_color_theme() {
  if (color_case() != kUserColorTheme) {
    clear_color();
    set_has_user_color_theme();
    _impl_.color_.user_color_theme_ = reinterpret_cast<::google::protobuf::MessageLite*>(
        ::google::protobuf::MessageLite::DefaultConstruct<::sync_pb::UserColorTheme>(GetArena()));
  }
  return reinterpret_cast<::sync_pb::UserColorTheme*>(_impl_.color_.user_color_theme_);
}
inline ::sync_pb::UserColorTheme* PROTOBUF_NONNULL ThemeSpecifics::mutable_user_color_theme()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::sync_pb::UserColorTheme* _msg = _internal_mutable_user_color_theme();
  // @@protoc_insertion_point(field_mutable:sync_pb.ThemeSpecifics.user_color_theme)
  return _msg;
}

// .sync_pb.ThemeSpecifics.Empty grayscale_theme_enabled = 8;
inline bool ThemeSpecifics::has_grayscale_theme_enabled() const {
  return color_case() == kGrayscaleThemeEnabled;
}
inline bool ThemeSpecifics::_internal_has_grayscale_theme_enabled() const {
  return color_case() == kGrayscaleThemeEnabled;
}
inline void ThemeSpecifics::set_has_grayscale_theme_enabled() {
  _impl_._oneof_case_[0] = kGrayscaleThemeEnabled;
}
inline void ThemeSpecifics::clear_grayscale_theme_enabled() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (color_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();
      }
    }
    clear_has_color();
  }
}
inline ::sync_pb::ThemeSpecifics_Empty* PROTOBUF_NULLABLE ThemeSpecifics::release_grayscale_theme_enabled() {
  // @@protoc_insertion_point(field_release:sync_pb.ThemeSpecifics.grayscale_theme_enabled)
  if (color_case() == kGrayscaleThemeEnabled) {
    clear_has_color();
    auto* temp = reinterpret_cast<::sync_pb::ThemeSpecifics_Empty*>(_impl_.color_.grayscale_theme_enabled_);
    if (GetArena() != nullptr) {
      temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
    }
    _impl_.color_.grayscale_theme_enabled_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::sync_pb::ThemeSpecifics_Empty& ThemeSpecifics::_internal_grayscale_theme_enabled() const {
  return color_case() == kGrayscaleThemeEnabled ? static_cast<const ::sync_pb::ThemeSpecifics_Empty&>(*reinterpret_cast<::sync_pb::ThemeSpecifics_Empty*>(_impl_.color_.grayscale_theme_enabled_))
                     : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::sync_pb::ThemeSpecifics_Empty>(&::sync_pb::ThemeSpecifics_Empty_globals_);
}
inline const ::sync_pb::ThemeSpecifics_Empty& ThemeSpecifics::grayscale_theme_enabled() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:sync_pb.ThemeSpecifics.grayscale_theme_enabled)
  return _internal_grayscale_theme_enabled();
}
inline ::sync_pb::ThemeSpecifics_Empty* PROTOBUF_NULLABLE ThemeSpecifics::unsafe_arena_release_grayscale_theme_enabled() {
  // @@protoc_insertion_point(field_unsafe_arena_release:sync_pb.ThemeSpecifics.grayscale_theme_enabled)
  if (color_case() == kGrayscaleThemeEnabled) {
    clear_has_color();
    auto* temp = reinterpret_cast<::sync_pb::ThemeSpecifics_Empty*>(_impl_.color_.grayscale_theme_enabled_);
    _impl_.color_.grayscale_theme_enabled_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline void ThemeSpecifics::unsafe_arena_set_allocated_grayscale_theme_enabled(
    ::sync_pb::ThemeSpecifics_Empty* PROTOBUF_NULLABLE value) {
  // We rely on the oneof clear method to free the earlier contents
  // of this oneof. We can directly use the pointer we're given to
  // set the new value.
  clear_color();
  if (value) {
    set_has_grayscale_theme_enabled();
    _impl_.color_.grayscale_theme_enabled_ = reinterpret_cast<::google::protobuf::MessageLite*>(value);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:sync_pb.ThemeSpecifics.grayscale_theme_enabled)
}
inline ::sync_pb::ThemeSpecifics_Empty* PROTOBUF_NONNULL ThemeSpecifics::_internal_mutable_grayscale_theme_enabled() {
  if (color_case() != kGrayscaleThemeEnabled) {
    clear_color();
    set_has_grayscale_theme_enabled();
    _impl_.color_.grayscale_theme_enabled_ = reinterpret_cast<::google::protobuf::MessageLite*>(
        ::google::protobuf::MessageLite::DefaultConstruct<::sync_pb::ThemeSpecifics_Empty>(GetArena()));
  }
  return reinterpret_cast<::sync_pb::ThemeSpecifics_Empty*>(_impl_.color_.grayscale_theme_enabled_);
}
inline ::sync_pb::ThemeSpecifics_Empty* PROTOBUF_NONNULL ThemeSpecifics::mutable_grayscale_theme_enabled()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::sync_pb::ThemeSpecifics_Empty* _msg = _internal_mutable_grayscale_theme_enabled();
  // @@protoc_insertion_point(field_mutable:sync_pb.ThemeSpecifics.grayscale_theme_enabled)
  return _msg;
}

// optional .sync_pb.ThemeSpecifics.BrowserColorScheme browser_color_scheme = 9;
inline bool ThemeSpecifics::has_browser_color_scheme() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U);
  return value;
}
inline void ThemeSpecifics::clear_browser_color_scheme() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.browser_color_scheme_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
}
inline ::sync_pb::ThemeSpecifics_BrowserColorScheme ThemeSpecifics::browser_color_scheme() const {
  // @@protoc_insertion_point(field_get:sync_pb.ThemeSpecifics.browser_color_scheme)
  return _internal_browser_color_scheme();
}
inline void ThemeSpecifics::set_browser_color_scheme(::sync_pb::ThemeSpecifics_BrowserColorScheme value) {
  _internal_set_browser_color_scheme(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000040U);
  // @@protoc_insertion_point(field_set:sync_pb.ThemeSpecifics.browser_color_scheme)
}
inline ::sync_pb::ThemeSpecifics_BrowserColorScheme ThemeSpecifics::_internal_browser_color_scheme() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::sync_pb::ThemeSpecifics_BrowserColorScheme>(_impl_.browser_color_scheme_);
}
inline void ThemeSpecifics::_internal_set_browser_color_scheme(::sync_pb::ThemeSpecifics_BrowserColorScheme value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::sync_pb::ThemeSpecifics_BrowserColorScheme_internal_data_));
                                          _impl_.browser_color_scheme_ = value;
}

// optional .sync_pb.NtpCustomBackground ntp_background = 10;
inline bool ThemeSpecifics::has_ntp_background() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
  PROTOBUF_ASSUME(!value || _impl_.ntp_background_ != nullptr);
  return value;
}
inline const ::sync_pb::NtpCustomBackground& ThemeSpecifics::_internal_ntp_background() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::sync_pb::NtpCustomBackground* p = _impl_.ntp_background_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::sync_pb::NtpCustomBackground>(&::sync_pb::NtpCustomBackground_globals_);
}
inline const ::sync_pb::NtpCustomBackground& ThemeSpecifics::ntp_background() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:sync_pb.ThemeSpecifics.ntp_background)
  return _internal_ntp_background();
}
inline void ThemeSpecifics::unsafe_arena_set_allocated_ntp_background(
    ::sync_pb::NtpCustomBackground* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ntp_background_);
  }
  _impl_.ntp_background_ = reinterpret_cast<::sync_pb::NtpCustomBackground*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:sync_pb.ThemeSpecifics.ntp_background)
}
inline ::sync_pb::NtpCustomBackground* PROTOBUF_NULLABLE ThemeSpecifics::release_ntp_background() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
  ::sync_pb::NtpCustomBackground* released = _impl_.ntp_background_;
  _impl_.ntp_background_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::sync_pb::NtpCustomBackground* PROTOBUF_NULLABLE ThemeSpecifics::unsafe_arena_release_ntp_background() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:sync_pb.ThemeSpecifics.ntp_background)

  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
  ::sync_pb::NtpCustomBackground* temp = _impl_.ntp_background_;
  _impl_.ntp_background_ = nullptr;
  return temp;
}
inline ::sync_pb::NtpCustomBackground* PROTOBUF_NONNULL ThemeSpecifics::_internal_mutable_ntp_background() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.ntp_background_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::sync_pb::NtpCustomBackground>(GetArena());
    _impl_.ntp_background_ = reinterpret_cast<::sync_pb::NtpCustomBackground*>(p);
  }
  return _impl_.ntp_background_;
}
inline ::sync_pb::NtpCustomBackground* PROTOBUF_NONNULL ThemeSpecifics::mutable_ntp_background()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  ::sync_pb::NtpCustomBackground* _msg = _internal_mutable_ntp_background();
  // @@protoc_insertion_point(field_mutable:sync_pb.ThemeSpecifics.ntp_background)
  return _msg;
}
inline void ThemeSpecifics::set_allocated_ntp_background(::sync_pb::NtpCustomBackground* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ntp_background_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
    if (message_arena != submessage_arena) {
      value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
    }
    SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
  }

  _impl_.ntp_background_ = reinterpret_cast<::sync_pb::NtpCustomBackground*>(value);
  // @@protoc_insertion_point(field_set_allocated:sync_pb.ThemeSpecifics.ntp_background)
}

inline bool ThemeSpecifics::has_color() const {
  return color_case() != COLOR_NOT_SET;
}
inline void ThemeSpecifics::clear_has_color() {
  _impl_._oneof_case_[0] = COLOR_NOT_SET;
}
inline ThemeSpecifics::ColorCase ThemeSpecifics::color_case() const {
  return ThemeSpecifics::ColorCase(_impl_._oneof_case_[0]);
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif  // __GNUC__

// @@protoc_insertion_point(namespace_scope)
}  // namespace sync_pb


namespace google {
namespace protobuf {

template <>
struct is_proto_enum<::sync_pb::ThemeSpecifics_BrowserColorScheme> : std::true_type {};
template <>
struct internal::LiteEnumFuncs<::sync_pb::ThemeSpecifics_BrowserColorScheme> {
  static constexpr bool kIsDefined = true;
  static constexpr auto kParseFunc = ::sync_pb::ThemeSpecifics_BrowserColorScheme_Parse;
  static constexpr auto kNameFunc = ::sync_pb::ThemeSpecifics_BrowserColorScheme_Name<int>;
};

}  // namespace protobuf
}  // namespace google

// @@protoc_insertion_point(global_scope)

#include "google/protobuf/port_undef.inc"
// clang-format on

#endif  // components_2fsync_2fprotocol_2ftheme_5fspecifics_2eproto_2epb_2eh
