io.etcd.jetcd.api.LeaseTimeToLiveResponseOrBuilder Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: rpc.proto
package io.etcd.jetcd.api;
public interface LeaseTimeToLiveResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseTimeToLiveResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .etcdserverpb.ResponseHeader header = 1;
* @return Whether the header field is set.
*/
boolean hasHeader();
/**
* .etcdserverpb.ResponseHeader header = 1;
* @return The header.
*/
io.etcd.jetcd.api.ResponseHeader getHeader();
/**
* .etcdserverpb.ResponseHeader header = 1;
*/
io.etcd.jetcd.api.ResponseHeaderOrBuilder getHeaderOrBuilder();
/**
*
* ID is the lease ID from the keep alive request.
*
*
* int64 ID = 2;
* @return The iD.
*/
long getID();
/**
*
* TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
*
*
* int64 TTL = 3;
* @return The tTL.
*/
long getTTL();
/**
*
* GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
*
*
* int64 grantedTTL = 4;
* @return The grantedTTL.
*/
long getGrantedTTL();
/**
*
* Keys is the list of keys attached to this lease.
*
*
* repeated bytes keys = 5;
* @return A list containing the keys.
*/
java.util.List getKeysList();
/**
*
* Keys is the list of keys attached to this lease.
*
*
* repeated bytes keys = 5;
* @return The count of keys.
*/
int getKeysCount();
/**
*
* Keys is the list of keys attached to this lease.
*
*
* repeated bytes keys = 5;
* @param index The index of the element to return.
* @return The keys at the given index.
*/
com.google.protobuf.ByteString getKeys(int index);
}