Package io.streamnative.oxia.proto
Interface GetResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GetResponse,GetResponse.Builder
public interface GetResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()In case of non-exact queries (eg.com.google.protobuf.ByteStringIn case of non-exact queries (eg.Includes the error or OKintIncludes the error or OKcom.google.protobuf.ByteStringgetValue()The value, if it was requested and there was no errorThe version of the recordThe version of the recordbooleanhasKey()In case of non-exact queries (eg.booleanhasValue()The value, if it was requested and there was no errorbooleanThe version of the recordMethods 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 of the record
.io.streamnative.oxia.proto.Version version = 2;- Returns:
- Whether the version field is set.
-
getVersion
Version getVersion()The version of the record
.io.streamnative.oxia.proto.Version version = 2;- Returns:
- The version.
-
getVersionOrBuilder
VersionOrBuilder getVersionOrBuilder()The version of the record
.io.streamnative.oxia.proto.Version version = 2; -
hasValue
boolean hasValue()The value, if it was requested and there was no error
optional bytes value = 3;- Returns:
- Whether the value field is set.
-
getValue
com.google.protobuf.ByteString getValue()The value, if it was requested and there was no error
optional bytes value = 3;- Returns:
- The value.
-
hasKey
boolean hasKey()In case of non-exact queries (eg. floor, ceiling) the found key will be returned in the GetResponse.
optional string key = 4;- Returns:
- Whether the key field is set.
-
getKey
String getKey()In case of non-exact queries (eg. floor, ceiling) the found key will be returned in the GetResponse.
optional string key = 4;- Returns:
- The key.
-
getKeyBytes
com.google.protobuf.ByteString getKeyBytes()In case of non-exact queries (eg. floor, ceiling) the found key will be returned in the GetResponse.
optional string key = 4;- Returns:
- The bytes for key.
-