// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: greptime/v1/index/vector_index.proto

#ifndef GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2findex_2fvector_5findex_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2findex_2fvector_5findex_2eproto

#include <limits>
#include <string>

#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3021000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3021006 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2findex_2fvector_5findex_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
}  // namespace internal
PROTOBUF_NAMESPACE_CLOSE

// Internal implementation detail -- do not use these members.
struct TableStruct_greptime_2fv1_2findex_2fvector_5findex_2eproto {
  static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_greptime_2fv1_2findex_2fvector_5findex_2eproto;
namespace greptime {
namespace v1 {
namespace index {
class VectorIndexMeta;
struct VectorIndexMetaDefaultTypeInternal;
extern VectorIndexMetaDefaultTypeInternal _VectorIndexMeta_default_instance_;
class VectorIndexStats;
struct VectorIndexStatsDefaultTypeInternal;
extern VectorIndexStatsDefaultTypeInternal _VectorIndexStats_default_instance_;
}  // namespace index
}  // namespace v1
}  // namespace greptime
PROTOBUF_NAMESPACE_OPEN
template<> ::greptime::v1::index::VectorIndexMeta* Arena::CreateMaybeMessage<::greptime::v1::index::VectorIndexMeta>(Arena*);
template<> ::greptime::v1::index::VectorIndexStats* Arena::CreateMaybeMessage<::greptime::v1::index::VectorIndexStats>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace greptime {
namespace v1 {
namespace index {

enum VectorIndexEngine : int {
  VECTOR_INDEX_ENGINE_USEARCH = 0,
  VectorIndexEngine_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
  VectorIndexEngine_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
};
bool VectorIndexEngine_IsValid(int value);
constexpr VectorIndexEngine VectorIndexEngine_MIN = VECTOR_INDEX_ENGINE_USEARCH;
constexpr VectorIndexEngine VectorIndexEngine_MAX = VECTOR_INDEX_ENGINE_USEARCH;
constexpr int VectorIndexEngine_ARRAYSIZE = VectorIndexEngine_MAX + 1;

const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VectorIndexEngine_descriptor();
template<typename T>
inline const std::string& VectorIndexEngine_Name(T enum_t_value) {
  static_assert(::std::is_same<T, VectorIndexEngine>::value ||
    ::std::is_integral<T>::value,
    "Incorrect type passed to function VectorIndexEngine_Name.");
  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
    VectorIndexEngine_descriptor(), enum_t_value);
}
inline bool VectorIndexEngine_Parse(
    ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, VectorIndexEngine* value) {
  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<VectorIndexEngine>(
    VectorIndexEngine_descriptor(), name, value);
}
enum VectorDistanceMetric : int {
  VECTOR_DISTANCE_METRIC_L2SQ = 0,
  VECTOR_DISTANCE_METRIC_COSINE = 1,
  VECTOR_DISTANCE_METRIC_INNER_PRODUCT = 2,
  VectorDistanceMetric_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
  VectorDistanceMetric_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
};
bool VectorDistanceMetric_IsValid(int value);
constexpr VectorDistanceMetric VectorDistanceMetric_MIN = VECTOR_DISTANCE_METRIC_L2SQ;
constexpr VectorDistanceMetric VectorDistanceMetric_MAX = VECTOR_DISTANCE_METRIC_INNER_PRODUCT;
constexpr int VectorDistanceMetric_ARRAYSIZE = VectorDistanceMetric_MAX + 1;

const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VectorDistanceMetric_descriptor();
template<typename T>
inline const std::string& VectorDistanceMetric_Name(T enum_t_value) {
  static_assert(::std::is_same<T, VectorDistanceMetric>::value ||
    ::std::is_integral<T>::value,
    "Incorrect type passed to function VectorDistanceMetric_Name.");
  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
    VectorDistanceMetric_descriptor(), enum_t_value);
}
inline bool VectorDistanceMetric_Parse(
    ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, VectorDistanceMetric* value) {
  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<VectorDistanceMetric>(
    VectorDistanceMetric_descriptor(), name, value);
}
// ===================================================================

class VectorIndexMeta final :
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.index.VectorIndexMeta) */ {
 public:
  inline VectorIndexMeta() : VectorIndexMeta(nullptr) {}
  ~VectorIndexMeta() override;
  explicit PROTOBUF_CONSTEXPR VectorIndexMeta(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);

  VectorIndexMeta(const VectorIndexMeta& from);
  VectorIndexMeta(VectorIndexMeta&& from) noexcept
    : VectorIndexMeta() {
    *this = ::std::move(from);
  }

  inline VectorIndexMeta& operator=(const VectorIndexMeta& from) {
    CopyFrom(from);
    return *this;
  }
  inline VectorIndexMeta& operator=(VectorIndexMeta&& from) noexcept {
    if (this == &from) return *this;
    if (GetOwningArena() == from.GetOwningArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetOwningArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const VectorIndexMeta& default_instance() {
    return *internal_default_instance();
  }
  static inline const VectorIndexMeta* internal_default_instance() {
    return reinterpret_cast<const VectorIndexMeta*>(
               &_VectorIndexMeta_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    0;

  friend void swap(VectorIndexMeta& a, VectorIndexMeta& b) {
    a.Swap(&b);
  }
  inline void Swap(VectorIndexMeta* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() != nullptr &&
        GetOwningArena() == other->GetOwningArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() == other->GetOwningArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(VectorIndexMeta* other) {
    if (other == this) return;
    GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

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

  VectorIndexMeta* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<VectorIndexMeta>(arena);
  }
  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  void CopyFrom(const VectorIndexMeta& from);
  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  void MergeFrom( const VectorIndexMeta& from) {
    VectorIndexMeta::MergeImpl(*this, from);
  }
  private:
  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  public:
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  uint8_t* _InternalSerialize(
      uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }

  private:
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(VectorIndexMeta* other);

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
    return "greptime.v1.index.VectorIndexMeta";
  }
  protected:
  explicit VectorIndexMeta(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                       bool is_message_owned = false);
  public:

  static const ClassData _class_data_;
  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;

  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;

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

  // accessors -------------------------------------------------------

  enum : int {
    kStatsFieldNumber = 9,
    kEngineFieldNumber = 1,
    kDimFieldNumber = 2,
    kMetricFieldNumber = 3,
    kConnectivityFieldNumber = 4,
    kExpansionAddFieldNumber = 5,
    kExpansionSearchFieldNumber = 6,
    kIndexSizeFieldNumber = 8,
    kNullBitmapSizeFieldNumber = 7,
  };
  // .greptime.v1.index.VectorIndexStats stats = 9;
  bool has_stats() const;
  private:
  bool _internal_has_stats() const;
  public:
  void clear_stats();
  const ::greptime::v1::index::VectorIndexStats& stats() const;
  PROTOBUF_NODISCARD ::greptime::v1::index::VectorIndexStats* release_stats();
  ::greptime::v1::index::VectorIndexStats* mutable_stats();
  void set_allocated_stats(::greptime::v1::index::VectorIndexStats* stats);
  private:
  const ::greptime::v1::index::VectorIndexStats& _internal_stats() const;
  ::greptime::v1::index::VectorIndexStats* _internal_mutable_stats();
  public:
  void unsafe_arena_set_allocated_stats(
      ::greptime::v1::index::VectorIndexStats* stats);
  ::greptime::v1::index::VectorIndexStats* unsafe_arena_release_stats();

  // .greptime.v1.index.VectorIndexEngine engine = 1;
  void clear_engine();
  ::greptime::v1::index::VectorIndexEngine engine() const;
  void set_engine(::greptime::v1::index::VectorIndexEngine value);
  private:
  ::greptime::v1::index::VectorIndexEngine _internal_engine() const;
  void _internal_set_engine(::greptime::v1::index::VectorIndexEngine value);
  public:

  // uint32 dim = 2;
  void clear_dim();
  uint32_t dim() const;
  void set_dim(uint32_t value);
  private:
  uint32_t _internal_dim() const;
  void _internal_set_dim(uint32_t value);
  public:

  // .greptime.v1.index.VectorDistanceMetric metric = 3;
  void clear_metric();
  ::greptime::v1::index::VectorDistanceMetric metric() const;
  void set_metric(::greptime::v1::index::VectorDistanceMetric value);
  private:
  ::greptime::v1::index::VectorDistanceMetric _internal_metric() const;
  void _internal_set_metric(::greptime::v1::index::VectorDistanceMetric value);
  public:

  // uint32 connectivity = 4;
  void clear_connectivity();
  uint32_t connectivity() const;
  void set_connectivity(uint32_t value);
  private:
  uint32_t _internal_connectivity() const;
  void _internal_set_connectivity(uint32_t value);
  public:

  // uint32 expansion_add = 5;
  void clear_expansion_add();
  uint32_t expansion_add() const;
  void set_expansion_add(uint32_t value);
  private:
  uint32_t _internal_expansion_add() const;
  void _internal_set_expansion_add(uint32_t value);
  public:

  // uint32 expansion_search = 6;
  void clear_expansion_search();
  uint32_t expansion_search() const;
  void set_expansion_search(uint32_t value);
  private:
  uint32_t _internal_expansion_search() const;
  void _internal_set_expansion_search(uint32_t value);
  public:

  // uint64 index_size = 8;
  void clear_index_size();
  uint64_t index_size() const;
  void set_index_size(uint64_t value);
  private:
  uint64_t _internal_index_size() const;
  void _internal_set_index_size(uint64_t value);
  public:

  // uint32 null_bitmap_size = 7;
  void clear_null_bitmap_size();
  uint32_t null_bitmap_size() const;
  void set_null_bitmap_size(uint32_t value);
  private:
  uint32_t _internal_null_bitmap_size() const;
  void _internal_set_null_bitmap_size(uint32_t value);
  public:

  // @@protoc_insertion_point(class_scope:greptime.v1.index.VectorIndexMeta)
 private:
  class _Internal;

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    ::greptime::v1::index::VectorIndexStats* stats_;
    int engine_;
    uint32_t dim_;
    int metric_;
    uint32_t connectivity_;
    uint32_t expansion_add_;
    uint32_t expansion_search_;
    uint64_t index_size_;
    uint32_t null_bitmap_size_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_greptime_2fv1_2findex_2fvector_5findex_2eproto;
};
// -------------------------------------------------------------------

class VectorIndexStats final :
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.index.VectorIndexStats) */ {
 public:
  inline VectorIndexStats() : VectorIndexStats(nullptr) {}
  ~VectorIndexStats() override;
  explicit PROTOBUF_CONSTEXPR VectorIndexStats(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);

  VectorIndexStats(const VectorIndexStats& from);
  VectorIndexStats(VectorIndexStats&& from) noexcept
    : VectorIndexStats() {
    *this = ::std::move(from);
  }

  inline VectorIndexStats& operator=(const VectorIndexStats& from) {
    CopyFrom(from);
    return *this;
  }
  inline VectorIndexStats& operator=(VectorIndexStats&& from) noexcept {
    if (this == &from) return *this;
    if (GetOwningArena() == from.GetOwningArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetOwningArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const VectorIndexStats& default_instance() {
    return *internal_default_instance();
  }
  static inline const VectorIndexStats* internal_default_instance() {
    return reinterpret_cast<const VectorIndexStats*>(
               &_VectorIndexStats_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    1;

  friend void swap(VectorIndexStats& a, VectorIndexStats& b) {
    a.Swap(&b);
  }
  inline void Swap(VectorIndexStats* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() != nullptr &&
        GetOwningArena() == other->GetOwningArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() == other->GetOwningArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(VectorIndexStats* other) {
    if (other == this) return;
    GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

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

  VectorIndexStats* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<VectorIndexStats>(arena);
  }
  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  void CopyFrom(const VectorIndexStats& from);
  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  void MergeFrom( const VectorIndexStats& from) {
    VectorIndexStats::MergeImpl(*this, from);
  }
  private:
  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  public:
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  uint8_t* _InternalSerialize(
      uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }

  private:
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(VectorIndexStats* other);

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
    return "greptime.v1.index.VectorIndexStats";
  }
  protected:
  explicit VectorIndexStats(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                       bool is_message_owned = false);
  public:

  static const ClassData _class_data_;
  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;

  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;

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

  // accessors -------------------------------------------------------

  enum : int {
    kTotalRowCountFieldNumber = 1,
    kIndexedRowCountFieldNumber = 2,
    kNullCountFieldNumber = 3,
  };
  // uint64 total_row_count = 1;
  void clear_total_row_count();
  uint64_t total_row_count() const;
  void set_total_row_count(uint64_t value);
  private:
  uint64_t _internal_total_row_count() const;
  void _internal_set_total_row_count(uint64_t value);
  public:

  // uint64 indexed_row_count = 2;
  void clear_indexed_row_count();
  uint64_t indexed_row_count() const;
  void set_indexed_row_count(uint64_t value);
  private:
  uint64_t _internal_indexed_row_count() const;
  void _internal_set_indexed_row_count(uint64_t value);
  public:

  // uint64 null_count = 3;
  void clear_null_count();
  uint64_t null_count() const;
  void set_null_count(uint64_t value);
  private:
  uint64_t _internal_null_count() const;
  void _internal_set_null_count(uint64_t value);
  public:

  // @@protoc_insertion_point(class_scope:greptime.v1.index.VectorIndexStats)
 private:
  class _Internal;

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    uint64_t total_row_count_;
    uint64_t indexed_row_count_;
    uint64_t null_count_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_greptime_2fv1_2findex_2fvector_5findex_2eproto;
};
// ===================================================================


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

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

// .greptime.v1.index.VectorIndexEngine engine = 1;
inline void VectorIndexMeta::clear_engine() {
  _impl_.engine_ = 0;
}
inline ::greptime::v1::index::VectorIndexEngine VectorIndexMeta::_internal_engine() const {
  return static_cast< ::greptime::v1::index::VectorIndexEngine >(_impl_.engine_);
}
inline ::greptime::v1::index::VectorIndexEngine VectorIndexMeta::engine() const {
  // @@protoc_insertion_point(field_get:greptime.v1.index.VectorIndexMeta.engine)
  return _internal_engine();
}
inline void VectorIndexMeta::_internal_set_engine(::greptime::v1::index::VectorIndexEngine value) {
  
  _impl_.engine_ = value;
}
inline void VectorIndexMeta::set_engine(::greptime::v1::index::VectorIndexEngine value) {
  _internal_set_engine(value);
  // @@protoc_insertion_point(field_set:greptime.v1.index.VectorIndexMeta.engine)
}

// uint32 dim = 2;
inline void VectorIndexMeta::clear_dim() {
  _impl_.dim_ = 0u;
}
inline uint32_t VectorIndexMeta::_internal_dim() const {
  return _impl_.dim_;
}
inline uint32_t VectorIndexMeta::dim() const {
  // @@protoc_insertion_point(field_get:greptime.v1.index.VectorIndexMeta.dim)
  return _internal_dim();
}
inline void VectorIndexMeta::_internal_set_dim(uint32_t value) {
  
  _impl_.dim_ = value;
}
inline void VectorIndexMeta::set_dim(uint32_t value) {
  _internal_set_dim(value);
  // @@protoc_insertion_point(field_set:greptime.v1.index.VectorIndexMeta.dim)
}

// .greptime.v1.index.VectorDistanceMetric metric = 3;
inline void VectorIndexMeta::clear_metric() {
  _impl_.metric_ = 0;
}
inline ::greptime::v1::index::VectorDistanceMetric VectorIndexMeta::_internal_metric() const {
  return static_cast< ::greptime::v1::index::VectorDistanceMetric >(_impl_.metric_);
}
inline ::greptime::v1::index::VectorDistanceMetric VectorIndexMeta::metric() const {
  // @@protoc_insertion_point(field_get:greptime.v1.index.VectorIndexMeta.metric)
  return _internal_metric();
}
inline void VectorIndexMeta::_internal_set_metric(::greptime::v1::index::VectorDistanceMetric value) {
  
  _impl_.metric_ = value;
}
inline void VectorIndexMeta::set_metric(::greptime::v1::index::VectorDistanceMetric value) {
  _internal_set_metric(value);
  // @@protoc_insertion_point(field_set:greptime.v1.index.VectorIndexMeta.metric)
}

// uint32 connectivity = 4;
inline void VectorIndexMeta::clear_connectivity() {
  _impl_.connectivity_ = 0u;
}
inline uint32_t VectorIndexMeta::_internal_connectivity() const {
  return _impl_.connectivity_;
}
inline uint32_t VectorIndexMeta::connectivity() const {
  // @@protoc_insertion_point(field_get:greptime.v1.index.VectorIndexMeta.connectivity)
  return _internal_connectivity();
}
inline void VectorIndexMeta::_internal_set_connectivity(uint32_t value) {
  
  _impl_.connectivity_ = value;
}
inline void VectorIndexMeta::set_connectivity(uint32_t value) {
  _internal_set_connectivity(value);
  // @@protoc_insertion_point(field_set:greptime.v1.index.VectorIndexMeta.connectivity)
}

// uint32 expansion_add = 5;
inline void VectorIndexMeta::clear_expansion_add() {
  _impl_.expansion_add_ = 0u;
}
inline uint32_t VectorIndexMeta::_internal_expansion_add() const {
  return _impl_.expansion_add_;
}
inline uint32_t VectorIndexMeta::expansion_add() const {
  // @@protoc_insertion_point(field_get:greptime.v1.index.VectorIndexMeta.expansion_add)
  return _internal_expansion_add();
}
inline void VectorIndexMeta::_internal_set_expansion_add(uint32_t value) {
  
  _impl_.expansion_add_ = value;
}
inline void VectorIndexMeta::set_expansion_add(uint32_t value) {
  _internal_set_expansion_add(value);
  // @@protoc_insertion_point(field_set:greptime.v1.index.VectorIndexMeta.expansion_add)
}

// uint32 expansion_search = 6;
inline void VectorIndexMeta::clear_expansion_search() {
  _impl_.expansion_search_ = 0u;
}
inline uint32_t VectorIndexMeta::_internal_expansion_search() const {
  return _impl_.expansion_search_;
}
inline uint32_t VectorIndexMeta::expansion_search() const {
  // @@protoc_insertion_point(field_get:greptime.v1.index.VectorIndexMeta.expansion_search)
  return _internal_expansion_search();
}
inline void VectorIndexMeta::_internal_set_expansion_search(uint32_t value) {
  
  _impl_.expansion_search_ = value;
}
inline void VectorIndexMeta::set_expansion_search(uint32_t value) {
  _internal_set_expansion_search(value);
  // @@protoc_insertion_point(field_set:greptime.v1.index.VectorIndexMeta.expansion_search)
}

// uint32 null_bitmap_size = 7;
inline void VectorIndexMeta::clear_null_bitmap_size() {
  _impl_.null_bitmap_size_ = 0u;
}
inline uint32_t VectorIndexMeta::_internal_null_bitmap_size() const {
  return _impl_.null_bitmap_size_;
}
inline uint32_t VectorIndexMeta::null_bitmap_size() const {
  // @@protoc_insertion_point(field_get:greptime.v1.index.VectorIndexMeta.null_bitmap_size)
  return _internal_null_bitmap_size();
}
inline void VectorIndexMeta::_internal_set_null_bitmap_size(uint32_t value) {
  
  _impl_.null_bitmap_size_ = value;
}
inline void VectorIndexMeta::set_null_bitmap_size(uint32_t value) {
  _internal_set_null_bitmap_size(value);
  // @@protoc_insertion_point(field_set:greptime.v1.index.VectorIndexMeta.null_bitmap_size)
}

// uint64 index_size = 8;
inline void VectorIndexMeta::clear_index_size() {
  _impl_.index_size_ = uint64_t{0u};
}
inline uint64_t VectorIndexMeta::_internal_index_size() const {
  return _impl_.index_size_;
}
inline uint64_t VectorIndexMeta::index_size() const {
  // @@protoc_insertion_point(field_get:greptime.v1.index.VectorIndexMeta.index_size)
  return _internal_index_size();
}
inline void VectorIndexMeta::_internal_set_index_size(uint64_t value) {
  
  _impl_.index_size_ = value;
}
inline void VectorIndexMeta::set_index_size(uint64_t value) {
  _internal_set_index_size(value);
  // @@protoc_insertion_point(field_set:greptime.v1.index.VectorIndexMeta.index_size)
}

// .greptime.v1.index.VectorIndexStats stats = 9;
inline bool VectorIndexMeta::_internal_has_stats() const {
  return this != internal_default_instance() && _impl_.stats_ != nullptr;
}
inline bool VectorIndexMeta::has_stats() const {
  return _internal_has_stats();
}
inline void VectorIndexMeta::clear_stats() {
  if (GetArenaForAllocation() == nullptr && _impl_.stats_ != nullptr) {
    delete _impl_.stats_;
  }
  _impl_.stats_ = nullptr;
}
inline const ::greptime::v1::index::VectorIndexStats& VectorIndexMeta::_internal_stats() const {
  const ::greptime::v1::index::VectorIndexStats* p = _impl_.stats_;
  return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::index::VectorIndexStats&>(
      ::greptime::v1::index::_VectorIndexStats_default_instance_);
}
inline const ::greptime::v1::index::VectorIndexStats& VectorIndexMeta::stats() const {
  // @@protoc_insertion_point(field_get:greptime.v1.index.VectorIndexMeta.stats)
  return _internal_stats();
}
inline void VectorIndexMeta::unsafe_arena_set_allocated_stats(
    ::greptime::v1::index::VectorIndexStats* stats) {
  if (GetArenaForAllocation() == nullptr) {
    delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.stats_);
  }
  _impl_.stats_ = stats;
  if (stats) {
    
  } else {
    
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.index.VectorIndexMeta.stats)
}
inline ::greptime::v1::index::VectorIndexStats* VectorIndexMeta::release_stats() {
  
  ::greptime::v1::index::VectorIndexStats* temp = _impl_.stats_;
  _impl_.stats_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  if (GetArenaForAllocation() == nullptr) { delete old; }
#else  // PROTOBUF_FORCE_COPY_IN_RELEASE
  if (GetArenaForAllocation() != nullptr) {
    temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  }
#endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
  return temp;
}
inline ::greptime::v1::index::VectorIndexStats* VectorIndexMeta::unsafe_arena_release_stats() {
  // @@protoc_insertion_point(field_release:greptime.v1.index.VectorIndexMeta.stats)
  
  ::greptime::v1::index::VectorIndexStats* temp = _impl_.stats_;
  _impl_.stats_ = nullptr;
  return temp;
}
inline ::greptime::v1::index::VectorIndexStats* VectorIndexMeta::_internal_mutable_stats() {
  
  if (_impl_.stats_ == nullptr) {
    auto* p = CreateMaybeMessage<::greptime::v1::index::VectorIndexStats>(GetArenaForAllocation());
    _impl_.stats_ = p;
  }
  return _impl_.stats_;
}
inline ::greptime::v1::index::VectorIndexStats* VectorIndexMeta::mutable_stats() {
  ::greptime::v1::index::VectorIndexStats* _msg = _internal_mutable_stats();
  // @@protoc_insertion_point(field_mutable:greptime.v1.index.VectorIndexMeta.stats)
  return _msg;
}
inline void VectorIndexMeta::set_allocated_stats(::greptime::v1::index::VectorIndexStats* stats) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  if (message_arena == nullptr) {
    delete _impl_.stats_;
  }
  if (stats) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
        ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(stats);
    if (message_arena != submessage_arena) {
      stats = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, stats, submessage_arena);
    }
    
  } else {
    
  }
  _impl_.stats_ = stats;
  // @@protoc_insertion_point(field_set_allocated:greptime.v1.index.VectorIndexMeta.stats)
}

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

// VectorIndexStats

// uint64 total_row_count = 1;
inline void VectorIndexStats::clear_total_row_count() {
  _impl_.total_row_count_ = uint64_t{0u};
}
inline uint64_t VectorIndexStats::_internal_total_row_count() const {
  return _impl_.total_row_count_;
}
inline uint64_t VectorIndexStats::total_row_count() const {
  // @@protoc_insertion_point(field_get:greptime.v1.index.VectorIndexStats.total_row_count)
  return _internal_total_row_count();
}
inline void VectorIndexStats::_internal_set_total_row_count(uint64_t value) {
  
  _impl_.total_row_count_ = value;
}
inline void VectorIndexStats::set_total_row_count(uint64_t value) {
  _internal_set_total_row_count(value);
  // @@protoc_insertion_point(field_set:greptime.v1.index.VectorIndexStats.total_row_count)
}

// uint64 indexed_row_count = 2;
inline void VectorIndexStats::clear_indexed_row_count() {
  _impl_.indexed_row_count_ = uint64_t{0u};
}
inline uint64_t VectorIndexStats::_internal_indexed_row_count() const {
  return _impl_.indexed_row_count_;
}
inline uint64_t VectorIndexStats::indexed_row_count() const {
  // @@protoc_insertion_point(field_get:greptime.v1.index.VectorIndexStats.indexed_row_count)
  return _internal_indexed_row_count();
}
inline void VectorIndexStats::_internal_set_indexed_row_count(uint64_t value) {
  
  _impl_.indexed_row_count_ = value;
}
inline void VectorIndexStats::set_indexed_row_count(uint64_t value) {
  _internal_set_indexed_row_count(value);
  // @@protoc_insertion_point(field_set:greptime.v1.index.VectorIndexStats.indexed_row_count)
}

// uint64 null_count = 3;
inline void VectorIndexStats::clear_null_count() {
  _impl_.null_count_ = uint64_t{0u};
}
inline uint64_t VectorIndexStats::_internal_null_count() const {
  return _impl_.null_count_;
}
inline uint64_t VectorIndexStats::null_count() const {
  // @@protoc_insertion_point(field_get:greptime.v1.index.VectorIndexStats.null_count)
  return _internal_null_count();
}
inline void VectorIndexStats::_internal_set_null_count(uint64_t value) {
  
  _impl_.null_count_ = value;
}
inline void VectorIndexStats::set_null_count(uint64_t value) {
  _internal_set_null_count(value);
  // @@protoc_insertion_point(field_set:greptime.v1.index.VectorIndexStats.null_count)
}

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


// @@protoc_insertion_point(namespace_scope)

}  // namespace index
}  // namespace v1
}  // namespace greptime

PROTOBUF_NAMESPACE_OPEN

template <> struct is_proto_enum< ::greptime::v1::index::VectorIndexEngine> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::index::VectorIndexEngine>() {
  return ::greptime::v1::index::VectorIndexEngine_descriptor();
}
template <> struct is_proto_enum< ::greptime::v1::index::VectorDistanceMetric> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::index::VectorDistanceMetric>() {
  return ::greptime::v1::index::VectorDistanceMetric_descriptor();
}

PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)

#include <google/protobuf/port_undef.inc>
#endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2findex_2fvector_5findex_2eproto
