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:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.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:
      hasShardId in interface WriteRequestOrBuilder
      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:
      getShardId in interface WriteRequestOrBuilder
      Returns:
      The shardId.
    • getPutsList

      public List<PutRequest> getPutsList()
       The put requests
       
      repeated .io.streamnative.oxia.proto.PutRequest puts = 2;
      Specified by:
      getPutsList in interface WriteRequestOrBuilder
    • getPutsOrBuilderList

      public List<? extends PutRequestOrBuilder> getPutsOrBuilderList()
       The put requests
       
      repeated .io.streamnative.oxia.proto.PutRequest puts = 2;
      Specified by:
      getPutsOrBuilderList in interface WriteRequestOrBuilder
    • getPutsCount

      public int getPutsCount()
       The put requests
       
      repeated .io.streamnative.oxia.proto.PutRequest puts = 2;
      Specified by:
      getPutsCount in interface WriteRequestOrBuilder
    • getPuts

      public PutRequest getPuts(int index)
       The put requests
       
      repeated .io.streamnative.oxia.proto.PutRequest puts = 2;
      Specified by:
      getPuts in interface WriteRequestOrBuilder
    • getPutsOrBuilder

      public PutRequestOrBuilder getPutsOrBuilder(int index)
       The put requests
       
      repeated .io.streamnative.oxia.proto.PutRequest puts = 2;
      Specified by:
      getPutsOrBuilder in interface WriteRequestOrBuilder
    • getDeletesList

      public List<DeleteRequest> getDeletesList()
       The delete requests
       
      repeated .io.streamnative.oxia.proto.DeleteRequest deletes = 3;
      Specified by:
      getDeletesList in interface WriteRequestOrBuilder
    • getDeletesOrBuilderList

      public List<? extends DeleteRequestOrBuilder> getDeletesOrBuilderList()
       The delete requests
       
      repeated .io.streamnative.oxia.proto.DeleteRequest deletes = 3;
      Specified by:
      getDeletesOrBuilderList in interface WriteRequestOrBuilder
    • getDeletesCount

      public int getDeletesCount()
       The delete requests
       
      repeated .io.streamnative.oxia.proto.DeleteRequest deletes = 3;
      Specified by:
      getDeletesCount in interface WriteRequestOrBuilder
    • getDeletes

      public DeleteRequest getDeletes(int index)
       The delete requests
       
      repeated .io.streamnative.oxia.proto.DeleteRequest deletes = 3;
      Specified by:
      getDeletes in interface WriteRequestOrBuilder
    • getDeletesOrBuilder

      public DeleteRequestOrBuilder getDeletesOrBuilder(int index)
       The delete requests
       
      repeated .io.streamnative.oxia.proto.DeleteRequest deletes = 3;
      Specified by:
      getDeletesOrBuilder in interface WriteRequestOrBuilder
    • getDeleteRangesList

      public List<DeleteRangeRequest> getDeleteRangesList()
       The delete range requests
       
      repeated .io.streamnative.oxia.proto.DeleteRangeRequest delete_ranges = 4;
      Specified by:
      getDeleteRangesList in interface WriteRequestOrBuilder
    • getDeleteRangesOrBuilderList

      public List<? extends DeleteRangeRequestOrBuilder> getDeleteRangesOrBuilderList()
       The delete range requests
       
      repeated .io.streamnative.oxia.proto.DeleteRangeRequest delete_ranges = 4;
      Specified by:
      getDeleteRangesOrBuilderList in interface WriteRequestOrBuilder
    • getDeleteRangesCount

      public int getDeleteRangesCount()
       The delete range requests
       
      repeated .io.streamnative.oxia.proto.DeleteRangeRequest delete_ranges = 4;
      Specified by:
      getDeleteRangesCount in interface WriteRequestOrBuilder
    • getDeleteRanges

      public DeleteRangeRequest getDeleteRanges(int index)
       The delete range requests
       
      repeated .io.streamnative.oxia.proto.DeleteRangeRequest delete_ranges = 4;
      Specified by:
      getDeleteRanges in interface WriteRequestOrBuilder
    • getDeleteRangesOrBuilder

      public DeleteRangeRequestOrBuilder getDeleteRangesOrBuilder(int index)
       The delete range requests
       
      repeated .io.streamnative.oxia.proto.DeleteRangeRequest delete_ranges = 4;
      Specified by:
      getDeleteRangesOrBuilder in interface WriteRequestOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static WriteRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WriteRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WriteRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WriteRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WriteRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WriteRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public WriteRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static WriteRequest.Builder newBuilder()
    • newBuilder

      public static WriteRequest.Builder newBuilder(WriteRequest prototype)
    • toBuilder

      public WriteRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected WriteRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static WriteRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<WriteRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<WriteRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public WriteRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder