Package com.google.spanner.v1
Enum ChangeStreamRecord.DataChangeRecord.ModType
java.lang.Object
java.lang.Enum<ChangeStreamRecord.DataChangeRecord.ModType>
com.google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ChangeStreamRecord.DataChangeRecord.ModType>
- Enclosing class:
- ChangeStreamRecord.DataChangeRecord
public static enum ChangeStreamRecord.DataChangeRecord.ModType
extends Enum<ChangeStreamRecord.DataChangeRecord.ModType>
implements com.google.protobuf.ProtocolMessageEnum
Mod type describes the type of change Spanner applied to the data. For example, if the client submits an INSERT_OR_UPDATE request, Spanner will perform an insert if there is no existing row and return ModType INSERT. Alternatively, if there is an existing row, Spanner will perform an update and return ModType UPDATE.Protobuf enum
google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates existing data was deleted.Indicates data was inserted.Not specified.Indicates existing data was updated. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates existing data was deleted.static final intIndicates data was inserted.static final intNot specified.static final intIndicates existing data was updated. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ChangeStreamRecord.DataChangeRecord.ModType>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MOD_TYPE_UNSPECIFIED
Not specified.
MOD_TYPE_UNSPECIFIED = 0; -
INSERT
Indicates data was inserted.
INSERT = 10; -
UPDATE
Indicates existing data was updated.
UPDATE = 20; -
DELETE
Indicates existing data was deleted.
DELETE = 30; -
UNRECOGNIZED
-
-
Field Details
-
MOD_TYPE_UNSPECIFIED_VALUE
public static final int MOD_TYPE_UNSPECIFIED_VALUENot specified.
MOD_TYPE_UNSPECIFIED = 0;- See Also:
-
INSERT_VALUE
public static final int INSERT_VALUEIndicates data was inserted.
INSERT = 10;- See Also:
-
UPDATE_VALUE
public static final int UPDATE_VALUEIndicates existing data was updated.
UPDATE = 20;- See Also:
-
DELETE_VALUE
public static final int DELETE_VALUEIndicates existing data was deleted.
DELETE = 30;- See Also:
-
-
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:
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.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
- 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<ChangeStreamRecord.DataChangeRecord.ModType> 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 ChangeStreamRecord.DataChangeRecord.ModType 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
-