io.milvus.grpc.ConsistencyLevel 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.ConsistencyLevel}
*/
public enum ConsistencyLevel
implements com.google.protobuf.ProtocolMessageEnum {
/**
* Strong = 0;
*/
Strong(0),
/**
*
* default in PyMilvus
*
*
* Session = 1;
*/
Session(1),
/**
* Bounded = 2;
*/
Bounded(2),
/**
* Eventually = 3;
*/
Eventually(3),
/**
*
* Users pass their own `guarantee_timestamp`.
*
*
* Customized = 4;
*/
Customized(4),
UNRECOGNIZED(-1),
;
/**
* Strong = 0;
*/
public static final int Strong_VALUE = 0;
/**
*
* default in PyMilvus
*
*
* Session = 1;
*/
public static final int Session_VALUE = 1;
/**
* Bounded = 2;
*/
public static final int Bounded_VALUE = 2;
/**
* Eventually = 3;
*/
public static final int Eventually_VALUE = 3;
/**
*
* Users pass their own `guarantee_timestamp`.
*
*
* Customized = 4;
*/
public static final int Customized_VALUE = 4;
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 ConsistencyLevel 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 ConsistencyLevel forNumber(int value) {
switch (value) {
case 0: return Strong;
case 1: return Session;
case 2: return Bounded;
case 3: return Eventually;
case 4: return Customized;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ConsistencyLevel> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ConsistencyLevel findValueByNumber(int number) {
return ConsistencyLevel.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(7);
}
private static final ConsistencyLevel[] VALUES = values();
public static ConsistencyLevel 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 ConsistencyLevel(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:milvus.proto.common.ConsistencyLevel)
}