4 #ifndef PROTOBUF_etcdserver_2eproto__INCLUDED
5 #define PROTOBUF_etcdserver_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/unknown_field_set.h>
34 namespace protobuf_etcdserver_2eproto {
37 static const ::google::protobuf::internal::ParseTableField
entries[];
38 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
39 static const ::google::protobuf::internal::ParseTable
schema[2];
42 static const ::google::protobuf::uint32
offsets[];
54 namespace etcdserverpb {
62 namespace etcdserverpb {
66 class Request :
public ::google::protobuf::Message {
80 *
this = ::std::move(from);
99 static const ::google::protobuf::Descriptor*
descriptor();
104 return reinterpret_cast<const Request*
>(
119 Request*
New(::google::protobuf::Arena* arena)
const PROTOBUF_FINAL;
120 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
121 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
124 void Clear() PROTOBUF_FINAL;
129 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
131 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
133 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
149 ::google::protobuf::Metadata
GetMetadata() const PROTOBUF_FINAL;
159 const ::std::
string&
method() const;
165 void set_method(
const char* value,
size_t size);
174 const ::std::string&
path()
const;
175 void set_path(const ::std::string& value);
177 void set_path(::std::string&& value);
180 void set_path(
const char* value,
size_t size);
189 const ::std::string&
val()
const;
190 void set_val(const ::std::string& value);
192 void set_val(::std::string&& value);
194 void set_val(
const char* value);
195 void set_val(
const char* value,
size_t size);
219 ::google::protobuf::uint64
id()
const;
220 void set_id(::google::protobuf::uint64 value);
226 ::google::protobuf::uint64
previndex()
const;
240 ::google::protobuf::uint64
since()
const;
241 void set_since(::google::protobuf::uint64 value);
303 ::google::protobuf::int64
time()
const;
304 void set_time(::google::protobuf::int64 value);
346 ::google::protobuf::internal::ArenaStringPtr
method_;
347 ::google::protobuf::internal::ArenaStringPtr
path_;
348 ::google::protobuf::internal::ArenaStringPtr
val_;
350 ::google::protobuf::uint64
id_;
363 friend struct ::protobuf_etcdserver_2eproto::TableStruct;
368 class Metadata :
public ::google::protobuf::Message {
382 *
this = ::std::move(from);
401 static const ::google::protobuf::Descriptor*
descriptor();
406 return reinterpret_cast<const Metadata*
>(
421 Metadata*
New(::google::protobuf::Arena* arena)
const PROTOBUF_FINAL;
422 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
423 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
426 void Clear() PROTOBUF_FINAL;
431 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
433 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
435 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
451 ::google::protobuf::Metadata
GetMetadata() const PROTOBUF_FINAL;
461 ::google::protobuf::uint64
nodeid() const;
462 void set_nodeid(::google::protobuf::uint64 value);
468 ::google::protobuf::uint64
clusterid() const;
483 friend struct ::protobuf_etcdserver_2eproto::TableStruct;
492 #pragma GCC diagnostic push
493 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
499 return (_has_bits_[0] & 0x00000010u) != 0;
502 _has_bits_[0] |= 0x00000010u;
505 _has_bits_[0] &= ~0x00000010u;
508 id_ = GOOGLE_ULONGLONG(0);
523 return (_has_bits_[0] & 0x00000001u) != 0;
526 _has_bits_[0] |= 0x00000001u;
529 _has_bits_[0] &= ~0x00000001u;
532 method_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
537 return method_.GetNoArena();
541 method_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
548 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
553 GOOGLE_DCHECK(value != NULL);
555 method_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
560 method_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
561 ::std::string(reinterpret_cast<const char*>(value), size));
567 return method_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
572 return method_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
575 if (method != NULL) {
580 method_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), method);
586 return (_has_bits_[0] & 0x00000002u) != 0;
589 _has_bits_[0] |= 0x00000002u;
592 _has_bits_[0] &= ~0x00000002u;
595 path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
600 return path_.GetNoArena();
604 path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
611 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
616 GOOGLE_DCHECK(value != NULL);
618 path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
623 path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
624 ::std::string(reinterpret_cast<const char*>(value), size));
630 return path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
635 return path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
643 path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), path);
649 return (_has_bits_[0] & 0x00000004u) != 0;
652 _has_bits_[0] |= 0x00000004u;
655 _has_bits_[0] &= ~0x00000004u;
658 val_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
663 return val_.GetNoArena();
667 val_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
674 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
679 GOOGLE_DCHECK(value != NULL);
681 val_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
686 val_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
687 ::std::string(reinterpret_cast<const char*>(value), size));
693 return val_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
698 return val_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
706 val_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), val);
712 return (_has_bits_[0] & 0x00000100u) != 0;
715 _has_bits_[0] |= 0x00000100u;
718 _has_bits_[0] &= ~0x00000100u;
736 return (_has_bits_[0] & 0x00000008u) != 0;
739 _has_bits_[0] |= 0x00000008u;
742 _has_bits_[0] &= ~0x00000008u;
745 prevvalue_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
746 clear_has_prevvalue();
750 return prevvalue_.GetNoArena();
754 prevvalue_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
760 prevvalue_.SetNoArena(
761 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
766 GOOGLE_DCHECK(value != NULL);
768 prevvalue_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
773 prevvalue_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
774 ::std::string(reinterpret_cast<const char*>(value), size));
780 return prevvalue_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
784 clear_has_prevvalue();
785 return prevvalue_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
788 if (prevvalue != NULL) {
791 clear_has_prevvalue();
793 prevvalue_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), prevvalue);
799 return (_has_bits_[0] & 0x00000020u) != 0;
802 _has_bits_[0] |= 0x00000020u;
805 _has_bits_[0] &= ~0x00000020u;
808 previndex_ = GOOGLE_ULONGLONG(0);
809 clear_has_previndex();
823 return (_has_bits_[0] & 0x00000200u) != 0;
826 _has_bits_[0] |= 0x00000200u;
829 _has_bits_[0] &= ~0x00000200u;
833 clear_has_prevexist();
847 return (_has_bits_[0] & 0x00000040u) != 0;
850 _has_bits_[0] |= 0x00000040u;
853 _has_bits_[0] &= ~0x00000040u;
856 expiration_ = GOOGLE_LONGLONG(0);
857 clear_has_expiration();
864 set_has_expiration();
871 return (_has_bits_[0] & 0x00000400u) != 0;
874 _has_bits_[0] |= 0x00000400u;
877 _has_bits_[0] &= ~0x00000400u;
895 return (_has_bits_[0] & 0x00000080u) != 0;
898 _has_bits_[0] |= 0x00000080u;
901 _has_bits_[0] &= ~0x00000080u;
904 since_ = GOOGLE_ULONGLONG(0);
919 return (_has_bits_[0] & 0x00000800u) != 0;
922 _has_bits_[0] |= 0x00000800u;
925 _has_bits_[0] &= ~0x00000800u;
929 clear_has_recursive();
943 return (_has_bits_[0] & 0x00001000u) != 0;
946 _has_bits_[0] |= 0x00001000u;
949 _has_bits_[0] &= ~0x00001000u;
967 return (_has_bits_[0] & 0x00002000u) != 0;
970 _has_bits_[0] |= 0x00002000u;
973 _has_bits_[0] &= ~0x00002000u;
991 return (_has_bits_[0] & 0x00010000u) != 0;
994 _has_bits_[0] |= 0x00010000u;
997 _has_bits_[0] &= ~0x00010000u;
1000 time_ = GOOGLE_LONGLONG(0);
1015 return (_has_bits_[0] & 0x00004000u) != 0;
1018 _has_bits_[0] |= 0x00004000u;
1021 _has_bits_[0] &= ~0x00004000u;
1039 return (_has_bits_[0] & 0x00008000u) != 0;
1042 _has_bits_[0] |= 0x00008000u;
1045 _has_bits_[0] &= ~0x00008000u;
1049 clear_has_refresh();
1067 return (_has_bits_[0] & 0x00000001u) != 0;
1070 _has_bits_[0] |= 0x00000001u;
1073 _has_bits_[0] &= ~0x00000001u;
1076 nodeid_ = GOOGLE_ULONGLONG(0);
1091 return (_has_bits_[0] & 0x00000002u) != 0;
1094 _has_bits_[0] |= 0x00000002u;
1097 _has_bits_[0] &= ~0x00000002u;
1100 clusterid_ = GOOGLE_ULONGLONG(0);
1114 #pragma GCC diagnostic pop
1125 #endif // PROTOBUF_etcdserver_2eproto__INCLUDED
void InitDefaultsMetadataImpl()
void set_time(::google::protobuf::int64 value)
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
int GetCachedSize() const PROTOBUF_FINAL
::google::protobuf::uint64 previndex() const
static const int kPrevValueFieldNumber
::google::protobuf::int64 expiration() const
void set_allocated_method(::std::string *method)
static const int kQuorumFieldNumber
static const int kRecursiveFieldNumber
static const int kMethodFieldNumber
::std::string * release_method()
Request & operator=(const Request &from)
Request * New() const PROTOBUF_FINAL
void set_id(::google::protobuf::uint64 value)
::google::protobuf::uint64 since() const
const ::std::string & method() const
static const int kSortedFieldNumber
size_t ByteSizeLong() const PROTOBUF_FINAL
::google::protobuf::uint64 id() const
bool has_prevvalue() const
void Swap(Request *other)
void set_quorum(bool value)
void clear_has_expiration()
bool has_expiration() const
bool has_recursive() const
void clear_has_previndex()
void InitDefaultsRequestImpl()
static const int kExpirationFieldNumber
void set_wait(bool value)
static const int kPathFieldNumber
::std::string * release_prevvalue()
const ::std::string & val() const
const ::std::string & prevvalue() const
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
::google::protobuf::internal::ArenaStringPtr method_
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void set_sorted(bool value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void set_has_expiration()
::std::string * mutable_prevvalue()
void * MaybeArenaPtr() const
void set_since(::google::protobuf::uint64 value)
::google::protobuf::internal::ArenaStringPtr path_
::google::protobuf::int64 time_
::google::protobuf::internal::HasBits< 1 > _has_bits_
const ::std::string & path() const
void set_prevvalue(const ::std::string &value)
void set_refresh(bool value)
::google::protobuf::int64 time() const
void clear_has_recursive()
void clear_has_prevvalue()
void SetCachedSize(int size) const PROTOBUF_FINAL
::google::protobuf::int64 expiration_
inline::google::protobuf::Arena * GetArenaNoVirtual() const
static const int kSinceFieldNumber
::google::protobuf::internal::ArenaStringPtr prevvalue_
static const Request & default_instance()
static const ::google::protobuf::uint32 offsets[]
::std::string * release_path()
friend void swap(Request &a, Request &b)
static const int kPrevExistFieldNumber
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
static const Request * internal_default_instance()
static const int kDirFieldNumber
static const int kPrevIndexFieldNumber
void InternalSwap(Request *other)
void set_expiration(::google::protobuf::int64 value)
::google::protobuf::uint64 previndex_
void set_allocated_val(::std::string *val)
void set_stream(bool value)
void set_allocated_prevvalue(::std::string *prevvalue)
static const ::google::protobuf::internal::ParseTableField entries[]
::google::protobuf::uint64 id_
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
bool has_prevexist() const
static const ::google::protobuf::internal::ParseTable schema[2]
void set_previndex(::google::protobuf::uint64 value)
::std::string * release_val()
void set_val(const ::std::string &value)
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
void set_prevexist(bool value)
static const ::google::protobuf::internal::SerializationTable serialization_table[]
void Clear() PROTOBUF_FINAL
void clear_has_prevexist()
::google::protobuf::uint64 since_
static const int kIDFieldNumber
static const int kValFieldNumber
static void InitAsDefaultInstance()
static const ::google::protobuf::Descriptor * descriptor()
bool IsInitialized() const PROTOBUF_FINAL
class etcdserverpb::RequestDefaultTypeInternal _Request_default_instance_
void set_path(const ::std::string &value)
class etcdserverpb::MetadataDefaultTypeInternal _Metadata_default_instance_
::std::string * mutable_path()
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
static const int kRefreshFieldNumber
::std::string * mutable_method()
bool has_previndex() const
static const int kWaitFieldNumber
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
::std::string * mutable_val()
static const int kTimeFieldNumber
static const int kStreamFieldNumber
void set_method(const ::std::string &value)
void InitDefaultsMetadata()
void set_recursive(bool value)
void set_allocated_path(::std::string *path)
void InitDefaultsRequest()
::google::protobuf::internal::ArenaStringPtr val_
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL