Package com.google.spanner.v1
Class ChangeStreamRecord.PartitionStartRecord.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionStartRecord.Builder>
com.google.spanner.v1.ChangeStreamRecord.PartitionStartRecord.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ChangeStreamRecord.PartitionStartRecordOrBuilder,Cloneable
- Enclosing class:
- ChangeStreamRecord.PartitionStartRecord
public static final class ChangeStreamRecord.PartitionStartRecord.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllPartitionTokens(Iterable<String> values) Unique partition identifiers to be used in queries.addPartitionTokens(String value) Unique partition identifiers to be used in queries.addPartitionTokensBytes(com.google.protobuf.ByteString value) Unique partition identifiers to be used in queries.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Unique partition identifiers to be used in queries.Record sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition.Start timestamp at which the partitions should be queried to return change stream records with timestamps >= start_timestamp.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetPartitionTokens(int index) Unique partition identifiers to be used in queries.com.google.protobuf.ByteStringgetPartitionTokensBytes(int index) Unique partition identifiers to be used in queries.intUnique partition identifiers to be used in queries.com.google.protobuf.ProtocolStringListUnique partition identifiers to be used in queries.Record sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition.com.google.protobuf.ByteStringRecord sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition.com.google.protobuf.TimestampStart timestamp at which the partitions should be queried to return change stream records with timestamps >= start_timestamp.com.google.protobuf.Timestamp.BuilderStart timestamp at which the partitions should be queried to return change stream records with timestamps >= start_timestamp.com.google.protobuf.TimestampOrBuilderStart timestamp at which the partitions should be queried to return change stream records with timestamps >= start_timestamp.booleanStart timestamp at which the partitions should be queried to return change stream records with timestamps >= start_timestamp.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartTimestamp(com.google.protobuf.Timestamp value) Start timestamp at which the partitions should be queried to return change stream records with timestamps >= start_timestamp.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setPartitionTokens(int index, String value) Unique partition identifiers to be used in queries.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.setRecordSequenceBytes(com.google.protobuf.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.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartTimestamp(com.google.protobuf.Timestamp value) Start timestamp at which the partitions should be queried to return change stream records with timestamps >= start_timestamp.setStartTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) Start timestamp at which the partitions should be queried to return change stream records with timestamps >= start_timestamp.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionStartRecord.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionStartRecord.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionStartRecord.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionStartRecord.Builder>
-
setField
public ChangeStreamRecord.PartitionStartRecord.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionStartRecord.Builder>
-
clearField
public ChangeStreamRecord.PartitionStartRecord.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionStartRecord.Builder>
-
clearOneof
public ChangeStreamRecord.PartitionStartRecord.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionStartRecord.Builder>
-
setRepeatedField
public ChangeStreamRecord.PartitionStartRecord.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionStartRecord.Builder>
-
addRepeatedField
public ChangeStreamRecord.PartitionStartRecord.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionStartRecord.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ChangeStreamRecord.PartitionStartRecord.Builder>
-
mergeFrom
public ChangeStreamRecord.PartitionStartRecord.Builder mergeFrom(ChangeStreamRecord.PartitionStartRecord other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionStartRecord.Builder>
-
mergeFrom
public ChangeStreamRecord.PartitionStartRecord.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ChangeStreamRecord.PartitionStartRecord.Builder>- Throws:
IOException
-
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;- Specified by:
hasStartTimestampin interfaceChangeStreamRecord.PartitionStartRecordOrBuilder- Returns:
- Whether the startTimestamp field is set.
-
getStartTimestamp
public com.google.protobuf.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;- Specified by:
getStartTimestampin interfaceChangeStreamRecord.PartitionStartRecordOrBuilder- Returns:
- The startTimestamp.
-
setStartTimestamp
public ChangeStreamRecord.PartitionStartRecord.Builder setStartTimestamp(com.google.protobuf.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; -
setStartTimestamp
public ChangeStreamRecord.PartitionStartRecord.Builder setStartTimestamp(com.google.protobuf.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; -
mergeStartTimestamp
public ChangeStreamRecord.PartitionStartRecord.Builder mergeStartTimestamp(com.google.protobuf.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; -
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; -
getStartTimestampBuilder
public com.google.protobuf.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; -
getStartTimestampOrBuilder
public com.google.protobuf.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;- Specified by:
getStartTimestampOrBuilderin interfaceChangeStreamRecord.PartitionStartRecordOrBuilder
-
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;- Specified by:
getRecordSequencein interfaceChangeStreamRecord.PartitionStartRecordOrBuilder- Returns:
- The recordSequence.
-
getRecordSequenceBytes
public com.google.protobuf.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;- Specified by:
getRecordSequenceBytesin interfaceChangeStreamRecord.PartitionStartRecordOrBuilder- Returns:
- The bytes for recordSequence.
-
setRecordSequence
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;- Parameters:
value- The recordSequence to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setRecordSequenceBytes
public ChangeStreamRecord.PartitionStartRecord.Builder setRecordSequenceBytes(com.google.protobuf.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;- Parameters:
value- The bytes for recordSequence to set.- Returns:
- This builder for chaining.
-
getPartitionTokensList
public com.google.protobuf.ProtocolStringList getPartitionTokensList()Unique partition identifiers to be used in queries.
repeated string partition_tokens = 3;- Specified by:
getPartitionTokensListin interfaceChangeStreamRecord.PartitionStartRecordOrBuilder- Returns:
- A list containing the partitionTokens.
-
getPartitionTokensCount
public int getPartitionTokensCount()Unique partition identifiers to be used in queries.
repeated string partition_tokens = 3;- Specified by:
getPartitionTokensCountin interfaceChangeStreamRecord.PartitionStartRecordOrBuilder- Returns:
- The count of partitionTokens.
-
getPartitionTokens
Unique partition identifiers to be used in queries.
repeated string partition_tokens = 3;- Specified by:
getPartitionTokensin interfaceChangeStreamRecord.PartitionStartRecordOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The partitionTokens at the given index.
-
getPartitionTokensBytes
public com.google.protobuf.ByteString getPartitionTokensBytes(int index) Unique partition identifiers to be used in queries.
repeated string partition_tokens = 3;- Specified by:
getPartitionTokensBytesin interfaceChangeStreamRecord.PartitionStartRecordOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the partitionTokens at the given index.
-
setPartitionTokens
Unique partition identifiers to be used in queries.
repeated string partition_tokens = 3;- Parameters:
index- The index to set the value at.value- The partitionTokens to set.- Returns:
- This builder for chaining.
-
addPartitionTokens
Unique partition identifiers to be used in queries.
repeated string partition_tokens = 3;- Parameters:
value- The partitionTokens to add.- Returns:
- This builder for chaining.
-
addAllPartitionTokens
public ChangeStreamRecord.PartitionStartRecord.Builder addAllPartitionTokens(Iterable<String> values) Unique partition identifiers to be used in queries.
repeated string partition_tokens = 3;- Parameters:
values- The partitionTokens to add.- Returns:
- This builder for chaining.
-
clearPartitionTokens
Unique partition identifiers to be used in queries.
repeated string partition_tokens = 3;- Returns:
- This builder for chaining.
-
addPartitionTokensBytes
public ChangeStreamRecord.PartitionStartRecord.Builder addPartitionTokensBytes(com.google.protobuf.ByteString value) Unique partition identifiers to be used in queries.
repeated string partition_tokens = 3;- Parameters:
value- The bytes of the partitionTokens to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ChangeStreamRecord.PartitionStartRecord.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionStartRecord.Builder>
-
mergeUnknownFields
public final ChangeStreamRecord.PartitionStartRecord.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionStartRecord.Builder>
-