Package s2.v1alpha

Class AppendInput.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AppendInput.Builder>
s2.v1alpha.AppendInput.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, AppendInputOrBuilder
Enclosing class:
AppendInput

public static final class AppendInput.Builder extends com.google.protobuf.GeneratedMessage.Builder<AppendInput.Builder> implements AppendInputOrBuilder
 Input for append requests.
 
Protobuf type s2.v1alpha.AppendInput
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AppendInput.Builder>
    • clear

      public AppendInput.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.GeneratedMessage.Builder<AppendInput.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.GeneratedMessage.Builder<AppendInput.Builder>
    • getDefaultInstanceForType

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

      public AppendInput build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AppendInput buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public AppendInput.Builder mergeFrom(AppendInput other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AppendInput.Builder>
    • mergeFrom

      public AppendInput.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<AppendInput.Builder>
      Throws:
      IOException
    • getStream

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

      public com.google.protobuf.ByteString getStreamBytes()
       Stream name. Optional for subsequent requests in the session.
       
      string stream = 1;
      Specified by:
      getStreamBytes in interface AppendInputOrBuilder
      Returns:
      The bytes for stream.
    • setStream

      public AppendInput.Builder setStream(String value)
       Stream name. Optional for subsequent requests in the session.
       
      string stream = 1;
      Parameters:
      value - The stream to set.
      Returns:
      This builder for chaining.
    • clearStream

      public AppendInput.Builder clearStream()
       Stream name. Optional for subsequent requests in the session.
       
      string stream = 1;
      Returns:
      This builder for chaining.
    • setStreamBytes

      public AppendInput.Builder setStreamBytes(com.google.protobuf.ByteString value)
       Stream name. Optional for subsequent requests in the session.
       
      string stream = 1;
      Parameters:
      value - The bytes for stream to set.
      Returns:
      This builder for chaining.
    • getRecordsList

      public 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;
      Specified by:
      getRecordsList in interface AppendInputOrBuilder
    • getRecordsCount

      public 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;
      Specified by:
      getRecordsCount in interface AppendInputOrBuilder
    • getRecords

      public 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;
      Specified by:
      getRecords in interface AppendInputOrBuilder
    • setRecords

      public AppendInput.Builder setRecords(int index, AppendRecord value)
       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;
    • setRecords

      public AppendInput.Builder setRecords(int index, AppendRecord.Builder builderForValue)
       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;
    • addRecords

      public AppendInput.Builder addRecords(AppendRecord value)
       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;
    • addRecords

      public AppendInput.Builder addRecords(int index, AppendRecord value)
       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;
    • addRecords

      public AppendInput.Builder addRecords(AppendRecord.Builder builderForValue)
       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;
    • addRecords

      public AppendInput.Builder addRecords(int index, AppendRecord.Builder builderForValue)
       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;
    • addAllRecords

      public AppendInput.Builder addAllRecords(Iterable<? extends AppendRecord> values)
       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;
    • clearRecords

      public AppendInput.Builder clearRecords()
       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;
    • removeRecords

      public AppendInput.Builder removeRecords(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;
    • getRecordsBuilder

      public AppendRecord.Builder getRecordsBuilder(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;
    • getRecordsOrBuilder

      public 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;
      Specified by:
      getRecordsOrBuilder in interface AppendInputOrBuilder
    • getRecordsOrBuilderList

      public 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;
      Specified by:
      getRecordsOrBuilderList in interface AppendInputOrBuilder
    • addRecordsBuilder

      public AppendRecord.Builder addRecordsBuilder()
       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;
    • addRecordsBuilder

      public AppendRecord.Builder addRecordsBuilder(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;
    • getRecordsBuilderList

      public List<AppendRecord.Builder> getRecordsBuilderList()
       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

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

      public long getMatchSeqNum()
       Enforce that the sequence number issued to the first record matches.
       
      optional uint64 match_seq_num = 3;
      Specified by:
      getMatchSeqNum in interface AppendInputOrBuilder
      Returns:
      The matchSeqNum.
    • setMatchSeqNum

      public AppendInput.Builder setMatchSeqNum(long value)
       Enforce that the sequence number issued to the first record matches.
       
      optional uint64 match_seq_num = 3;
      Parameters:
      value - The matchSeqNum to set.
      Returns:
      This builder for chaining.
    • clearMatchSeqNum

      public AppendInput.Builder clearMatchSeqNum()
       Enforce that the sequence number issued to the first record matches.
       
      optional uint64 match_seq_num = 3;
      Returns:
      This builder for chaining.
    • hasFencingToken

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

      public 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;
      Specified by:
      getFencingToken in interface AppendInputOrBuilder
      Returns:
      The fencingToken.
    • setFencingToken

      public AppendInput.Builder setFencingToken(com.google.protobuf.ByteString value)
       Enforce a fencing token which must have been previously set by a `fence` command record.
       
      optional bytes fencing_token = 4;
      Parameters:
      value - The fencingToken to set.
      Returns:
      This builder for chaining.
    • clearFencingToken

      public AppendInput.Builder clearFencingToken()
       Enforce a fencing token which must have been previously set by a `fence` command record.
       
      optional bytes fencing_token = 4;
      Returns:
      This builder for chaining.