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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
    • getDefaultInstanceForType

      public ChangeStreamRecord.PartitionEndRecord getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
    • setField

      public ChangeStreamRecord.PartitionEndRecord.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
    • clearField

      public ChangeStreamRecord.PartitionEndRecord.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
    • clearOneof

      public ChangeStreamRecord.PartitionEndRecord.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
    • addRepeatedField

      public ChangeStreamRecord.PartitionEndRecord.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
    • mergeFrom

      public ChangeStreamRecord.PartitionEndRecord.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasEndTimestamp in interface ChangeStreamRecord.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:
      getEndTimestamp in interface ChangeStreamRecord.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:
      getEndTimestampOrBuilder in interface ChangeStreamRecord.PartitionEndRecordOrBuilder
    • 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;
      Specified by:
      getRecordSequence in interface ChangeStreamRecord.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:
      getRecordSequenceBytes in interface ChangeStreamRecord.PartitionEndRecordOrBuilder
      Returns:
      The bytes for recordSequence.
    • setRecordSequence

      public ChangeStreamRecord.PartitionEndRecord.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;
      Parameters:
      value - The recordSequence to set.
      Returns:
      This builder for chaining.
    • clearRecordSequence

      public ChangeStreamRecord.PartitionEndRecord.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:
      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

      public String 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:
      getPartitionToken in interface ChangeStreamRecord.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:
      getPartitionTokenBytes in interface ChangeStreamRecord.PartitionEndRecordOrBuilder
      Returns:
      The bytes for partitionToken.
    • setPartitionToken

      public ChangeStreamRecord.PartitionEndRecord.Builder setPartitionToken(String 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 partitionToken to set.
      Returns:
      This builder for chaining.
    • clearPartitionToken

      public ChangeStreamRecord.PartitionEndRecord.Builder 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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>
    • mergeUnknownFields

      public final ChangeStreamRecord.PartitionEndRecord.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ChangeStreamRecord.PartitionEndRecord.Builder>