io.etcd.jetcd.api.KeyValueOrBuilder Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: kv.proto
// Protobuf Java Version: 3.25.1
package io.etcd.jetcd.api;
public interface KeyValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:mvccpb.KeyValue)
com.google.protobuf.MessageOrBuilder {
/**
*
* key is the key in bytes. An empty key is not allowed.
*
*
* bytes key = 1;
* @return The key.
*/
com.google.protobuf.ByteString getKey();
/**
*
* create_revision is the revision of last creation on this key.
*
*
* int64 create_revision = 2;
* @return The createRevision.
*/
long getCreateRevision();
/**
*
* mod_revision is the revision of last modification on this key.
*
*
* int64 mod_revision = 3;
* @return The modRevision.
*/
long getModRevision();
/**
*
* version is the version of the key. A deletion resets
* the version to zero and any modification of the key
* increases its version.
*
*
* int64 version = 4;
* @return The version.
*/
long getVersion();
/**
*
* value is the value held by the key, in bytes.
*
*
* bytes value = 5;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
/**
*
* lease is the ID of the lease that attached to key.
* When the attached lease expires, the key will be deleted.
* If lease is 0, then no lease is attached to the key.
*
*
* int64 lease = 6;
* @return The lease.
*/
long getLease();
}