Class ChangeStreamRecord.PartitionStartRecord.Builder (6.95.1)

public static final class ChangeStreamRecord.PartitionStartRecord.Builder extends GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionStartRecord.Builder> 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

Static Methods

getDescriptor()

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

Methods

addAllPartitionTokens(Iterable<String> values)

public ChangeStreamRecord.PartitionStartRecord.Builder addAllPartitionTokens(Iterable<String> values)

Unique partition identifiers to be used in queries.

repeated string partition_tokens = 3;

Parameter
Name Description
values Iterable<String>

The partitionTokens to add.

Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder

This builder for chaining.

addPartitionTokens(String value)

public ChangeStreamRecord.PartitionStartRecord.Builder addPartitionTokens(String value)

Unique partition identifiers to be used in queries.

repeated string partition_tokens = 3;

Parameter
Name Description
value String

The partitionTokens to add.

Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder

This builder for chaining.

addPartitionTokensBytes(ByteString value)

public ChangeStreamRecord.PartitionStartRecord.Builder addPartitionTokensBytes(ByteString value)

Unique partition identifiers to be used in queries.

repeated string partition_tokens = 3;

Parameter
Name Description
value ByteString

The bytes of the partitionTokens to add.

Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ChangeStreamRecord.PartitionStartRecord.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder
Overrides

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ChangeStreamRecord.PartitionStartRecord.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ChangeStreamRecord.PartitionStartRecord.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder
Overrides

clearPartitionTokens()

public ChangeStreamRecord.PartitionStartRecord.Builder clearPartitionTokens()

Unique partition identifiers to be used in queries.

repeated string partition_tokens = 3;

Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder

This builder for chaining.

clearRecordSequence()

public ChangeStreamRecord.PartitionStartRecord.Builder clearRecordSequence()

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
ChangeStreamRecord.PartitionStartRecord.Builder

This builder for chaining.

clearStartTimestamp()

public ChangeStreamRecord.PartitionStartRecord.Builder clearStartTimestamp()

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
ChangeStreamRecord.PartitionStartRecord.Builder

clone()

public ChangeStreamRecord.PartitionStartRecord.Builder clone()
Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

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.

getStartTimestampBuilder()

public Timestamp.Builder getStartTimestampBuilder()

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
Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ChangeStreamRecord.PartitionStartRecord other)

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

mergeStartTimestamp(Timestamp value)

public ChangeStreamRecord.PartitionStartRecord.Builder mergeStartTimestamp(Timestamp value)

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;

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ChangeStreamRecord.PartitionStartRecord.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ChangeStreamRecord.PartitionStartRecord.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder
Overrides

setPartitionTokens(int index, String value)

public ChangeStreamRecord.PartitionStartRecord.Builder setPartitionTokens(int index, String value)

Unique partition identifiers to be used in queries.

repeated string partition_tokens = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The partitionTokens to set.

Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder

This builder for chaining.

setRecordSequence(String value)

public ChangeStreamRecord.PartitionStartRecord.Builder setRecordSequence(String value)

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;

Parameter
Name Description
value String

The recordSequence to set.

Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder

This builder for chaining.

setRecordSequenceBytes(ByteString value)

public ChangeStreamRecord.PartitionStartRecord.Builder setRecordSequenceBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for recordSequence to set.

Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder

This builder for chaining.

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

public ChangeStreamRecord.PartitionStartRecord.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder
Overrides

setStartTimestamp(Timestamp value)

public ChangeStreamRecord.PartitionStartRecord.Builder setStartTimestamp(Timestamp value)

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;

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

setStartTimestamp(Timestamp.Builder builderForValue)

public ChangeStreamRecord.PartitionStartRecord.Builder setStartTimestamp(Timestamp.Builder builderForValue)

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;

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ChangeStreamRecord.PartitionStartRecord.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ChangeStreamRecord.PartitionStartRecord.Builder
Overrides