Class DataChangeRecord (6.60.0)

public final class DataChangeRecord extends GeneratedMessageV3 implements DataChangeRecordOrBuilder

ChangeStream data change record.

Protobuf type google.spanner.executor.v1.DataChangeRecord

Static Fields

COLUMN_TYPES_FIELD_NUMBER

public static final int COLUMN_TYPES_FIELD_NUMBER
Field Value
TypeDescription
int

COMMIT_TIME_FIELD_NUMBER

public static final int COMMIT_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

IS_LAST_RECORD_FIELD_NUMBER

public static final int IS_LAST_RECORD_FIELD_NUMBER
Field Value
TypeDescription
int

IS_SYSTEM_TRANSACTION_FIELD_NUMBER

public static final int IS_SYSTEM_TRANSACTION_FIELD_NUMBER
Field Value
TypeDescription
int

MODS_FIELD_NUMBER

public static final int MODS_FIELD_NUMBER
Field Value
TypeDescription
int

MOD_TYPE_FIELD_NUMBER

public static final int MOD_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

PARTITION_COUNT_FIELD_NUMBER

public static final int PARTITION_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

RECORD_COUNT_FIELD_NUMBER

public static final int RECORD_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

RECORD_SEQUENCE_FIELD_NUMBER

public static final int RECORD_SEQUENCE_FIELD_NUMBER
Field Value
TypeDescription
int

TABLE_FIELD_NUMBER

public static final int TABLE_FIELD_NUMBER
Field Value
TypeDescription
int

TRANSACTION_ID_FIELD_NUMBER

public static final int TRANSACTION_ID_FIELD_NUMBER
Field Value
TypeDescription
int

TRANSACTION_TAG_FIELD_NUMBER

public static final int TRANSACTION_TAG_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_CAPTURE_TYPE_FIELD_NUMBER

public static final int VALUE_CAPTURE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DataChangeRecord getDefaultInstance()
Returns
TypeDescription
DataChangeRecord

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DataChangeRecord.Builder newBuilder()
Returns
TypeDescription
DataChangeRecord.Builder

newBuilder(DataChangeRecord prototype)

public static DataChangeRecord.Builder newBuilder(DataChangeRecord prototype)
Parameter
NameDescription
prototypeDataChangeRecord
Returns
TypeDescription
DataChangeRecord.Builder

parseDelimitedFrom(InputStream input)

public static DataChangeRecord parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DataChangeRecord
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataChangeRecord parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataChangeRecord
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DataChangeRecord parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DataChangeRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DataChangeRecord parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataChangeRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DataChangeRecord parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DataChangeRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DataChangeRecord parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataChangeRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DataChangeRecord parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DataChangeRecord
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DataChangeRecord parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataChangeRecord
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DataChangeRecord parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DataChangeRecord
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataChangeRecord parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataChangeRecord
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DataChangeRecord parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DataChangeRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DataChangeRecord parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataChangeRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DataChangeRecord> parser()
Returns
TypeDescription
Parser<DataChangeRecord>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getColumnTypes(int index)

public DataChangeRecord.ColumnType getColumnTypes(int index)

Column types defined in the schema.

repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
DataChangeRecord.ColumnType

getColumnTypesCount()

public int getColumnTypesCount()

Column types defined in the schema.

repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;

Returns
TypeDescription
int

getColumnTypesList()

public List<DataChangeRecord.ColumnType> getColumnTypesList()

Column types defined in the schema.

repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;

Returns
TypeDescription
List<ColumnType>

getColumnTypesOrBuilder(int index)

public DataChangeRecord.ColumnTypeOrBuilder getColumnTypesOrBuilder(int index)

Column types defined in the schema.

repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
DataChangeRecord.ColumnTypeOrBuilder

getColumnTypesOrBuilderList()

public List<? extends DataChangeRecord.ColumnTypeOrBuilder> getColumnTypesOrBuilderList()

Column types defined in the schema.

repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;

Returns
TypeDescription
List<? extends com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder>

getCommitTime()

public Timestamp getCommitTime()

The timestamp in which the change was committed.

.google.protobuf.Timestamp commit_time = 1;

Returns
TypeDescription
Timestamp

The commitTime.

getCommitTimeOrBuilder()

public TimestampOrBuilder getCommitTimeOrBuilder()

The timestamp in which the change was committed.

