Package com.google.spanner.v1
Class ChangeStreamRecord.PartitionEndRecord.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
com.google.spanner.v1.ChangeStreamRecord.PartitionEndRecord.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ChangeStreamRecord.PartitionEndRecordOrBuilder,Cloneable
- Enclosing class:
- ChangeStreamRecord.PartitionEndRecord
public static final class ChangeStreamRecord.PartitionEndRecord.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()End timestamp at which the change stream partition is terminated.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Unique partition identifier describing the terminated change stream partition.Record sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampEnd timestamp at which the change stream partition is terminated.com.google.protobuf.Timestamp.BuilderEnd timestamp at which the change stream partition is terminated.com.google.protobuf.TimestampOrBuilderEnd timestamp at which the change stream partition is terminated.Unique partition identifier describing the terminated change stream partition.com.google.protobuf.ByteStringUnique partition identifier describing the terminated change stream partition.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.booleanEnd timestamp at which the change stream partition is terminated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeEndTimestamp(com.google.protobuf.Timestamp value) End timestamp at which the change stream partition is terminated.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setEndTimestamp(com.google.protobuf.Timestamp value) End timestamp at which the change stream partition is terminated.setEndTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) End timestamp at which the change stream partition is terminated.setPartitionToken(String value) Unique partition identifier describing the terminated change stream partition.setPartitionTokenBytes(com.google.protobuf.ByteString value) Unique partition identifier describing the terminated change stream partition.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) 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.PartitionEndRecord.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.PartitionEndRecord.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.PartitionEndRecord.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.PartitionEndRecord.Builder>
-
setField
public ChangeStreamRecord.PartitionEndRecord.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.PartitionEndRecord.Builder>
-
clearField
public ChangeStreamRecord.PartitionEndRecord.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
-
clearOneof
public ChangeStreamRecord.PartitionEndRecord.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
-
setRepeatedField
public ChangeStreamRecord.PartitionEndRecord.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.PartitionEndRecord.Builder>
-
addRepeatedField
public ChangeStreamRecord.PartitionEndRecord.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.PartitionEndRecord.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
-
mergeFrom
public ChangeStreamRecord.PartitionEndRecord.Builder mergeFrom(ChangeStreamRecord.PartitionEndRecord other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
-
mergeFrom
public ChangeStreamRecord.PartitionEndRecord.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.PartitionEndRecord.Builder>- Throws:
IOException
-
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;- Specified by:
hasEndTimestampin interfaceChangeStreamRecord.PartitionEndRecordOrBuilder- Returns:
- Whether the endTimestamp field is set.
-
getEndTimestamp
public com.google.protobuf.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;- Specified by:
getEndTimestampin interfaceChangeStreamRecord.PartitionEndRecordOrBuilder- Returns:
- The endTimestamp.
-
setEndTimestamp
public ChangeStreamRecord.PartitionEndRecord.Builder setEndTimestamp(com.google.protobuf.Timestamp value) 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; -
setEndTimestamp
public ChangeStreamRecord.PartitionEndRecord.Builder setEndTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) 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; -
mergeEndTimestamp
public ChangeStreamRecord.PartitionEndRecord.Builder mergeEndTimestamp(com.google.protobuf.Timestamp value) 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; -
clearEndTimestamp
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; -
getEndTimestampBuilder
public com.google.protobuf.Timestamp.Builder getEndTimestampBuilder()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; -
getEndTimestampOrBuilder
public com.google.protobuf.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;- Specified by:
getEndTimestampOrBuilderin interfaceChangeStreamRecord.PartitionEndRecordOrBuilder
-
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.PartitionEndRecordOrBuilder- 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.PartitionEndRecordOrBuilder- 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.PartitionEndRecord.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.
-
getPartitionToken
Unique partition identifier describing the terminated change stream partition. [partition_token][google.spanner.v1.ChangeStreamRecord.PartitionEndRecord.partition_token] is equal to the partition token of the change stream partition currently queried to return this PartitionEndRecord.
string partition_token = 3;- Specified by:
getPartitionTokenin interfaceChangeStreamRecord.PartitionEndRecordOrBuilder- Returns:
- The partitionToken.
-
getPartitionTokenBytes
public com.google.protobuf.ByteString getPartitionTokenBytes()Unique partition identifier describing the terminated change stream partition. [partition_token][google.spanner.v1.ChangeStreamRecord.PartitionEndRecord.partition_token] is equal to the partition token of the change stream partition currently queried to return this PartitionEndRecord.
string partition_token = 3;- Specified by:
getPartitionTokenBytesin interfaceChangeStreamRecord.PartitionEndRecordOrBuilder- Returns:
- The bytes for partitionToken.
-
setPartitionToken
Unique partition identifier describing the terminated change stream partition. [partition_token][google.spanner.v1.ChangeStreamRecord.PartitionEndRecord.partition_token] is equal to the partition token of the change stream partition currently queried to return this PartitionEndRecord.
string partition_token = 3;- Parameters:
value- The partitionToken to set.- Returns:
- This builder for chaining.
-
clearPartitionToken
Unique partition identifier describing the terminated change stream partition. [partition_token][google.spanner.v1.ChangeStreamRecord.PartitionEndRecord.partition_token] is equal to the partition token of the change stream partition currently queried to return this PartitionEndRecord.
string partition_token = 3;- Returns:
- This builder for chaining.
-
setPartitionTokenBytes
public ChangeStreamRecord.PartitionEndRecord.Builder setPartitionTokenBytes(com.google.protobuf.ByteString value) Unique partition identifier describing the terminated change stream partition. [partition_token][google.spanner.v1.ChangeStreamRecord.PartitionEndRecord.partition_token] is equal to the partition token of the change stream partition currently queried to return this PartitionEndRecord.
string partition_token = 3;- Parameters:
value- The bytes for partitionToken to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ChangeStreamRecord.PartitionEndRecord.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
-
mergeUnknownFields
public final ChangeStreamRecord.PartitionEndRecord.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
-