Package s2.v1

Interface ReadBatchOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    ReadBatch, ReadBatch.Builder

    public interface ReadBatchOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      SequencedRecord getRecords​(int index)
      Records that are at or after the requested start position.
      int getRecordsCount()
      Records that are at or after the requested start position.
      java.util.List<SequencedRecord> getRecordsList()
      Records that are at or after the requested start position.
      SequencedRecordOrBuilder getRecordsOrBuilder​(int index)
      Records that are at or after the requested start position.
      java.util.List<? extends SequencedRecordOrBuilder> getRecordsOrBuilderList()
      Records that are at or after the requested start position.
      StreamPosition getTail()
      Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.
      StreamPositionOrBuilder getTailOrBuilder()
      Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.
      boolean hasTail()
      Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getRecordsList

        java.util.List<SequencedRecord> getRecordsList()
         Records that are at or after the requested start position.
         
        repeated .s2.v1.SequencedRecord records = 1;
      • getRecords

        SequencedRecord getRecords​(int index)
         Records that are at or after the requested start position.
         
        repeated .s2.v1.SequencedRecord records = 1;
      • getRecordsCount

        int getRecordsCount()
         Records that are at or after the requested start position.
         
        repeated .s2.v1.SequencedRecord records = 1;
      • getRecordsOrBuilderList

        java.util.List<? extends SequencedRecordOrBuilder> getRecordsOrBuilderList()
         Records that are at or after the requested start position.
         
        repeated .s2.v1.SequencedRecord records = 1;
      • getRecordsOrBuilder

        SequencedRecordOrBuilder getRecordsOrBuilder​(int index)
         Records that are at or after the requested start position.
         
        repeated .s2.v1.SequencedRecord records = 1;
      • hasTail

        boolean hasTail()
         Sequence number that will be assigned to the next record on the stream,
         and timestamp of the last record.
         This will only be present when consuming recent records.
         
        optional .s2.v1.StreamPosition tail = 2;
        Returns:
        Whether the tail field is set.
      • getTail

        StreamPosition getTail()
         Sequence number that will be assigned to the next record on the stream,
         and timestamp of the last record.
         This will only be present when consuming recent records.
         
        optional .s2.v1.StreamPosition tail = 2;
        Returns:
        The tail.
      • getTailOrBuilder

        StreamPositionOrBuilder getTailOrBuilder()
         Sequence number that will be assigned to the next record on the stream,
         and timestamp of the last record.
         This will only be present when consuming recent records.
         
        optional .s2.v1.StreamPosition tail = 2;