com.ibm.etcd.api.EventOrBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of etcd-java Show documentation
Show all versions of etcd-java Show documentation
etcd3 java client and utilities
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: kv.proto
package com.ibm.etcd.api;
public interface EventOrBuilder extends
// @@protoc_insertion_point(interface_extends:mvccpb.Event)
com.google.protobuf.MessageOrBuilder {
/**
*
* type is the kind of event. If type is a PUT, it indicates
* new data has been stored to the key. If type is a DELETE,
* it indicates the key was deleted.
*
*
* .mvccpb.Event.EventType type = 1;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
*
* type is the kind of event. If type is a PUT, it indicates
* new data has been stored to the key. If type is a DELETE,
* it indicates the key was deleted.
*
*
* .mvccpb.Event.EventType type = 1;
* @return The type.
*/
com.ibm.etcd.api.Event.EventType getType();
/**
*
* kv holds the KeyValue for the event.
* A PUT event contains current kv pair.
* A PUT event with kv.Version=1 indicates the creation of a key.
* A DELETE/EXPIRE event contains the deleted key with
* its modification revision set to the revision of deletion.
*
*
* .mvccpb.KeyValue kv = 2;
* @return Whether the kv field is set.
*/
boolean hasKv();
/**
*
* kv holds the KeyValue for the event.
* A PUT event contains current kv pair.
* A PUT event with kv.Version=1 indicates the creation of a key.
* A DELETE/EXPIRE event contains the deleted key with
* its modification revision set to the revision of deletion.
*
*
* .mvccpb.KeyValue kv = 2;
* @return The kv.
*/
com.ibm.etcd.api.KeyValue getKv();
/**
*
* kv holds the KeyValue for the event.
* A PUT event contains current kv pair.
* A PUT event with kv.Version=1 indicates the creation of a key.
* A DELETE/EXPIRE event contains the deleted key with
* its modification revision set to the revision of deletion.
*
*
* .mvccpb.KeyValue kv = 2;
*/
com.ibm.etcd.api.KeyValueOrBuilder getKvOrBuilder();
/**
*
* prev_kv holds the key-value pair before the event happens.
*
*
* .mvccpb.KeyValue prev_kv = 3;
* @return Whether the prevKv field is set.
*/
boolean hasPrevKv();
/**
*
* prev_kv holds the key-value pair before the event happens.
*
*
* .mvccpb.KeyValue prev_kv = 3;
* @return The prevKv.
*/
com.ibm.etcd.api.KeyValue getPrevKv();
/**
*
* prev_kv holds the key-value pair before the event happens.
*
*
* .mvccpb.KeyValue prev_kv = 3;
*/
com.ibm.etcd.api.KeyValueOrBuilder getPrevKvOrBuilder();
}