Package io.streamnative.oxia.proto
Interface PutRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PutRequest,PutRequest.Builder
public interface PutRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionClient 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.longAn 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;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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getKey
String getKey()The key
string key = 1;- Returns:
- The key.
-
getKeyBytes
com.google.protobuf.ByteString getKeyBytes()The key
string key = 1;- Returns:
- The bytes for key.
-
getValue
com.google.protobuf.ByteString getValue()The value
bytes value = 2;- Returns:
- The value.
-
hasExpectedVersionId
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;- Returns:
- Whether the expectedVersionId field is set.
-
getExpectedVersionId
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;- Returns:
- The expectedVersionId.
-
hasSessionId
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;- Returns:
- Whether the sessionId field is set.
-
getSessionId
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;- Returns:
- The sessionId.
-
hasClientIdentity
boolean hasClientIdentity()Client identifier used to track the client that last modified an ephemeral record.
optional string client_identity = 5;- Returns:
- Whether the clientIdentity field is set.
-
getClientIdentity
String getClientIdentity()Client identifier used to track the client that last modified an ephemeral record.
optional string client_identity = 5;- Returns:
- The clientIdentity.
-
getClientIdentityBytes
com.google.protobuf.ByteString getClientIdentityBytes()Client identifier used to track the client that last modified an ephemeral record.
optional string client_identity = 5;- Returns:
- The bytes for clientIdentity.
-
hasPartitionKey
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;- Returns:
- Whether the partitionKey field is set.
-
getPartitionKey
String 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;- Returns:
- The partitionKey.
-
getPartitionKeyBytes
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;- Returns:
- The bytes for partitionKey.
-
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;- Returns:
- A list containing the sequenceKeyDelta.
-
getSequenceKeyDeltaCount
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;- Returns:
- The count of sequenceKeyDelta.
-
getSequenceKeyDelta
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;- Parameters:
index- The index of the element to return.- Returns:
- The sequenceKeyDelta at the given index.
-
getSecondaryIndexesList
List<SecondaryIndex> getSecondaryIndexesList()repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
getSecondaryIndexes
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
getSecondaryIndexesCount
int getSecondaryIndexesCount()repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
getSecondaryIndexesOrBuilderList
List<? extends SecondaryIndexOrBuilder> getSecondaryIndexesOrBuilderList()repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8; -
getSecondaryIndexesOrBuilder
repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;
-