.google.protobuf.Timestamp commit_time = 1;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public DataChangeRecord getDefaultInstanceForType()
Returns
TypeDescription
DataChangeRecord

getIsLastRecord()

public boolean getIsLastRecord()

Indicates whether this is the last record for a transaction in the current partition.

bool is_last_record = 4;

Returns
TypeDescription
boolean

The isLastRecord.

getIsSystemTransaction()

public boolean getIsSystemTransaction()

Whether the transaction is a system transactionn.

bool is_system_transaction = 13;

Returns
TypeDescription
boolean

The isSystemTransaction.

getModType()

public String getModType()

Describes the type of change. One of INSERT, UPDATE or DELETE.

string mod_type = 8;

Returns
TypeDescription
String

The modType.

getModTypeBytes()

public ByteString getModTypeBytes()

Describes the type of change. One of INSERT, UPDATE or DELETE.

string mod_type = 8;

Returns
TypeDescription
ByteString

The bytes for modType.

getMods(int index)

public DataChangeRecord.Mod getMods(int index)

Changes made in the transaction.

repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
DataChangeRecord.Mod

getModsCount()

public int getModsCount()

Changes made in the transaction.

repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;

Returns
TypeDescription
int

getModsList()

public List<DataChangeRecord.Mod> getModsList()

Changes made in the transaction.

repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;

Returns
TypeDescription
List<Mod>

getModsOrBuilder(int index)

public DataChangeRecord.ModOrBuilder getModsOrBuilder(int index)

Changes made in the transaction.

repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
DataChangeRecord.ModOrBuilder

getModsOrBuilderList()

public List<? extends DataChangeRecord.ModOrBuilder> getModsOrBuilderList()

Changes made in the transaction.

repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;

Returns
TypeDescription
List<? extends com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder>

getParserForType()

public Parser<DataChangeRecord> getParserForType()
Returns
TypeDescription
Parser<DataChangeRecord>
Overrides

getPartitionCount()

public long getPartitionCount()

Number of partitions in transactions.

int64 partition_count = 11;

Returns
TypeDescription
long

The partitionCount.

getRecordCount()

public long getRecordCount()

Number of records in transactions.

int64 record_count = 10;

Returns
TypeDescription
long

The recordCount.

getRecordSequence()

public String getRecordSequence()

The sequence number for the record within the transaction.

string record_sequence = 2;

Returns
TypeDescription
String

The recordSequence.

getRecordSequenceBytes()

public ByteString getRecordSequenceBytes()

The sequence number for the record within the transaction.

string record_sequence = 2;

Returns
TypeDescription
ByteString

The bytes for recordSequence.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTable()

public String getTable()

Name of the table affected by the change.

string table = 5;

Returns
TypeDescription
String

The table.

getTableBytes()

public ByteString getTableBytes()

Name of the table affected by the change.

string table = 5;

Returns
TypeDescription
ByteString

The bytes for table.

getTransactionId()

public String getTransactionId()

A globally unique string that represents the transaction in which the change was committed.

string transaction_id = 3;

Returns
TypeDescription
String

The transactionId.

getTransactionIdBytes()

public ByteString getTransactionIdBytes()

A globally unique string that represents the transaction in which the change was committed.

string transaction_id = 3;

Returns
TypeDescription
ByteString

The bytes for transactionId.

getTransactionTag()

public String getTransactionTag()

Transaction tag info.

string transaction_tag = 12;

Returns
TypeDescription
String

The transactionTag.

getTransactionTagBytes()

public ByteString getTransactionTagBytes()

Transaction tag info.

string transaction_tag = 12;

Returns
TypeDescription
ByteString

The bytes for transactionTag.

getValueCaptureType()

public String getValueCaptureType()

One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.

string value_capture_type = 9;

Returns
TypeDescription
String

The valueCaptureType.

getValueCaptureTypeBytes()

public ByteString getValueCaptureTypeBytes()

One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.

string value_capture_type = 9;

Returns
TypeDescription
ByteString

The bytes for valueCaptureType.

hasCommitTime()

public boolean hasCommitTime()

The timestamp in which the change was committed.

.google.protobuf.Timestamp commit_time = 1;

Returns
TypeDescription
boolean

Whether the commitTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DataChangeRecord.Builder newBuilderForType()
Returns
TypeDescription
DataChangeRecord.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DataChangeRecord.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DataChangeRecord.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DataChangeRecord.Builder toBuilder()
Returns
TypeDescription
DataChangeRecord.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException