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

#ifndef components_2fsync_2fprotocol_2fnote_5fentity_2eproto_2epb_2eh
#define components_2fsync_2fprotocol_2fnote_5fentity_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"
// @@protoc_insertion_point(includes)

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

#define PROTOBUF_INTERNAL_EXPORT_components_2fsync_2fprotocol_2fnote_5fentity_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_2fnote_5fentity_2eproto {
  static const ::uint32_t offsets[];
};
namespace sync_pb {
enum NoteEntity_TargetType : int;
extern const uint32_t NoteEntity_TargetType_internal_data_[];
class NoteEntity;
struct NoteEntityGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern NoteEntityGlobalsTypeInternal NoteEntity_globals_;
extern const ::google::protobuf::internal::ClassDataLite NoteEntity_class_data_;
#else
extern const NoteEntityGlobalsTypeInternal NoteEntity_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
}  // namespace sync_pb
namespace google {
namespace protobuf {
template <>
internal::EnumTraitsT<::sync_pb::NoteEntity_TargetType_internal_data_>
    internal::EnumTraitsImpl::value<::sync_pb::NoteEntity_TargetType>;
}  // namespace protobuf
}  // namespace google

namespace sync_pb {
enum NoteEntity_TargetType : int {
  NoteEntity_TargetType_TARGET_TYPE_UNSPECIFIED = 0,
  NoteEntity_TargetType_TARGET_TYPE_PAGE = 1,
};

extern const uint32_t NoteEntity_TargetType_internal_data_[];
inline constexpr NoteEntity_TargetType NoteEntity_TargetType_TargetType_MIN =
    static_cast<NoteEntity_TargetType>(0);
inline constexpr NoteEntity_TargetType NoteEntity_TargetType_TargetType_MAX =
    static_cast<NoteEntity_TargetType>(1);
inline bool NoteEntity_TargetType_IsValid(int value) {
  return 0 <= value && value <= 1;
}
inline constexpr int NoteEntity_TargetType_TargetType_ARRAYSIZE = 1 + 1;
const ::std::string& NoteEntity_TargetType_Name(NoteEntity_TargetType value);
template <typename T>
const ::std::string& NoteEntity_TargetType_Name(T value) {
  static_assert(::std::is_same<T, NoteEntity_TargetType>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to TargetType_Name().");
  return NoteEntity_TargetType_Name(static_cast<NoteEntity_TargetType>(value));
}
bool NoteEntity_TargetType_Parse(
    ::absl::string_view name, NoteEntity_TargetType* PROTOBUF_NONNULL value);
using ::google::protobuf::internal::generated_enum::AbslParseFlag;
using ::google::protobuf::internal::generated_enum::AbslUnparseFlag;

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


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

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

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

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

  inline NoteEntity(const NoteEntity& from) : NoteEntity(nullptr, from) {}
  inline NoteEntity(NoteEntity&& from) noexcept : NoteEntity(nullptr, ::std::move(from)) {}
  inline NoteEntity& operator=(const NoteEntity& from) {
    CopyFrom(from);
    return *this;
  }
  inline NoteEntity& operator=(NoteEntity&& 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 NoteEntity& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<NoteEntity>(&NoteEntity_globals_);
  }
  static constexpr int kIndexInFileMessages = 0;
  friend void swap(NoteEntity& a, NoteEntity& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(NoteEntity* 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(NoteEntity* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  NoteEntity* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<NoteEntity>(arena);
  }
  void CopyFrom(const NoteEntity& from);
  void MergeFrom(const NoteEntity& from) { NoteEntity::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(NoteEntity* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "sync_pb.NoteEntity"; }

  explicit NoteEntity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  NoteEntity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NoteEntity& from);
  NoteEntity(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, NoteEntity&& from) noexcept
      : NoteEntity(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 TargetType = NoteEntity_TargetType;
  static constexpr TargetType TARGET_TYPE_UNSPECIFIED = NoteEntity_TargetType_TARGET_TYPE_UNSPECIFIED;
  static constexpr TargetType TARGET_TYPE_PAGE = NoteEntity_TargetType_TARGET_TYPE_PAGE;
  static inline bool TargetType_IsValid(int value) {
    return NoteEntity_TargetType_IsValid(value);
  }
  static constexpr TargetType TargetType_MIN = NoteEntity_TargetType_TargetType_MIN;
  static constexpr TargetType TargetType_MAX = NoteEntity_TargetType_TargetType_MAX;
  static constexpr int TargetType_ARRAYSIZE = NoteEntity_TargetType_TargetType_ARRAYSIZE;
  template <typename T>
  static inline const ::std::string& TargetType_Name(T value) {
    return NoteEntity_TargetType_Name(value);
  }
  static inline bool TargetType_Parse(
      ::absl::string_view name, TargetType* PROTOBUF_NONNULL value) {
    return NoteEntity_TargetType_Parse(name, value);
  }

  // accessors -------------------------------------------------------
  enum : int {
    kPlainTextFieldNumber = 1,
    kRichTextFieldNumber = 2,
    kTargetTypeFieldNumber = 3,
    kCurrentNoteVersionFieldNumber = 4,
  };
  // optional string plain_text = 1;
  bool has_plain_text()
      const;
  void clear_plain_text() ;
  const ::std::string& plain_text() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_plain_text(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_plain_text();
  ::std::string* PROTOBUF_NULLABLE release_plain_text();
  void set_allocated_plain_text(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_plain_text() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_plain_text(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_plain_text();

  public:
  // optional string rich_text = 2;
  bool has_rich_text()
      const;
  void clear_rich_text() ;
  const ::std::string& rich_text() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_rich_text(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_rich_text();
  ::std::string* PROTOBUF_NULLABLE release_rich_text();
  void set_allocated_rich_text(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_rich_text() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_rich_text(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_rich_text();

  public:
  // optional .sync_pb.NoteEntity.TargetType target_type = 3;
  bool has_target_type()
      const;
  void clear_target_type() ;
  ::sync_pb::NoteEntity_TargetType target_type() const;
  void set_target_type(::sync_pb::NoteEntity_TargetType value);

  private:
  ::sync_pb::NoteEntity_TargetType _internal_target_type() const;
  void _internal_set_target_type(::sync_pb::NoteEntity_TargetType value);

  public:
  // optional int32 current_note_version = 4;
  bool has_current_note_version()
      const;
  void clear_current_note_version() ;
  ::int32_t current_note_version() const;
  void set_current_note_version(::int32_t value);

  private:
  ::int32_t _internal_current_note_version() const;
  void _internal_set_current_note_version(::int32_t value);

  public:
  // @@protoc_insertion_point(class_scope:sync_pb.NoteEntity)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<2, 4,
                          1, 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 NoteEntity& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr plain_text_;
    ::google::protobuf::internal::ArenaStringPtr rich_text_;
    int target_type_;
    ::int32_t current_note_version_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2fsync_2fprotocol_2fnote_5fentity_2eproto;
};

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




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


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

// NoteEntity

// optional string plain_text = 1;
inline bool NoteEntity::has_plain_text() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void NoteEntity::clear_plain_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.plain_text_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::std::string& NoteEntity::plain_text() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:sync_pb.NoteEntity.plain_text)
  return _internal_plain_text();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void NoteEntity::set_plain_text(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  _impl_.plain_text_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:sync_pb.NoteEntity.plain_text)
}
inline ::std::string* PROTOBUF_NONNULL NoteEntity::mutable_plain_text()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::std::string* _s = _internal_mutable_plain_text();
  // @@protoc_insertion_point(field_mutable:sync_pb.NoteEntity.plain_text)
  return _s;
}
inline const ::std::string& NoteEntity::_internal_plain_text() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.plain_text_.Get();
}
inline void NoteEntity::_internal_set_plain_text(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.plain_text_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL NoteEntity::_internal_mutable_plain_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.plain_text_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE NoteEntity::release_plain_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:sync_pb.NoteEntity.plain_text)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  auto* released = _impl_.plain_text_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.plain_text_.Set("", GetArena());
  }
  return released;
}
inline void NoteEntity::set_allocated_plain_text(::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_.plain_text_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.plain_text_.IsDefault()) {
    _impl_.plain_text_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.NoteEntity.plain_text)
}

// optional string rich_text = 2;
inline bool NoteEntity::has_rich_text() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  return value;
}
inline void NoteEntity::clear_rich_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.rich_text_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline const ::std::string& NoteEntity::rich_text() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:sync_pb.NoteEntity.rich_text)
  return _internal_rich_text();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void NoteEntity::set_rich_text(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  _impl_.rich_text_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:sync_pb.NoteEntity.rich_text)
}
inline ::std::string* PROTOBUF_NONNULL NoteEntity::mutable_rich_text()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::std::string* _s = _internal_mutable_rich_text();
  // @@protoc_insertion_point(field_mutable:sync_pb.NoteEntity.rich_text)
  return _s;
}
inline const ::std::string& NoteEntity::_internal_rich_text() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.rich_text_.Get();
}
inline void NoteEntity::_internal_set_rich_text(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.rich_text_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL NoteEntity::_internal_mutable_rich_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.rich_text_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE NoteEntity::release_rich_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:sync_pb.NoteEntity.rich_text)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  auto* released = _impl_.rich_text_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.rich_text_.Set("", GetArena());
  }
  return released;
}
inline void NoteEntity::set_allocated_rich_text(::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_.rich_text_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.rich_text_.IsDefault()) {
    _impl_.rich_text_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.NoteEntity.rich_text)
}

