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 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.PartitionStartRecord.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.PartitionStartRecord.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.PartitionStartRecord.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

      public ChangeStreamRecord.PartitionStartRecord.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.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:
      hasStartTimestamp in interface ChangeStreamRecord.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:
      getStartTimestamp in interface ChangeStreamRecord.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:
      getStartTimestampOrBuilder in interface ChangeStreamRecord.PartitionStartRecordOrBuilder
    • 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.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:
      getRecordSequenceBytes in interface ChangeStreamRecord.PartitionStartRecordOrBuilder
      Returns:
      The bytes for recordSequence.
    • setRecordSequence

      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;
      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:
      getPartitionTokensList in interface ChangeStreamRecord.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:
      getPartitionTokensCount in interface ChangeStreamRecord.PartitionStartRecordOrBuilder
      Returns:
      The count of partitionTokens.
    • getPartitionTokens

      public String getPartitionTokens(int index)
       Unique partition identifiers to be used in queries.
       
      repeated string partition_tokens = 3;
      Specified by:
      getPartitionTokens in interface ChangeStreamRecord.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:
      getPartitionTokensBytes in interface ChangeStreamRecord.PartitionStartRecordOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the partitionTokens at the given index.
    • setPartitionTokens

      public ChangeStreamRecord.PartitionStartRecord.Builder setPartitionTokens(int index, String value)
       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

      public ChangeStreamRecord.PartitionStartRecord.Builder addPartitionTokens(String value)
       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

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

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