All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.milvus.grpc.CompactionState Maven / Gradle / Ivy

Go to download

Java SDK for Milvus, a distributed high-performance vector search engine. update grpc to 1.42.1 update protobuf to 3.19.1 restore the calcDistance interface that is removed in 2.1.0-beta4

There is a newer version: 2.2.2.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: common.proto

package io.milvus.grpc;

/**
 * Protobuf enum {@code milvus.proto.common.CompactionState}
 */
public enum CompactionState
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * UndefiedState = 0;
   */
  UndefiedState(0),
  /**
   * Executing = 1;
   */
  Executing(1),
  /**
   * Completed = 2;
   */
  Completed(2),
  UNRECOGNIZED(-1),
  ;

  /**
   * UndefiedState = 0;
   */
  public static final int UndefiedState_VALUE = 0;
  /**
   * Executing = 1;
   */
  public static final int Executing_VALUE = 1;
  /**
   * Completed = 2;
   */
  public static final int Completed_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 CompactionState 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 CompactionState forNumber(int value) {
    switch (value) {
      case 0: return UndefiedState;
      case 1: return Executing;
      case 2: return Completed;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      CompactionState> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          public CompactionState findValueByNumber(int number) {
            return CompactionState.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 io.milvus.grpc.CommonProto.getDescriptor().getEnumTypes().get(6);
  }

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

  public static CompactionState 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 CompactionState(int value) {
    this.value = value;
  }

  // @@protoc_insertion_point(enum_scope:milvus.proto.common.CompactionState)
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy