Class ChangeStreamRecord (6.62.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
TypeDescription
int

DATA_CHANGE_FIELD_NUMBER

public static final int DATA_CHANGE_FIELD_NUMBER
Field Value
TypeDescription
int

HEARTBEAT_FIELD_NUMBER

public static final int HEARTBEAT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ChangeStreamRecord getDefaultInstance()
Returns
TypeDescription
ChangeStreamRecord

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ChangeStreamRecord.Builder newBuilder()
Returns
TypeDescription
ChangeStreamRecord.Builder

newBuilder(ChangeStreamRecord prototype)

public static ChangeStreamRecord.Builder newBuilder(ChangeStreamRecord prototype)
Parameter
NameDescription
prototypeChangeStreamRecord
Returns
TypeDescription
ChangeStreamRecord.Builder

parseDelimitedFrom(InputStream input)

public static ChangeStreamRecord parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ChangeStreamRecord
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChangeStreamRecord
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ChangeStreamRecord parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ChangeStreamRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChangeStreamRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ChangeStreamRecord parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ChangeStreamRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChangeStreamRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ChangeStreamRecord parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ChangeStreamRecord
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChangeStreamRecord
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ChangeStreamRecord parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ChangeStreamRecord
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChangeStreamRecord
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ChangeStreamRecord parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ChangeStreamRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChangeStreamRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ChangeStreamRecord> parser()
Returns
TypeDescription
Parser<ChangeStreamRecord>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getChildPartition()

public ChildPartitionsRecord getChildPartition()

Child partitions record.

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

Returns
TypeDescription
ChildPartitionsRecord

The childPartition.

getChildPartitionOrBuilder()

public ChildPartitionsRecordOrBuilder getChildPartitionOrBuilder()

Child partitions record.

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

Returns
TypeDescription
ChildPartitionsRecordOrBuilder

getDataChange()

public DataChangeRecord getDataChange()

Data change record.

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

Returns
TypeDescription
DataChangeRecord

The dataChange.

getDataChangeOrBuilder()

public DataChangeRecordOrBuilder getDataChangeOrBuilder()

Data change record.

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

Returns
TypeDescription
DataChangeRecordOrBuilder

getDefaultInstanceForType()

public ChangeStreamRecord getDefaultInstanceForType()
Returns
TypeDescription
ChangeStreamRecord

getHeartbeat()

public HeartbeatRecord getHeartbeat()

Heartbeat record.

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

Returns
TypeDescription
HeartbeatRecord

The heartbeat.

getHeartbeatOrBuilder()

public HeartbeatRecordOrBuilder getHeartbeatOrBuilder()

Heartbeat record.

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

Returns
TypeDescription
HeartbeatRecordOrBuilder

getParserForType()

public Parser<ChangeStreamRecord> getParserForType()
Returns
TypeDescription
Parser<ChangeStreamRecord>
Overrides

getRecordCase()

public ChangeStreamRecord.RecordCase getRecordCase()
Returns
TypeDescription
ChangeStreamRecord.RecordCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasChildPartition()

public boolean hasChildPartition()

Child partitions record.

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

Returns
TypeDescription
boolean

Whether the childPartition field is set.

hasDataChange()

public boolean hasDataChange()

Data change record.

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

Returns
TypeDescription
boolean

Whether the dataChange field is set.

hasHeartbeat()

public boolean hasHeartbeat()

Heartbeat record.

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

Returns
TypeDescription
boolean

Whether the heartbeat field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ChangeStreamRecord.Builder newBuilderForType()
Returns
TypeDescription
ChangeStreamRecord.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ChangeStreamRecord.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ChangeStreamRecord.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ChangeStreamRecord.Builder toBuilder()
Returns
TypeDescription
ChangeStreamRecord.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException