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

#ifndef shared_5fdb_5fmetadata_2eproto_2epb_2eh
#define shared_5fdb_5fmetadata_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_shared_5fdb_5fmetadata_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_shared_5fdb_5fmetadata_2eproto {
  static const ::uint32_t offsets[];
};
namespace leveldb_proto {
enum SharedDBMetadataProto_MigrationStatus : int;
extern const uint32_t SharedDBMetadataProto_MigrationStatus_internal_data_[];
class SharedDBMetadataProto;
struct SharedDBMetadataProtoGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern SharedDBMetadataProtoGlobalsTypeInternal SharedDBMetadataProto_globals_;
extern const ::google::protobuf::internal::ClassDataLite SharedDBMetadataProto_class_data_;
#else
extern const SharedDBMetadataProtoGlobalsTypeInternal SharedDBMetadataProto_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
}  // namespace leveldb_proto
namespace google {
namespace protobuf {
template <>
internal::EnumTraitsT<::leveldb_proto::SharedDBMetadataProto_MigrationStatus_internal_data_>
    internal::EnumTraitsImpl::value<::leveldb_proto::SharedDBMetadataProto_MigrationStatus>;
}  // namespace protobuf
}  // namespace google

namespace leveldb_proto {
enum SharedDBMetadataProto_MigrationStatus : int {
  SharedDBMetadataProto_MigrationStatus_MIGRATION_NOT_ATTEMPTED = 0,
  SharedDBMetadataProto_MigrationStatus_MIGRATE_TO_SHARED_SUCCESSFUL = 1,
  SharedDBMetadataProto_MigrationStatus_MIGRATE_TO_SHARED_UNIQUE_TO_BE_DELETED = 2,
  SharedDBMetadataProto_MigrationStatus_MIGRATE_TO_UNIQUE_SUCCESSFUL = 3,
  SharedDBMetadataProto_MigrationStatus_MIGRATE_TO_UNIQUE_SHARED_TO_BE_DELETED = 4,
};

extern const uint32_t SharedDBMetadataProto_MigrationStatus_internal_data_[];
inline constexpr SharedDBMetadataProto_MigrationStatus SharedDBMetadataProto_MigrationStatus_MigrationStatus_MIN =
    static_cast<SharedDBMetadataProto_MigrationStatus>(0);
inline constexpr SharedDBMetadataProto_MigrationStatus SharedDBMetadataProto_MigrationStatus_MigrationStatus_MAX =
    static_cast<SharedDBMetadataProto_MigrationStatus>(4);
inline bool SharedDBMetadataProto_MigrationStatus_IsValid(int value) {
  return 0 <= value && value <= 4;
}
inline constexpr int SharedDBMetadataProto_MigrationStatus_MigrationStatus_ARRAYSIZE = 4 + 1;
const ::std::string& SharedDBMetadataProto_MigrationStatus_Name(SharedDBMetadataProto_MigrationStatus value);
template <typename T>
const ::std::string& SharedDBMetadataProto_MigrationStatus_Name(T value) {
  static_assert(::std::is_same<T, SharedDBMetadataProto_MigrationStatus>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to MigrationStatus_Name().");
  return SharedDBMetadataProto_MigrationStatus_Name(static_cast<SharedDBMetadataProto_MigrationStatus>(value));
}
bool SharedDBMetadataProto_MigrationStatus_Parse(
    ::absl::string_view name, SharedDBMetadataProto_MigrationStatus* PROTOBUF_NONNULL value);
using ::google::protobuf::internal::generated_enum::AbslParseFlag;
using ::google::protobuf::internal::generated_enum::AbslUnparseFlag;

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


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

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

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

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

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

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

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

  explicit SharedDBMetadataProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  SharedDBMetadataProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharedDBMetadataProto& from);
  SharedDBMetadataProto(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharedDBMetadataProto&& from) noexcept
      : SharedDBMetadataProto(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 MigrationStatus = SharedDBMetadataProto_MigrationStatus;
  static constexpr MigrationStatus MIGRATION_NOT_ATTEMPTED = SharedDBMetadataProto_MigrationStatus_MIGRATION_NOT_ATTEMPTED;
  static constexpr MigrationStatus MIGRATE_TO_SHARED_SUCCESSFUL = SharedDBMetadataProto_MigrationStatus_MIGRATE_TO_SHARED_SUCCESSFUL;
  static constexpr MigrationStatus MIGRATE_TO_SHARED_UNIQUE_TO_BE_DELETED = SharedDBMetadataProto_MigrationStatus_MIGRATE_TO_SHARED_UNIQUE_TO_BE_DELETED;
  static constexpr MigrationStatus MIGRATE_TO_UNIQUE_SUCCESSFUL = SharedDBMetadataProto_MigrationStatus_MIGRATE_TO_UNIQUE_SUCCESSFUL;
  static constexpr MigrationStatus MIGRATE_TO_UNIQUE_SHARED_TO_BE_DELETED = SharedDBMetadataProto_MigrationStatus_MIGRATE_TO_UNIQUE_SHARED_TO_BE_DELETED;
  static inline bool MigrationStatus_IsValid(int value) {
    return SharedDBMetadataProto_MigrationStatus_IsValid(value);
  }
  static constexpr MigrationStatus MigrationStatus_MIN = SharedDBMetadataProto_MigrationStatus_MigrationStatus_MIN;
  static constexpr MigrationStatus MigrationStatus_MAX = SharedDBMetadataProto_MigrationStatus_MigrationStatus_MAX;
  static constexpr int MigrationStatus_ARRAYSIZE = SharedDBMetadataProto_MigrationStatus_MigrationStatus_ARRAYSIZE;
  template <typename T>
  static inline const ::std::string& MigrationStatus_Name(T value) {
    return SharedDBMetadataProto_MigrationStatus_Name(value);
  }
  static inline bool MigrationStatus_Parse(
      ::absl::string_view name, MigrationStatus* PROTOBUF_NONNULL value) {
    return SharedDBMetadataProto_MigrationStatus_Parse(name, value);
  }

  // accessors -------------------------------------------------------
  enum : int {
    kCorruptionsFieldNumber = 1,
    kMigrationStatusFieldNumber = 3,
    kFailureCountFieldNumber = 4,
  };
  // optional uint64 corruptions = 1;
  bool has_corruptions()
      const;
  void clear_corruptions() ;
  ::uint64_t corruptions() const;
  void set_corruptions(::uint64_t value);

  private:
  ::uint64_t _internal_corruptions() const;
  void _internal_set_corruptions(::uint64_t value);

  public:
  // optional .leveldb_proto.SharedDBMetadataProto.MigrationStatus migration_status = 3;
  bool has_migration_status()
      const;
  void clear_migration_status() ;
  ::leveldb_proto::SharedDBMetadataProto_MigrationStatus migration_status() const;
  void set_migration_status(::leveldb_proto::SharedDBMetadataProto_MigrationStatus value);

  private:
  ::leveldb_proto::SharedDBMetadataProto_MigrationStatus _internal_migration_status() const;
  void _internal_set_migration_status(::leveldb_proto::SharedDBMetadataProto_MigrationStatus value);

  public:
  // optional uint32 failure_count = 4;
  bool has_failure_count()
      const;
  void clear_failure_count() ;
  ::uint32_t failure_count() const;
  void set_failure_count(::uint32_t value);

  private:
  ::uint32_t _internal_failure_count() const;
  void _internal_set_failure_count(::uint32_t value);

  public:
  // @@protoc_insertion_point(class_scope:leveldb_proto.SharedDBMetadataProto)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<2, 3,
                          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 SharedDBMetadataProto& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::uint64_t corruptions_;
    int migration_status_;
    ::uint32_t failure_count_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_shared_5fdb_5fmetadata_2eproto;
};

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




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


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

// SharedDBMetadataProto

// optional uint64 corruptions = 1;
inline bool SharedDBMetadataProto::has_corruptions() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void SharedDBMetadataProto::clear_corruptions() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.corruptions_ = ::uint64_t{0u};
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline ::uint64_t SharedDBMetadataProto::corruptions() const {
  // @@protoc_insertion_point(field_get:leveldb_proto.SharedDBMetadataProto.corruptions)
  return _internal_corruptions();
}
inline void SharedDBMetadataProto::set_corruptions(::uint64_t value) {
  _internal_set_corruptions(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_set:leveldb_proto.SharedDBMetadataProto.corruptions)
}
inline ::uint64_t SharedDBMetadataProto::_internal_corruptions() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.corruptions_;
}
inline void SharedDBMetadataProto::_internal_set_corruptions(::uint64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.corruptions_ = value;
}

// optional .leveldb_proto.SharedDBMetadataProto.MigrationStatus migration_status = 3;
inline bool SharedDBMetadataProto::has_migration_status() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  return value;
}
inline void SharedDBMetadataProto::clear_migration_status() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.migration_status_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline ::leveldb_proto::SharedDBMetadataProto_MigrationStatus SharedDBMetadataProto::migration_status() const {
  // @@protoc_insertion_point(field_get:leveldb_proto.SharedDBMetadataProto.migration_status)
  return _internal_migration_status();
}
inline void SharedDBMetadataProto::set_migration_status(::leveldb_proto::SharedDBMetadataProto_MigrationStatus value) {
  _internal_set_migration_status(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_set:leveldb_proto.SharedDBMetadataProto.migration_status)
}
inline ::leveldb_proto::SharedDBMetadataProto_MigrationStatus SharedDBMetadataProto::_internal_migration_status() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::leveldb_proto::SharedDBMetadataProto_MigrationStatus>(_impl_.migration_status_);
}
inline void SharedDBMetadataProto::_internal_set_migration_status(::leveldb_proto::SharedDBMetadataProto_MigrationStatus value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::leveldb_proto::SharedDBMetadataProto_MigrationStatus_internal_data_));
                                          _impl_.migration_status_ = value;
}

// optional uint32 failure_count = 4;
inline bool SharedDBMetadataProto::has_failure_count() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  return value;
}
inline void SharedDBMetadataProto::clear_failure_count() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.failure_count_ = 0u;
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline ::uint32_t SharedDBMetadataProto::failure_count() const {
  // @@protoc_insertion_point(field_get:leveldb_proto.SharedDBMetadataProto.failure_count)
  return _internal_failure_count();
}
inline void SharedDBMetadataProto::set_failure_count(::uint32_t value) {
  _internal_set_failure_count(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  // @@protoc_insertion_point(field_set:leveldb_proto.SharedDBMetadataProto.failure_count)
}
inline ::uint32_t SharedDBMetadataProto::_internal_failure_count() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.failure_count_;
}
inline void SharedDBMetadataProto::_internal_set_failure_count(::uint32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.failure_count_ = value;
}

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif  // __GNUC__

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


namespace google {
namespace protobuf {

template <>
struct is_proto_enum<::leveldb_proto::SharedDBMetadataProto_MigrationStatus> : std::true_type {};
template <>
struct internal::LiteEnumFuncs<::leveldb_proto::SharedDBMetadataProto_MigrationStatus> {
  static constexpr bool kIsDefined = true;
  static constexpr auto kParseFunc = ::leveldb_proto::SharedDBMetadataProto_MigrationStatus_Parse;
  static constexpr auto kNameFunc = ::leveldb_proto::SharedDBMetadataProto_MigrationStatus_Name<int>;
};

}  // namespace protobuf
}  // namespace google

// @@protoc_insertion_point(global_scope)

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

#endif  // shared_5fdb_5fmetadata_2eproto_2epb_2eh
