public static final class AppendResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<AppendResponse.Builder> implements AppendResponseOrBuilder
Represents the outcome of an append operation.Protobuf type
kurrentdb.protocol.v2.streams.AppendResponse| Modifier and Type | Method and Description |
|---|---|
AppendResponse |
build() |
AppendResponse |
buildPartial() |
AppendResponse.Builder |
clear() |
AppendResponse.Builder |
clearPosition()
The position of the last appended record in the global log.
|
AppendResponse.Builder |
clearStream()
The stream to which records were appended.
|
AppendResponse.Builder |
clearStreamRevision()
The actual/current revision of the stream after the append.
|
AppendResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getPosition()
The position of the last appended record in the global log.
|
java.lang.String |
getStream()
The stream to which records were appended.
|
com.google.protobuf.ByteString |
getStreamBytes()
The stream to which records were appended.
|
long |
getStreamRevision()
The actual/current revision of the stream after the append.
|
boolean |
hasPosition()
The position of the last appended record in the global log.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AppendResponse.Builder |
mergeFrom(AppendResponse other) |
AppendResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AppendResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
AppendResponse.Builder |
setPosition(long value)
The position of the last appended record in the global log.
|
AppendResponse.Builder |
setStream(java.lang.String value)
The stream to which records were appended.
|
AppendResponse.Builder |
setStreamBytes(com.google.protobuf.ByteString value)
The stream to which records were appended.
|
AppendResponse.Builder |
setStreamRevision(long value)
The actual/current revision of the stream after the append.
|
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<AppendResponse.Builder>public AppendResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<AppendResponse.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<AppendResponse.Builder>public AppendResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AppendResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AppendResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AppendResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AppendResponse.Builder>public AppendResponse.Builder mergeFrom(AppendResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<AppendResponse.Builder>public AppendResponse.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<AppendResponse.Builder>java.io.IOExceptionpublic java.lang.String getStream()
The stream to which records were appended.
string stream = 1;getStream in interface AppendResponseOrBuilderpublic com.google.protobuf.ByteString getStreamBytes()
The stream to which records were appended.
string stream = 1;getStreamBytes in interface AppendResponseOrBuilderpublic AppendResponse.Builder setStream(java.lang.String value)
The stream to which records were appended.
string stream = 1;value - The stream to set.public AppendResponse.Builder clearStream()
The stream to which records were appended.
string stream = 1;public AppendResponse.Builder setStreamBytes(com.google.protobuf.ByteString value)
The stream to which records were appended.
string stream = 1;value - The bytes for stream to set.public long getStreamRevision()
The actual/current revision of the stream after the append. This is the revision number of the last record written to this stream.
sint64 stream_revision = 2 [jstype = JS_STRING];getStreamRevision in interface AppendResponseOrBuilderpublic AppendResponse.Builder setStreamRevision(long value)
The actual/current revision of the stream after the append. This is the revision number of the last record written to this stream.
sint64 stream_revision = 2 [jstype = JS_STRING];value - The streamRevision to set.public AppendResponse.Builder clearStreamRevision()
The actual/current revision of the stream after the append. This is the revision number of the last record written to this stream.
sint64 stream_revision = 2 [jstype = JS_STRING];public boolean hasPosition()
The position of the last appended record in the global log.
optional sint64 position = 3 [jstype = JS_STRING];hasPosition in interface AppendResponseOrBuilderpublic long getPosition()
The position of the last appended record in the global log.
optional sint64 position = 3 [jstype = JS_STRING];getPosition in interface AppendResponseOrBuilderpublic AppendResponse.Builder setPosition(long value)
The position of the last appended record in the global log.
optional sint64 position = 3 [jstype = JS_STRING];value - The position to set.public AppendResponse.Builder clearPosition()
The position of the last appended record in the global log.
optional sint64 position = 3 [jstype = JS_STRING];