Package com.mysql.cj.x.protobuf
Enum MysqlxCrud.UpdateOperation.UpdateType
java.lang.Object
java.lang.Enum<MysqlxCrud.UpdateOperation.UpdateType>
com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.UpdateType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<MysqlxCrud.UpdateOperation.UpdateType>,java.lang.constant.Constable
- Enclosing class:
- MysqlxCrud.UpdateOperation
public static enum MysqlxCrud.UpdateOperation.UpdateType extends java.lang.Enum<MysqlxCrud.UpdateOperation.UpdateType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
Mysqlx.Crud.UpdateOperation.UpdateType-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY_APPENDappend the value on the array at the identified pathARRAY_INSERTinsert the value in the array at the index identified in the source pathITEM_MERGEsource and value must be documentsITEM_REMOVEno value (removes the identified path from a object or array)ITEM_REPLACEreplaces a value if the path existsITEM_SETsets the new value on the identified pathMERGE_PATCHmerge JSON object value with the provided patch expressionSETonly allowed for TABLE -
Field Summary
Fields Modifier and Type Field Description static intARRAY_APPEND_VALUEappend the value on the array at the identified pathstatic intARRAY_INSERT_VALUEinsert the value in the array at the index identified in the source pathstatic intITEM_MERGE_VALUEsource and value must be documentsstatic intITEM_REMOVE_VALUEno value (removes the identified path from a object or array)static intITEM_REPLACE_VALUEreplaces a value if the path existsstatic intITEM_SET_VALUEsets the new value on the identified pathstatic intMERGE_PATCH_VALUEmerge JSON object value with the provided patch expressionstatic intSET_VALUEonly allowed for TABLE -
Method Summary
Modifier and Type Method Description static MysqlxCrud.UpdateOperation.UpdateTypeforNumber(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<MysqlxCrud.UpdateOperation.UpdateType>internalGetValueMap()static MysqlxCrud.UpdateOperation.UpdateTypevalueOf(int value)Deprecated.static MysqlxCrud.UpdateOperation.UpdateTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static MysqlxCrud.UpdateOperation.UpdateTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MysqlxCrud.UpdateOperation.UpdateType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SET
only allowed for TABLE
SET = 1; -
ITEM_REMOVE
no value (removes the identified path from a object or array)
ITEM_REMOVE = 2; -
ITEM_SET
sets the new value on the identified path
ITEM_SET = 3; -
ITEM_REPLACE
replaces a value if the path exists
ITEM_REPLACE = 4; -
ITEM_MERGE
source and value must be documents
ITEM_MERGE = 5; -
ARRAY_INSERT
insert the value in the array at the index identified in the source path
ARRAY_INSERT = 6; -
ARRAY_APPEND
append the value on the array at the identified path
ARRAY_APPEND = 7; -
MERGE_PATCH
merge JSON object value with the provided patch expression
MERGE_PATCH = 8;
-
-
Field Details
-
SET_VALUE
public static final int SET_VALUEonly allowed for TABLE
SET = 1;- See Also:
- Constant Field Values
-
ITEM_REMOVE_VALUE
public static final int ITEM_REMOVE_VALUEno value (removes the identified path from a object or array)
ITEM_REMOVE = 2;- See Also:
- Constant Field Values
-
ITEM_SET_VALUE
public static final int ITEM_SET_VALUEsets the new value on the identified path
ITEM_SET = 3;- See Also:
- Constant Field Values
-
ITEM_REPLACE_VALUE
public static final int ITEM_REPLACE_VALUEreplaces a value if the path exists
ITEM_REPLACE = 4;- See Also:
- Constant Field Values
-
ITEM_MERGE_VALUE
public static final int ITEM_MERGE_VALUEsource and value must be documents
ITEM_MERGE = 5;- See Also:
- Constant Field Values
-
ARRAY_INSERT_VALUE
public static final int ARRAY_INSERT_VALUEinsert the value in the array at the index identified in the source path
ARRAY_INSERT = 6;- See Also:
- Constant Field Values
-
ARRAY_APPEND_VALUE
public static final int ARRAY_APPEND_VALUEappend the value on the array at the identified path
ARRAY_APPEND = 7;- See Also:
- Constant Field Values
-
MERGE_PATCH_VALUE
public static final int MERGE_PATCH_VALUEmerge JSON object value with the provided patch expression
MERGE_PATCH = 8;- See Also:
- Constant Field Values
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- 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.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
- 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<MysqlxCrud.UpdateOperation.UpdateType> 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 MysqlxCrud.UpdateOperation.UpdateType 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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-