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 Summary
Modifier and TypeMethodDescriptionaddAllEvents(Iterable<? extends Umadb.SequencedEvent> values) The list of events matching the read criteria.addEvents(int index, Umadb.SequencedEvent value) The list of events matching the read criteria.addEvents(int index, Umadb.SequencedEvent.Builder builderForValue) The list of events matching the read criteria.addEvents(Umadb.SequencedEvent value) The list of events matching the read criteria.addEvents(Umadb.SequencedEvent.Builder builderForValue) The list of events matching the read criteria.The list of events matching the read criteria.addEventsBuilder(int index) The list of events matching the read criteria.build()clear()The list of events matching the read criteria.The position of the most recent event in the store at the time of the read.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEvents(int index) The list of events matching the read criteria.getEventsBuilder(int index) The list of events matching the read criteria.The list of events matching the read criteria.intThe list of events matching the read criteria.The list of events matching the read criteria.getEventsOrBuilder(int index) The list of events matching the read criteria.List<? extends Umadb.SequencedEventOrBuilder> The list of events matching the read criteria.longgetHead()The position of the most recent event in the store at the time of the read.booleanhasHead()The position of the most recent event in the store at the time of the read.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Umadb.ReadResponse other) removeEvents(int index) The list of events matching the read criteria.setEvents(int index, Umadb.SequencedEvent value) The list of events matching the read criteria.setEvents(int index, Umadb.SequencedEvent.Builder builderForValue) The list of events matching the read criteria.setHead(long value) The position of the most recent event in the store at the time of the read.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Umadb.ReadResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Umadb.ReadResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Umadb.ReadResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Umadb.ReadResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Umadb.ReadResponse.Builder>- Throws:
IOException
-
getEventsList
The list of events matching the read criteria.
repeated .umadb.v1.SequencedEvent events = 1;- Specified by:
getEventsListin interfaceUmadb.ReadResponseOrBuilder
-
getEventsCount
public int getEventsCount()The list of events matching the read criteria.
repeated .umadb.v1.SequencedEvent events = 1;- Specified by:
getEventsCountin interfaceUmadb.ReadResponseOrBuilder
-
getEvents
The list of events matching the read criteria.
repeated .umadb.v1.SequencedEvent events = 1;- Specified by:
getEventsin interfaceUmadb.ReadResponseOrBuilder
-
setEvents
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
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.Builder builderForValue) The list of events matching the read criteria.
repeated .umadb.v1.SequencedEvent events = 1; -
addAllEvents
The list of events matching the read criteria.
repeated .umadb.v1.SequencedEvent events = 1; -
clearEvents
The list of events matching the read criteria.
repeated .umadb.v1.SequencedEvent events = 1; -
removeEvents
The list of events matching the read criteria.
repeated .umadb.v1.SequencedEvent events = 1; -
getEventsBuilder
The list of events matching the read criteria.
repeated .umadb.v1.SequencedEvent events = 1; -
getEventsOrBuilder
The list of events matching the read criteria.
repeated .umadb.v1.SequencedEvent events = 1;- Specified by:
getEventsOrBuilderin interfaceUmadb.ReadResponseOrBuilder
-
getEventsOrBuilderList
The list of events matching the read criteria.
repeated .umadb.v1.SequencedEvent events = 1;- Specified by:
getEventsOrBuilderListin interfaceUmadb.ReadResponseOrBuilder
-
addEventsBuilder
The list of events matching the read criteria.
repeated .umadb.v1.SequencedEvent events = 1; -
addEventsBuilder
The list of events matching the read criteria.
repeated .umadb.v1.SequencedEvent events = 1; -
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:
hasHeadin interfaceUmadb.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:
getHeadin interfaceUmadb.ReadResponseOrBuilder- Returns:
- The head.
-
setHead
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
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.
-