Package io.dingodb.version
Interface Version.PutRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Version.PutRequest,Version.PutRequest.Builder
- Enclosing class:
- Version
public static interface Version.PutRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIf ignore_lease is set, updates the key using its current lease.booleanIf ignore_value is set, updates the key using its current value.key_value is the key and value, to put into the key-value store.key_value is the key and value, to put into the key-value store.longgetLease()lease is the lease ID to associate with the key in the key-value store.booleanIf need_prev_kv is set, gets the previous key-value pair before changing it..dingodb.pb.common.RequestInfo request_info = 1;.dingodb.pb.common.RequestInfo request_info = 1;booleankey_value is the key and value, to put into the key-value store.boolean.dingodb.pb.common.RequestInfo request_info = 1;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
-
hasRequestInfo
boolean hasRequestInfo().dingodb.pb.common.RequestInfo request_info = 1;- Returns:
- Whether the requestInfo field is set.
-
getRequestInfo
Common.RequestInfo getRequestInfo().dingodb.pb.common.RequestInfo request_info = 1;- Returns:
- The requestInfo.
-
getRequestInfoOrBuilder
Common.RequestInfoOrBuilder getRequestInfoOrBuilder().dingodb.pb.common.RequestInfo request_info = 1; -
hasKeyValue
boolean hasKeyValue()key_value is the key and value, to put into the key-value store.
.dingodb.pb.common.KeyValue key_value = 2;- Returns:
- Whether the keyValue field is set.
-
getKeyValue
Common.KeyValue getKeyValue()key_value is the key and value, to put into the key-value store.
.dingodb.pb.common.KeyValue key_value = 2;- Returns:
- The keyValue.
-
getKeyValueOrBuilder
Common.KeyValueOrBuilder getKeyValueOrBuilder()key_value is the key and value, to put into the key-value store.
.dingodb.pb.common.KeyValue key_value = 2; -
getLease
long getLease()lease is the lease ID to associate with the key in the key-value store. A lease value of 0 indicates no lease.
int64 lease = 3;- Returns:
- The lease.
-
getNeedPrevKv
boolean getNeedPrevKv()If need_prev_kv is set, gets the previous key-value pair before changing it. The previous key-value pair will be returned in the put response.
bool need_prev_kv = 4;- Returns:
- The needPrevKv.
-
getIgnoreValue
boolean getIgnoreValue()If ignore_value is set, updates the key using its current value. Returns an error if the key does not exist.
bool ignore_value = 5;- Returns:
- The ignoreValue.
-
getIgnoreLease
boolean getIgnoreLease()If ignore_lease is set, updates the key using its current lease. Returns an error if the key does not exist.
bool ignore_lease = 6;- Returns:
- The ignoreLease.
-