Class ChangeStreamRecord.PartitionStartRecord (6.96.1)

public static final class ChangeStreamRecord.PartitionStartRecord extends GeneratedMessageV3 implements ChangeStreamRecord.PartitionStartRecordOrBuilder

A partition start record serves as a notification that the client should schedule the partitions to be queried. PartitionStartRecord returns information about one or more partitions.

Protobuf type google.spanner.v1.ChangeStreamRecord.PartitionStartRecord

Inheritance

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

Static Fields

PARTITION_TOKENS_FIELD_NUMBER

public static final int PARTITION_TOKENS_FIELD_NUMBER
Field Value
Type Description
int

RECORD_SEQUENCE_FIELD_NUMBER

public static final int RECORD_SEQUENCE_FIELD_NUMBER
Field Value
Type Description
int

START_TIMESTAMP_FIELD_NUMBER

public static final int START_TIMESTAMP_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(ChangeStreamRecord.PartitionStartRecord prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getParserForType()

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

getPartitionTokens(int index)

public String getPartitionTokens(int index)

Unique partition identifiers to be used in queries.

repeated string partition_tokens = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The partitionTokens at the given index.

getPartitionTokensBytes(int index)

public ByteString getPartitionTokensBytes(int index)

Unique partition identifiers to be used in queries.

repeated string partition_tokens = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the partitionTokens at the given index.

getPartitionTokensCount()

public int getPartitionTokensCount()

Unique partition identifiers to be used in queries.

repeated string partition_tokens = 3;

Returns
Type Description
int

The count of partitionTokens.

getPartitionTokensList()

public ProtocolStringList getPartitionTokensList()

Unique partition identifiers to be used in queries.

repeated string partition_tokens = 3;

Returns
Type Description
ProtocolStringList

A list containing the partitionTokens.

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

getStartTimestamp()

public Timestamp getStartTimestamp()

Start timestamp at which the partitions should be queried to return change stream records with timestamps >= start_timestamp. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same partition.

.google.protobuf.Timestamp start_timestamp = 1;

Returns
Type Description
Timestamp

The startTimestamp.

getStartTimestampOrBuilder()

public TimestampOrBuilder getStartTimestampOrBuilder()

Start timestamp at which the partitions should be queried to return change stream records with timestamps >= start_timestamp. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same partition.

.google.protobuf.Timestamp start_timestamp = 1;

Returns
Type Description
TimestampOrBuilder

hasStartTimestamp()

public boolean hasStartTimestamp()

Start timestamp at which the partitions should be queried to return change stream records with timestamps >= start_timestamp. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same partition.

.google.protobuf.Timestamp start_timestamp = 1;

Returns
Type Description
boolean

Whether the startTimestamp 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.PartitionStartRecord.Builder newBuilderForType()
Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ChangeStreamRecord.PartitionStartRecord.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.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.PartitionStartRecord.Builder toBuilder()
Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder

writeTo(CodedOutputStream output)

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