Package s2.v1alpha

Class ReadRequest.Builder

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

public static final class ReadRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReadRequest.Builder> implements ReadRequestOrBuilder
 Read request.
 
Protobuf type s2.v1alpha.ReadRequest
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
    Starting sequence number (inclusive).
    Stream name.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
    Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
    Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
    long
    Starting sequence number (inclusive).
    Stream name.
    com.google.protobuf.ByteString
    Stream name.
    boolean
    Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
    Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
    setLimit(ReadLimit.Builder builderForValue)
    Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
    setStartSeqNum(long value)
    Starting sequence number (inclusive).
    Stream name.
    setStreamBytes(com.google.protobuf.ByteString value)
    Stream name.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<ReadRequest.Builder>
    • clear

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

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

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

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

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

      public ReadRequest.Builder mergeFrom(ReadRequest other)
    • isInitialized

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

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

      public String getStream()
       Stream name.
       
      string stream = 1;
      Specified by:
      getStream in interface ReadRequestOrBuilder
      Returns:
      The stream.
    • getStreamBytes

      public com.google.protobuf.ByteString getStreamBytes()
       Stream name.
       
      string stream = 1;
      Specified by:
      getStreamBytes in interface ReadRequestOrBuilder
      Returns:
      The bytes for stream.
    • setStream

      public ReadRequest.Builder setStream(String value)
       Stream name.
       
      string stream = 1;
      Parameters:
      value - The stream to set.
      Returns:
      This builder for chaining.
    • clearStream

      public ReadRequest.Builder clearStream()
       Stream name.
       
      string stream = 1;
      Returns:
      This builder for chaining.
    • setStreamBytes

      public ReadRequest.Builder setStreamBytes(com.google.protobuf.ByteString value)
       Stream name.
       
      string stream = 1;
      Parameters:
      value - The bytes for stream to set.
      Returns:
      This builder for chaining.
    • getStartSeqNum

      public long getStartSeqNum()
       Starting sequence number (inclusive).
       
      uint64 start_seq_num = 2;
      Specified by:
      getStartSeqNum in interface ReadRequestOrBuilder
      Returns:
      The startSeqNum.
    • setStartSeqNum

      public ReadRequest.Builder setStartSeqNum(long value)
       Starting sequence number (inclusive).
       
      uint64 start_seq_num = 2;
      Parameters:
      value - The startSeqNum to set.
      Returns:
      This builder for chaining.
    • clearStartSeqNum

      public ReadRequest.Builder clearStartSeqNum()
       Starting sequence number (inclusive).
       
      uint64 start_seq_num = 2;
      Returns:
      This builder for chaining.
    • hasLimit

      public boolean hasLimit()
       Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
       
      .s2.v1alpha.ReadLimit limit = 3;
      Specified by:
      hasLimit in interface ReadRequestOrBuilder
      Returns:
      Whether the limit field is set.
    • getLimit

      public ReadLimit getLimit()
       Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
       
      .s2.v1alpha.ReadLimit limit = 3;
      Specified by:
      getLimit in interface ReadRequestOrBuilder
      Returns:
      The limit.
    • setLimit

      public ReadRequest.Builder setLimit(ReadLimit value)
       Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
       
      .s2.v1alpha.ReadLimit limit = 3;
    • setLimit

      public ReadRequest.Builder setLimit(ReadLimit.Builder builderForValue)
       Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
       
      .s2.v1alpha.ReadLimit limit = 3;
    • mergeLimit

      public ReadRequest.Builder mergeLimit(ReadLimit value)
       Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
       
      .s2.v1alpha.ReadLimit limit = 3;
    • clearLimit

      public ReadRequest.Builder clearLimit()
       Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
       
      .s2.v1alpha.ReadLimit limit = 3;
    • getLimitBuilder

      public ReadLimit.Builder getLimitBuilder()
       Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
       
      .s2.v1alpha.ReadLimit limit = 3;
    • getLimitOrBuilder

      public ReadLimitOrBuilder getLimitOrBuilder()
       Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
       
      .s2.v1alpha.ReadLimit limit = 3;
      Specified by:
      getLimitOrBuilder in interface ReadRequestOrBuilder