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 Type
    Method
    Description
    Client identifier used to track the client that last modified an ephemeral record.
    com.google.protobuf.ByteString
    Client identifier used to track the client that last modified an ephemeral record.
    long
    An optional expected version_id.
    The key
    com.google.protobuf.ByteString
    The key
    If 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.ByteString
    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;
    int
    repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;
    repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;
    repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;
    repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;
    long
    If one or more sequence key are specified.
    int
    If one or more sequence key are specified.
    If one or more sequence key are specified.
    long
    Optional.
    com.google.protobuf.ByteString
    The value
    boolean
    Client identifier used to track the client that last modified an ephemeral record.
    boolean
    An optional expected version_id.
    boolean
    If a partition key is present, it supersedes the regular record key in determining the routing of a record to a particular shard.
    boolean
    Optional.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods 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

      List<Long> 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

      SecondaryIndex getSecondaryIndexes(int index)
      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

      SecondaryIndexOrBuilder getSecondaryIndexesOrBuilder(int index)
      repeated .io.streamnative.oxia.proto.SecondaryIndex secondary_indexes = 8;