io.milvus.grpc.SegmentState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of milvus-sdk-java Show documentation
Show all versions of milvus-sdk-java Show documentation
Java SDK for Milvus, a distributed high-performance vector search engine.
update grpc to 1.42.1
update protobuf to 3.19.1
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common.proto
package io.milvus.grpc;
/**
* Protobuf enum {@code milvus.proto.common.SegmentState}
*/
public enum SegmentState
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SegmentStateNone = 0;
*/
SegmentStateNone(0),
/**
* NotExist = 1;
*/
NotExist(1),
/**
* Growing = 2;
*/
Growing(2),
/**
* Sealed = 3;
*/
Sealed(3),
/**
* Flushed = 4;
*/
Flushed(4),
/**
* Flushing = 5;
*/
Flushing(5),
/**
* Dropped = 6;
*/
Dropped(6),
/**
* Importing = 7;
*/
Importing(7),
UNRECOGNIZED(-1),
;
/**
* SegmentStateNone = 0;
*/
public static final int SegmentStateNone_VALUE = 0;
/**
* NotExist = 1;
*/
public static final int NotExist_VALUE = 1;
/**
* Growing = 2;
*/
public static final int Growing_VALUE = 2;
/**
* Sealed = 3;
*/
public static final int Sealed_VALUE = 3;
/**
* Flushed = 4;
*/
public static final int Flushed_VALUE = 4;
/**
* Flushing = 5;
*/
public static final int Flushing_VALUE = 5;
/**
* Dropped = 6;
*/
public static final int Dropped_VALUE = 6;
/**
* Importing = 7;
*/
public static final int Importing_VALUE = 7;
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 SegmentState 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 SegmentState forNumber(int value) {
switch (value) {
case 0: return SegmentStateNone;
case 1: return NotExist;
case 2: return Growing;
case 3: return Sealed;
case 4: return Flushed;
case 5: return Flushing;
case 6: return Dropped;
case 7: return Importing;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SegmentState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SegmentState findValueByNumber(int number) {
return SegmentState.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(2);
}
private static final SegmentState[] VALUES = values();
public static SegmentState 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 SegmentState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:milvus.proto.common.SegmentState)
}