Package io.milvus.grpc
Enum FieldPartialUpdateOp.OpType
- java.lang.Object
-
- java.lang.Enum<FieldPartialUpdateOp.OpType>
-
- io.milvus.grpc.FieldPartialUpdateOp.OpType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<FieldPartialUpdateOp.OpType>
- Enclosing class:
- FieldPartialUpdateOp
public static enum FieldPartialUpdateOp.OpType extends Enum<FieldPartialUpdateOp.OpType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enummilvus.proto.schema.FieldPartialUpdateOp.OpType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY_APPENDARRAY_APPEND appends the new values to the tail of the existing array.ARRAY_REMOVEARRAY_REMOVE removes every occurrence of each provided value from the existing array.REPLACEREPLACE overwrites the field with the new values.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intARRAY_APPEND_VALUEARRAY_APPEND appends the new values to the tail of the existing array.static intARRAY_REMOVE_VALUEARRAY_REMOVE removes every occurrence of each provided value from the existing array.static intREPLACE_VALUEREPLACE overwrites the field with the new values.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static FieldPartialUpdateOp.OpTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<FieldPartialUpdateOp.OpType>internalGetValueMap()static FieldPartialUpdateOp.OpTypevalueOf(int value)Deprecated.static FieldPartialUpdateOp.OpTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static FieldPartialUpdateOp.OpTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FieldPartialUpdateOp.OpType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REPLACE
public static final FieldPartialUpdateOp.OpType REPLACE
REPLACE overwrites the field with the new values. Default behavior when no op targets a field. Applicable to all field types.
REPLACE = 0;
-
ARRAY_APPEND
public static final FieldPartialUpdateOp.OpType ARRAY_APPEND
ARRAY_APPEND appends the new values to the tail of the existing array. Requires DataType_Array. The resulting length must not exceed the field's max_capacity.
ARRAY_APPEND = 1;
-
ARRAY_REMOVE
public static final FieldPartialUpdateOp.OpType ARRAY_REMOVE
ARRAY_REMOVE removes every occurrence of each provided value from the existing array. Requires DataType_Array. No-op when the base array is empty or no element matches.
ARRAY_REMOVE = 2;
-
UNRECOGNIZED
public static final FieldPartialUpdateOp.OpType UNRECOGNIZED
-
-
Field Detail
-
REPLACE_VALUE
public static final int REPLACE_VALUE
REPLACE overwrites the field with the new values. Default behavior when no op targets a field. Applicable to all field types.
REPLACE = 0;- See Also:
- Constant Field Values
-
ARRAY_APPEND_VALUE
public static final int ARRAY_APPEND_VALUE
ARRAY_APPEND appends the new values to the tail of the existing array. Requires DataType_Array. The resulting length must not exceed the field's max_capacity.
ARRAY_APPEND = 1;- See Also:
- Constant Field Values
-
ARRAY_REMOVE_VALUE
public static final int ARRAY_REMOVE_VALUE
ARRAY_REMOVE removes every occurrence of each provided value from the existing array. Requires DataType_Array. No-op when the base array is empty or no element matches.
ARRAY_REMOVE = 2;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static FieldPartialUpdateOp.OpType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FieldPartialUpdateOp.OpType c : FieldPartialUpdateOp.OpType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FieldPartialUpdateOp.OpType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static FieldPartialUpdateOp.OpType valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static FieldPartialUpdateOp.OpType forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<FieldPartialUpdateOp.OpType> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static FieldPartialUpdateOp.OpType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-