io.etcd.jetcd.api.PutRequestOrBuilder Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: rpc.proto
package io.etcd.jetcd.api;
public interface PutRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:etcdserverpb.PutRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* key is the key, in bytes, to put into the key-value store.
*
*
* bytes key = 1;
* @return The key.
*/
com.google.protobuf.ByteString getKey();
/**
*
* value is the value, in bytes, to associate with the key in the key-value store.
*
*
* bytes value = 2;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
/**
*
* 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;
* @return The lease.
*/
long getLease();
/**
*
* If prev_kv is set, etcd gets the previous key-value pair before changing it.
* The previous key-value pair will be returned in the put response.
*
*
* bool prev_kv = 4;
* @return The prevKv.
*/
boolean getPrevKv();
/**
*
* If ignore_value is set, etcd updates the key using its current value.
* Returns an error if the key does not exist.
*
*
* bool ignore_value = 5;
* @return The ignoreValue.
*/
boolean getIgnoreValue();
/**
*
* If ignore_lease is set, etcd updates the key using its current lease.
* Returns an error if the key does not exist.
*
*
* bool ignore_lease = 6;
* @return The ignoreLease.
*/
boolean getIgnoreLease();
}