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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ChangeStreamRecord.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ChangeStreamRecord build()
buildPartial()
public ChangeStreamRecord buildPartial()
clear()
public ChangeStreamRecord.Builder clear()
Overrides
clearChildPartition()
public ChangeStreamRecord.Builder clearChildPartition()
Child partitions record.
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
clearDataChange()
public ChangeStreamRecord.Builder clearDataChange()
Data change record.
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
clearField(Descriptors.FieldDescriptor field)
public ChangeStreamRecord.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearHeartbeat()
public ChangeStreamRecord.Builder clearHeartbeat()
Heartbeat record.
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
public ChangeStreamRecord.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRecord()
public ChangeStreamRecord.Builder clearRecord()
clone()
public ChangeStreamRecord.Builder clone()
Overrides
getChildPartition()
public ChildPartitionsRecord getChildPartition()
Child partitions record.
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
getChildPartitionBuilder()
public ChildPartitionsRecord.Builder getChildPartitionBuilder()
Child partitions record.
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
getChildPartitionOrBuilder()
public ChildPartitionsRecordOrBuilder getChildPartitionOrBuilder()
Child partitions record.
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
getDataChange()
public DataChangeRecord getDataChange()
Data change record.
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
getDataChangeBuilder()
public DataChangeRecord.Builder getDataChangeBuilder()
Data change record.
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
getDataChangeOrBuilder()
public DataChangeRecordOrBuilder getDataChangeOrBuilder()
Data change record.
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
getDefaultInstanceForType()
public ChangeStreamRecord getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getHeartbeat()
public HeartbeatRecord getHeartbeat()
Heartbeat record.
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
getHeartbeatBuilder()
public HeartbeatRecord.Builder getHeartbeatBuilder()
Heartbeat record.
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
getHeartbeatOrBuilder()
public HeartbeatRecordOrBuilder getHeartbeatOrBuilder()
Heartbeat record.
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
getRecordCase()
public ChangeStreamRecord.RecordCase getRecordCase()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeChildPartition(ChildPartitionsRecord value)
public ChangeStreamRecord.Builder mergeChildPartition(ChildPartitionsRecord value)
Child partitions record.
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
mergeDataChange(DataChangeRecord value)
public ChangeStreamRecord.Builder mergeDataChange(DataChangeRecord value)
Data change record.
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
public ChangeStreamRecord.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ChangeStreamRecord.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(ChangeStreamRecord other)
public ChangeStreamRecord.Builder mergeFrom(ChangeStreamRecord other)
mergeHeartbeat(HeartbeatRecord value)
public ChangeStreamRecord.Builder mergeHeartbeat(HeartbeatRecord value)
Heartbeat record.
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ChangeStreamRecord.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setChildPartition(ChildPartitionsRecord value)
public ChangeStreamRecord.Builder setChildPartition(ChildPartitionsRecord value)
Child partitions record.
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
setChildPartition(ChildPartitionsRecord.Builder builderForValue)
public ChangeStreamRecord.Builder setChildPartition(ChildPartitionsRecord.Builder builderForValue)
Child partitions record.
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
setDataChange(DataChangeRecord value)
public ChangeStreamRecord.Builder setDataChange(DataChangeRecord value)
Data change record.
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
setDataChange(DataChangeRecord.Builder builderForValue)
public ChangeStreamRecord.Builder setDataChange(DataChangeRecord.Builder builderForValue)
Data change record.
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public ChangeStreamRecord.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setHeartbeat(HeartbeatRecord value)
public ChangeStreamRecord.Builder setHeartbeat(HeartbeatRecord value)
Heartbeat record.
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
setHeartbeat(HeartbeatRecord.Builder builderForValue)
public ChangeStreamRecord.Builder setHeartbeat(HeartbeatRecord.Builder builderForValue)
Heartbeat record.
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ChangeStreamRecord.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ChangeStreamRecord.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides