public final class AppendRequest extends com.google.protobuf.GeneratedMessage implements AppendRequestOrBuilder
Represents the input for appending records to a specific stream.Protobuf type
kurrentdb.protocol.v2.streams.AppendRequest| Modifier and Type | Class and Description |
|---|---|
static class |
AppendRequest.Builder
Represents the input for appending records to a specific stream.
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
EXPECTED_REVISION_FIELD_NUMBER |
static int |
RECORDS_FIELD_NUMBER |
static int |
STREAM_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static AppendRequest |
getDefaultInstance() |
AppendRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getExpectedRevision()
The expected revision for optimistic concurrency control.
|
com.google.protobuf.Parser<AppendRequest> |
getParserForType() |
AppendRecord |
getRecords(int index)
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.
|
int |
getSerializedSize() |
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.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AppendRequest.Builder |
newBuilder() |
static AppendRequest.Builder |
newBuilder(AppendRequest prototype) |
AppendRequest.Builder |
newBuilderForType() |
protected AppendRequest.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static AppendRequest |
parseDelimitedFrom(java.io.InputStream input) |
static AppendRequest |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AppendRequest |
parseFrom(byte[] data) |
static AppendRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AppendRequest |
parseFrom(java.nio.ByteBuffer data) |
static AppendRequest |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AppendRequest |
parseFrom(com.google.protobuf.ByteString data) |
static AppendRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AppendRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AppendRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AppendRequest |
parseFrom(java.io.InputStream input) |
static AppendRequest |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AppendRequest> |
parser() |
AppendRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int STREAM_FIELD_NUMBER
public static final int RECORDS_FIELD_NUMBER
public static final int EXPECTED_REVISION_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic 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 java.util.List<AppendRecord> getRecordsList()
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;getRecordsList 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 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 AppendRecordOrBuilder getRecordsOrBuilder(int index)
The records to append to the stream.
repeated .kurrentdb.protocol.v2.streams.AppendRecord records = 2;getRecordsOrBuilder in interface AppendRequestOrBuilderpublic 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessagejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AppendRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AppendRequest parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AppendRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AppendRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AppendRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AppendRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AppendRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AppendRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AppendRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AppendRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AppendRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AppendRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic AppendRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AppendRequest.Builder newBuilder()
public static AppendRequest.Builder newBuilder(AppendRequest prototype)
public AppendRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AppendRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static AppendRequest getDefaultInstance()
public static com.google.protobuf.Parser<AppendRequest> parser()
public com.google.protobuf.Parser<AppendRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic AppendRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder