Package io.streamnative.oxia.proto
Class PutRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PutRequest.Builder>
io.streamnative.oxia.proto.PutRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,PutRequestOrBuilder,Cloneable
- Enclosing class:
- PutRequest
public static final class PutRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<PutRequest.Builder>
implements PutRequestOrBuilder
A put request. Persists the specified key and valueProtobuf type
io.streamnative.oxia.proto.PutRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllSecondaryIndexes(Iterable<? extends SecondaryIndex> values) repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;addAllSequenceKeyDelta(Iterable<? extends Long> values) If one or more sequence key are specified.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSecondaryIndexes(int index, SecondaryIndex value) repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;addSecondaryIndexes(int index, SecondaryIndex.Builder builderForValue) repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;addSecondaryIndexes(SecondaryIndex.Builder builderForValue) repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;addSecondaryIndexesBuilder(int index) repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;addSequenceKeyDelta(long value) If one or more sequence key are specified.build()clear()Client identifier used to track the client that last modified an ephemeral record.An optional expected version_id.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearKey()The keyclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If a partition key is present, it supersedes the regular record key in determining the routing of a record to a particular shard.repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;If one or more sequence key are specified.Optional.The valueclone()Client identifier used to track the client that last modified an ephemeral record.com.google.protobuf.ByteStringClient identifier used to track the client that last modified an ephemeral record.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongAn optional expected version_id.getKey()The keycom.google.protobuf.ByteStringThe keyIf a partition key is present, it supersedes the regular record key in determining the routing of a record to a particular shard.com.google.protobuf.ByteStringIf a partition key is present, it supersedes the regular record key in determining the routing of a record to a particular shard.getSecondaryIndexes(int index) repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;getSecondaryIndexesBuilder(int index) repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;intrepeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;getSecondaryIndexesOrBuilder(int index) repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;List<? extends SecondaryIndexOrBuilder>repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;longgetSequenceKeyDelta(int index) If one or more sequence key are specified.intIf one or more sequence key are specified.If one or more sequence key are specified.longOptional.com.google.protobuf.ByteStringgetValue()The valuebooleanClient identifier used to track the client that last modified an ephemeral record.booleanAn optional expected version_id.booleanIf a partition key is present, it supersedes the regular record key in determining the routing of a record to a particular shard.booleanOptional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(PutRequest other) final PutRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeSecondaryIndexes(int index) repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;setClientIdentity(String value) Client identifier used to track the client that last modified an ephemeral record.setClientIdentityBytes(com.google.protobuf.ByteString value) Client identifier used to track the client that last modified an ephemeral record.setExpectedVersionId(long value) An optional expected version_id.The keysetKeyBytes(com.google.protobuf.ByteString value) The keysetPartitionKey(String value) If a partition key is present, it supersedes the regular record key in determining the routing of a record to a particular shard.setPartitionKeyBytes(com.google.protobuf.ByteString value) If a partition key is present, it supersedes the regular record key in determining the routing of a record to a particular shard.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSecondaryIndexes(int index, SecondaryIndex value) repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;setSecondaryIndexes(int index, SecondaryIndex.Builder builderForValue) repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;setSequenceKeyDelta(int index, long value) If one or more sequence key are specified.setSessionId(long value) Optional.final PutRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setValue(com.google.protobuf.ByteString value) The valueMethods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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 java.lang.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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PutRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PutRequest.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.GeneratedMessageV3.Builder<PutRequest.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PutRequest.Builder>
-
setField
public PutRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PutRequest.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PutRequest.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PutRequest.Builder>
-
setRepeatedField
public PutRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PutRequest.Builder>
-
addRepeatedField
public PutRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PutRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PutRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PutRequest.Builder>
-
mergeFrom
public PutRequest.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<PutRequest.Builder>- Throws:
IOException
-
getKey
The key
string key = 1;- Specified by:
getKeyin interfacePutRequestOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()The key
string key = 1;- Specified by:
getKeyBytesin interfacePutRequestOrBuilder- Returns:
- The bytes for key.
-
setKey
The key
string key = 1;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
The key
string key = 1;- Returns:
- This builder for chaining.
-
setKeyBytes
The key
string key = 1;- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
getValue
public com.google.protobuf.ByteString getValue()The value
bytes value = 2;- Specified by:
getValuein interfacePutRequestOrBuilder- Returns:
- The value.
-
setValue
The value
bytes value = 2;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
The value
bytes value = 2;- Returns:
- This builder for chaining.
-
hasExpectedVersionId
public boolean hasExpectedVersionId()An optional expected version_id. The put will fail if the server's current version_id does not match
optional int64 expected_version_id = 3;- Specified by:
hasExpectedVersionIdin interfacePutRequestOrBuilder- Returns:
- Whether the expectedVersionId field is set.
-
getExpectedVersionId
public long getExpectedVersionId()An optional expected version_id. The put will fail if the server's current version_id does not match
optional int64 expected_version_id = 3;- Specified by:
getExpectedVersionIdin interfacePutRequestOrBuilder- Returns:
- The expectedVersionId.
-
setExpectedVersionId
An optional expected version_id. The put will fail if the server's current version_id does not match
optional int64 expected_version_id = 3;- Parameters:
value- The expectedVersionId to set.- Returns:
- This builder for chaining.
-
clearExpectedVersionId
An optional expected version_id. The put will fail if the server's current version_id does not match
optional int64 expected_version_id = 3;- Returns:
- This builder for chaining.
-
hasSessionId
public boolean hasSessionId()Optional. Associate the new record with the session (i.e. ephemeral record). When the session expires or is explicitly closed, the record will be automatically removed
optional int64 session_id = 4;- Specified by:
hasSessionIdin interfacePutRequestOrBuilder- Returns:
- Whether the sessionId field is set.
-
getSessionId
public long getSessionId()Optional. Associate the new record with the session (i.e. ephemeral record). When the session expires or is explicitly closed, the record will be automatically removed
optional int64 session_id = 4;- Specified by:
getSessionIdin interfacePutRequestOrBuilder- Returns:
- The sessionId.
-
setSessionId
Optional. Associate the new record with the session (i.e. ephemeral record). When the session expires or is explicitly closed, the record will be automatically removed
optional int64 session_id = 4;- Parameters:
value- The sessionId to set.- Returns:
- This builder for chaining.
-
clearSessionId
Optional. Associate the new record with the session (i.e. ephemeral record). When the session expires or is explicitly closed, the record will be automatically removed
optional int64 session_id = 4;- Returns:
- This builder for chaining.
-
hasClientIdentity
public boolean hasClientIdentity()Client identifier used to track the client that last modified an ephemeral record.
optional string client_identity = 5;- Specified by:
hasClientIdentityin interfacePutRequestOrBuilder- Returns:
- Whether the clientIdentity field is set.
-
getClientIdentity
Client identifier used to track the client that last modified an ephemeral record.
optional string client_identity = 5;- Specified by:
getClientIdentityin interfacePutRequestOrBuilder- Returns:
- The clientIdentity.
-
getClientIdentityBytes
public com.google.protobuf.ByteString getClientIdentityBytes()Client identifier used to track the client that last modified an ephemeral record.
optional string client_identity = 5;- Specified by:
getClientIdentityBytesin interfacePutRequestOrBuilder- Returns:
- The bytes for clientIdentity.
-
setClientIdentity
Client identifier used to track the client that last modified an ephemeral record.
optional string client_identity = 5;- Parameters:
value- The clientIdentity to set.- Returns:
- This builder for chaining.
-
clearClientIdentity
Client identifier used to track the client that last modified an ephemeral record.
optional string client_identity = 5;- Returns:
- This builder for chaining.
-
setClientIdentityBytes
Client identifier used to track the client that last modified an ephemeral record.
optional string client_identity = 5;- Parameters:
value- The bytes for clientIdentity to set.- Returns:
- This builder for chaining.
-
hasPartitionKey
public boolean hasPartitionKey()If a partition key is present, it supersedes the regular record key in determining the routing of a record to a particular shard. It is passed to the server because it needs to be persisted as part of the record. We would need the partition_key if we're going to do a split of the shards.
optional string partition_key = 6;- Specified by:
hasPartitionKeyin interfacePutRequestOrBuilder- Returns:
- Whether the partitionKey field is set.
-
getPartitionKey
If a partition key is present, it supersedes the regular record key in determining the routing of a record to a particular shard. It is passed to the server because it needs to be persisted as part of the record. We would need the partition_key if we're going to do a split of the shards.
optional string partition_key = 6;- Specified by:
getPartitionKeyin interfacePutRequestOrBuilder- Returns:
- The partitionKey.
-
getPartitionKeyBytes
public com.google.protobuf.ByteString getPartitionKeyBytes()If a partition key is present, it supersedes the regular record key in determining the routing of a record to a particular shard. It is passed to the server because it needs to be persisted as part of the record. We would need the partition_key if we're going to do a split of the shards.
optional string partition_key = 6;- Specified by:
getPartitionKeyBytesin interfacePutRequestOrBuilder- Returns:
- The bytes for partitionKey.
-
setPartitionKey
If a partition key is present, it supersedes the regular record key in determining the routing of a record to a particular shard. It is passed to the server because it needs to be persisted as part of the record. We would need the partition_key if we're going to do a split of the shards.
optional string partition_key = 6;- Parameters:
value- The partitionKey to set.- Returns:
- This builder for chaining.
-
clearPartitionKey
If a partition key is present, it supersedes the regular record key in determining the routing of a record to a particular shard. It is passed to the server because it needs to be persisted as part of the record. We would need the partition_key if we're going to do a split of the shards.
optional string partition_key = 6;- Returns:
- This builder for chaining.
-
setPartitionKeyBytes
If a partition key is present, it supersedes the regular record key in determining the routing of a record to a particular shard. It is passed to the server because it needs to be persisted as part of the record. We would need the partition_key if we're going to do a split of the shards.
optional string partition_key = 6;- Parameters:
value- The bytes for partitionKey to set.- Returns:
- This builder for chaining.
-
getSequenceKeyDeltaList
If one or more sequence key are specified. The key will get added suffixes based on adding the delta to the current highest key with the same prefix
repeated uint64 sequence_key_delta = 7;- Specified by:
getSequenceKeyDeltaListin interfacePutRequestOrBuilder- Returns:
- A list containing the sequenceKeyDelta.
-
getSequenceKeyDeltaCount
public int getSequenceKeyDeltaCount()If one or more sequence key are specified. The key will get added suffixes based on adding the delta to the current highest key with the same prefix
repeated uint64 sequence_key_delta = 7;- Specified by:
getSequenceKeyDeltaCountin interfacePutRequestOrBuilder- Returns:
- The count of sequenceKeyDelta.
-
getSequenceKeyDelta
public long getSequenceKeyDelta(int index) If one or more sequence key are specified. The key will get added suffixes based on adding the delta to the current highest key with the same prefix
repeated uint64 sequence_key_delta = 7;- Specified by:
getSequenceKeyDeltain interfacePutRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sequenceKeyDelta at the given index.
-
setSequenceKeyDelta
If one or more sequence key are specified. The key will get added suffixes based on adding the delta to the current highest key with the same prefix
repeated uint64 sequence_key_delta = 7;- Parameters:
index- The index to set the value at.value- The sequenceKeyDelta to set.- Returns:
- This builder for chaining.
-
addSequenceKeyDelta
If one or more sequence key are specified. The key will get added suffixes based on adding the delta to the current highest key with the same prefix
repeated uint64 sequence_key_delta = 7;- Parameters:
value- The sequenceKeyDelta to add.- Returns:
- This builder for chaining.
-
addAllSequenceKeyDelta
If one or more sequence key are specified. The key will get added suffixes based on adding the delta to the current highest key with the same prefix
repeated uint64 sequence_key_delta = 7;- Parameters:
values- The sequenceKeyDelta to add.- Returns:
- This builder for chaining.
-
clearSequenceKeyDelta
If one or more sequence key are specified. The key will get added suffixes based on adding the delta to the current highest key with the same prefix
repeated uint64 sequence_key_delta = 7;- Returns:
- This builder for chaining.
-
getSecondaryIndexesList
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;- Specified by:
getSecondaryIndexesListin interfacePutRequestOrBuilder
-
getSecondaryIndexesCount
public int getSecondaryIndexesCount()repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;- Specified by:
getSecondaryIndexesCountin interfacePutRequestOrBuilder
-
getSecondaryIndexes
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;- Specified by:
getSecondaryIndexesin interfacePutRequestOrBuilder
-
setSecondaryIndexes
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
setSecondaryIndexes
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
addSecondaryIndexes
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
addSecondaryIndexes
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
addSecondaryIndexes
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
addSecondaryIndexes
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
addAllSecondaryIndexes
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
clearSecondaryIndexes
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
removeSecondaryIndexes
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
getSecondaryIndexesBuilder
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
getSecondaryIndexesOrBuilder
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;- Specified by:
getSecondaryIndexesOrBuilderin interfacePutRequestOrBuilder
-
getSecondaryIndexesOrBuilderList
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;- Specified by:
getSecondaryIndexesOrBuilderListin interfacePutRequestOrBuilder
-
addSecondaryIndexesBuilder
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
addSecondaryIndexesBuilder
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
getSecondaryIndexesBuilderList
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PutRequest.Builder>
-
mergeUnknownFields
public final PutRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PutRequest.Builder>
-