Class ChangeStreamRecord.PartitionEndRecord (6.96.1)

public static final class ChangeStreamRecord.PartitionEndRecord extends GeneratedMessageV3 implements ChangeStreamRecord.PartitionEndRecordOrBuilder

A partition end record serves as a notification that the client should stop reading the partition. No further records are expected to be retrieved on it.

Protobuf type google.spanner.v1.ChangeStreamRecord.PartitionEndRecord

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ChangeStreamRecord.PartitionEndRecord

Static Fields

END_TIMESTAMP_FIELD_NUMBER

public static final int END_TIMESTAMP_FIELD_NUMBER
Field Value
Type Description
int

PARTITION_TOKEN_FIELD_NUMBER

public static final int PARTITION_TOKEN_FIELD_NUMBER
Field Value
Type Description
int

RECORD_SEQUENCE_FIELD_NUMBER

public static final int RECORD_SEQUENCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ChangeStreamRecord.PartitionEndRecord getDefaultInstance()
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord

getDescriptor()

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

newBuilder()

public static ChangeStreamRecord.PartitionEndRecord.Builder newBuilder()
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord.Builder

newBuilder(ChangeStreamRecord.PartitionEndRecord prototype)

public static ChangeStreamRecord.PartitionEndRecord.Builder newBuilder(ChangeStreamRecord.PartitionEndRecord prototype)
Parameter
Name Description
prototype ChangeStreamRecord.PartitionEndRecord
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord.Builder

parseDelimitedFrom(InputStream input)

public static ChangeStreamRecord.PartitionEndRecord parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord.PartitionEndRecord parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ChangeStreamRecord.PartitionEndRecord parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord.PartitionEndRecord parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ChangeStreamRecord.PartitionEndRecord parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord.PartitionEndRecord parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ChangeStreamRecord.PartitionEndRecord parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord.PartitionEndRecord parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ChangeStreamRecord.PartitionEndRecord parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord.PartitionEndRecord parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ChangeStreamRecord.PartitionEndRecord parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ChangeStreamRecord.PartitionEndRecord parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ChangeStreamRecord.PartitionEndRecord> parser()
Returns
Type Description
Parser<PartitionEndRecord>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getEndTimestamp()

public Timestamp getEndTimestamp()

End timestamp at which the change stream partition is terminated. All changes generated by this partition will have timestamps <= end_timestamp. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same partition. PartitionEndRecord is the last record returned for a partition.

.google.protobuf.Timestamp end_timestamp = 1;

Returns
Type Description
Timestamp

The endTimestamp.

getEndTimestampOrBuilder()

public TimestampOrBuilder getEndTimestampOrBuilder()

End timestamp at which the change stream partition is terminated. All changes generated by this partition will have timestamps <= end_timestamp. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same partition. PartitionEndRecord is the last record returned for a partition.

.google.protobuf.Timestamp end_timestamp = 1;

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<ChangeStreamRecord.PartitionEndRecord> getParserForType()
Returns
Type Description
Parser<PartitionEndRecord>
Overrides

getPartitionToken()

public String getPartitionToken()

Unique partition identifier describing the terminated change stream partition. partition_token is equal to the partition token of the change stream partition currently queried to return this PartitionEndRecord.

string partition_token = 3;

Returns
Type Description
String

The partitionToken.

getPartitionTokenBytes()

public ByteString getPartitionTokenBytes()

Unique partition identifier describing the terminated change stream partition. partition_token is equal to the partition token of the change stream partition currently queried to return this PartitionEndRecord.

string partition_token = 3;

Returns
Type Description
ByteString

The bytes for partitionToken.

getRecordSequence()

public String getRecordSequence()

Record sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition. To guarantee ordered processing, the reader should process records (of potentially different types) in record_sequence order for a specific timestamp in the same partition.

string record_sequence = 2;

Returns
Type Description
String

The recordSequence.

getRecordSequenceBytes()

public ByteString getRecordSequenceBytes()

Record sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition. To guarantee ordered processing, the reader should process records (of potentially different types) in record_sequence order for a specific timestamp in the same partition.

string record_sequence = 2;

Returns
Type Description
ByteString

The bytes for recordSequence.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasEndTimestamp()

public boolean hasEndTimestamp()

End timestamp at which the change stream partition is terminated. All changes generated by this partition will have timestamps <= end_timestamp. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same partition. PartitionEndRecord is the last record returned for a partition.

.google.protobuf.Timestamp end_timestamp = 1;

Returns
Type Description
boolean

Whether the endTimestamp field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ChangeStreamRecord.PartitionEndRecord.Builder newBuilderForType()
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ChangeStreamRecord.PartitionEndRecord.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ChangeStreamRecord.PartitionEndRecord.Builder toBuilder()
Returns
Type Description
ChangeStreamRecord.PartitionEndRecord.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException