Package com.google.spanner.v1
Class ChangeStreamRecord
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.v1.ChangeStreamRecord
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ChangeStreamRecordOrBuilder,Serializable
public final class ChangeStreamRecord
extends com.google.protobuf.GeneratedMessageV3
implements ChangeStreamRecordOrBuilder
Spanner Change Streams enable customers to capture and stream out changes to their Spanner databases in real-time. A change stream can be created with option partition_mode='IMMUTABLE_KEY_RANGE' or partition_mode='MUTABLE_KEY_RANGE'. This message is only used in Change Streams created with the option partition_mode='MUTABLE_KEY_RANGE'. Spanner automatically creates a special Table-Valued Function (TVF) along with each Change Streams. The function provides access to the change stream's records. The function is named READ_<change_stream_name> (where <change_stream_name> is the name of the change stream), and it returns a table with only one column called ChangeRecord.Protobuf type
google.spanner.v1.ChangeStreamRecord- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpanner Change Streams enable customers to capture and stream out changes to their Spanner databases in real-time.static final classA 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.static interfacestatic final classA heartbeat record is returned as a progress indicator, when there are no data changes or any other partition record types in the change stream partition.static interfacestatic final classA partition end record serves as a notification that the client should stop reading the partition.static interfacestatic final classA partition event record describes key range changes for a change stream partition.static interfacestatic final classA partition start record serves as a notification that the client should schedule the partitions to be queried.static interfacestatic enumNested 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 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 TypeMethodDescriptionbooleanData change record describing a data change for a change stream partition.Data change record describing a data change for a change stream partition.static ChangeStreamRecordstatic final com.google.protobuf.Descriptors.DescriptorHeartbeat record describing a heartbeat for a change stream partition.Heartbeat record describing a heartbeat for a change stream partition.com.google.protobuf.Parser<ChangeStreamRecord>Partition end record describing a terminated change stream partition.Partition end record describing a terminated change stream partition.Partition event record describing key range changes for a change stream partition.Partition event record describing key range changes for a change stream partition.Partition start record describing a new change stream partition.Partition start record describing a new change stream partition.intbooleanData change record describing a data change for a change stream partition.inthashCode()booleanHeartbeat record describing a heartbeat for a change stream partition.booleanPartition end record describing a terminated change stream partition.booleanPartition event record describing key range changes for a change stream partition.booleanPartition start record describing a new change stream partition.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic ChangeStreamRecord.Builderstatic ChangeStreamRecord.BuildernewBuilder(ChangeStreamRecord prototype) protected ChangeStreamRecord.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ChangeStreamRecordparseDelimitedFrom(InputStream input) static ChangeStreamRecordparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ChangeStreamRecordparseFrom(byte[] data) static ChangeStreamRecordparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ChangeStreamRecordparseFrom(com.google.protobuf.ByteString data) static ChangeStreamRecordparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ChangeStreamRecordparseFrom(com.google.protobuf.CodedInputStream input) static ChangeStreamRecordparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ChangeStreamRecordparseFrom(InputStream input) static ChangeStreamRecordparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ChangeStreamRecordparseFrom(ByteBuffer data) static ChangeStreamRecordparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ChangeStreamRecord>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
-
DATA_CHANGE_RECORD_FIELD_NUMBER
public static final int DATA_CHANGE_RECORD_FIELD_NUMBER- See Also:
-
HEARTBEAT_RECORD_FIELD_NUMBER
public static final int HEARTBEAT_RECORD_FIELD_NUMBER- See Also:
-
PARTITION_START_RECORD_FIELD_NUMBER
public static final int PARTITION_START_RECORD_FIELD_NUMBER- See Also:
-
PARTITION_END_RECORD_FIELD_NUMBER
public static final int PARTITION_END_RECORD_FIELD_NUMBER- See Also:
-
PARTITION_EVENT_RECORD_FIELD_NUMBER
public static final int PARTITION_EVENT_RECORD_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
-
getRecordCase
- Specified by:
getRecordCasein interfaceChangeStreamRecordOrBuilder
-
hasDataChangeRecord
public boolean hasDataChangeRecord()Data change record describing a data change for a change stream partition.
.google.spanner.v1.ChangeStreamRecord.DataChangeRecord data_change_record = 1;- Specified by:
hasDataChangeRecordin interfaceChangeStreamRecordOrBuilder- Returns:
- Whether the dataChangeRecord field is set.
-
getDataChangeRecord
Data change record describing a data change for a change stream partition.
.google.spanner.v1.ChangeStreamRecord.DataChangeRecord data_change_record = 1;- Specified by:
getDataChangeRecordin interfaceChangeStreamRecordOrBuilder- Returns:
- The dataChangeRecord.
-
getDataChangeRecordOrBuilder
Data change record describing a data change for a change stream partition.
.google.spanner.v1.ChangeStreamRecord.DataChangeRecord data_change_record = 1;- Specified by:
getDataChangeRecordOrBuilderin interfaceChangeStreamRecordOrBuilder
-
hasHeartbeatRecord
public boolean hasHeartbeatRecord()Heartbeat record describing a heartbeat for a change stream partition.
.google.spanner.v1.ChangeStreamRecord.HeartbeatRecord heartbeat_record = 2;- Specified by:
hasHeartbeatRecordin interfaceChangeStreamRecordOrBuilder- Returns:
- Whether the heartbeatRecord field is set.
-
getHeartbeatRecord
Heartbeat record describing a heartbeat for a change stream partition.
.google.spanner.v1.ChangeStreamRecord.HeartbeatRecord heartbeat_record = 2;- Specified by:
getHeartbeatRecordin interfaceChangeStreamRecordOrBuilder- Returns:
- The heartbeatRecord.
-
getHeartbeatRecordOrBuilder
Heartbeat record describing a heartbeat for a change stream partition.
.google.spanner.v1.ChangeStreamRecord.HeartbeatRecord heartbeat_record = 2;- Specified by:
getHeartbeatRecordOrBuilderin interfaceChangeStreamRecordOrBuilder
-
hasPartitionStartRecord
public boolean hasPartitionStartRecord()Partition start record describing a new change stream partition.
.google.spanner.v1.ChangeStreamRecord.PartitionStartRecord partition_start_record = 3;- Specified by:
hasPartitionStartRecordin interfaceChangeStreamRecordOrBuilder- Returns:
- Whether the partitionStartRecord field is set.
-
getPartitionStartRecord
Partition start record describing a new change stream partition.
.google.spanner.v1.ChangeStreamRecord.PartitionStartRecord partition_start_record = 3;- Specified by:
getPartitionStartRecordin interfaceChangeStreamRecordOrBuilder- Returns:
- The partitionStartRecord.
-
getPartitionStartRecordOrBuilder
Partition start record describing a new change stream partition.
.google.spanner.v1.ChangeStreamRecord.PartitionStartRecord partition_start_record = 3;- Specified by:
getPartitionStartRecordOrBuilderin interfaceChangeStreamRecordOrBuilder
-
hasPartitionEndRecord
public boolean hasPartitionEndRecord()Partition end record describing a terminated change stream partition.
.google.spanner.v1.ChangeStreamRecord.PartitionEndRecord partition_end_record = 4;- Specified by:
hasPartitionEndRecordin interfaceChangeStreamRecordOrBuilder- Returns:
- Whether the partitionEndRecord field is set.
-
getPartitionEndRecord
Partition end record describing a terminated change stream partition.
.google.spanner.v1.ChangeStreamRecord.PartitionEndRecord partition_end_record = 4;- Specified by:
getPartitionEndRecordin interfaceChangeStreamRecordOrBuilder- Returns:
- The partitionEndRecord.
-
getPartitionEndRecordOrBuilder
Partition end record describing a terminated change stream partition.
.google.spanner.v1.ChangeStreamRecord.PartitionEndRecord partition_end_record = 4;- Specified by:
getPartitionEndRecordOrBuilderin interfaceChangeStreamRecordOrBuilder
-
hasPartitionEventRecord
public boolean hasPartitionEventRecord()Partition event record describing key range changes for a change stream partition.
.google.spanner.v1.ChangeStreamRecord.PartitionEventRecord partition_event_record = 5;- Specified by:
hasPartitionEventRecordin interfaceChangeStreamRecordOrBuilder- Returns:
- Whether the partitionEventRecord field is set.
-
getPartitionEventRecord
Partition event record describing key range changes for a change stream partition.
.google.spanner.v1.ChangeStreamRecord.PartitionEventRecord partition_event_record = 5;- Specified by:
getPartitionEventRecordin interfaceChangeStreamRecordOrBuilder- Returns:
- The partitionEventRecord.
-
getPartitionEventRecordOrBuilder
Partition event record describing key range changes for a change stream partition.
.google.spanner.v1.ChangeStreamRecord.PartitionEventRecord partition_event_record = 5;- Specified by:
getPartitionEventRecordOrBuilderin interfaceChangeStreamRecordOrBuilder
-
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 ChangeStreamRecord parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ChangeStreamRecord parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ChangeStreamRecord parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ChangeStreamRecord parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ChangeStreamRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ChangeStreamRecord parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ChangeStreamRecord parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ChangeStreamRecord parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ChangeStreamRecord parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ChangeStreamRecord 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 ChangeStreamRecord.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
-