4 #ifndef PROTOBUF_kv_2eproto__INCLUDED
5 #define PROTOBUF_kv_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3005000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/metadata.h>
28 #include <google/protobuf/message.h>
29 #include <google/protobuf/repeated_field.h>
30 #include <google/protobuf/extension_set.h>
31 #include <google/protobuf/generated_enum_reflection.h>
32 #include <google/protobuf/unknown_field_set.h>
35 namespace protobuf_kv_2eproto {
38 static const ::google::protobuf::internal::ParseTableField
entries[];
39 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
40 static const ::google::protobuf::internal::ParseTable
schema[2];
43 static const ::google::protobuf::uint32
offsets[];
78 return ::google::protobuf::internal::NameOfEnum(
83 return ::google::protobuf::internal::ParseNamedEnum<Event_EventType>(
88 class KeyValue :
public ::google::protobuf::Message {
102 *
this = ::std::move(from);
114 static const ::google::protobuf::Descriptor*
descriptor();
119 return reinterpret_cast<const KeyValue*
>(
134 KeyValue*
New(::google::protobuf::Arena* arena)
const PROTOBUF_FINAL;
135 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
136 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
139 void Clear() PROTOBUF_FINAL;
144 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
146 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
148 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
164 ::google::protobuf::Metadata
GetMetadata() const PROTOBUF_FINAL;
173 const ::std::
string&
key() const;
176 void set_key(::std::string&& value);
178 void set_key(
const char* value);
179 void set_key(
const void* value,
size_t size);
187 const ::std::string&
value()
const;
188 void set_value(const ::std::string& value);
193 void set_value(
const void* value,
size_t size);
213 ::google::protobuf::int64
version()
const;
219 ::google::protobuf::int64
lease()
const;
220 void set_lease(::google::protobuf::int64 value);
226 ::google::protobuf::internal::ArenaStringPtr
key_;
227 ::google::protobuf::internal::ArenaStringPtr
value_;
233 friend struct ::protobuf_kv_2eproto::TableStruct;
238 class Event :
public ::google::protobuf::Message {
252 *
this = ::std::move(from);
264 static const ::google::protobuf::Descriptor*
descriptor();
269 return reinterpret_cast<const Event*
>(
284 Event*
New(::google::protobuf::Arena* arena)
const PROTOBUF_FINAL;
285 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
286 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
289 void Clear() PROTOBUF_FINAL;
294 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
296 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
298 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
314 ::google::protobuf::Metadata
GetMetadata() const PROTOBUF_FINAL;
319 static const EventType
PUT =
332 static inline const ::google::protobuf::EnumDescriptor*
350 const ::mvccpb::KeyValue&
kv()
const;
359 const ::mvccpb::KeyValue&
prev_kv()
const;
378 friend struct ::protobuf_kv_2eproto::TableStruct;
387 #pragma GCC diagnostic push
388 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
394 key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
398 return key_.GetNoArena();
402 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
409 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(
value));
414 GOOGLE_DCHECK(value != NULL);
416 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
421 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
422 ::std::string(reinterpret_cast<const char*>(value), size));
428 return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
433 return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
441 key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
489 value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
493 return value_.GetNoArena();
497 value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
504 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(
value));
509 GOOGLE_DCHECK(value != NULL);
511 value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
516 value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
517 ::std::string(reinterpret_cast<const char*>(value), size));
523 return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
528 return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
536 value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
542 lease_ = GOOGLE_LONGLONG(0);
583 const ::mvccpb::KeyValue* p =
kv_;
598 kv_ = new ::mvccpb::KeyValue;
605 if (message_arena == NULL) {
609 ::google::protobuf::Arena* submessage_arena = NULL;
610 if (message_arena != submessage_arena) {
611 kv = ::google::protobuf::internal::GetOwnedMessage(
612 message_arena, kv, submessage_arena);
633 const ::mvccpb::KeyValue* p =
prev_kv_;
655 if (message_arena == NULL) {
659 ::google::protobuf::Arena* submessage_arena = NULL;
660 if (message_arena != submessage_arena) {
661 prev_kv = ::google::protobuf::internal::GetOwnedMessage(
662 message_arena, prev_kv, submessage_arena);
673 #pragma GCC diagnostic pop
687 inline const EnumDescriptor* GetEnumDescriptor< ::mvccpb::Event_EventType>() {
696 #endif // PROTOBUF_kv_2eproto__INCLUDED
::google::protobuf::int64 lease() const
void Clear() PROTOBUF_FINAL
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
void set_allocated_key(::std::string *key)
::google::protobuf::internal::ArenaStringPtr value_
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
void Clear() PROTOBUF_FINAL
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
static void InitAsDefaultInstance()
::std::string * release_value()
void * MaybeArenaPtr() const
static const EventType DELETE
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
static const EventType EventType_MIN
friend void swap(KeyValue &a, KeyValue &b)
void set_allocated_value(::std::string *value)
int GetCachedSize() const PROTOBUF_FINAL
const Event_EventType Event_EventType_EventType_MAX
static const KeyValue * internal_default_instance()
::google::protobuf::internal::ArenaStringPtr key_
static void InitAsDefaultInstance()
::std::string * mutable_key()
static const ::google::protobuf::Descriptor * descriptor()
void SetCachedSize(int size) const PROTOBUF_FINAL
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
bool Event_EventType_Parse(const ::std::string &name, Event_EventType *value)
void InternalSwap(Event *other)
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
::google::protobuf::int64 version_
void set_allocated_kv(::mvccpb::KeyValue *kv)
static const int EventType_ARRAYSIZE
static const int kCreateRevisionFieldNumber
static const ::google::protobuf::Descriptor * descriptor()
void SetCachedSize(int size) const PROTOBUF_FINAL
void set_value(const ::std::string &value)
static const int kPrevKvFieldNumber
void InitDefaultsKeyValueImpl()
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
static const ::google::protobuf::internal::SerializationTable serialization_table[]
static const ::google::protobuf::EnumDescriptor * EventType_descriptor()
::google::protobuf::int64 create_revision_
::google::protobuf::int64 mod_revision() const
const ::std::string & key() const
static const ::std::string & EventType_Name(EventType value)
static const KeyValue & default_instance()
const ::std::string & value() const
const ::mvccpb::KeyValue & prev_kv() const
inline::google::protobuf::Arena * GetArenaNoVirtual() const
KeyValue & operator=(const KeyValue &from)
void set_allocated_prev_kv(::mvccpb::KeyValue *prev_kv)
::mvccpb::KeyValue * mutable_prev_kv()
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
void set_create_revision(::google::protobuf::int64 value)
::google::protobuf::int64 version() const
inline::google::protobuf::Arena * GetArenaNoVirtual() const
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
const ::std::string & Event_EventType_Name(Event_EventType value)
static const int kKvFieldNumber
friend void swap(Event &a, Event &b)
const Event_EventType Event_EventType_EventType_MIN
const ::mvccpb::KeyValue & kv() const
static const int kLeaseFieldNumber
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
static const Event & default_instance()
class mvccpb::KeyValueDefaultTypeInternal _KeyValue_default_instance_
void * MaybeArenaPtr() const
class mvccpb::EventDefaultTypeInternal _Event_default_instance_
bool IsInitialized() const PROTOBUF_FINAL
static bool EventType_Parse(const ::std::string &name, EventType *value)
static const EventType PUT
Event & operator=(const Event &from)
::std::string * release_key()
KeyValue * New() const PROTOBUF_FINAL
void set_mod_revision(::google::protobuf::int64 value)
size_t ByteSizeLong() const PROTOBUF_FINAL
::mvccpb::KeyValue * release_prev_kv()
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
static const int kKeyFieldNumber
::mvccpb::Event_EventType type() const
const ::google::protobuf::EnumDescriptor * Event_EventType_descriptor()
::mvccpb::KeyValue * prev_kv_
void InitDefaultsKeyValue()
static const EventType EventType_MAX
int GetCachedSize() const PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
::google::protobuf::int64 lease_
static const int kVersionFieldNumber
const int Event_EventType_EventType_ARRAYSIZE
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
static const int kModRevisionFieldNumber
Event * New() const PROTOBUF_FINAL
void set_key(const ::std::string &value)
void InternalSwap(KeyValue *other)
::mvccpb::KeyValue * mutable_kv()
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
static const int kTypeFieldNumber
void clear_create_revision()
::google::protobuf::int64 create_revision() const
void clear_mod_revision()
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
void set_type(::mvccpb::Event_EventType value)
bool IsInitialized() const PROTOBUF_FINAL
void InitDefaultsEventImpl()
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
void Swap(KeyValue *other)
static const Event * internal_default_instance()
void set_lease(::google::protobuf::int64 value)
bool Event_EventType_IsValid(int value)
size_t ByteSizeLong() const PROTOBUF_FINAL
static const ::google::protobuf::internal::ParseTableField entries[]
::mvccpb::KeyValue * release_kv()
static const ::google::protobuf::internal::ParseTable schema[2]
static bool EventType_IsValid(int value)
static const ::google::protobuf::uint32 offsets[]
void set_version(::google::protobuf::int64 value)
::std::string * mutable_value()
::google::protobuf::int64 mod_revision_
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
static const int kValueFieldNumber