Package io.streamnative.oxia.proto
Class WriteRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.streamnative.oxia.proto.WriteRequest
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,WriteRequestOrBuilder,Serializable
public final class WriteRequest
extends com.google.protobuf.GeneratedMessageV3
implements WriteRequestOrBuilder
A batch write request. Applies the batches of requests. Requests are processed in positional order within batches and the batch types are processed in the following order: puts, deletes, delete_ranges.Protobuf type
io.streamnative.oxia.proto.WriteRequest- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic WriteRequestgetDeleteRanges(int index) The delete range requestsintThe delete range requestsThe delete range requestsgetDeleteRangesOrBuilder(int index) The delete range requestsList<? extends DeleteRangeRequestOrBuilder>The delete range requestsgetDeletes(int index) The delete requestsintThe delete requestsThe delete requestsgetDeletesOrBuilder(int index) The delete requestsList<? extends DeleteRequestOrBuilder>The delete requestsstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<WriteRequest>getPuts(int index) The put requestsintThe put requestsThe put requestsgetPutsOrBuilder(int index) The put requestsList<? extends PutRequestOrBuilder>The put requestsintlongThe shard id.inthashCode()booleanThe shard id.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic WriteRequest.Builderstatic WriteRequest.BuildernewBuilder(WriteRequest prototype) protected WriteRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static WriteRequestparseDelimitedFrom(InputStream input) static WriteRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WriteRequestparseFrom(byte[] data) static WriteRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WriteRequestparseFrom(com.google.protobuf.ByteString data) static WriteRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WriteRequestparseFrom(com.google.protobuf.CodedInputStream input) static WriteRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WriteRequestparseFrom(InputStream input) static WriteRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WriteRequestparseFrom(ByteBuffer data) static WriteRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<WriteRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SHARD_ID_FIELD_NUMBER
public static final int SHARD_ID_FIELD_NUMBER- See Also:
-
PUTS_FIELD_NUMBER
public static final int PUTS_FIELD_NUMBER- See Also:
-
DELETES_FIELD_NUMBER
public static final int DELETES_FIELD_NUMBER- See Also:
-
DELETE_RANGES_FIELD_NUMBER
public static final int DELETE_RANGES_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasShardId
public boolean hasShardId()The shard id. This is optional allow for support for server-side hashing and proxying in the future.
optional int64 shard_id = 1;- Specified by:
hasShardIdin interfaceWriteRequestOrBuilder- Returns:
- Whether the shardId field is set.
-
getShardId
public long getShardId()The shard id. This is optional allow for support for server-side hashing and proxying in the future.
optional int64 shard_id = 1;- Specified by:
getShardIdin interfaceWriteRequestOrBuilder- Returns:
- The shardId.
-
getPutsList
The put requests
repeated .io.streamnative.oxia.proto.PutRequest puts = 2;- Specified by:
getPutsListin interfaceWriteRequestOrBuilder
-
getPutsOrBuilderList
The put requests
repeated .io.streamnative.oxia.proto.PutRequest puts = 2;- Specified by:
getPutsOrBuilderListin interfaceWriteRequestOrBuilder
-
getPutsCount
public int getPutsCount()The put requests
repeated .io.streamnative.oxia.proto.PutRequest puts = 2;- Specified by:
getPutsCountin interfaceWriteRequestOrBuilder
-
getPuts
The put requests
repeated .io.streamnative.oxia.proto.PutRequest puts = 2;- Specified by:
getPutsin interfaceWriteRequestOrBuilder
-
getPutsOrBuilder
The put requests
repeated .io.streamnative.oxia.proto.PutRequest puts = 2;- Specified by:
getPutsOrBuilderin interfaceWriteRequestOrBuilder
-
getDeletesList
The delete requests
repeated .io.streamnative.oxia.proto.DeleteRequest deletes = 3;- Specified by:
getDeletesListin interfaceWriteRequestOrBuilder
-
getDeletesOrBuilderList
The delete requests
repeated .io.streamnative.oxia.proto.DeleteRequest deletes = 3;- Specified by:
getDeletesOrBuilderListin interfaceWriteRequestOrBuilder
-
getDeletesCount
public int getDeletesCount()The delete requests
repeated .io.streamnative.oxia.proto.DeleteRequest deletes = 3;- Specified by:
getDeletesCountin interfaceWriteRequestOrBuilder
-
getDeletes
The delete requests
repeated .io.streamnative.oxia.proto.DeleteRequest deletes = 3;- Specified by:
getDeletesin interfaceWriteRequestOrBuilder
-
getDeletesOrBuilder
The delete requests
repeated .io.streamnative.oxia.proto.DeleteRequest deletes = 3;- Specified by:
getDeletesOrBuilderin interfaceWriteRequestOrBuilder
-
getDeleteRangesList
The delete range requests
repeated .io.streamnative.oxia.proto.DeleteRangeRequest delete_ranges = 4;- Specified by:
getDeleteRangesListin interfaceWriteRequestOrBuilder
-
getDeleteRangesOrBuilderList
The delete range requests
repeated .io.streamnative.oxia.proto.DeleteRangeRequest delete_ranges = 4;- Specified by:
getDeleteRangesOrBuilderListin interfaceWriteRequestOrBuilder
-
getDeleteRangesCount
public int getDeleteRangesCount()The delete range requests
repeated .io.streamnative.oxia.proto.DeleteRangeRequest delete_ranges = 4;- Specified by:
getDeleteRangesCountin interfaceWriteRequestOrBuilder
-
getDeleteRanges
The delete range requests
repeated .io.streamnative.oxia.proto.DeleteRangeRequest delete_ranges = 4;- Specified by:
getDeleteRangesin interfaceWriteRequestOrBuilder
-
getDeleteRangesOrBuilder
The delete range requests
repeated .io.streamnative.oxia.proto.DeleteRangeRequest delete_ranges = 4;- Specified by:
getDeleteRangesOrBuilderin interfaceWriteRequestOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static WriteRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WriteRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WriteRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WriteRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WriteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WriteRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static WriteRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static WriteRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static WriteRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected WriteRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-