// optional .sync_pb.NoteEntity.TargetType target_type = 3;
inline bool NoteEntity::has_target_type() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  return value;
}
inline void NoteEntity::clear_target_type() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.target_type_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline ::sync_pb::NoteEntity_TargetType NoteEntity::target_type() const {
  // @@protoc_insertion_point(field_get:sync_pb.NoteEntity.target_type)
  return _internal_target_type();
}
inline void NoteEntity::set_target_type(::sync_pb::NoteEntity_TargetType value) {
  _internal_set_target_type(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  // @@protoc_insertion_point(field_set:sync_pb.NoteEntity.target_type)
}
inline ::sync_pb::NoteEntity_TargetType NoteEntity::_internal_target_type() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::sync_pb::NoteEntity_TargetType>(_impl_.target_type_);
}
inline void NoteEntity::_internal_set_target_type(::sync_pb::NoteEntity_TargetType value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

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

// optional int32 current_note_version = 4;
inline bool NoteEntity::has_current_note_version() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
  return value;
}
inline void NoteEntity::clear_current_note_version() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.current_note_version_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
inline ::int32_t NoteEntity::current_note_version() const {
  // @@protoc_insertion_point(field_get:sync_pb.NoteEntity.current_note_version)
  return _internal_current_note_version();
}
inline void NoteEntity::set_current_note_version(::int32_t value) {
  _internal_set_current_note_version(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  // @@protoc_insertion_point(field_set:sync_pb.NoteEntity.current_note_version)
}
inline ::int32_t NoteEntity::_internal_current_note_version() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.current_note_version_;
}
inline void NoteEntity::_internal_set_current_note_version(::int32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.current_note_version_ = value;
}

#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::NoteEntity_TargetType> : std::true_type {};
template <>
struct internal::LiteEnumFuncs<::sync_pb::NoteEntity_TargetType> {
  static constexpr bool kIsDefined = true;
  static constexpr auto kParseFunc = ::sync_pb::NoteEntity_TargetType_Parse;
  static constexpr auto kNameFunc = ::sync_pb::NoteEntity_TargetType_Name<int>;
};

}  // namespace protobuf
}  // namespace google

// @@protoc_insertion_point(global_scope)

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

#endif  // components_2fsync_2fprotocol_2fnote_5fentity_2eproto_2epb_2eh
