Class ChangeStreamRecord (6.82.0)

public final class ChangeStreamRecord extends GeneratedMessageV3 implements ChangeStreamRecordOrBuilder

Raw ChangeStream records. Encodes one of: DataChangeRecord, HeartbeatRecord, ChildPartitionsRecord returned from the ChangeStream API.

Protobuf type google.spanner.executor.v1.ChangeStreamRecord

Static Fields

CHILD_PARTITION_FIELD_NUMBER

public static final int CHILD_PARTITION_FIELD_NUMBER
Field Value
Type Description
int

DATA_CHANGE_FIELD_NUMBER

public static final int DATA_CHANGE_FIELD_NUMBER
Field Value
Type Description
int

HEARTBEAT_FIELD_NUMBER

public static final int HEARTBEAT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ChangeStreamRecord getDefaultInstance()
Returns
Type Description
ChangeStreamRecord

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ChangeStreamRecord.Builder newBuilder()
Returns
Type Description
ChangeStreamRecord.Builder

newBuilder(ChangeStreamRecord prototype)

public static ChangeStreamRecord.Builder newBuilder(ChangeStreamRecord prototype)
Parameter
Name Description
prototype ChangeStreamRecord
Returns
Type Description
ChangeStreamRecord.Builder

parseDelimitedFrom(InputStream input)

public static ChangeStreamRecord parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ChangeStreamRecord
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChangeStreamRecord
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ChangeStreamRecord parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ChangeStreamRecord
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChangeStreamRecord
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ChangeStreamRecord parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ChangeStreamRecord
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChangeStreamRecord
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ChangeStreamRecord parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ChangeStreamRecord
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChangeStreamRecord
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ChangeStreamRecord parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ChangeStreamRecord
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChangeStreamRecord
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ChangeStreamRecord parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ChangeStreamRecord
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChangeStreamRecord
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ChangeStreamRecord> parser()
Returns
Type Description
Parser<ChangeStreamRecord>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getChildPartition()

public ChildPartitionsRecord getChildPartition()

Child partitions record.

.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;

Returns
Type Description
ChildPartitionsRecord

The childPartition.

getChildPartitionOrBuilder()

public ChildPartitionsRecordOrBuilder getChildPartitionOrBuilder()

Child partitions record.

.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;

Returns
Type Description
ChildPartitionsRecordOrBuilder

getDataChange()

public DataChangeRecord getDataChange()

Data change record.

.google.spanner.executor.v1.DataChangeRecord data_change = 1;

Returns
Type Description
DataChangeRecord

The dataChange.

getDataChangeOrBuilder()

public DataChangeRecordOrBuilder getDataChangeOrBuilder()

Data change record.

.google.spanner.executor.v1.DataChangeRecord data_change = 1;

Returns
Type Description
DataChangeRecordOrBuilder

getDefaultInstanceForType()

public ChangeStreamRecord getDefaultInstanceForType()
Returns
Type Description
ChangeStreamRecord

getHeartbeat()

public HeartbeatRecord getHeartbeat()

Heartbeat record.

.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;

Returns
Type Description
HeartbeatRecord

The heartbeat.

getHeartbeatOrBuilder()

public HeartbeatRecordOrBuilder getHeartbeatOrBuilder()

Heartbeat record.

.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;

Returns
Type Description
HeartbeatRecordOrBuilder

getParserForType()

public Parser<ChangeStreamRecord> getParserForType()
Returns
Type Description
Parser<ChangeStreamRecord>
Overrides

getRecordCase()

public ChangeStreamRecord.RecordCase getRecordCase()
Returns
Type Description
ChangeStreamRecord.RecordCase

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasChildPartition()

public boolean hasChildPartition()

Child partitions record.

.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;

Returns
Type Description
boolean

Whether the childPartition field is set.

hasDataChange()

public boolean hasDataChange()

Data change record.

.google.spanner.executor.v1.DataChangeRecord data_change = 1;

Returns
Type Description
boolean

Whether the dataChange field is set.

hasHeartbeat()

public boolean hasHeartbeat()

Heartbeat record.

.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;

Returns
Type Description
boolean

Whether the heartbeat field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ChangeStreamRecord.Builder newBuilderForType()
Returns
Type Description
ChangeStreamRecord.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ChangeStreamRecord.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ChangeStreamRecord.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ChangeStreamRecord.Builder toBuilder()
Returns
Type Description
ChangeStreamRecord.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException