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>
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[];
56 class MetadataDefaultTypeInternal;
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;
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;
492 #pragma GCC diagnostic push
493 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
508 id_ = GOOGLE_ULONGLONG(0);
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);
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);
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);
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);
808 previndex_ = GOOGLE_ULONGLONG(0);
809 clear_has_previndex();
833 clear_has_prevexist();
856 expiration_ = GOOGLE_LONGLONG(0);
857 clear_has_expiration();
864 set_has_expiration();
904 since_ = GOOGLE_ULONGLONG(0);
929 clear_has_recursive();
1000 time_ = GOOGLE_LONGLONG(0);
1049 clear_has_refresh();
1076 nodeid_ = GOOGLE_ULONGLONG(0);
1114 #pragma GCC diagnostic pop
void clear_has_prevexist()
::google::protobuf::internal::HasBits< 1 > _has_bits_
const ::std::string & prevvalue() const
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
static const int kPathFieldNumber
::google::protobuf::int64 expiration_
static const int kValFieldNumber
::std::string * release_val()
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
::std::string * release_method()
static const int kQuorumFieldNumber
void set_expiration(::google::protobuf::int64 value)
::std::string * release_prevvalue()
void set_time(::google::protobuf::int64 value)
void set_allocated_prevvalue(::std::string *prevvalue)
static const int kPrevValueFieldNumber
const ::std::string & method() const
static void InitAsDefaultInstance()
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
void * MaybeArenaPtr() const
static const int kTimeFieldNumber
::google::protobuf::uint64 id_
void set_refresh(bool value)
void set_since(::google::protobuf::uint64 value)
static const int kPrevIndexFieldNumber
void InternalSwap(Request *other)
void SetCachedSize(int size) const PROTOBUF_FINAL
bool has_previndex() const
static const int kDirFieldNumber
static const int kExpirationFieldNumber
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
static const int kRecursiveFieldNumber
static const int kSinceFieldNumber
::google::protobuf::internal::ArenaStringPtr prevvalue_
static const int kStreamFieldNumber
::std::string * release_path()
void set_path(const ::std::string &value)
bool IsInitialized() const PROTOBUF_FINAL
::google::protobuf::uint64 previndex_
void clear_has_expiration()
bool has_expiration() const
static const int kIDFieldNumber
void set_allocated_path(::std::string *path)
static const int kPrevExistFieldNumber
::google::protobuf::int64 time() const
void set_allocated_method(::std::string *method)
::google::protobuf::int64 time_
Request & operator=(const Request &from)
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
static const Request & default_instance()
void set_prevexist(bool value)
::google::protobuf::uint64 previndex() const
static const int kWaitFieldNumber
Request * New() const PROTOBUF_FINAL
void set_method(const ::std::string &value)
int GetCachedSize() const PROTOBUF_FINAL
static const int kRefreshFieldNumber
static const ::google::protobuf::Descriptor * descriptor()
void set_stream(bool value)
void set_has_expiration()
void set_wait(bool value)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
size_t ByteSizeLong() const PROTOBUF_FINAL
static const int kSortedFieldNumber
::google::protobuf::internal::ArenaStringPtr path_
static const Request * internal_default_instance()
bool has_prevvalue() const
bool has_prevexist() const
::std::string * mutable_val()
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
void set_previndex(::google::protobuf::uint64 value)
void set_allocated_val(::std::string *val)
::std::string * mutable_method()
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
const ::std::string & val() const
::std::string * mutable_prevvalue()
::google::protobuf::internal::ArenaStringPtr method_
::google::protobuf::uint64 id() const
::google::protobuf::uint64 since_
bool has_recursive() const
::google::protobuf::uint64 since() const
void set_quorum(bool value)
friend void swap(Request &a, Request &b)
void set_sorted(bool value)
void clear_has_previndex()
const ::std::string & path() const
void Clear() PROTOBUF_FINAL
void set_recursive(bool value)
inline ::google::protobuf::Arena * GetArenaNoVirtual() const
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const PROTOBUF_FINAL
void clear_has_recursive()
::google::protobuf::internal::ArenaStringPtr val_
void clear_has_prevvalue()
void Swap(Request *other)
void set_prevvalue(const ::std::string &value)
void set_val(const ::std::string &value)
static const int kMethodFieldNumber
::google::protobuf::int64 expiration() const
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
void set_id(::google::protobuf::uint64 value)
::std::string * mutable_path()
class etcdserverpb::MetadataDefaultTypeInternal _Metadata_default_instance_
class etcdserverpb::RequestDefaultTypeInternal _Request_default_instance_
void InitDefaultsMetadata()
void InitDefaultsRequest()
void InitDefaultsMetadataImpl()
void InitDefaultsRequestImpl()
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
static const ::google::protobuf::internal::ParseTable schema[2]
static const ::google::protobuf::internal::ParseTableField entries[]
static const ::google::protobuf::uint32 offsets[]
static const ::google::protobuf::internal::SerializationTable serialization_table[]