Class Umadb.ReadResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Umadb.ReadResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<Umadb.ReadResponse.Builder>
umadb.v1.Umadb.ReadResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Umadb.ReadResponseOrBuilder
Enclosing class:
Umadb.ReadResponse

public static final class Umadb.ReadResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<Umadb.ReadResponse.Builder> implements Umadb.ReadResponseOrBuilder
A chunk of historical events returned from a Read request.
Protobuf type umadb.v1.ReadResponse
  • 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<Umadb.ReadResponse.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<Umadb.ReadResponse.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<Umadb.ReadResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public Umadb.ReadResponse.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<Umadb.ReadResponse.Builder>
      Throws:
      IOException
    • getEventsList

      public List<Umadb.SequencedEvent> getEventsList()
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
      Specified by:
      getEventsList in interface Umadb.ReadResponseOrBuilder
    • getEventsCount

      public int getEventsCount()
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
      Specified by:
      getEventsCount in interface Umadb.ReadResponseOrBuilder
    • getEvents

      public Umadb.SequencedEvent getEvents(int index)
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
      Specified by:
      getEvents in interface Umadb.ReadResponseOrBuilder
    • setEvents

      public Umadb.ReadResponse.Builder setEvents(int index, Umadb.SequencedEvent value)
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
    • setEvents

      public Umadb.ReadResponse.Builder setEvents(int index, Umadb.SequencedEvent.Builder builderForValue)
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
    • addEvents

      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
    • addEvents

      public Umadb.ReadResponse.Builder addEvents(int index, Umadb.SequencedEvent value)
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
    • addEvents

      public Umadb.ReadResponse.Builder addEvents(Umadb.SequencedEvent.Builder builderForValue)
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
    • addEvents

      public Umadb.ReadResponse.Builder addEvents(int index, Umadb.SequencedEvent.Builder builderForValue)
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
    • addAllEvents

      public Umadb.ReadResponse.Builder addAllEvents(Iterable<? extends Umadb.SequencedEvent> values)
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
    • clearEvents

      public Umadb.ReadResponse.Builder clearEvents()
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
    • removeEvents

      public Umadb.ReadResponse.Builder removeEvents(int index)
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
    • getEventsBuilder

      public Umadb.SequencedEvent.Builder getEventsBuilder(int index)
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
    • getEventsOrBuilder

      public Umadb.SequencedEventOrBuilder getEventsOrBuilder(int index)
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
      Specified by:
      getEventsOrBuilder in interface Umadb.ReadResponseOrBuilder
    • getEventsOrBuilderList

      public List<? extends Umadb.SequencedEventOrBuilder> getEventsOrBuilderList()
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
      Specified by:
      getEventsOrBuilderList in interface Umadb.ReadResponseOrBuilder
    • addEventsBuilder

      public Umadb.SequencedEvent.Builder addEventsBuilder()
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
    • addEventsBuilder

      public Umadb.SequencedEvent.Builder addEventsBuilder(int index)
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
    • getEventsBuilderList

      public List<Umadb.SequencedEvent.Builder> getEventsBuilderList()
      The list of events matching the read criteria.
      
      repeated .umadb.v1.SequencedEvent events = 1;
    • hasHead

      public boolean hasHead()
      The position of the most recent event in the store at the time of the read.
      
      optional uint64 head = 2;
      Specified by:
      hasHead in interface Umadb.ReadResponseOrBuilder
      Returns:
      Whether the head field is set.
    • getHead

      public long getHead()
      The position of the most recent event in the store at the time of the read.
      
      optional uint64 head = 2;
      Specified by:
      getHead in interface Umadb.ReadResponseOrBuilder
      Returns:
      The head.
    • setHead

      public Umadb.ReadResponse.Builder setHead(long value)
      The position of the most recent event in the store at the time of the read.
      
      optional uint64 head = 2;
      Parameters:
      value - The head to set.
      Returns:
      This builder for chaining.
    • clearHead

      public Umadb.ReadResponse.Builder clearHead()
      The position of the most recent event in the store at the time of the read.
      
      optional uint64 head = 2;
      Returns:
      This builder for chaining.