public static final class AppendRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<AppendRequest.Builder> implements AppendRequestOrBuilder
Represents the input for appending records to a specific stream.Protobuf type
kurrentdb.protocol.v2.streams.AppendRequest| Modifier and Type | Method and Description |
|---|---|
AppendRequest.Builder |
addAllRecords(java.lang.Iterable<? extends AppendRecord> values)
The records to append to the stream.
|
AppendRequest.Builder |
addRecords(AppendRecord.Builder builderForValue)
The records to append to the stream.
|
AppendRequest.Builder |
addRecords(AppendRecord value)
The records to append to the stream.
|
AppendRequest.Builder |
addRecords(int index,
AppendRecord.Builder builderForValue)
The records to append to the stream.
|
AppendRequest.Builder |
addRecords(int index,
AppendRecord value)
The records to append to the stream.
|
AppendRecord.Builder |
addRecordsBuilder()
The records to append to the stream.
|
AppendRecord.Builder |
addRecordsBuilder(int index)
The records to append to the stream.
|
AppendRequest |
build() |
AppendRequest |
buildPartial() |
AppendRequest.Builder |
clear() |
AppendRequest.Builder |
clearExpectedRevision()
The expected revision for optimistic concurrency control.
|
AppendRequest.Builder |
clearRecords()
The records to append to the stream.
|
AppendRequest.Builder |
clearStream()
The stream to append records to.
|
AppendRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getExpectedRevision()
The expected revision for optimistic concurrency control.
|
AppendRecord |
getRecords(int index)
The records to append to the stream.
|
AppendRecord.Builder |
getRecordsBuilder(int index)
The records to append to the stream.
|
java.util.List<AppendRecord.Builder> |
getRecordsBuilderList()
The records to append to the stream.
|
int |
getRecordsCount()
The records to append to the stream.
|
java.util.List<AppendRecord> |
getRecordsList()
The records to append to the stream.
|
AppendRecordOrBuilder |
getRecordsOrBuilder(int index)
The records to append to the stream.
|
java.util.List<? extends AppendRecordOrBuilder> |
getRecordsOrBuilderList()
The records to append to the stream.
|
java.lang.String |
getStream()
The stream to append records to.
|
com.google.protobuf.ByteString |
getStreamBytes()
The stream to append records to.
|
boolean |
hasExpectedRevision()
The expected revision for optimistic concurrency control.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AppendRequest.Builder |
mergeFrom(AppendRequest other) |
AppendRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AppendRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
AppendRequest.Builder |
removeRecords(int index)
The records to append to the stream.
|
AppendRequest.Builder |
setExpectedRevision(long value)
The expected revision for optimistic concurrency control.
|
AppendRequest.Builder |
setRecords(int index,
AppendRecord.Builder builderForValue)
The records to append to the stream.
|
AppendRequest.Builder |
setRecords(int index,
AppendRecord value)
The records to append to the stream.
|
AppendRequest.Builder |
setStream(java.lang.String value)
The stream to append records to.
|
AppendRequest.Builder |
setStreamBytes(com.google.protobuf.ByteString value)
The stream to append records to.
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AppendRequest.Builder>public AppendRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<AppendRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AppendRequest.Builder>public AppendRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AppendRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AppendRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AppendRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AppendRequest.Builder>public AppendRequest.Builder mergeFrom(AppendRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<AppendRequest.Builder>public AppendRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AppendRequest.Builder>java.io.IOExceptionpublic java.lang.String getStream()
The stream to append records to.
string stream = 1;getStream in interface AppendRequestOrBuilderpublic com.google.protobuf.ByteString getStreamBytes()
The stream to append records to.
string stream = 1;getStreamBytes in interface AppendRequestOrBuilderpublic AppendRequest.Builder setStream(java.lang.String value)
The stream to append records to.
string stream = 1;value - The stream to set.public AppendRequest.Builder clearStream()
The stream to append records to.
string stream = 1;public AppendRequest.Builder setStreamBytes(com.google.protobuf.ByteString value)
The stream to append records to.
string stream = 1;value - The bytes for stream to set.public java.util.List<AppendRecord> getRecordsList()
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;getRecordsList in interface AppendRequestOrBuilderpublic int getRecordsCount()
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;getRecordsCount in interface AppendRequestOrBuilderpublic AppendRecord getRecords(int index)
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;getRecords in interface AppendRequestOrBuilderpublic AppendRequest.Builder setRecords(int index, AppendRecord value)
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;public AppendRequest.Builder setRecords(int index, AppendRecord.Builder builderForValue)
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;public AppendRequest.Builder addRecords(AppendRecord value)
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;public AppendRequest.Builder addRecords(int index, AppendRecord value)
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;public AppendRequest.Builder addRecords(AppendRecord.Builder builderForValue)
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;public AppendRequest.Builder addRecords(int index, AppendRecord.Builder builderForValue)
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;public AppendRequest.Builder addAllRecords(java.lang.Iterable<? extends AppendRecord> values)
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;public AppendRequest.Builder clearRecords()
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;public AppendRequest.Builder removeRecords(int index)
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;public AppendRecord.Builder getRecordsBuilder(int index)
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;public AppendRecordOrBuilder getRecordsOrBuilder(int index)
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;getRecordsOrBuilder in interface AppendRequestOrBuilderpublic java.util.List<? extends AppendRecordOrBuilder> getRecordsOrBuilderList()
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;getRecordsOrBuilderList in interface AppendRequestOrBuilderpublic AppendRecord.Builder addRecordsBuilder()
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;public AppendRecord.Builder addRecordsBuilder(int index)
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;public java.util.List<AppendRecord.Builder> getRecordsBuilderList()
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;public boolean hasExpectedRevision()
The expected revision for optimistic concurrency control. Can be either: - A specific revision number (0, 1, 2, ...) - the stream must be at exactly this revision - An ExpectedRevisionConstants value (-4, -2, -1) for special semantics If omitted, defaults to EXPECTED_REVISION_CONSTANTS_ANY (-2).
optional sint64 expected_revision = 3 [jstype = JS_STRING];hasExpectedRevision in interface AppendRequestOrBuilderpublic long getExpectedRevision()
The expected revision for optimistic concurrency control. Can be either: - A specific revision number (0, 1, 2, ...) - the stream must be at exactly this revision - An ExpectedRevisionConstants value (-4, -2, -1) for special semantics If omitted, defaults to EXPECTED_REVISION_CONSTANTS_ANY (-2).
optional sint64 expected_revision = 3 [jstype = JS_STRING];getExpectedRevision in interface AppendRequestOrBuilderpublic AppendRequest.Builder setExpectedRevision(long value)
The expected revision for optimistic concurrency control. Can be either: - A specific revision number (0, 1, 2, ...) - the stream must be at exactly this revision - An ExpectedRevisionConstants value (-4, -2, -1) for special semantics If omitted, defaults to EXPECTED_REVISION_CONSTANTS_ANY (-2).
optional sint64 expected_revision = 3 [jstype = JS_STRING];value - The expectedRevision to set.public AppendRequest.Builder clearExpectedRevision()
The expected revision for optimistic concurrency control. Can be either: - A specific revision number (0, 1, 2, ...) - the stream must be at exactly this revision - An ExpectedRevisionConstants value (-4, -2, -1) for special semantics If omitted, defaults to EXPECTED_REVISION_CONSTANTS_ANY (-2).
optional sint64 expected_revision = 3 [jstype = JS_STRING];