Class ChangeStreamRecord.Builder (6.57.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ChangeStreamRecord.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ChangeStreamRecord.Builder
Overrides

build()

public ChangeStreamRecord build()
Returns
TypeDescription
ChangeStreamRecord

buildPartial()

public ChangeStreamRecord buildPartial()
Returns
TypeDescription
ChangeStreamRecord

clear()

public ChangeStreamRecord.Builder clear()
Returns
TypeDescription
ChangeStreamRecord.Builder
Overrides

clearChildPartition()

public ChangeStreamRecord.Builder clearChildPartition()

Child partitions record.

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

Returns
TypeDescription
ChangeStreamRecord.Builder

clearDataChange()

public ChangeStreamRecord.Builder clearDataChange()

Data change record.

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

Returns
TypeDescription
ChangeStreamRecord.Builder

clearField(Descriptors.FieldDescriptor field)

public ChangeStreamRecord.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ChangeStreamRecord.Builder
Overrides

clearHeartbeat()

public ChangeStreamRecord.Builder clearHeartbeat()

Heartbeat record.

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

Returns
TypeDescription
ChangeStreamRecord.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ChangeStreamRecord.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ChangeStreamRecord.Builder
Overrides

clearRecord()

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

clone()

public ChangeStreamRecord.Builder clone()
Returns
TypeDescription
ChangeStreamRecord.Builder
Overrides

getChildPartition()

public ChildPartitionsRecord getChildPartition()

Child partitions record.

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

Returns
TypeDescription
ChildPartitionsRecord

The childPartition.

getChildPartitionBuilder()

public ChildPartitionsRecord.Builder getChildPartitionBuilder()

Child partitions record.

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

Returns
TypeDescription
ChildPartitionsRecord.Builder

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.

getDataChangeBuilder()

public DataChangeRecord.Builder getDataChangeBuilder()

Data change record.

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

Returns
TypeDescription
DataChangeRecord.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHeartbeat()

public HeartbeatRecord getHeartbeat()

Heartbeat record.

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

Returns
TypeDescription
HeartbeatRecord

The heartbeat.

getHeartbeatBuilder()

public HeartbeatRecord.Builder getHeartbeatBuilder()

Heartbeat record.

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

Returns
TypeDescription
HeartbeatRecord.Builder

getHeartbeatOrBuilder()

public HeartbeatRecordOrBuilder getHeartbeatOrBuilder()

Heartbeat record.

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

Returns
TypeDescription
HeartbeatRecordOrBuilder

getRecordCase()

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeChildPartition(ChildPartitionsRecord value)

public ChangeStreamRecord.Builder mergeChildPartition(ChildPartitionsRecord value)

Child partitions record.

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

Parameter
NameDescription
valueChildPartitionsRecord
Returns
TypeDescription
ChangeStreamRecord.Builder

mergeDataChange(DataChangeRecord value)

public ChangeStreamRecord.Builder mergeDataChange(DataChangeRecord value)

Data change record.

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

Parameter
NameDescription
valueDataChangeRecord
Returns
TypeDescription
ChangeStreamRecord.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ChangeStreamRecord.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChangeStreamRecord.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ChangeStreamRecord.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ChangeStreamRecord.Builder
Overrides

mergeFrom(ChangeStreamRecord other)

public ChangeStreamRecord.Builder mergeFrom(ChangeStreamRecord other)
Parameter
NameDescription
otherChangeStreamRecord
Returns
TypeDescription
ChangeStreamRecord.Builder

mergeHeartbeat(HeartbeatRecord value)

public ChangeStreamRecord.Builder mergeHeartbeat(HeartbeatRecord value)

Heartbeat record.

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

Parameter
NameDescription
valueHeartbeatRecord
Returns
TypeDescription
ChangeStreamRecord.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ChangeStreamRecord.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ChangeStreamRecord.Builder
Overrides

setChildPartition(ChildPartitionsRecord value)

public ChangeStreamRecord.Builder setChildPartition(ChildPartitionsRecord value)

Child partitions record.

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

Parameter
NameDescription
valueChildPartitionsRecord
Returns
TypeDescription
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
NameDescription
builderForValueChildPartitionsRecord.Builder
Returns
TypeDescription
ChangeStreamRecord.Builder

setDataChange(DataChangeRecord value)

public ChangeStreamRecord.Builder setDataChange(DataChangeRecord value)

Data change record.

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

Parameter
NameDescription
valueDataChangeRecord
Returns
TypeDescription
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
NameDescription
builderForValueDataChangeRecord.Builder
Returns
TypeDescription
ChangeStreamRecord.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ChangeStreamRecord.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ChangeStreamRecord.Builder
Overrides

setHeartbeat(HeartbeatRecord value)

public ChangeStreamRecord.Builder setHeartbeat(HeartbeatRecord value)

Heartbeat record.

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

Parameter
NameDescription
valueHeartbeatRecord
Returns
TypeDescription
ChangeStreamRecord.Builder

setHeartbeat(HeartbeatRecord.Builder builderForValue)

public ChangeStreamRecord.Builder setHeartbeat(HeartbeatRecord.Builder builderForValue)

Heartbeat record.

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

Parameter
NameDescription
builderForValueHeartbeatRecord.Builder
Returns
TypeDescription
ChangeStreamRecord.Builder

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

public ChangeStreamRecord.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ChangeStreamRecord.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ChangeStreamRecord.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ChangeStreamRecord.Builder
Overrides