Package com.google.spanner.executor.v1
Class DataChangeRecord
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.executor.v1.DataChangeRecord
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DataChangeRecordOrBuilder,Serializable
public final class DataChangeRecord
extends com.google.protobuf.GeneratedMessageV3
implements DataChangeRecordOrBuilder
ChangeStream data change record.Protobuf type
google.spanner.executor.v1.DataChangeRecord- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classChangeStream data change record.static final classColumn types.static interfacestatic final classDescribes the changes that were made.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetColumnTypes(int index) Column types defined in the schema.intColumn types defined in the schema.Column types defined in the schema.getColumnTypesOrBuilder(int index) Column types defined in the schema.List<? extends DataChangeRecord.ColumnTypeOrBuilder>Column types defined in the schema.com.google.protobuf.TimestampThe timestamp in which the change was committed.com.google.protobuf.TimestampOrBuilderThe timestamp in which the change was committed.static DataChangeRecordstatic final com.google.protobuf.Descriptors.DescriptorbooleanIndicates whether this is the last record for a transaction in the current partition.booleanWhether the transaction is a system transactionn.getMods(int index) Changes made in the transaction.intChanges made in the transaction.Changes made in the transaction.getModsOrBuilder(int index) Changes made in the transaction.List<? extends DataChangeRecord.ModOrBuilder>Changes made in the transaction.Describes the type of change.com.google.protobuf.ByteStringDescribes the type of change.com.google.protobuf.Parser<DataChangeRecord>longNumber of partitions in transactions.longNumber of records in transactions.The sequence number for the record within the transaction.com.google.protobuf.ByteStringThe sequence number for the record within the transaction.intgetTable()Name of the table affected by the change.com.google.protobuf.ByteStringName of the table affected by the change.A globally unique string that represents the transaction in which the change was committed.com.google.protobuf.ByteStringA globally unique string that represents the transaction in which the change was committed.Transaction tag info.com.google.protobuf.ByteStringTransaction tag info.One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.com.google.protobuf.ByteStringOne of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.booleanThe timestamp in which the change was committed.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic DataChangeRecord.Builderstatic DataChangeRecord.BuildernewBuilder(DataChangeRecord prototype) protected DataChangeRecord.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static DataChangeRecordparseDelimitedFrom(InputStream input) static DataChangeRecordparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataChangeRecordparseFrom(byte[] data) static DataChangeRecordparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataChangeRecordparseFrom(com.google.protobuf.ByteString data) static DataChangeRecordparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataChangeRecordparseFrom(com.google.protobuf.CodedInputStream input) static DataChangeRecordparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataChangeRecordparseFrom(InputStream input) static DataChangeRecordparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataChangeRecordparseFrom(ByteBuffer data) static DataChangeRecordparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DataChangeRecord>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
COMMIT_TIME_FIELD_NUMBER
public static final int COMMIT_TIME_FIELD_NUMBER- See Also:
-
RECORD_SEQUENCE_FIELD_NUMBER
public static final int RECORD_SEQUENCE_FIELD_NUMBER- See Also:
-
TRANSACTION_ID_FIELD_NUMBER
public static final int TRANSACTION_ID_FIELD_NUMBER- See Also:
-
IS_LAST_RECORD_FIELD_NUMBER
public static final int IS_LAST_RECORD_FIELD_NUMBER- See Also:
-
TABLE_FIELD_NUMBER
public static final int TABLE_FIELD_NUMBER- See Also:
-
COLUMN_TYPES_FIELD_NUMBER
public static final int COLUMN_TYPES_FIELD_NUMBER- See Also:
-
MODS_FIELD_NUMBER
public static final int MODS_FIELD_NUMBER- See Also:
-
MOD_TYPE_FIELD_NUMBER
public static final int MOD_TYPE_FIELD_NUMBER- See Also:
-
VALUE_CAPTURE_TYPE_FIELD_NUMBER
public static final int VALUE_CAPTURE_TYPE_FIELD_NUMBER- See Also:
-
RECORD_COUNT_FIELD_NUMBER
public static final int RECORD_COUNT_FIELD_NUMBER- See Also:
-
PARTITION_COUNT_FIELD_NUMBER
public static final int PARTITION_COUNT_FIELD_NUMBER- See Also:
-
TRANSACTION_TAG_FIELD_NUMBER
public static final int TRANSACTION_TAG_FIELD_NUMBER- See Also:
-
IS_SYSTEM_TRANSACTION_FIELD_NUMBER
public static final int IS_SYSTEM_TRANSACTION_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
hasCommitTime
public boolean hasCommitTime()The timestamp in which the change was committed.
.google.protobuf.Timestamp commit_time = 1;- Specified by:
hasCommitTimein interfaceDataChangeRecordOrBuilder- Returns:
- Whether the commitTime field is set.
-
getCommitTime
public com.google.protobuf.Timestamp getCommitTime()The timestamp in which the change was committed.
.google.protobuf.Timestamp commit_time = 1;- Specified by:
getCommitTimein interfaceDataChangeRecordOrBuilder- Returns:
- The commitTime.
-
getCommitTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder()The timestamp in which the change was committed.
.google.protobuf.Timestamp commit_time = 1;- Specified by:
getCommitTimeOrBuilderin interfaceDataChangeRecordOrBuilder
-
getRecordSequence
The sequence number for the record within the transaction.
string record_sequence = 2;- Specified by:
getRecordSequencein interfaceDataChangeRecordOrBuilder- Returns:
- The recordSequence.
-
getRecordSequenceBytes
public com.google.protobuf.ByteString getRecordSequenceBytes()The sequence number for the record within the transaction.
string record_sequence = 2;- Specified by:
getRecordSequenceBytesin interfaceDataChangeRecordOrBuilder- Returns:
- The bytes for recordSequence.
-
getTransactionId
A globally unique string that represents the transaction in which the change was committed.
string transaction_id = 3;- Specified by:
getTransactionIdin interfaceDataChangeRecordOrBuilder- Returns:
- The transactionId.
-
getTransactionIdBytes
public com.google.protobuf.ByteString getTransactionIdBytes()A globally unique string that represents the transaction in which the change was committed.
string transaction_id = 3;- Specified by:
getTransactionIdBytesin interfaceDataChangeRecordOrBuilder- Returns:
- The bytes for transactionId.
-
getIsLastRecord
public boolean getIsLastRecord()Indicates whether this is the last record for a transaction in the current partition.
bool is_last_record = 4;- Specified by:
getIsLastRecordin interfaceDataChangeRecordOrBuilder- Returns:
- The isLastRecord.
-
getTable
Name of the table affected by the change.
string table = 5;- Specified by:
getTablein interfaceDataChangeRecordOrBuilder- Returns:
- The table.
-
getTableBytes
public com.google.protobuf.ByteString getTableBytes()Name of the table affected by the change.
string table = 5;- Specified by:
getTableBytesin interfaceDataChangeRecordOrBuilder- Returns:
- The bytes for table.
-
getColumnTypesList
Column types defined in the schema.
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;- Specified by:
getColumnTypesListin interfaceDataChangeRecordOrBuilder
-
getColumnTypesOrBuilderList
Column types defined in the schema.
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;- Specified by:
getColumnTypesOrBuilderListin interfaceDataChangeRecordOrBuilder
-
getColumnTypesCount
public int getColumnTypesCount()Column types defined in the schema.
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;- Specified by:
getColumnTypesCountin interfaceDataChangeRecordOrBuilder
-
getColumnTypes
Column types defined in the schema.
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;- Specified by:
getColumnTypesin interfaceDataChangeRecordOrBuilder
-
getColumnTypesOrBuilder
Column types defined in the schema.
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;- Specified by:
getColumnTypesOrBuilderin interfaceDataChangeRecordOrBuilder
-
getModsList
Changes made in the transaction.
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;- Specified by:
getModsListin interfaceDataChangeRecordOrBuilder
-
getModsOrBuilderList
Changes made in the transaction.
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;- Specified by:
getModsOrBuilderListin interfaceDataChangeRecordOrBuilder
-
getModsCount
public int getModsCount()Changes made in the transaction.
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;- Specified by:
getModsCountin interfaceDataChangeRecordOrBuilder
-
getMods
Changes made in the transaction.
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;- Specified by:
getModsin interfaceDataChangeRecordOrBuilder
-
getModsOrBuilder
Changes made in the transaction.
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;- Specified by:
getModsOrBuilderin interfaceDataChangeRecordOrBuilder
-
getModType
Describes the type of change. One of INSERT, UPDATE or DELETE.
string mod_type = 8;- Specified by:
getModTypein interfaceDataChangeRecordOrBuilder- Returns:
- The modType.
-
getModTypeBytes
public com.google.protobuf.ByteString getModTypeBytes()Describes the type of change. One of INSERT, UPDATE or DELETE.
string mod_type = 8;- Specified by:
getModTypeBytesin interfaceDataChangeRecordOrBuilder- Returns:
- The bytes for modType.
-
getValueCaptureType
One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.
string value_capture_type = 9;- Specified by:
getValueCaptureTypein interfaceDataChangeRecordOrBuilder- Returns:
- The valueCaptureType.
-
getValueCaptureTypeBytes
public com.google.protobuf.ByteString getValueCaptureTypeBytes()One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.
string value_capture_type = 9;- Specified by:
getValueCaptureTypeBytesin interfaceDataChangeRecordOrBuilder- Returns:
- The bytes for valueCaptureType.
-
getRecordCount
public long getRecordCount()Number of records in transactions.
int64 record_count = 10;- Specified by:
getRecordCountin interfaceDataChangeRecordOrBuilder- Returns:
- The recordCount.
-
getPartitionCount
public long getPartitionCount()Number of partitions in transactions.
int64 partition_count = 11;- Specified by:
getPartitionCountin interfaceDataChangeRecordOrBuilder- Returns:
- The partitionCount.
-
getTransactionTag
Transaction tag info.
string transaction_tag = 12;- Specified by:
getTransactionTagin interfaceDataChangeRecordOrBuilder- Returns:
- The transactionTag.
-
getTransactionTagBytes
public com.google.protobuf.ByteString getTransactionTagBytes()Transaction tag info.
string transaction_tag = 12;- Specified by:
getTransactionTagBytesin interfaceDataChangeRecordOrBuilder- Returns:
- The bytes for transactionTag.
-
getIsSystemTransaction
public boolean getIsSystemTransaction()Whether the transaction is a system transactionn.
bool is_system_transaction = 13;- Specified by:
getIsSystemTransactionin interfaceDataChangeRecordOrBuilder- Returns:
- The isSystemTransaction.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DataChangeRecord parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataChangeRecord parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataChangeRecord parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataChangeRecord parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataChangeRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataChangeRecord parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DataChangeRecord parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static DataChangeRecord parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DataChangeRecord parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DataChangeRecord parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DataChangeRecord.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-