Package s2.v1alpha

Interface AppendInputOrBuilder

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

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

    Modifier and Type
    Method
    Description
    com.google.protobuf.ByteString
    Enforce a fencing token which must have been previously set by a `fence` command record.
    long
    Enforce that the sequence number issued to the first record matches.
    getRecords(int index)
    Batch of records to append atomically, which must contain at least one record, and no more than 1000.
    int
    Batch of records to append atomically, which must contain at least one record, and no more than 1000.
    Batch of records to append atomically, which must contain at least one record, and no more than 1000.
    Batch of records to append atomically, which must contain at least one record, and no more than 1000.
    Batch of records to append atomically, which must contain at least one record, and no more than 1000.
    Stream name.
    com.google.protobuf.ByteString
    Stream name.
    boolean
    Enforce a fencing token which must have been previously set by a `fence` command record.
    boolean
    Enforce that the sequence number issued to the first record matches.

    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 Details

    • getStream

      String getStream()
       Stream name. Optional for subsequent requests in the session.
       
      string stream = 1;
      Returns:
      The stream.
    • getStreamBytes

      com.google.protobuf.ByteString getStreamBytes()
       Stream name. Optional for subsequent requests in the session.
       
      string stream = 1;
      Returns:
      The bytes for stream.
    • getRecordsList

      List<AppendRecord> getRecordsList()
       Batch of records to append atomically, which must contain at least one record, and no more than 1000.
       The total size of a batch of records may not exceed 1MiB of metered bytes.
       
      repeated .s2.v1alpha.AppendRecord records = 2;
    • getRecords

      AppendRecord getRecords(int index)
       Batch of records to append atomically, which must contain at least one record, and no more than 1000.
       The total size of a batch of records may not exceed 1MiB of metered bytes.
       
      repeated .s2.v1alpha.AppendRecord records = 2;
    • getRecordsCount

      int getRecordsCount()
       Batch of records to append atomically, which must contain at least one record, and no more than 1000.
       The total size of a batch of records may not exceed 1MiB of metered bytes.
       
      repeated .s2.v1alpha.AppendRecord records = 2;
    • getRecordsOrBuilderList

      List<? extends AppendRecordOrBuilder> getRecordsOrBuilderList()
       Batch of records to append atomically, which must contain at least one record, and no more than 1000.
       The total size of a batch of records may not exceed 1MiB of metered bytes.
       
      repeated .s2.v1alpha.AppendRecord records = 2;
    • getRecordsOrBuilder

      AppendRecordOrBuilder getRecordsOrBuilder(int index)
       Batch of records to append atomically, which must contain at least one record, and no more than 1000.
       The total size of a batch of records may not exceed 1MiB of metered bytes.
       
      repeated .s2.v1alpha.AppendRecord records = 2;
    • hasMatchSeqNum

      boolean hasMatchSeqNum()
       Enforce that the sequence number issued to the first record matches.
       
      optional uint64 match_seq_num = 3;
      Returns:
      Whether the matchSeqNum field is set.
    • getMatchSeqNum

      long getMatchSeqNum()
       Enforce that the sequence number issued to the first record matches.
       
      optional uint64 match_seq_num = 3;
      Returns:
      The matchSeqNum.
    • hasFencingToken

      boolean hasFencingToken()
       Enforce a fencing token which must have been previously set by a `fence` command record.
       
      optional bytes fencing_token = 4;
      Returns:
      Whether the fencingToken field is set.
    • getFencingToken

      com.google.protobuf.ByteString getFencingToken()
       Enforce a fencing token which must have been previously set by a `fence` command record.
       
      optional bytes fencing_token = 4;
      Returns:
      The fencingToken.