Enum ChangeStreamRecord.DataChangeRecord.ModType (6.103.0)

public enum ChangeStreamRecord.DataChangeRecord.ModType extends Enum<ChangeStreamRecord.DataChangeRecord.ModType> implements 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

Implements

ProtocolMessageEnum

Static Fields

Name Description
DELETE

Indicates existing data was deleted.

DELETE = 30;

DELETE_VALUE

Indicates existing data was deleted.

DELETE = 30;

INSERT

Indicates data was inserted.

INSERT = 10;

INSERT_VALUE

Indicates data was inserted.

INSERT = 10;

MOD_TYPE_UNSPECIFIED

Not specified.

MOD_TYPE_UNSPECIFIED = 0;

MOD_TYPE_UNSPECIFIED_VALUE

Not specified.

MOD_TYPE_UNSPECIFIED = 0;

UNRECOGNIZED
UPDATE

Indicates existing data was updated.

UPDATE = 20;

UPDATE_VALUE

Indicates existing data was updated.

UPDATE = 20;

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()