Package com.google.spanner.v1
Class ChangeStreamRecord.DataChangeRecord.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.DataChangeRecord.Builder>
com.google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ChangeStreamRecord.DataChangeRecordOrBuilder,Cloneable
- Enclosing class:
- ChangeStreamRecord.DataChangeRecord
public static final class ChangeStreamRecord.DataChangeRecord.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.DataChangeRecord.Builder>
implements ChangeStreamRecord.DataChangeRecordOrBuilder
A data change record contains a set of changes to a table with the same modification type (insert, update, or delete) committed at the same commit timestamp in one change stream partition for the same transaction. Multiple data change records can be returned for the same transaction across multiple change stream partitions.Protobuf type
google.spanner.v1.ChangeStreamRecord.DataChangeRecord-
Method Summary
Modifier and TypeMethodDescriptionaddAllColumnMetadata(Iterable<? extends ChangeStreamRecord.DataChangeRecord.ColumnMetadata> values) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.addAllMods(Iterable<? extends ChangeStreamRecord.DataChangeRecord.Mod> values) Describes the changes that were made.addColumnMetadata(int index, ChangeStreamRecord.DataChangeRecord.ColumnMetadata value) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.addColumnMetadata(int index, ChangeStreamRecord.DataChangeRecord.ColumnMetadata.Builder builderForValue) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.addColumnMetadataBuilder(int index) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.addMods(int index, ChangeStreamRecord.DataChangeRecord.Mod value) Describes the changes that were made.addMods(int index, ChangeStreamRecord.DataChangeRecord.Mod.Builder builderForValue) Describes the changes that were made.Describes the changes that were made.addMods(ChangeStreamRecord.DataChangeRecord.Mod.Builder builderForValue) Describes the changes that were made.Describes the changes that were made.addModsBuilder(int index) Describes the changes that were made.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.Indicates the timestamp in which the change was committed.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Indicates whether this is the last record for a transaction in the current partition.Indicates whether the transaction is a system transaction.Describes the changes that were made.Describes the type of change.Indicates the number of partitions that return data change records for this transaction.Indicates the number of data change records that are part of this transaction across all change stream partitions.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Record sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition.Provides a globally unique string that represents the transaction in which the change was committed.Name of the table affected by the change.Indicates the transaction tag associated with this transaction.Describes the value capture type that was specified in the change stream configuration when this change was captured.clone()getColumnMetadata(int index) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.getColumnMetadataBuilder(int index) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.intProvides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.getColumnMetadataOrBuilder(int index) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.com.google.protobuf.TimestampIndicates the timestamp in which the change was committed.com.google.protobuf.Timestamp.BuilderIndicates the timestamp in which the change was committed.com.google.protobuf.TimestampOrBuilderIndicates the timestamp in which the change was committed.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIndicates whether this is the last record for a transaction in the current partition.booleanIndicates whether the transaction is a system transaction.getMods(int index) Describes the changes that were made.getModsBuilder(int index) Describes the changes that were made.Describes the changes that were made.intDescribes the changes that were made.Describes the changes that were made.getModsOrBuilder(int index) Describes the changes that were made.Describes the changes that were made.Describes the type of change.intDescribes the type of change.intIndicates the number of partitions that return data change records for this transaction.intIndicates the number of data change records that are part of this transaction across all change stream partitions.Record sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition.com.google.protobuf.ByteStringRecord sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition.Provides a globally unique string that represents the transaction in which the change was committed.com.google.protobuf.ByteStringProvides a globally unique string that represents the transaction in which the change was committed.getTable()Name of the table affected by the change.com.google.protobuf.ByteStringName of the table affected by the change.Indicates the transaction tag associated with this transaction.com.google.protobuf.ByteStringIndicates the transaction tag associated with this transaction.Describes the value capture type that was specified in the change stream configuration when this change was captured.intDescribes the value capture type that was specified in the change stream configuration when this change was captured.booleanIndicates the timestamp in which the change was committed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCommitTimestamp(com.google.protobuf.Timestamp value) Indicates the timestamp in which the change was committed.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeColumnMetadata(int index) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.removeMods(int index) Describes the changes that were made.setColumnMetadata(int index, ChangeStreamRecord.DataChangeRecord.ColumnMetadata value) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.setColumnMetadata(int index, ChangeStreamRecord.DataChangeRecord.ColumnMetadata.Builder builderForValue) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.setCommitTimestamp(com.google.protobuf.Timestamp value) Indicates the timestamp in which the change was committed.setCommitTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) Indicates the timestamp in which the change was committed.setIsLastRecordInTransactionInPartition(boolean value) Indicates whether this is the last record for a transaction in the current partition.setIsSystemTransaction(boolean value) Indicates whether the transaction is a system transaction.setMods(int index, ChangeStreamRecord.DataChangeRecord.Mod value) Describes the changes that were made.setMods(int index, ChangeStreamRecord.DataChangeRecord.Mod.Builder builderForValue) Describes the changes that were made.Describes the type of change.setModTypeValue(int value) Describes the type of change.setNumberOfPartitionsInTransaction(int value) Indicates the number of partitions that return data change records for this transaction.setNumberOfRecordsInTransaction(int value) Indicates the number of data change records that are part of this transaction across all change stream partitions.setRecordSequence(String value) Record sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition.setRecordSequenceBytes(com.google.protobuf.ByteString value) Record sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setServerTransactionId(String value) Provides a globally unique string that represents the transaction in which the change was committed.setServerTransactionIdBytes(com.google.protobuf.ByteString value) Provides a globally unique string that represents the transaction in which the change was committed.Name of the table affected by the change.setTableBytes(com.google.protobuf.ByteString value) Name of the table affected by the change.setTransactionTag(String value) Indicates the transaction tag associated with this transaction.setTransactionTagBytes(com.google.protobuf.ByteString value) Indicates the transaction tag associated with this transaction.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Describes the value capture type that was specified in the change stream configuration when this change was captured.setValueCaptureTypeValue(int value) Describes the value capture type that was specified in the change stream configuration when this change was captured.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.DataChangeRecord.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.DataChangeRecord.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.DataChangeRecord.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.DataChangeRecord.Builder>
-
setField
public ChangeStreamRecord.DataChangeRecord.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.DataChangeRecord.Builder>
-
clearField
public ChangeStreamRecord.DataChangeRecord.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.DataChangeRecord.Builder>
-
clearOneof
public ChangeStreamRecord.DataChangeRecord.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.DataChangeRecord.Builder>
-
setRepeatedField
public ChangeStreamRecord.DataChangeRecord.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.DataChangeRecord.Builder>
-
addRepeatedField
public ChangeStreamRecord.DataChangeRecord.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.DataChangeRecord.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ChangeStreamRecord.DataChangeRecord.Builder>
-
mergeFrom
public ChangeStreamRecord.DataChangeRecord.Builder mergeFrom(ChangeStreamRecord.DataChangeRecord other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.DataChangeRecord.Builder>
-
mergeFrom
public ChangeStreamRecord.DataChangeRecord.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ChangeStreamRecord.DataChangeRecord.Builder>- Throws:
IOException
-
hasCommitTimestamp
public boolean hasCommitTimestamp()Indicates the timestamp in which the change was committed. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same partition.
.google.protobuf.Timestamp commit_timestamp = 1;- Specified by:
hasCommitTimestampin interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- Whether the commitTimestamp field is set.
-
getCommitTimestamp
public com.google.protobuf.Timestamp getCommitTimestamp()Indicates the timestamp in which the change was committed. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same partition.
.google.protobuf.Timestamp commit_timestamp = 1;- Specified by:
getCommitTimestampin interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The commitTimestamp.
-
setCommitTimestamp
public ChangeStreamRecord.DataChangeRecord.Builder setCommitTimestamp(com.google.protobuf.Timestamp value) Indicates the timestamp in which the change was committed. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same partition.
.google.protobuf.Timestamp commit_timestamp = 1; -
setCommitTimestamp
public ChangeStreamRecord.DataChangeRecord.Builder setCommitTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) Indicates the timestamp in which the change was committed. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same partition.
.google.protobuf.Timestamp commit_timestamp = 1; -
mergeCommitTimestamp
public ChangeStreamRecord.DataChangeRecord.Builder mergeCommitTimestamp(com.google.protobuf.Timestamp value) Indicates the timestamp in which the change was committed. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same partition.
.google.protobuf.Timestamp commit_timestamp = 1; -
clearCommitTimestamp
Indicates the timestamp in which the change was committed. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same partition.
.google.protobuf.Timestamp commit_timestamp = 1; -
getCommitTimestampBuilder
public com.google.protobuf.Timestamp.Builder getCommitTimestampBuilder()Indicates the timestamp in which the change was committed. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same partition.
.google.protobuf.Timestamp commit_timestamp = 1; -
getCommitTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getCommitTimestampOrBuilder()Indicates the timestamp in which the change was committed. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same partition.
.google.protobuf.Timestamp commit_timestamp = 1;- Specified by:
getCommitTimestampOrBuilderin interfaceChangeStreamRecord.DataChangeRecordOrBuilder
-
getRecordSequence
Record sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition. To guarantee ordered processing, the reader should process records (of potentially different types) in record_sequence order for a specific timestamp in the same partition. The record sequence number ordering across partitions is only meaningful in the context of a specific transaction. Record sequence numbers are unique across partitions for a specific transaction. Sort the DataChangeRecords for the same [server_transaction_id][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.server_transaction_id] by [record_sequence][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.record_sequence] to reconstruct the ordering of the changes within the transaction.
string record_sequence = 2;- Specified by:
getRecordSequencein interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The recordSequence.
-
getRecordSequenceBytes
public com.google.protobuf.ByteString getRecordSequenceBytes()Record sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition. To guarantee ordered processing, the reader should process records (of potentially different types) in record_sequence order for a specific timestamp in the same partition. The record sequence number ordering across partitions is only meaningful in the context of a specific transaction. Record sequence numbers are unique across partitions for a specific transaction. Sort the DataChangeRecords for the same [server_transaction_id][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.server_transaction_id] by [record_sequence][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.record_sequence] to reconstruct the ordering of the changes within the transaction.
string record_sequence = 2;- Specified by:
getRecordSequenceBytesin interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The bytes for recordSequence.
-
setRecordSequence
Record sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition. To guarantee ordered processing, the reader should process records (of potentially different types) in record_sequence order for a specific timestamp in the same partition. The record sequence number ordering across partitions is only meaningful in the context of a specific transaction. Record sequence numbers are unique across partitions for a specific transaction. Sort the DataChangeRecords for the same [server_transaction_id][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.server_transaction_id] by [record_sequence][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.record_sequence] to reconstruct the ordering of the changes within the transaction.
string record_sequence = 2;- Parameters:
value- The recordSequence to set.- Returns:
- This builder for chaining.
-
clearRecordSequence
Record sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition. To guarantee ordered processing, the reader should process records (of potentially different types) in record_sequence order for a specific timestamp in the same partition. The record sequence number ordering across partitions is only meaningful in the context of a specific transaction. Record sequence numbers are unique across partitions for a specific transaction. Sort the DataChangeRecords for the same [server_transaction_id][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.server_transaction_id] by [record_sequence][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.record_sequence] to reconstruct the ordering of the changes within the transaction.
string record_sequence = 2;- Returns:
- This builder for chaining.
-
setRecordSequenceBytes
public ChangeStreamRecord.DataChangeRecord.Builder setRecordSequenceBytes(com.google.protobuf.ByteString value) Record sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition. To guarantee ordered processing, the reader should process records (of potentially different types) in record_sequence order for a specific timestamp in the same partition. The record sequence number ordering across partitions is only meaningful in the context of a specific transaction. Record sequence numbers are unique across partitions for a specific transaction. Sort the DataChangeRecords for the same [server_transaction_id][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.server_transaction_id] by [record_sequence][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.record_sequence] to reconstruct the ordering of the changes within the transaction.
string record_sequence = 2;- Parameters:
value- The bytes for recordSequence to set.- Returns:
- This builder for chaining.
-
getServerTransactionId
Provides a globally unique string that represents the transaction in which the change was committed. Multiple transactions can have the same commit timestamp, but each transaction has a unique server_transaction_id.
string server_transaction_id = 3;- Specified by:
getServerTransactionIdin interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The serverTransactionId.
-
getServerTransactionIdBytes
public com.google.protobuf.ByteString getServerTransactionIdBytes()Provides a globally unique string that represents the transaction in which the change was committed. Multiple transactions can have the same commit timestamp, but each transaction has a unique server_transaction_id.
string server_transaction_id = 3;- Specified by:
getServerTransactionIdBytesin interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The bytes for serverTransactionId.
-
setServerTransactionId
Provides a globally unique string that represents the transaction in which the change was committed. Multiple transactions can have the same commit timestamp, but each transaction has a unique server_transaction_id.
string server_transaction_id = 3;- Parameters:
value- The serverTransactionId to set.- Returns:
- This builder for chaining.
-
clearServerTransactionId
Provides a globally unique string that represents the transaction in which the change was committed. Multiple transactions can have the same commit timestamp, but each transaction has a unique server_transaction_id.
string server_transaction_id = 3;- Returns:
- This builder for chaining.
-
setServerTransactionIdBytes
public ChangeStreamRecord.DataChangeRecord.Builder setServerTransactionIdBytes(com.google.protobuf.ByteString value) Provides a globally unique string that represents the transaction in which the change was committed. Multiple transactions can have the same commit timestamp, but each transaction has a unique server_transaction_id.
string server_transaction_id = 3;- Parameters:
value- The bytes for serverTransactionId to set.- Returns:
- This builder for chaining.
-
getIsLastRecordInTransactionInPartition
public boolean getIsLastRecordInTransactionInPartition()Indicates whether this is the last record for a transaction in the current partition. Clients can use this field to determine when all records for a transaction in the current partition have been received.
bool is_last_record_in_transaction_in_partition = 4;- Specified by:
getIsLastRecordInTransactionInPartitionin interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The isLastRecordInTransactionInPartition.
-
setIsLastRecordInTransactionInPartition
public ChangeStreamRecord.DataChangeRecord.Builder setIsLastRecordInTransactionInPartition(boolean value) Indicates whether this is the last record for a transaction in the current partition. Clients can use this field to determine when all records for a transaction in the current partition have been received.
bool is_last_record_in_transaction_in_partition = 4;- Parameters:
value- The isLastRecordInTransactionInPartition to set.- Returns:
- This builder for chaining.
-
clearIsLastRecordInTransactionInPartition
Indicates whether this is the last record for a transaction in the current partition. Clients can use this field to determine when all records for a transaction in the current partition have been received.
bool is_last_record_in_transaction_in_partition = 4;- Returns:
- This builder for chaining.
-
getTable
Name of the table affected by the change.
string table = 5;- Specified by:
getTablein interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The table.
-
getTableBytes
public com.google.protobuf.ByteString getTableBytes()Name of the table affected by the change.
string table = 5;- Specified by:
getTableBytesin interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The bytes for table.
-
setTable
Name of the table affected by the change.
string table = 5;- Parameters:
value- The table to set.- Returns:
- This builder for chaining.
-
clearTable
Name of the table affected by the change.
string table = 5;- Returns:
- This builder for chaining.
-
setTableBytes
public ChangeStreamRecord.DataChangeRecord.Builder setTableBytes(com.google.protobuf.ByteString value) Name of the table affected by the change.
string table = 5;- Parameters:
value- The bytes for table to set.- Returns:
- This builder for chaining.
-
getColumnMetadataList
Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6;- Specified by:
getColumnMetadataListin interfaceChangeStreamRecord.DataChangeRecordOrBuilder
-
getColumnMetadataCount
public int getColumnMetadataCount()Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6;- Specified by:
getColumnMetadataCountin interfaceChangeStreamRecord.DataChangeRecordOrBuilder
-
getColumnMetadata
Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6;- Specified by:
getColumnMetadatain interfaceChangeStreamRecord.DataChangeRecordOrBuilder
-
setColumnMetadata
public ChangeStreamRecord.DataChangeRecord.Builder setColumnMetadata(int index, ChangeStreamRecord.DataChangeRecord.ColumnMetadata value) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6; -
setColumnMetadata
public ChangeStreamRecord.DataChangeRecord.Builder setColumnMetadata(int index, ChangeStreamRecord.DataChangeRecord.ColumnMetadata.Builder builderForValue) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6; -
addColumnMetadata
public ChangeStreamRecord.DataChangeRecord.Builder addColumnMetadata(ChangeStreamRecord.DataChangeRecord.ColumnMetadata value) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6; -
addColumnMetadata
public ChangeStreamRecord.DataChangeRecord.Builder addColumnMetadata(int index, ChangeStreamRecord.DataChangeRecord.ColumnMetadata value) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6; -
addColumnMetadata
public ChangeStreamRecord.DataChangeRecord.Builder addColumnMetadata(ChangeStreamRecord.DataChangeRecord.ColumnMetadata.Builder builderForValue) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6; -
addColumnMetadata
public ChangeStreamRecord.DataChangeRecord.Builder addColumnMetadata(int index, ChangeStreamRecord.DataChangeRecord.ColumnMetadata.Builder builderForValue) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6; -
addAllColumnMetadata
public ChangeStreamRecord.DataChangeRecord.Builder addAllColumnMetadata(Iterable<? extends ChangeStreamRecord.DataChangeRecord.ColumnMetadata> values) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6; -
clearColumnMetadata
Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6; -
removeColumnMetadata
Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6; -
getColumnMetadataBuilder
public ChangeStreamRecord.DataChangeRecord.ColumnMetadata.Builder getColumnMetadataBuilder(int index) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6; -
getColumnMetadataOrBuilder
public ChangeStreamRecord.DataChangeRecord.ColumnMetadataOrBuilder getColumnMetadataOrBuilder(int index) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6;- Specified by:
getColumnMetadataOrBuilderin interfaceChangeStreamRecord.DataChangeRecordOrBuilder
-
getColumnMetadataOrBuilderList
public List<? extends ChangeStreamRecord.DataChangeRecord.ColumnMetadataOrBuilder> getColumnMetadataOrBuilderList()Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6;- Specified by:
getColumnMetadataOrBuilderListin interfaceChangeStreamRecord.DataChangeRecordOrBuilder
-
addColumnMetadataBuilder
Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6; -
addColumnMetadataBuilder
public ChangeStreamRecord.DataChangeRecord.ColumnMetadata.Builder addColumnMetadataBuilder(int index) Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6; -
getColumnMetadataBuilderList
public List<ChangeStreamRecord.DataChangeRecord.ColumnMetadata.Builder> getColumnMetadataBuilderList()Provides metadata describing the columns associated with the [mods][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.mods] listed below.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata column_metadata = 6; -
getModsList
Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7;- Specified by:
getModsListin interfaceChangeStreamRecord.DataChangeRecordOrBuilder
-
getModsCount
public int getModsCount()Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7;- Specified by:
getModsCountin interfaceChangeStreamRecord.DataChangeRecordOrBuilder
-
getMods
Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7;- Specified by:
getModsin interfaceChangeStreamRecord.DataChangeRecordOrBuilder
-
setMods
public ChangeStreamRecord.DataChangeRecord.Builder setMods(int index, ChangeStreamRecord.DataChangeRecord.Mod value) Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7; -
setMods
public ChangeStreamRecord.DataChangeRecord.Builder setMods(int index, ChangeStreamRecord.DataChangeRecord.Mod.Builder builderForValue) Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7; -
addMods
public ChangeStreamRecord.DataChangeRecord.Builder addMods(ChangeStreamRecord.DataChangeRecord.Mod value) Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7; -
addMods
public ChangeStreamRecord.DataChangeRecord.Builder addMods(int index, ChangeStreamRecord.DataChangeRecord.Mod value) Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7; -
addMods
public ChangeStreamRecord.DataChangeRecord.Builder addMods(ChangeStreamRecord.DataChangeRecord.Mod.Builder builderForValue) Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7; -
addMods
public ChangeStreamRecord.DataChangeRecord.Builder addMods(int index, ChangeStreamRecord.DataChangeRecord.Mod.Builder builderForValue) Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7; -
addAllMods
public ChangeStreamRecord.DataChangeRecord.Builder addAllMods(Iterable<? extends ChangeStreamRecord.DataChangeRecord.Mod> values) Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7; -
clearMods
Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7; -
removeMods
Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7; -
getModsBuilder
Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7; -
getModsOrBuilder
Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7;- Specified by:
getModsOrBuilderin interfaceChangeStreamRecord.DataChangeRecordOrBuilder
-
getModsOrBuilderList
Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7;- Specified by:
getModsOrBuilderListin interfaceChangeStreamRecord.DataChangeRecordOrBuilder
-
addModsBuilder
Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7; -
addModsBuilder
Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7; -
getModsBuilderList
Describes the changes that were made.
repeated .google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod mods = 7; -
getModTypeValue
public int getModTypeValue()Describes the type of change.
.google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModType mod_type = 8;- Specified by:
getModTypeValuein interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The enum numeric value on the wire for modType.
-
setModTypeValue
Describes the type of change.
.google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModType mod_type = 8;- Parameters:
value- The enum numeric value on the wire for modType to set.- Returns:
- This builder for chaining.
-
getModType
Describes the type of change.
.google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModType mod_type = 8;- Specified by:
getModTypein interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The modType.
-
setModType
public ChangeStreamRecord.DataChangeRecord.Builder setModType(ChangeStreamRecord.DataChangeRecord.ModType value) Describes the type of change.
.google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModType mod_type = 8;- Parameters:
value- The modType to set.- Returns:
- This builder for chaining.
-
clearModType
Describes the type of change.
.google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModType mod_type = 8;- Returns:
- This builder for chaining.
-
getValueCaptureTypeValue
public int getValueCaptureTypeValue()Describes the value capture type that was specified in the change stream configuration when this change was captured.
.google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ValueCaptureType value_capture_type = 9;- Specified by:
getValueCaptureTypeValuein interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The enum numeric value on the wire for valueCaptureType.
-
setValueCaptureTypeValue
Describes the value capture type that was specified in the change stream configuration when this change was captured.
.google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ValueCaptureType value_capture_type = 9;- Parameters:
value- The enum numeric value on the wire for valueCaptureType to set.- Returns:
- This builder for chaining.
-
getValueCaptureType
Describes the value capture type that was specified in the change stream configuration when this change was captured.
.google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ValueCaptureType value_capture_type = 9;- Specified by:
getValueCaptureTypein interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The valueCaptureType.
-
setValueCaptureType
public ChangeStreamRecord.DataChangeRecord.Builder setValueCaptureType(ChangeStreamRecord.DataChangeRecord.ValueCaptureType value) Describes the value capture type that was specified in the change stream configuration when this change was captured.
.google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ValueCaptureType value_capture_type = 9;- Parameters:
value- The valueCaptureType to set.- Returns:
- This builder for chaining.
-
clearValueCaptureType
Describes the value capture type that was specified in the change stream configuration when this change was captured.
.google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ValueCaptureType value_capture_type = 9;- Returns:
- This builder for chaining.
-
getNumberOfRecordsInTransaction
public int getNumberOfRecordsInTransaction()Indicates the number of data change records that are part of this transaction across all change stream partitions. This value can be used to assemble all the records associated with a particular transaction.
int32 number_of_records_in_transaction = 10;- Specified by:
getNumberOfRecordsInTransactionin interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The numberOfRecordsInTransaction.
-
setNumberOfRecordsInTransaction
Indicates the number of data change records that are part of this transaction across all change stream partitions. This value can be used to assemble all the records associated with a particular transaction.
int32 number_of_records_in_transaction = 10;- Parameters:
value- The numberOfRecordsInTransaction to set.- Returns:
- This builder for chaining.
-
clearNumberOfRecordsInTransaction
Indicates the number of data change records that are part of this transaction across all change stream partitions. This value can be used to assemble all the records associated with a particular transaction.
int32 number_of_records_in_transaction = 10;- Returns:
- This builder for chaining.
-
getNumberOfPartitionsInTransaction
public int getNumberOfPartitionsInTransaction()Indicates the number of partitions that return data change records for this transaction. This value can be helpful in assembling all records associated with a particular transaction.
int32 number_of_partitions_in_transaction = 11;- Specified by:
getNumberOfPartitionsInTransactionin interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The numberOfPartitionsInTransaction.
-
setNumberOfPartitionsInTransaction
Indicates the number of partitions that return data change records for this transaction. This value can be helpful in assembling all records associated with a particular transaction.
int32 number_of_partitions_in_transaction = 11;- Parameters:
value- The numberOfPartitionsInTransaction to set.- Returns:
- This builder for chaining.
-
clearNumberOfPartitionsInTransaction
Indicates the number of partitions that return data change records for this transaction. This value can be helpful in assembling all records associated with a particular transaction.
int32 number_of_partitions_in_transaction = 11;- Returns:
- This builder for chaining.
-
getTransactionTag
Indicates the transaction tag associated with this transaction.
string transaction_tag = 12;- Specified by:
getTransactionTagin interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The transactionTag.
-
getTransactionTagBytes
public com.google.protobuf.ByteString getTransactionTagBytes()Indicates the transaction tag associated with this transaction.
string transaction_tag = 12;- Specified by:
getTransactionTagBytesin interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The bytes for transactionTag.
-
setTransactionTag
Indicates the transaction tag associated with this transaction.
string transaction_tag = 12;- Parameters:
value- The transactionTag to set.- Returns:
- This builder for chaining.
-
clearTransactionTag
Indicates the transaction tag associated with this transaction.
string transaction_tag = 12;- Returns:
- This builder for chaining.
-
setTransactionTagBytes
public ChangeStreamRecord.DataChangeRecord.Builder setTransactionTagBytes(com.google.protobuf.ByteString value) Indicates the transaction tag associated with this transaction.
string transaction_tag = 12;- Parameters:
value- The bytes for transactionTag to set.- Returns:
- This builder for chaining.
-
getIsSystemTransaction
public boolean getIsSystemTransaction()Indicates whether the transaction is a system transaction. System transactions include those issued by time-to-live (TTL), column backfill, etc.
bool is_system_transaction = 13;- Specified by:
getIsSystemTransactionin interfaceChangeStreamRecord.DataChangeRecordOrBuilder- Returns:
- The isSystemTransaction.
-
setIsSystemTransaction
Indicates whether the transaction is a system transaction. System transactions include those issued by time-to-live (TTL), column backfill, etc.
bool is_system_transaction = 13;- Parameters:
value- The isSystemTransaction to set.- Returns:
- This builder for chaining.
-
clearIsSystemTransaction
Indicates whether the transaction is a system transaction. System transactions include those issued by time-to-live (TTL), column backfill, etc.
bool is_system_transaction = 13;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ChangeStreamRecord.DataChangeRecord.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.DataChangeRecord.Builder>
-
mergeUnknownFields
public final ChangeStreamRecord.DataChangeRecord.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.DataChangeRecord.Builder>
-