Class ChangeStreamRecord.Builder (6.83.0)

public static final class ChangeStreamRecord.Builder extends GeneratedMessageV3.Builder<ChangeStreamRecord.Builder> implements ChangeStreamRecordOrBuilder

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

Protobuf type google.spanner.executor.v1.ChangeStreamRecord

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ChangeStreamRecord.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ChangeStreamRecord.Builder
Overrides

build()

public ChangeStreamRecord build()
Returns
Type Description
ChangeStreamRecord

buildPartial()

public ChangeStreamRecord buildPartial()
Returns
Type Description
ChangeStreamRecord

clear()

public ChangeStreamRecord.Builder clear()
Returns
Type Description
ChangeStreamRecord.Builder
Overrides

clearChildPartition()

public ChangeStreamRecord.Builder clearChildPartition()

Child partitions record.

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

Returns
Type Description
ChangeStreamRecord.Builder

clearDataChange()

public ChangeStreamRecord.Builder clearDataChange()

Data change record.

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

Returns
Type Description
ChangeStreamRecord.Builder

clearField(Descriptors.FieldDescriptor field)

public ChangeStreamRecord.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ChangeStreamRecord.Builder
Overrides

clearHeartbeat()

public ChangeStreamRecord.Builder clearHeartbeat()

Heartbeat record.

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

Returns
Type Description
ChangeStreamRecord.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ChangeStreamRecord.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ChangeStreamRecord.Builder
Overrides

clearRecord()

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

clone()

public ChangeStreamRecord.Builder clone()
Returns
Type Description
ChangeStreamRecord.Builder
Overrides

getChildPartition()

public ChildPartitionsRecord getChildPartition()

Child partitions record.

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

Returns
Type Description
ChildPartitionsRecord

The childPartition.

getChildPartitionBuilder()

public ChildPartitionsRecord.Builder getChildPartitionBuilder()

Child partitions record.

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

Returns
Type Description
ChildPartitionsRecord.Builder

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.

getDataChangeBuilder()

public DataChangeRecord.Builder getDataChangeBuilder()

Data change record.

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

Returns
Type Description
DataChangeRecord.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHeartbeat()

public HeartbeatRecord getHeartbeat()

Heartbeat record.

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

Returns
Type Description
HeartbeatRecord

The heartbeat.

getHeartbeatBuilder()

public HeartbeatRecord.Builder getHeartbeatBuilder()

Heartbeat record.

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

Returns
Type Description
HeartbeatRecord.Builder

getHeartbeatOrBuilder()

public HeartbeatRecordOrBuilder getHeartbeatOrBuilder()

Heartbeat record.

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

Returns
Type Description
HeartbeatRecordOrBuilder

getRecordCase()

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeChildPartition(ChildPartitionsRecord value)

public ChangeStreamRecord.Builder mergeChildPartition(ChildPartitionsRecord value)

Child partitions record.

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

Parameter
Name Description
value ChildPartitionsRecord
Returns
Type Description
ChangeStreamRecord.Builder

mergeDataChange(DataChangeRecord value)

public ChangeStreamRecord.Builder mergeDataChange(DataChangeRecord value)

Data change record.

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

Parameter
Name Description
value DataChangeRecord
Returns
Type Description
ChangeStreamRecord.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ChangeStreamRecord.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChangeStreamRecord.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ChangeStreamRecord.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ChangeStreamRecord.Builder
Overrides

mergeFrom(ChangeStreamRecord other)

public ChangeStreamRecord.Builder mergeFrom(ChangeStreamRecord other)
Parameter
Name Description
other ChangeStreamRecord
Returns
Type Description
ChangeStreamRecord.Builder

mergeHeartbeat(HeartbeatRecord value)

public ChangeStreamRecord.Builder mergeHeartbeat(HeartbeatRecord value)

Heartbeat record.

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

Parameter
Name Description
value HeartbeatRecord
Returns
Type Description
ChangeStreamRecord.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ChangeStreamRecord.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ChangeStreamRecord.Builder
Overrides

setChildPartition(ChildPartitionsRecord value)

public ChangeStreamRecord.Builder setChildPartition(ChildPartitionsRecord value)

Child partitions record.

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

Parameter
Name Description
value ChildPartitionsRecord
Returns
Type Description
ChangeStreamRecord.Builder

setChildPartition(ChildPartitionsRecord.Builder builderForValue)

public ChangeStreamRecord.Builder setChildPartition(ChildPartitionsRecord.Builder builderForValue)

Child partitions record.

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

Parameter
Name Description
builderForValue ChildPartitionsRecord.Builder
Returns
Type Description
ChangeStreamRecord.Builder

setDataChange(DataChangeRecord value)

public ChangeStreamRecord.Builder setDataChange(DataChangeRecord value)

Data change record.

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

Parameter
Name Description
value DataChangeRecord
Returns
Type Description
ChangeStreamRecord.Builder

setDataChange(DataChangeRecord.Builder builderForValue)

public ChangeStreamRecord.Builder setDataChange(DataChangeRecord.Builder builderForValue)

Data change record.

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

Parameter
Name Description
builderForValue DataChangeRecord.Builder
Returns
Type Description
ChangeStreamRecord.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ChangeStreamRecord.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ChangeStreamRecord.Builder
Overrides

setHeartbeat(HeartbeatRecord value)

public ChangeStreamRecord.Builder setHeartbeat(HeartbeatRecord value)

Heartbeat record.

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

Parameter
Name Description
value HeartbeatRecord
Returns
Type Description
ChangeStreamRecord.Builder

setHeartbeat(HeartbeatRecord.Builder builderForValue)

public ChangeStreamRecord.Builder setHeartbeat(HeartbeatRecord.Builder builderForValue)

Heartbeat record.

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

Parameter
Name Description
builderForValue HeartbeatRecord.Builder
Returns
Type Description
ChangeStreamRecord.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ChangeStreamRecord.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ChangeStreamRecord.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ChangeStreamRecord.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ChangeStreamRecord.Builder
Overrides