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

package greptime.v1.index;

public final class VectorIndex {
  private VectorIndex() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * <pre>
   * Vector index engine types.
   * </pre>
   *
   * Protobuf enum {@code greptime.v1.index.VectorIndexEngine}
   */
  public enum VectorIndexEngine
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>VECTOR_INDEX_ENGINE_USEARCH = 0;</code>
     */
    VECTOR_INDEX_ENGINE_USEARCH(0),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>VECTOR_INDEX_ENGINE_USEARCH = 0;</code>
     */
    public static final int VECTOR_INDEX_ENGINE_USEARCH_VALUE = 0;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static VectorIndexEngine valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static VectorIndexEngine forNumber(int value) {
      switch (value) {
        case 0: return VECTOR_INDEX_ENGINE_USEARCH;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<VectorIndexEngine>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        VectorIndexEngine> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<VectorIndexEngine>() {
            public VectorIndexEngine findValueByNumber(int number) {
              return VectorIndexEngine.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return greptime.v1.index.VectorIndex.getDescriptor().getEnumTypes().get(0);
    }

    private static final VectorIndexEngine[] VALUES = values();

    public static VectorIndexEngine valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private VectorIndexEngine(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:greptime.v1.index.VectorIndexEngine)
  }

  /**
   * <pre>
   * Vector distance metrics.
   * </pre>
   *
   * Protobuf enum {@code greptime.v1.index.VectorDistanceMetric}
   */
  public enum VectorDistanceMetric
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>VECTOR_DISTANCE_METRIC_L2SQ = 0;</code>
     */
    VECTOR_DISTANCE_METRIC_L2SQ(0),
    /**
     * <code>VECTOR_DISTANCE_METRIC_COSINE = 1;</code>
     */
    VECTOR_DISTANCE_METRIC_COSINE(1),
    /**
     * <code>VECTOR_DISTANCE_METRIC_INNER_PRODUCT = 2;</code>
     */
    VECTOR_DISTANCE_METRIC_INNER_PRODUCT(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>VECTOR_DISTANCE_METRIC_L2SQ = 0;</code>
     */
    public static final int VECTOR_DISTANCE_METRIC_L2SQ_VALUE = 0;
    /**
     * <code>VECTOR_DISTANCE_METRIC_COSINE = 1;</code>
     */
    public static final int VECTOR_DISTANCE_METRIC_COSINE_VALUE = 1;
    /**
     * <code>VECTOR_DISTANCE_METRIC_INNER_PRODUCT = 2;</code>
     */
    public static final int VECTOR_DISTANCE_METRIC_INNER_PRODUCT_VALUE = 2;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static VectorDistanceMetric valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static VectorDistanceMetric forNumber(int value) {
      switch (value) {
        case 0: return VECTOR_DISTANCE_METRIC_L2SQ;
        case 1: return VECTOR_DISTANCE_METRIC_COSINE;
        case 2: return VECTOR_DISTANCE_METRIC_INNER_PRODUCT;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<VectorDistanceMetric>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        VectorDistanceMetric> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<VectorDistanceMetric>() {
            public VectorDistanceMetric findValueByNumber(int number) {
              return VectorDistanceMetric.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return greptime.v1.index.VectorIndex.getDescriptor().getEnumTypes().get(1);
    }

    private static final VectorDistanceMetric[] VALUES = values();

    public static VectorDistanceMetric valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private VectorDistanceMetric(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:greptime.v1.index.VectorDistanceMetric)
  }

  public interface VectorIndexMetaOrBuilder extends
      // @@protoc_insertion_point(interface_extends:greptime.v1.index.VectorIndexMeta)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Index engine type.
     * </pre>
     *
     * <code>.greptime.v1.index.VectorIndexEngine engine = 1;</code>
     * @return The enum numeric value on the wire for engine.
     */
    int getEngineValue();
    /**
     * <pre>
     * Index engine type.
     * </pre>
     *
     * <code>.greptime.v1.index.VectorIndexEngine engine = 1;</code>
     * @return The engine.
     */
    greptime.v1.index.VectorIndex.VectorIndexEngine getEngine();

    /**
     * <pre>
     * Vector dimension.
     * </pre>
     *
     * <code>uint32 dim = 2;</code>
     * @return The dim.
     */
    int getDim();

    /**
     * <pre>
     * Distance metric.
     * </pre>
     *
     * <code>.greptime.v1.index.VectorDistanceMetric metric = 3;</code>
     * @return The enum numeric value on the wire for metric.
     */
    int getMetricValue();
    /**
     * <pre>
     * Distance metric.
     * </pre>
     *
     * <code>.greptime.v1.index.VectorDistanceMetric metric = 3;</code>
     * @return The metric.
     */
    greptime.v1.index.VectorIndex.VectorDistanceMetric getMetric();

    /**
     * <pre>
     * HNSW connectivity parameter.
     * </pre>
     *
     * <code>uint32 connectivity = 4;</code>
     * @return The connectivity.
     */
    int getConnectivity();

    /**
     * <pre>
     * HNSW expansion factor during index construction.
     * </pre>
     *
     * <code>uint32 expansion_add = 5;</code>
     * @return The expansionAdd.
     */
    int getExpansionAdd();

    /**
     * <pre>
     * HNSW expansion factor during search.
     * </pre>
     *
     * <code>uint32 expansion_search = 6;</code>
     * @return The expansionSearch.
     */
    int getExpansionSearch();

    /**
     * <pre>
     * Byte length of the null bitmap (RoaringBitmap serialized).
     * </pre>
     *
     * <code>uint32 null_bitmap_size = 7;</code>
     * @return The nullBitmapSize.
     */
    int getNullBitmapSize();

    /**
     * <pre>
     * Byte length of the vector index data (engine-specific serialized format).
     * </pre>
     *
     * <code>uint64 index_size = 8;</code>
     * @return The indexSize.
     */
    long getIndexSize();

    /**
     * <pre>
     * Statistics about the vector index.
     * </pre>
     *
     * <code>.greptime.v1.index.VectorIndexStats stats = 9;</code>
     * @return Whether the stats field is set.
     */
    boolean hasStats();
    /**
     * <pre>
     * Statistics about the vector index.
     * </pre>
     *
     * <code>.greptime.v1.index.VectorIndexStats stats = 9;</code>
     * @return The stats.
     */
    greptime.v1.index.VectorIndex.VectorIndexStats getStats();
    /**
     * <pre>
     * Statistics about the vector index.
     * </pre>
     *
     * <code>.greptime.v1.index.VectorIndexStats stats = 9;</code>
     */
    greptime.v1.index.VectorIndex.VectorIndexStatsOrBuilder getStatsOrBuilder();
  }
  /**
   * <pre>
   * Metadata for a vector index blob (stored as footer).
   * </pre>
   *
   * Protobuf type {@code greptime.v1.index.VectorIndexMeta}
   */
  public static final class VectorIndexMeta extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:greptime.v1.index.VectorIndexMeta)
      VectorIndexMetaOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use VectorIndexMeta.newBuilder() to construct.
    private VectorIndexMeta(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private VectorIndexMeta() {
      engine_ = 0;
      metric_ = 0;
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new VectorIndexMeta();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private VectorIndexMeta(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {
              int rawValue = input.readEnum();

              engine_ = rawValue;
              break;
            }
            case 16: {

              dim_ = input.readUInt32();
              break;
            }
            case 24: {
              int rawValue = input.readEnum();

              metric_ = rawValue;
              break;
            }
            case 32: {

              connectivity_ = input.readUInt32();
              break;
            }
            case 40: {

              expansionAdd_ = input.readUInt32();
              break;
            }
            case 48: {

              expansionSearch_ = input.readUInt32();
              break;
            }
            case 56: {

              nullBitmapSize_ = input.readUInt32();
              break;
            }
            case 64: {

              indexSize_ = input.readUInt64();
              break;
            }
            case 74: {
              greptime.v1.index.VectorIndex.VectorIndexStats.Builder subBuilder = null;
              if (stats_ != null) {
                subBuilder = stats_.toBuilder();
              }
              stats_ = input.readMessage(greptime.v1.index.VectorIndex.VectorIndexStats.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(stats_);
                stats_ = subBuilder.buildPartial();
              }

              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return greptime.v1.index.VectorIndex.internal_static_greptime_v1_index_VectorIndexMeta_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return greptime.v1.index.VectorIndex.internal_static_greptime_v1_index_VectorIndexMeta_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              greptime.v1.index.VectorIndex.VectorIndexMeta.class, greptime.v1.index.VectorIndex.VectorIndexMeta.Builder.class);
    }

    public static final int ENGINE_FIELD_NUMBER = 1;
    private int engine_;
    /**
     * <pre>
     * Index engine type.
     * </pre>
     *
     * <code>.greptime.v1.index.VectorIndexEngine engine = 1;</code>
     * @return The enum numeric value on the wire for engine.
     */
    @java.lang.Override public int getEngineValue() {
      return engine_;
    }
    /**
     * <pre>
     * Index engine type.
     * </pre>
     *
     * <code>.greptime.v1.index.VectorIndexEngine engine = 1;</code>
     * @return The engine.
     */
    @java.lang.Override public greptime.v1.index.VectorIndex.VectorIndexEngine getEngine() {
      @SuppressWarnings("deprecation")
      greptime.v1.index.VectorIndex.VectorIndexEngine result = greptime.v1.index.VectorIndex.VectorIndexEngine.valueOf(engine_);
      return result == null ? greptime.v1.index.VectorIndex.VectorIndexEngine.UNRECOGNIZED : result;
    }

    public static final int DIM_FIELD_NUMBER = 2;
    private int dim_;
    /**
     * <pre>
     * Vector dimension.
     * </pre>
     *
     * <code>uint32 dim = 2;</code>
     * @return The dim.
     */
    @java.lang.Override
    public int getDim() {
      return dim_;
    }

    public static final int METRIC_FIELD_NUMBER = 3;
    private int metric_;
    /**
     * <pre>
     * Distance metric.
     * </pre>
     *
     * <code>.greptime.v1.index.VectorDistanceMetric metric = 3;</code>
     * @return The enum numeric value on the wire for metric.
     */
    @java.lang.Override public int getMetricValue() {
      return metric_;
    }
    /**
     * <pre>
     * Distance metric.
     * </pre>
     *
     * <code>.greptime.v1.index.VectorDistanceMetric metric = 3;</code>
     * @return The metric.
     */
    @java.lang.Override public greptime.v1.index.VectorIndex.VectorDistanceMetric getMetric() {
      @SuppressWarnings("deprecation")
      greptime.v1.index.VectorIndex.VectorDistanceMetric result = greptime.v1.index.VectorIndex.VectorDistanceMetric.valueOf(metric_);
      return result == null ? greptime.v1.index.VectorIndex.VectorDistanceMetric.UNRECOGNIZED : result;
    }

    public static final int CONNECTIVITY_FIELD_NUMBER = 4;
    private int connectivity_;
    /**
     * <pre>
     * HNSW connectivity parameter.
     * </pre>
     *
     * <code>uint32 connectivity = 4;</code>
     * @return The connectivity.
     */
    @java.lang.Override
    public int getConnectivity() {
      return connectivity_;
    }

    public static final int EXPANSION_ADD_FIELD_NUMBER = 5;
    private int expansionAdd_;
    /**
     * <pre>
     * HNSW expansion factor during index construction.
     * </pre>
     *
     * <code>uint32 expansion_add = 5;</code>
     * @return The expansionAdd.
     */
    @java.lang.Override
    public int getExpansionAdd() {
      return expansionAdd_;
    }

    public static final int EXPANSION_SEARCH_FIELD_NUMBER = 6;
    private int expansionSearch_;
    /**
     * <pre>
     * HNSW expansion factor during search.
     * </pre>
     *
     * <code>uint32 expansion_search = 6;</code>
     * @return The expansionSearch.
     */
    @java.lang.Override
    public int getExpansionSearch() {
      return expansionSearch_;
    }

    public static final int NULL_BITMAP_SIZE_FIELD_NUMBER = 7;
    private int nullBitmapSize_;
    /**
     * <pre>
     * Byte length of the null bitmap (RoaringBitmap serialized).
     * </pre>
     *
     * <code>uint32 null_bitmap_size = 7;</code>
     * @return The nullBitmapSize.
     */
    @java.lang.Override
    public int getNullBitmapSize() {
      return nullBitmapSize_;
    }

    public static final int INDEX_SIZE_FIELD_NUMBER = 8;
    private long indexSize_;
    /**
     * <pre>
     * Byte length of the vector index data (engine-specific serialized format).
     * </pre>
     *
     * <code>uint64 index_size = 8;</code>
     * @return The indexSize.
     */
    @java.lang.Override
    public long getIndexSize() {
      return indexSize_;
    }

    public static final int STATS_FIELD_NUMBER = 9;
    private greptime.v1.index.VectorIndex.VectorIndexStats stats_;
    /**
     * <pre>
     * Statistics about the vector index.
     * </pre>
     *
     * <code>.greptime.v1.index.VectorIndexStats stats = 9;</code>
     * @return Whether the stats field is set.
     */
    @java.lang.Override
    public boolean hasStats() {
      return stats_ != null;
    }
    /**
     * <pre>
     * Statistics about the vector index.
     * </pre>
     *
     * <code>.greptime.v1.index.VectorIndexStats stats = 9;</code>
     * @return The stats.
     */
    @java.lang.Override
    public greptime.v1.index.VectorIndex.VectorIndexStats getStats() {
      return stats_ == null ? greptime.v1.index.VectorIndex.VectorIndexStats.getDefaultInstance() : stats_;
    }
    /**
     * <pre>
     * Statistics about the vector index.
     * </pre>
     *
     * <code>.greptime.v1.index.VectorIndexStats stats = 9;</code>
     */
    @java.lang.Override
    public greptime.v1.index.VectorIndex.VectorIndexStatsOrBuilder getStatsOrBuilder() {
      return getStats();
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (engine_ != greptime.v1.index.VectorIndex.VectorIndexEngine.VECTOR_INDEX_ENGINE_USEARCH.getNumber()) {
        output.writeEnum(1, engine_);
      }
      if (dim_ != 0) {
        output.writeUInt32(2, dim_);
      }
      if (metric_ != greptime.v1.index.VectorIndex.VectorDistanceMetric.VECTOR_DISTANCE_METRIC_L2SQ.getNumber()) {
        output.writeEnum(3, metric_);
      }
      if (connectivity_ != 0) {
        output.writeUInt32(4, connectivity_);
      }
      if (expansionAdd_ != 0) {
        output.writeUInt32(5, expansionAdd_);
      }
      if (expansionSearch_ != 0) {
        output.writeUInt32(6, expansionSearch_);
      }
      if (nullBitmapSize_ != 0) {
        output.writeUInt32(7, nullBitmapSize_);
      }
      if (indexSize_ != 0L) {
        output.writeUInt64(8, indexSize_);
      }
      if (stats_ != null) {
        output.writeMessage(9, getStats());
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (engine_ != greptime.v1.index.VectorIndex.VectorIndexEngine.VECTOR_INDEX_ENGINE_USEARCH.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(1, engine_);
      }
      if (dim_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(2, dim_);
      }
      if (metric_ != greptime.v1.index.VectorIndex.VectorDistanceMetric.VECTOR_DISTANCE_METRIC_L2SQ.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(3, metric_);
      }
      if (connectivity_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(4, connectivity_);
      }
      if (expansionAdd_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(5, expansionAdd_);
      }
      if (expansionSearch_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(6, expansionSearch_);
      }
      if (nullBitmapSize_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(7, nullBitmapSize_);
      }
      if (indexSize_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(8, indexSize_);
      }
      if (stats_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(9, getStats());
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof greptime.v1.index.VectorIndex.VectorIndexMeta)) {
        return super.equals(obj);
      }
      greptime.v1.index.VectorIndex.VectorIndexMeta other = (greptime.v1.index.VectorIndex.VectorIndexMeta) obj;

      if (engine_ != other.engine_) return false;
      if (getDim()
          != other.getDim()) return false;
      if (metric_ != other.metric_) return false;
      if (getConnectivity()
          != other.getConnectivity()) return false;
      if (getExpansionAdd()
          != other.getExpansionAdd()) return false;
      if (getExpansionSearch()
          != other.getExpansionSearch()) return false;
      if (getNullBitmapSize()
          != other.getNullBitmapSize()) return false;
      if (getIndexSize()
          != other.getIndexSize()) return false;
      if (hasStats() != other.hasStats()) return false;
      if (hasStats()) {
        if (!getStats()
            .equals(other.getStats())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ENGINE_FIELD_NUMBER;
      hash = (53 * hash) + engine_;
      hash = (37 * hash) + DIM_FIELD_NUMBER;
      hash = (53 * hash) + getDim();
      hash = (37 * hash) + METRIC_FIELD_NUMBER;
      hash = (53 * hash) + metric_;
      hash = (37 * hash) + CONNECTIVITY_FIELD_NUMBER;
      hash = (53 * hash) + getConnectivity();
      hash = (37 * hash) + EXPANSION_ADD_FIELD_NUMBER;
      hash = (53 * hash) + getExpansionAdd();
      hash = (37 * hash) + EXPANSION_SEARCH_FIELD_NUMBER;
      hash = (53 * hash) + getExpansionSearch();
      hash = (37 * hash) + NULL_BITMAP_SIZE_FIELD_NUMBER;
      hash = (53 * hash) + getNullBitmapSize();
      hash = (37 * hash) + INDEX_SIZE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getIndexSize());
      if (hasStats()) {
        hash = (37 * hash) + STATS_FIELD_NUMBER;
        hash = (53 * hash) + getStats().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static greptime.v1.index.VectorIndex.VectorIndexMeta parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexMeta parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexMeta parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexMeta parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexMeta parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexMeta parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexMeta parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexMeta parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexMeta parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexMeta parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexMeta parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexMeta parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(greptime.v1.index.VectorIndex.VectorIndexMeta prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * Metadata for a vector index blob (stored as footer).
     * </pre>
     *
     * Protobuf type {@code greptime.v1.index.VectorIndexMeta}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:greptime.v1.index.VectorIndexMeta)
        greptime.v1.index.VectorIndex.VectorIndexMetaOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return greptime.v1.index.VectorIndex.internal_static_greptime_v1_index_VectorIndexMeta_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return greptime.v1.index.VectorIndex.internal_static_greptime_v1_index_VectorIndexMeta_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                greptime.v1.index.VectorIndex.VectorIndexMeta.class, greptime.v1.index.VectorIndex.VectorIndexMeta.Builder.class);
      }

      // Construct using greptime.v1.index.VectorIndex.VectorIndexMeta.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        engine_ = 0;

        dim_ = 0;

        metric_ = 0;

        connectivity_ = 0;

        expansionAdd_ = 0;

        expansionSearch_ = 0;

        nullBitmapSize_ = 0;

        indexSize_ = 0L;

        if (statsBuilder_ == null) {
          stats_ = null;
        } else {
          stats_ = null;
          statsBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return greptime.v1.index.VectorIndex.internal_static_greptime_v1_index_VectorIndexMeta_descriptor;
      }

      @java.lang.Override
      public greptime.v1.index.VectorIndex.VectorIndexMeta getDefaultInstanceForType() {
        return greptime.v1.index.VectorIndex.VectorIndexMeta.getDefaultInstance();
      }

      @java.lang.Override
      public greptime.v1.index.VectorIndex.VectorIndexMeta build() {
        greptime.v1.index.VectorIndex.VectorIndexMeta result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public greptime.v1.index.VectorIndex.VectorIndexMeta buildPartial() {
        greptime.v1.index.VectorIndex.VectorIndexMeta result = new greptime.v1.index.VectorIndex.VectorIndexMeta(this);
        result.engine_ = engine_;
        result.dim_ = dim_;
        result.metric_ = metric_;
        result.connectivity_ = connectivity_;
        result.expansionAdd_ = expansionAdd_;
        result.expansionSearch_ = expansionSearch_;
        result.nullBitmapSize_ = nullBitmapSize_;
        result.indexSize_ = indexSize_;
        if (statsBuilder_ == null) {
          result.stats_ = stats_;
        } else {
          result.stats_ = statsBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof greptime.v1.index.VectorIndex.VectorIndexMeta) {
          return mergeFrom((greptime.v1.index.VectorIndex.VectorIndexMeta)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(greptime.v1.index.VectorIndex.VectorIndexMeta other) {
        if (other == greptime.v1.index.VectorIndex.VectorIndexMeta.getDefaultInstance()) return this;
        if (other.engine_ != 0) {
          setEngineValue(other.getEngineValue());
        }
        if (other.getDim() != 0) {
          setDim(other.getDim());
        }
        if (other.metric_ != 0) {
          setMetricValue(other.getMetricValue());
        }
        if (other.getConnectivity() != 0) {
          setConnectivity(other.getConnectivity());
        }
        if (other.getExpansionAdd() != 0) {
          setExpansionAdd(other.getExpansionAdd());
        }
        if (other.getExpansionSearch() != 0) {
          setExpansionSearch(other.getExpansionSearch());
        }
        if (other.getNullBitmapSize() != 0) {
          setNullBitmapSize(other.getNullBitmapSize());
        }
        if (other.getIndexSize() != 0L) {
          setIndexSize(other.getIndexSize());
        }
        if (other.hasStats()) {
          mergeStats(other.getStats());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        greptime.v1.index.VectorIndex.VectorIndexMeta parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (greptime.v1.index.VectorIndex.VectorIndexMeta) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int engine_ = 0;
      /**
       * <pre>
       * Index engine type.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorIndexEngine engine = 1;</code>
       * @return The enum numeric value on the wire for engine.
       */
      @java.lang.Override public int getEngineValue() {
        return engine_;
      }
      /**
       * <pre>
       * Index engine type.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorIndexEngine engine = 1;</code>
       * @param value The enum numeric value on the wire for engine to set.
       * @return This builder for chaining.
       */
      public Builder setEngineValue(int value) {
        
        engine_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Index engine type.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorIndexEngine engine = 1;</code>
       * @return The engine.
       */
      @java.lang.Override
      public greptime.v1.index.VectorIndex.VectorIndexEngine getEngine() {
        @SuppressWarnings("deprecation")
        greptime.v1.index.VectorIndex.VectorIndexEngine result = greptime.v1.index.VectorIndex.VectorIndexEngine.valueOf(engine_);
        return result == null ? greptime.v1.index.VectorIndex.VectorIndexEngine.UNRECOGNIZED : result;
      }
      /**
       * <pre>
       * Index engine type.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorIndexEngine engine = 1;</code>
       * @param value The engine to set.
       * @return This builder for chaining.
       */
      public Builder setEngine(greptime.v1.index.VectorIndex.VectorIndexEngine value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        engine_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Index engine type.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorIndexEngine engine = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearEngine() {
        
        engine_ = 0;
        onChanged();
        return this;
      }

      private int dim_ ;
      /**
       * <pre>
       * Vector dimension.
       * </pre>
       *
       * <code>uint32 dim = 2;</code>
       * @return The dim.
       */
      @java.lang.Override
      public int getDim() {
        return dim_;
      }
      /**
       * <pre>
       * Vector dimension.
       * </pre>
       *
       * <code>uint32 dim = 2;</code>
       * @param value The dim to set.
       * @return This builder for chaining.
       */
      public Builder setDim(int value) {
        
        dim_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Vector dimension.
       * </pre>
       *
       * <code>uint32 dim = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearDim() {
        
        dim_ = 0;
        onChanged();
        return this;
      }

      private int metric_ = 0;
      /**
       * <pre>
       * Distance metric.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorDistanceMetric metric = 3;</code>
       * @return The enum numeric value on the wire for metric.
       */
      @java.lang.Override public int getMetricValue() {
        return metric_;
      }
      /**
       * <pre>
       * Distance metric.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorDistanceMetric metric = 3;</code>
       * @param value The enum numeric value on the wire for metric to set.
       * @return This builder for chaining.
       */
      public Builder setMetricValue(int value) {
        
        metric_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Distance metric.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorDistanceMetric metric = 3;</code>
       * @return The metric.
       */
      @java.lang.Override
      public greptime.v1.index.VectorIndex.VectorDistanceMetric getMetric() {
        @SuppressWarnings("deprecation")
        greptime.v1.index.VectorIndex.VectorDistanceMetric result = greptime.v1.index.VectorIndex.VectorDistanceMetric.valueOf(metric_);
        return result == null ? greptime.v1.index.VectorIndex.VectorDistanceMetric.UNRECOGNIZED : result;
      }
      /**
       * <pre>
       * Distance metric.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorDistanceMetric metric = 3;</code>
       * @param value The metric to set.
       * @return This builder for chaining.
       */
      public Builder setMetric(greptime.v1.index.VectorIndex.VectorDistanceMetric value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        metric_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Distance metric.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorDistanceMetric metric = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearMetric() {
        
        metric_ = 0;
        onChanged();
        return this;
      }

      private int connectivity_ ;
      /**
       * <pre>
       * HNSW connectivity parameter.
       * </pre>
       *
       * <code>uint32 connectivity = 4;</code>
       * @return The connectivity.
       */
      @java.lang.Override
      public int getConnectivity() {
        return connectivity_;
      }
      /**
       * <pre>
       * HNSW connectivity parameter.
       * </pre>
       *
       * <code>uint32 connectivity = 4;</code>
       * @param value The connectivity to set.
       * @return This builder for chaining.
       */
      public Builder setConnectivity(int value) {
        
        connectivity_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * HNSW connectivity parameter.
       * </pre>
       *
       * <code>uint32 connectivity = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearConnectivity() {
        
        connectivity_ = 0;
        onChanged();
        return this;
      }

      private int expansionAdd_ ;
      /**
       * <pre>
       * HNSW expansion factor during index construction.
       * </pre>
       *
       * <code>uint32 expansion_add = 5;</code>
       * @return The expansionAdd.
       */
      @java.lang.Override
      public int getExpansionAdd() {
        return expansionAdd_;
      }
      /**
       * <pre>
       * HNSW expansion factor during index construction.
       * </pre>
       *
       * <code>uint32 expansion_add = 5;</code>
       * @param value The expansionAdd to set.
       * @return This builder for chaining.
       */
      public Builder setExpansionAdd(int value) {
        
        expansionAdd_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * HNSW expansion factor during index construction.
       * </pre>
       *
       * <code>uint32 expansion_add = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearExpansionAdd() {
        
        expansionAdd_ = 0;
        onChanged();
        return this;
      }

      private int expansionSearch_ ;
      /**
       * <pre>
       * HNSW expansion factor during search.
       * </pre>
       *
       * <code>uint32 expansion_search = 6;</code>
       * @return The expansionSearch.
       */
      @java.lang.Override
      public int getExpansionSearch() {
        return expansionSearch_;
      }
      /**
       * <pre>
       * HNSW expansion factor during search.
       * </pre>
       *
       * <code>uint32 expansion_search = 6;</code>
       * @param value The expansionSearch to set.
       * @return This builder for chaining.
       */
      public Builder setExpansionSearch(int value) {
        
        expansionSearch_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * HNSW expansion factor during search.
       * </pre>
       *
       * <code>uint32 expansion_search = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearExpansionSearch() {
        
        expansionSearch_ = 0;
        onChanged();
        return this;
      }

      private int nullBitmapSize_ ;
      /**
       * <pre>
       * Byte length of the null bitmap (RoaringBitmap serialized).
       * </pre>
       *
       * <code>uint32 null_bitmap_size = 7;</code>
       * @return The nullBitmapSize.
       */
      @java.lang.Override
      public int getNullBitmapSize() {
        return nullBitmapSize_;
      }
      /**
       * <pre>
       * Byte length of the null bitmap (RoaringBitmap serialized).
       * </pre>
       *
       * <code>uint32 null_bitmap_size = 7;</code>
       * @param value The nullBitmapSize to set.
       * @return This builder for chaining.
       */
      public Builder setNullBitmapSize(int value) {
        
        nullBitmapSize_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Byte length of the null bitmap (RoaringBitmap serialized).
       * </pre>
       *
       * <code>uint32 null_bitmap_size = 7;</code>
       * @return This builder for chaining.
       */
      public Builder clearNullBitmapSize() {
        
        nullBitmapSize_ = 0;
        onChanged();
        return this;
      }

      private long indexSize_ ;
      /**
       * <pre>
       * Byte length of the vector index data (engine-specific serialized format).
       * </pre>
       *
       * <code>uint64 index_size = 8;</code>
       * @return The indexSize.
       */
      @java.lang.Override
      public long getIndexSize() {
        return indexSize_;
      }
      /**
       * <pre>
       * Byte length of the vector index data (engine-specific serialized format).
       * </pre>
       *
       * <code>uint64 index_size = 8;</code>
       * @param value The indexSize to set.
       * @return This builder for chaining.
       */
      public Builder setIndexSize(long value) {
        
        indexSize_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Byte length of the vector index data (engine-specific serialized format).
       * </pre>
       *
       * <code>uint64 index_size = 8;</code>
       * @return This builder for chaining.
       */
      public Builder clearIndexSize() {
        
        indexSize_ = 0L;
        onChanged();
        return this;
      }

      private greptime.v1.index.VectorIndex.VectorIndexStats stats_;
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.index.VectorIndex.VectorIndexStats, greptime.v1.index.VectorIndex.VectorIndexStats.Builder, greptime.v1.index.VectorIndex.VectorIndexStatsOrBuilder> statsBuilder_;
      /**
       * <pre>
       * Statistics about the vector index.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorIndexStats stats = 9;</code>
       * @return Whether the stats field is set.
       */
      public boolean hasStats() {
        return statsBuilder_ != null || stats_ != null;
      }
      /**
       * <pre>
       * Statistics about the vector index.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorIndexStats stats = 9;</code>
       * @return The stats.
       */
      public greptime.v1.index.VectorIndex.VectorIndexStats getStats() {
        if (statsBuilder_ == null) {
          return stats_ == null ? greptime.v1.index.VectorIndex.VectorIndexStats.getDefaultInstance() : stats_;
        } else {
          return statsBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * Statistics about the vector index.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorIndexStats stats = 9;</code>
       */
      public Builder setStats(greptime.v1.index.VectorIndex.VectorIndexStats value) {
        if (statsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          stats_ = value;
          onChanged();
        } else {
          statsBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <pre>
       * Statistics about the vector index.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorIndexStats stats = 9;</code>
       */
      public Builder setStats(
          greptime.v1.index.VectorIndex.VectorIndexStats.Builder builderForValue) {
        if (statsBuilder_ == null) {
          stats_ = builderForValue.build();
          onChanged();
        } else {
          statsBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <pre>
       * Statistics about the vector index.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorIndexStats stats = 9;</code>
       */
      public Builder mergeStats(greptime.v1.index.VectorIndex.VectorIndexStats value) {
        if (statsBuilder_ == null) {
          if (stats_ != null) {
            stats_ =
              greptime.v1.index.VectorIndex.VectorIndexStats.newBuilder(stats_).mergeFrom(value).buildPartial();
          } else {
            stats_ = value;
          }
          onChanged();
        } else {
          statsBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <pre>
       * Statistics about the vector index.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorIndexStats stats = 9;</code>
       */
      public Builder clearStats() {
        if (statsBuilder_ == null) {
          stats_ = null;
          onChanged();
        } else {
          stats_ = null;
          statsBuilder_ = null;
        }

        return this;
      }
      /**
       * <pre>
       * Statistics about the vector index.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorIndexStats stats = 9;</code>
       */
      public greptime.v1.index.VectorIndex.VectorIndexStats.Builder getStatsBuilder() {
        
        onChanged();
        return getStatsFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Statistics about the vector index.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorIndexStats stats = 9;</code>
       */
      public greptime.v1.index.VectorIndex.VectorIndexStatsOrBuilder getStatsOrBuilder() {
        if (statsBuilder_ != null) {
          return statsBuilder_.getMessageOrBuilder();
        } else {
          return stats_ == null ?
              greptime.v1.index.VectorIndex.VectorIndexStats.getDefaultInstance() : stats_;
        }
      }
      /**
       * <pre>
       * Statistics about the vector index.
       * </pre>
       *
       * <code>.greptime.v1.index.VectorIndexStats stats = 9;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.index.VectorIndex.VectorIndexStats, greptime.v1.index.VectorIndex.VectorIndexStats.Builder, greptime.v1.index.VectorIndex.VectorIndexStatsOrBuilder> 
          getStatsFieldBuilder() {
        if (statsBuilder_ == null) {
          statsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              greptime.v1.index.VectorIndex.VectorIndexStats, greptime.v1.index.VectorIndex.VectorIndexStats.Builder, greptime.v1.index.VectorIndex.VectorIndexStatsOrBuilder>(
                  getStats(),
                  getParentForChildren(),
                  isClean());
          stats_ = null;
        }
        return statsBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:greptime.v1.index.VectorIndexMeta)
    }

    // @@protoc_insertion_point(class_scope:greptime.v1.index.VectorIndexMeta)
    private static final greptime.v1.index.VectorIndex.VectorIndexMeta DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new greptime.v1.index.VectorIndex.VectorIndexMeta();
    }

    public static greptime.v1.index.VectorIndex.VectorIndexMeta getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<VectorIndexMeta>
        PARSER = new com.google.protobuf.AbstractParser<VectorIndexMeta>() {
      @java.lang.Override
      public VectorIndexMeta parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new VectorIndexMeta(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<VectorIndexMeta> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<VectorIndexMeta> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public greptime.v1.index.VectorIndex.VectorIndexMeta getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface VectorIndexStatsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:greptime.v1.index.VectorIndexStats)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Total number of rows in the SST.
     * </pre>
     *
     * <code>uint64 total_row_count = 1;</code>
     * @return The totalRowCount.
     */
    long getTotalRowCount();

    /**
     * <pre>
     * Number of rows with valid vectors (indexed).
     * </pre>
     *
     * <code>uint64 indexed_row_count = 2;</code>
     * @return The indexedRowCount.
     */
    long getIndexedRowCount();

    /**
     * <pre>
     * Number of null vectors.
     * </pre>
     *
     * <code>uint64 null_count = 3;</code>
     * @return The nullCount.
     */
    long getNullCount();
  }
  /**
   * <pre>
   * Statistics for a vector index.
   * </pre>
   *
   * Protobuf type {@code greptime.v1.index.VectorIndexStats}
   */
  public static final class VectorIndexStats extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:greptime.v1.index.VectorIndexStats)
      VectorIndexStatsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use VectorIndexStats.newBuilder() to construct.
    private VectorIndexStats(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private VectorIndexStats() {
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new VectorIndexStats();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private VectorIndexStats(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {

              totalRowCount_ = input.readUInt64();
              break;
            }
            case 16: {

              indexedRowCount_ = input.readUInt64();
              break;
            }
            case 24: {

              nullCount_ = input.readUInt64();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return greptime.v1.index.VectorIndex.internal_static_greptime_v1_index_VectorIndexStats_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return greptime.v1.index.VectorIndex.internal_static_greptime_v1_index_VectorIndexStats_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              greptime.v1.index.VectorIndex.VectorIndexStats.class, greptime.v1.index.VectorIndex.VectorIndexStats.Builder.class);
    }

    public static final int TOTAL_ROW_COUNT_FIELD_NUMBER = 1;
    private long totalRowCount_;
    /**
     * <pre>
     * Total number of rows in the SST.
     * </pre>
     *
     * <code>uint64 total_row_count = 1;</code>
     * @return The totalRowCount.
     */
    @java.lang.Override
    public long getTotalRowCount() {
      return totalRowCount_;
    }

    public static final int INDEXED_ROW_COUNT_FIELD_NUMBER = 2;
    private long indexedRowCount_;
    /**
     * <pre>
     * Number of rows with valid vectors (indexed).
     * </pre>
     *
     * <code>uint64 indexed_row_count = 2;</code>
     * @return The indexedRowCount.
     */
    @java.lang.Override
    public long getIndexedRowCount() {
      return indexedRowCount_;
    }

    public static final int NULL_COUNT_FIELD_NUMBER = 3;
    private long nullCount_;
    /**
     * <pre>
     * Number of null vectors.
     * </pre>
     *
     * <code>uint64 null_count = 3;</code>
     * @return The nullCount.
     */
    @java.lang.Override
    public long getNullCount() {
      return nullCount_;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (totalRowCount_ != 0L) {
        output.writeUInt64(1, totalRowCount_);
      }
      if (indexedRowCount_ != 0L) {
        output.writeUInt64(2, indexedRowCount_);
      }
      if (nullCount_ != 0L) {
        output.writeUInt64(3, nullCount_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (totalRowCount_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(1, totalRowCount_);
      }
      if (indexedRowCount_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(2, indexedRowCount_);
      }
      if (nullCount_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(3, nullCount_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof greptime.v1.index.VectorIndex.VectorIndexStats)) {
        return super.equals(obj);
      }
      greptime.v1.index.VectorIndex.VectorIndexStats other = (greptime.v1.index.VectorIndex.VectorIndexStats) obj;

      if (getTotalRowCount()
          != other.getTotalRowCount()) return false;
      if (getIndexedRowCount()
          != other.getIndexedRowCount()) return false;
      if (getNullCount()
          != other.getNullCount()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + TOTAL_ROW_COUNT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getTotalRowCount());
      hash = (37 * hash) + INDEXED_ROW_COUNT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getIndexedRowCount());
      hash = (37 * hash) + NULL_COUNT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getNullCount());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static greptime.v1.index.VectorIndex.VectorIndexStats parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexStats parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexStats parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexStats parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexStats parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexStats parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexStats parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexStats parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexStats parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexStats parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexStats parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.index.VectorIndex.VectorIndexStats parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(greptime.v1.index.VectorIndex.VectorIndexStats prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * Statistics for a vector index.
     * </pre>
     *
     * Protobuf type {@code greptime.v1.index.VectorIndexStats}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:greptime.v1.index.VectorIndexStats)
        greptime.v1.index.VectorIndex.VectorIndexStatsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return greptime.v1.index.VectorIndex.internal_static_greptime_v1_index_VectorIndexStats_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return greptime.v1.index.VectorIndex.internal_static_greptime_v1_index_VectorIndexStats_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                greptime.v1.index.VectorIndex.VectorIndexStats.class, greptime.v1.index.VectorIndex.VectorIndexStats.Builder.class);
      }

      // Construct using greptime.v1.index.VectorIndex.VectorIndexStats.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        totalRowCount_ = 0L;

        indexedRowCount_ = 0L;

        nullCount_ = 0L;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return greptime.v1.index.VectorIndex.internal_static_greptime_v1_index_VectorIndexStats_descriptor;
      }

      @java.lang.Override
      public greptime.v1.index.VectorIndex.VectorIndexStats getDefaultInstanceForType() {
        return greptime.v1.index.VectorIndex.VectorIndexStats.getDefaultInstance();
      }

      @java.lang.Override
      public greptime.v1.index.VectorIndex.VectorIndexStats build() {
        greptime.v1.index.VectorIndex.VectorIndexStats result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public greptime.v1.index.VectorIndex.VectorIndexStats buildPartial() {
        greptime.v1.index.VectorIndex.VectorIndexStats result = new greptime.v1.index.VectorIndex.VectorIndexStats(this);
        result.totalRowCount_ = totalRowCount_;
        result.indexedRowCount_ = indexedRowCount_;
        result.nullCount_ = nullCount_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof greptime.v1.index.VectorIndex.VectorIndexStats) {
          return mergeFrom((greptime.v1.index.VectorIndex.VectorIndexStats)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(greptime.v1.index.VectorIndex.VectorIndexStats other) {
        if (other == greptime.v1.index.VectorIndex.VectorIndexStats.getDefaultInstance()) return this;
        if (other.getTotalRowCount() != 0L) {
          setTotalRowCount(other.getTotalRowCount());
        }
        if (other.getIndexedRowCount() != 0L) {
          setIndexedRowCount(other.getIndexedRowCount());
        }
        if (other.getNullCount() != 0L) {
          setNullCount(other.getNullCount());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        greptime.v1.index.VectorIndex.VectorIndexStats parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (greptime.v1.index.VectorIndex.VectorIndexStats) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private long totalRowCount_ ;
      /**
       * <pre>
       * Total number of rows in the SST.
       * </pre>
       *
       * <code>uint64 total_row_count = 1;</code>
       * @return The totalRowCount.
       */
      @java.lang.Override
      public long getTotalRowCount() {
        return totalRowCount_;
      }
      /**
       * <pre>
       * Total number of rows in the SST.
       * </pre>
       *
       * <code>uint64 total_row_count = 1;</code>
       * @param value The totalRowCount to set.
       * @return This builder for chaining.
       */
      public Builder setTotalRowCount(long value) {
        
        totalRowCount_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Total number of rows in the SST.
       * </pre>
       *
       * <code>uint64 total_row_count = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearTotalRowCount() {
        
        totalRowCount_ = 0L;
        onChanged();
        return this;
      }

      private long indexedRowCount_ ;
      /**
       * <pre>
       * Number of rows with valid vectors (indexed).
       * </pre>
       *
       * <code>uint64 indexed_row_count = 2;</code>
       * @return The indexedRowCount.
       */
      @java.lang.Override
      public long getIndexedRowCount() {
        return indexedRowCount_;
      }
      /**
       * <pre>
       * Number of rows with valid vectors (indexed).
       * </pre>
       *
       * <code>uint64 indexed_row_count = 2;</code>
       * @param value The indexedRowCount to set.
       * @return This builder for chaining.
       */
      public Builder setIndexedRowCount(long value) {
        
        indexedRowCount_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Number of rows with valid vectors (indexed).
       * </pre>
       *
       * <code>uint64 indexed_row_count = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearIndexedRowCount() {
        
        indexedRowCount_ = 0L;
        onChanged();
        return this;
      }

      private long nullCount_ ;
      /**
       * <pre>
       * Number of null vectors.
       * </pre>
       *
       * <code>uint64 null_count = 3;</code>
       * @return The nullCount.
       */
      @java.lang.Override
      public long getNullCount() {
        return nullCount_;
      }
      /**
       * <pre>
       * Number of null vectors.
       * </pre>
       *
       * <code>uint64 null_count = 3;</code>
       * @param value The nullCount to set.
       * @return This builder for chaining.
       */
      public Builder setNullCount(long value) {
        
        nullCount_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Number of null vectors.
       * </pre>
       *
       * <code>uint64 null_count = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearNullCount() {
        
        nullCount_ = 0L;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:greptime.v1.index.VectorIndexStats)
    }

    // @@protoc_insertion_point(class_scope:greptime.v1.index.VectorIndexStats)
    private static final greptime.v1.index.VectorIndex.VectorIndexStats DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new greptime.v1.index.VectorIndex.VectorIndexStats();
    }

    public static greptime.v1.index.VectorIndex.VectorIndexStats getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<VectorIndexStats>
        PARSER = new com.google.protobuf.AbstractParser<VectorIndexStats>() {
      @java.lang.Override
      public VectorIndexStats parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new VectorIndexStats(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<VectorIndexStats> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<VectorIndexStats> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public greptime.v1.index.VectorIndex.VectorIndexStats getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_greptime_v1_index_VectorIndexMeta_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_greptime_v1_index_VectorIndexMeta_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_greptime_v1_index_VectorIndexStats_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_greptime_v1_index_VectorIndexStats_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n$greptime/v1/index/vector_index.proto\022\021" +
      "greptime.v1.index\"\266\002\n\017VectorIndexMeta\0224\n" +
      "\006engine\030\001 \001(\0162$.greptime.v1.index.Vector" +
      "IndexEngine\022\013\n\003dim\030\002 \001(\r\0227\n\006metric\030\003 \001(\016" +
      "2\'.greptime.v1.index.VectorDistanceMetri" +
      "c\022\024\n\014connectivity\030\004 \001(\r\022\025\n\rexpansion_add" +
      "\030\005 \001(\r\022\030\n\020expansion_search\030\006 \001(\r\022\030\n\020null" +
      "_bitmap_size\030\007 \001(\r\022\022\n\nindex_size\030\010 \001(\004\0222" +
      "\n\005stats\030\t \001(\0132#.greptime.v1.index.Vector" +
      "IndexStats\"Z\n\020VectorIndexStats\022\027\n\017total_" +
      "row_count\030\001 \001(\004\022\031\n\021indexed_row_count\030\002 \001" +
      "(\004\022\022\n\nnull_count\030\003 \001(\004*4\n\021VectorIndexEng" +
      "ine\022\037\n\033VECTOR_INDEX_ENGINE_USEARCH\020\000*\204\001\n" +
      "\024VectorDistanceMetric\022\037\n\033VECTOR_DISTANCE" +
      "_METRIC_L2SQ\020\000\022!\n\035VECTOR_DISTANCE_METRIC" +
      "_COSINE\020\001\022(\n$VECTOR_DISTANCE_METRIC_INNE" +
      "R_PRODUCT\020\002B=Z;github.com/GreptimeTeam/g" +
      "reptime-proto/go/greptime/v1/indexb\006prot" +
      "o3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_greptime_v1_index_VectorIndexMeta_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_greptime_v1_index_VectorIndexMeta_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_greptime_v1_index_VectorIndexMeta_descriptor,
        new java.lang.String[] { "Engine", "Dim", "Metric", "Connectivity", "ExpansionAdd", "ExpansionSearch", "NullBitmapSize", "IndexSize", "Stats", });
    internal_static_greptime_v1_index_VectorIndexStats_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_greptime_v1_index_VectorIndexStats_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_greptime_v1_index_VectorIndexStats_descriptor,
        new java.lang.String[] { "TotalRowCount", "IndexedRowCount", "NullCount", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
