public final class ChangeStreamRecord extends GeneratedMessage 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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
DATA_CHANGE_RECORD_FIELD_NUMBER
public static final int DATA_CHANGE_RECORD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
HEARTBEAT_RECORD_FIELD_NUMBER
public static final int HEARTBEAT_RECORD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PARTITION_END_RECORD_FIELD_NUMBER
public static final int PARTITION_END_RECORD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PARTITION_EVENT_RECORD_FIELD_NUMBER
public static final int PARTITION_EVENT_RECORD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PARTITION_START_RECORD_FIELD_NUMBER
public static final int PARTITION_START_RECORD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ChangeStreamRecord getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ChangeStreamRecord.Builder newBuilder()
newBuilder(ChangeStreamRecord prototype)
public static ChangeStreamRecord.Builder newBuilder(ChangeStreamRecord prototype)
public static ChangeStreamRecord parseDelimitedFrom(InputStream input)
public static ChangeStreamRecord parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ChangeStreamRecord parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ChangeStreamRecord parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ChangeStreamRecord parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ChangeStreamRecord parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ChangeStreamRecord parseFrom(CodedInputStream input)
public static ChangeStreamRecord parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ChangeStreamRecord parseFrom(InputStream input)
public static ChangeStreamRecord parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ChangeStreamRecord parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ChangeStreamRecord parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ChangeStreamRecord> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDataChangeRecord()
public ChangeStreamRecord.DataChangeRecord getDataChangeRecord()
Data change record describing a data change for a change stream
partition.
.google.spanner.v1.ChangeStreamRecord.DataChangeRecord data_change_record = 1;
getDataChangeRecordOrBuilder()
public ChangeStreamRecord.DataChangeRecordOrBuilder getDataChangeRecordOrBuilder()
Data change record describing a data change for a change stream
partition.
.google.spanner.v1.ChangeStreamRecord.DataChangeRecord data_change_record = 1;
getDefaultInstanceForType()
public ChangeStreamRecord getDefaultInstanceForType()
getHeartbeatRecord()
public ChangeStreamRecord.HeartbeatRecord getHeartbeatRecord()
Heartbeat record describing a heartbeat for a change stream partition.
.google.spanner.v1.ChangeStreamRecord.HeartbeatRecord heartbeat_record = 2;
getHeartbeatRecordOrBuilder()
public ChangeStreamRecord.HeartbeatRecordOrBuilder getHeartbeatRecordOrBuilder()
Heartbeat record describing a heartbeat for a change stream partition.
.google.spanner.v1.ChangeStreamRecord.HeartbeatRecord heartbeat_record = 2;
getParserForType()
public Parser<ChangeStreamRecord> getParserForType()
Overrides
getPartitionEndRecord()
public ChangeStreamRecord.PartitionEndRecord getPartitionEndRecord()
Partition end record describing a terminated change stream partition.
.google.spanner.v1.ChangeStreamRecord.PartitionEndRecord partition_end_record = 4;
getPartitionEndRecordOrBuilder()
public ChangeStreamRecord.PartitionEndRecordOrBuilder getPartitionEndRecordOrBuilder()
Partition end record describing a terminated change stream partition.
.google.spanner.v1.ChangeStreamRecord.PartitionEndRecord partition_end_record = 4;
getPartitionEventRecord()
public ChangeStreamRecord.PartitionEventRecord getPartitionEventRecord()
Partition event record describing key range changes for a change stream
partition.
.google.spanner.v1.ChangeStreamRecord.PartitionEventRecord partition_event_record = 5;
getPartitionEventRecordOrBuilder()
public ChangeStreamRecord.PartitionEventRecordOrBuilder getPartitionEventRecordOrBuilder()
Partition event record describing key range changes for a change stream
partition.
.google.spanner.v1.ChangeStreamRecord.PartitionEventRecord partition_event_record = 5;
getPartitionStartRecord()
public ChangeStreamRecord.PartitionStartRecord getPartitionStartRecord()
Partition start record describing a new change stream partition.
.google.spanner.v1.ChangeStreamRecord.PartitionStartRecord partition_start_record = 3;
getPartitionStartRecordOrBuilder()
public ChangeStreamRecord.PartitionStartRecordOrBuilder getPartitionStartRecordOrBuilder()
Partition start record describing a new change stream partition.
.google.spanner.v1.ChangeStreamRecord.PartitionStartRecord partition_start_record = 3;
getRecordCase()
public ChangeStreamRecord.RecordCase getRecordCase()
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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;
| Returns |
| Type |
Description |
boolean |
Whether the dataChangeRecord field is set.
|
hasHeartbeatRecord()
public boolean hasHeartbeatRecord()
Heartbeat record describing a heartbeat for a change stream partition.
.google.spanner.v1.ChangeStreamRecord.HeartbeatRecord heartbeat_record = 2;
| Returns |
| Type |
Description |
boolean |
Whether the heartbeatRecord field is set.
|
hasPartitionEndRecord()
public boolean hasPartitionEndRecord()
Partition end record describing a terminated change stream partition.
.google.spanner.v1.ChangeStreamRecord.PartitionEndRecord partition_end_record = 4;
| Returns |
| Type |
Description |
boolean |
Whether the partitionEndRecord field is set.
|
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;
| Returns |
| Type |
Description |
boolean |
Whether the partitionEventRecord field is set.
|
hasPartitionStartRecord()
public boolean hasPartitionStartRecord()
Partition start record describing a new change stream partition.
.google.spanner.v1.ChangeStreamRecord.PartitionStartRecord partition_start_record = 3;
| Returns |
| Type |
Description |
boolean |
Whether the partitionStartRecord field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ChangeStreamRecord.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ChangeStreamRecord.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public ChangeStreamRecord.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides