Package io.streamnative.oxia.proto
Interface PutResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PutResponse,PutResponse.Builder
public interface PutResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()If the key was generated by Oxia, it will be returned as part of the responsecom.google.protobuf.ByteStringIf the key was generated by Oxia, it will be returned as part of the responseIncludes the error or OKintIncludes the error or OKThe version if the put was successfulThe version if the put was successfulbooleanhasKey()If the key was generated by Oxia, it will be returned as part of the responsebooleanThe version if the put was successfulMethods 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
-
getStatusValue
int getStatusValue()Includes the error or OK
.io.streamnative.oxia.proto.Status status = 1;- Returns:
- The enum numeric value on the wire for status.
-
getStatus
Status getStatus()Includes the error or OK
.io.streamnative.oxia.proto.Status status = 1;- Returns:
- The status.
-
hasVersion
boolean hasVersion()The version if the put was successful
.io.streamnative.oxia.proto.Version version = 2;- Returns:
- Whether the version field is set.
-
getVersion
Version getVersion()The version if the put was successful
.io.streamnative.oxia.proto.Version version = 2;- Returns:
- The version.
-
getVersionOrBuilder
VersionOrBuilder getVersionOrBuilder()The version if the put was successful
.io.streamnative.oxia.proto.Version version = 2; -
hasKey
boolean hasKey()If the key was generated by Oxia, it will be returned as part of the response
optional string key = 3;- Returns:
- Whether the key field is set.
-
getKey
String getKey()If the key was generated by Oxia, it will be returned as part of the response
optional string key = 3;- Returns:
- The key.
-
getKeyBytes
com.google.protobuf.ByteString getKeyBytes()If the key was generated by Oxia, it will be returned as part of the response
optional string key = 3;- Returns:
- The bytes for key.
-