Class ChangeStreamRecord.HeartbeatRecord.Builder (6.108.0)

public static final class ChangeStreamRecord.HeartbeatRecord.Builder extends GeneratedMessage.Builder<ChangeStreamRecord.HeartbeatRecord.Builder> implements ChangeStreamRecord.HeartbeatRecordOrBuilder

A heartbeat record is returned as a progress indicator, when there are no data changes or any other partition record types in the change stream partition.

Protobuf type google.spanner.v1.ChangeStreamRecord.HeartbeatRecord

Static Methods

getDescriptor()

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

Methods

build()

public ChangeStreamRecord.HeartbeatRecord build()
Returns
Type Description
ChangeStreamRecord.HeartbeatRecord

buildPartial()

public ChangeStreamRecord.HeartbeatRecord buildPartial()
Returns
Type Description
ChangeStreamRecord.HeartbeatRecord

clear()

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

clearTimestamp()

public ChangeStreamRecord.HeartbeatRecord.Builder clearTimestamp()

Indicates the timestamp at which the query has returned all the records in the change stream partition with timestamp <= heartbeat timestamp. The heartbeat timestamp will not be the same as the timestamps of other record types in the same partition.

.google.protobuf.Timestamp timestamp = 1;

Returns
Type Description
ChangeStreamRecord.HeartbeatRecord.Builder

getDefaultInstanceForType()

public ChangeStreamRecord.HeartbeatRecord getDefaultInstanceForType()
Returns
Type Description
ChangeStreamRecord.HeartbeatRecord

getDescriptorForType()

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

getTimestamp()

public Timestamp getTimestamp()

Indicates the timestamp at which the query has returned all the records in the change stream partition with timestamp <= heartbeat timestamp. The heartbeat timestamp will not be the same as the timestamps of other record types in the same partition.

.google.protobuf.Timestamp timestamp = 1;

Returns
Type Description
Timestamp

The timestamp.

getTimestampBuilder()

public Timestamp.Builder getTimestampBuilder()

Indicates the timestamp at which the query has returned all the records in the change stream partition with timestamp <= heartbeat timestamp. The heartbeat timestamp will not be the same as the timestamps of other record types in the same partition.

.google.protobuf.Timestamp timestamp = 1;

Returns
Type Description
Builder

getTimestampOrBuilder()

public TimestampOrBuilder getTimestampOrBuilder()

Indicates the timestamp at which the query has returned all the records in the change stream partition with timestamp <= heartbeat timestamp. The heartbeat timestamp will not be the same as the timestamps of other record types in the same partition.

.google.protobuf.Timestamp timestamp = 1;

Returns
Type Description
TimestampOrBuilder

hasTimestamp()

public boolean hasTimestamp()

Indicates the timestamp at which the query has returned all the records in the change stream partition with timestamp <= heartbeat timestamp. The heartbeat timestamp will not be the same as the timestamps of other record types in the same partition.

.google.protobuf.Timestamp timestamp = 1;

Returns
Type Description
boolean

Whether the timestamp field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ChangeStreamRecord.HeartbeatRecord other)

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

mergeTimestamp(Timestamp value)

public ChangeStreamRecord.HeartbeatRecord.Builder mergeTimestamp(Timestamp value)

Indicates the timestamp at which the query has returned all the records in the change stream partition with timestamp <= heartbeat timestamp. The heartbeat timestamp will not be the same as the timestamps of other record types in the same partition.

.google.protobuf.Timestamp timestamp = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
ChangeStreamRecord.HeartbeatRecord.Builder

setTimestamp(Timestamp value)

public ChangeStreamRecord.HeartbeatRecord.Builder setTimestamp(Timestamp value)

Indicates the timestamp at which the query has returned all the records in the change stream partition with timestamp <= heartbeat timestamp. The heartbeat timestamp will not be the same as the timestamps of other record types in the same partition.

.google.protobuf.Timestamp timestamp = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
ChangeStreamRecord.HeartbeatRecord.Builder

setTimestamp(Timestamp.Builder builderForValue)

public ChangeStreamRecord.HeartbeatRecord.Builder setTimestamp(Timestamp.Builder builderForValue)

Indicates the timestamp at which the query has returned all the records in the change stream partition with timestamp <= heartbeat timestamp. The heartbeat timestamp will not be the same as the timestamps of other record types in the same partition.

.google.protobuf.Timestamp timestamp = 1;

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