8 #include <google/protobuf/stubs/common.h>
9 #include <google/protobuf/stubs/port.h>
10 #include <google/protobuf/stubs/once.h>
11 #include <google/protobuf/io/coded_stream.h>
12 #include <google/protobuf/wire_format_lite_inl.h>
13 #include <google/protobuf/descriptor.h>
14 #include <google/protobuf/generated_message_reflection.h>
15 #include <google/protobuf/reflection_ops.h>
16 #include <google/protobuf/wire_format.h>
18 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
19 #include "third_party/protobuf/version.h"
22 namespace etcdserverpb {
25 ::google::protobuf::internal::ExplicitlyConstructed<Request>
30 ::google::protobuf::internal::ExplicitlyConstructed<Metadata>
34 namespace protobuf_etcdserver_2eproto {
36 GOOGLE_PROTOBUF_VERIFY_VERSION;
38 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
39 ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
41 ::google::protobuf::internal::InitProtobufDefaults();
42 #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
46 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
52 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
57 GOOGLE_PROTOBUF_VERIFY_VERSION;
59 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
60 ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
62 ::google::protobuf::internal::InitProtobufDefaults();
63 #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
67 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
73 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
141 ::google::protobuf::MessageFactory* factory = NULL;
148 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
161 "\n\020etcdserver.proto\022\014etcdserverpb\"\231\002\n\007Req"
162 "uest\022\n\n\002ID\030\001 \001(\004\022\016\n\006Method\030\002 \001(\t\022\014\n\004Path"
163 "\030\003 \001(\t\022\013\n\003Val\030\004 \001(\t\022\013\n\003Dir\030\005 \001(\010\022\021\n\tPrev"
164 "Value\030\006 \001(\t\022\021\n\tPrevIndex\030\007 \001(\004\022\021\n\tPrevEx"
165 "ist\030\010 \001(\010\022\022\n\nExpiration\030\t \001(\003\022\014\n\004Wait\030\n "
166 "\001(\010\022\r\n\005Since\030\013 \001(\004\022\021\n\tRecursive\030\014 \001(\010\022\016\n"
167 "\006Sorted\030\r \001(\010\022\016\n\006Quorum\030\016 \001(\010\022\014\n\004Time\030\017 "
168 "\001(\003\022\016\n\006Stream\030\020 \001(\010\022\017\n\007Refresh\030\021 \001(\010\"-\n\010"
169 "Metadata\022\016\n\006NodeID\030\001 \001(\004\022\021\n\tClusterID\030\002 "
172 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
174 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
179 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
189 namespace etcdserverpb {
193 void Request::InitAsDefaultInstance() {
195 #if !defined(_MSC_VER) || _MSC_VER >= 1900
196 const int Request::kIDFieldNumber;
197 const int Request::kMethodFieldNumber;
198 const int Request::kPathFieldNumber;
199 const int Request::kValFieldNumber;
200 const int Request::kDirFieldNumber;
201 const int Request::kPrevValueFieldNumber;
202 const int Request::kPrevIndexFieldNumber;
203 const int Request::kPrevExistFieldNumber;
204 const int Request::kExpirationFieldNumber;
205 const int Request::kWaitFieldNumber;
206 const int Request::kSinceFieldNumber;
207 const int Request::kRecursiveFieldNumber;
208 const int Request::kSortedFieldNumber;
209 const int Request::kQuorumFieldNumber;
210 const int Request::kTimeFieldNumber;
211 const int Request::kStreamFieldNumber;
212 const int Request::kRefreshFieldNumber;
213 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
216 : ::google::protobuf::
Message(), _internal_metadata_(NULL) {
224 : ::google::protobuf::
Message(),
225 _internal_metadata_(NULL),
226 _has_bits_(from._has_bits_),
229 method_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
231 method_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.
method_);
233 path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
235 path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.
path_);
237 val_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
239 val_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.
val_);
241 prevvalue_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
243 prevvalue_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.
prevvalue_);
246 static_cast<size_t>(reinterpret_cast<char*>(&
time_) -
247 reinterpret_cast<char*>(&
id_)) +
sizeof(
time_));
253 method_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
254 path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
255 val_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
256 prevvalue_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
257 ::memset(&
id_, 0, static_cast<size_t>(
258 reinterpret_cast<char*>(&
time_) -
259 reinterpret_cast<char*>(&
id_)) +
sizeof(
time_));
268 method_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
269 path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
270 val_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
271 prevvalue_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
275 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
277 GOOGLE_SAFE_CONCURRENT_WRITES_END();
299 ::google::protobuf::uint32 cached_has_bits = 0;
301 (void) cached_has_bits;
304 if (cached_has_bits & 15u) {
305 if (cached_has_bits & 0x00000001u) {
306 GOOGLE_DCHECK(!
method_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
307 (*
method_.UnsafeRawStringPointer())->clear();
309 if (cached_has_bits & 0x00000002u) {
310 GOOGLE_DCHECK(!
path_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
311 (*
path_.UnsafeRawStringPointer())->clear();
313 if (cached_has_bits & 0x00000004u) {
314 GOOGLE_DCHECK(!
val_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
315 (*
val_.UnsafeRawStringPointer())->clear();
317 if (cached_has_bits & 0x00000008u) {
318 GOOGLE_DCHECK(!
prevvalue_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
319 (*
prevvalue_.UnsafeRawStringPointer())->clear();
322 if (cached_has_bits & 240u) {
323 ::memset(&
id_, 0, static_cast<size_t>(
324 reinterpret_cast<char*>(&
since_) -
325 reinterpret_cast<char*>(&
id_)) +
sizeof(
since_));
327 if (cached_has_bits & 65280u) {
328 ::memset(&
dir_, 0, static_cast<size_t>(
329 reinterpret_cast<char*>(&
refresh_) -
332 time_ = GOOGLE_LONGLONG(0);
338 ::google::protobuf::io::CodedInputStream* input) {
339 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
340 ::google::protobuf::uint32 tag;
343 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
345 if (!p.second)
goto handle_unusual;
346 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
349 if (static_cast< ::google::protobuf::uint8>(tag) ==
350 static_cast< ::google::protobuf::uint8>(8u )) {
352 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
353 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
363 if (static_cast< ::google::protobuf::uint8>(tag) ==
364 static_cast< ::google::protobuf::uint8>(18u )) {
365 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
367 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
368 this->
method().data(), static_cast<int>(this->
method().length()),
369 ::google::protobuf::internal::WireFormat::PARSE,
370 "etcdserverpb.Request.Method");
379 if (static_cast< ::google::protobuf::uint8>(tag) ==
380 static_cast< ::google::protobuf::uint8>(26u )) {
381 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
383 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
384 this->
path().data(), static_cast<int>(this->
path().length()),
385 ::google::protobuf::internal::WireFormat::PARSE,
386 "etcdserverpb.Request.Path");
395 if (static_cast< ::google::protobuf::uint8>(tag) ==
396 static_cast< ::google::protobuf::uint8>(34u )) {
397 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
399 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
400 this->
val().data(), static_cast<int>(this->
val().length()),
401 ::google::protobuf::internal::WireFormat::PARSE,
402 "etcdserverpb.Request.Val");
411 if (static_cast< ::google::protobuf::uint8>(tag) ==
412 static_cast< ::google::protobuf::uint8>(40u )) {
414 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
415 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
425 if (static_cast< ::google::protobuf::uint8>(tag) ==
426 static_cast< ::google::protobuf::uint8>(50u )) {
427 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
429 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
431 ::google::protobuf::internal::WireFormat::PARSE,
432 "etcdserverpb.Request.PrevValue");
441 if (static_cast< ::google::protobuf::uint8>(tag) ==
442 static_cast< ::google::protobuf::uint8>(56u )) {
444 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
445 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
455 if (static_cast< ::google::protobuf::uint8>(tag) ==
456 static_cast< ::google::protobuf::uint8>(64u )) {
458 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
459 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
469 if (static_cast< ::google::protobuf::uint8>(tag) ==
470 static_cast< ::google::protobuf::uint8>(72u )) {
472 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
473 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
483 if (static_cast< ::google::protobuf::uint8>(tag) ==
484 static_cast< ::google::protobuf::uint8>(80u )) {
486 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
487 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
497 if (static_cast< ::google::protobuf::uint8>(tag) ==
498 static_cast< ::google::protobuf::uint8>(88u )) {
500 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
501 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
511 if (static_cast< ::google::protobuf::uint8>(tag) ==
512 static_cast< ::google::protobuf::uint8>(96u )) {
514 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
515 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
525 if (static_cast< ::google::protobuf::uint8>(tag) ==
526 static_cast< ::google::protobuf::uint8>(104u )) {
528 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
529 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
539 if (static_cast< ::google::protobuf::uint8>(tag) ==
540 static_cast< ::google::protobuf::uint8>(112u )) {
542 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
543 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
553 if (static_cast< ::google::protobuf::uint8>(tag) ==
554 static_cast< ::google::protobuf::uint8>(120u )) {
556 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
557 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
567 if (static_cast< ::google::protobuf::uint8>(tag) ==
568 static_cast< ::google::protobuf::uint8>(128u )) {
570 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
571 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
581 if (static_cast< ::google::protobuf::uint8>(tag) ==
582 static_cast< ::google::protobuf::uint8>(136u )) {
584 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
585 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
598 DO_(::google::protobuf::internal::WireFormat::SkipField(
614 ::google::protobuf::io::CodedOutputStream* output)
const {
616 ::google::protobuf::uint32 cached_has_bits = 0;
617 (void) cached_has_bits;
621 if (cached_has_bits & 0x00000010u) {
622 ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->
id(), output);
626 if (cached_has_bits & 0x00000001u) {
627 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
628 this->
method().data(), static_cast<int>(this->
method().length()),
629 ::google::protobuf::internal::WireFormat::SERIALIZE,
630 "etcdserverpb.Request.Method");
631 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
632 2, this->
method(), output);
636 if (cached_has_bits & 0x00000002u) {
637 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
638 this->
path().data(), static_cast<int>(this->
path().length()),
639 ::google::protobuf::internal::WireFormat::SERIALIZE,
640 "etcdserverpb.Request.Path");
641 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
642 3, this->
path(), output);
646 if (cached_has_bits & 0x00000004u) {
647 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
648 this->
val().data(), static_cast<int>(this->
val().length()),
649 ::google::protobuf::internal::WireFormat::SERIALIZE,
650 "etcdserverpb.Request.Val");
651 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
652 4, this->
val(), output);
656 if (cached_has_bits & 0x00000100u) {
657 ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->
dir(), output);
661 if (cached_has_bits & 0x00000008u) {
662 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
664 ::google::protobuf::internal::WireFormat::SERIALIZE,
665 "etcdserverpb.Request.PrevValue");
666 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
671 if (cached_has_bits & 0x00000020u) {
672 ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->
previndex(), output);
676 if (cached_has_bits & 0x00000200u) {
677 ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->
prevexist(), output);
681 if (cached_has_bits & 0x00000040u) {
682 ::google::protobuf::internal::WireFormatLite::WriteInt64(9, this->
expiration(), output);
686 if (cached_has_bits & 0x00000400u) {
687 ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->
wait(), output);
691 if (cached_has_bits & 0x00000080u) {
692 ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->
since(), output);
696 if (cached_has_bits & 0x00000800u) {
697 ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->
recursive(), output);
701 if (cached_has_bits & 0x00001000u) {
702 ::google::protobuf::internal::WireFormatLite::WriteBool(13, this->
sorted(), output);
706 if (cached_has_bits & 0x00002000u) {
707 ::google::protobuf::internal::WireFormatLite::WriteBool(14, this->
quorum(), output);
711 if (cached_has_bits & 0x00010000u) {
712 ::google::protobuf::internal::WireFormatLite::WriteInt64(15, this->
time(), output);
716 if (cached_has_bits & 0x00004000u) {
717 ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->
stream(), output);
721 if (cached_has_bits & 0x00008000u) {
722 ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->
refresh(), output);
726 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
733 bool deterministic, ::google::protobuf::uint8* target)
const {
736 ::google::protobuf::uint32 cached_has_bits = 0;
737 (void) cached_has_bits;
741 if (cached_has_bits & 0x00000010u) {
742 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->
id(), target);
746 if (cached_has_bits & 0x00000001u) {
747 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
748 this->
method().data(), static_cast<int>(this->
method().length()),
749 ::google::protobuf::internal::WireFormat::SERIALIZE,
750 "etcdserverpb.Request.Method");
752 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
753 2, this->
method(), target);
757 if (cached_has_bits & 0x00000002u) {
758 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
759 this->
path().data(), static_cast<int>(this->
path().length()),
760 ::google::protobuf::internal::WireFormat::SERIALIZE,
761 "etcdserverpb.Request.Path");
763 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
764 3, this->
path(), target);
768 if (cached_has_bits & 0x00000004u) {
769 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
770 this->
val().data(), static_cast<int>(this->
val().length()),
771 ::google::protobuf::internal::WireFormat::SERIALIZE,
772 "etcdserverpb.Request.Val");
774 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
775 4, this->
val(), target);
779 if (cached_has_bits & 0x00000100u) {
780 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->
dir(), target);
784 if (cached_has_bits & 0x00000008u) {
785 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
787 ::google::protobuf::internal::WireFormat::SERIALIZE,
788 "etcdserverpb.Request.PrevValue");
790 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
795 if (cached_has_bits & 0x00000020u) {
796 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->
previndex(), target);
800 if (cached_has_bits & 0x00000200u) {
801 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->
prevexist(), target);
805 if (cached_has_bits & 0x00000040u) {
806 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(9, this->
expiration(), target);
810 if (cached_has_bits & 0x00000400u) {
811 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->
wait(), target);
815 if (cached_has_bits & 0x00000080u) {
816 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->
since(), target);
820 if (cached_has_bits & 0x00000800u) {
821 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->
recursive(), target);
825 if (cached_has_bits & 0x00001000u) {
826 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->
sorted(), target);
830 if (cached_has_bits & 0x00002000u) {
831 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(14, this->
quorum(), target);
835 if (cached_has_bits & 0x00010000u) {
836 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(15, this->
time(), target);
840 if (cached_has_bits & 0x00004000u) {
841 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->
stream(), target);
845 if (cached_has_bits & 0x00008000u) {
846 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->
refresh(), target);
850 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
859 size_t total_size = 0;
863 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
870 ::google::protobuf::internal::WireFormatLite::StringSize(
877 ::google::protobuf::internal::WireFormatLite::StringSize(
884 ::google::protobuf::internal::WireFormatLite::StringSize(
891 ::google::protobuf::internal::WireFormatLite::StringSize(
898 ::google::protobuf::internal::WireFormatLite::UInt64Size(
905 ::google::protobuf::internal::WireFormatLite::UInt64Size(
912 ::google::protobuf::internal::WireFormatLite::Int64Size(
919 ::google::protobuf::internal::WireFormatLite::UInt64Size(
969 ::google::protobuf::internal::WireFormatLite::Int64Size(
973 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
974 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
976 GOOGLE_SAFE_CONCURRENT_WRITES_END();
982 GOOGLE_DCHECK_NE(&from,
this);
984 ::google::protobuf::internal::DynamicCastToGenerated<const Request>(
986 if (source == NULL) {
988 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
997 GOOGLE_DCHECK_NE(&from,
this);
999 ::google::protobuf::uint32 cached_has_bits = 0;
1000 (void) cached_has_bits;
1003 if (cached_has_bits & 255u) {
1004 if (cached_has_bits & 0x00000001u) {
1006 method_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.
method_);
1008 if (cached_has_bits & 0x00000002u) {
1010 path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.
path_);
1012 if (cached_has_bits & 0x00000004u) {
1014 val_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.
val_);
1016 if (cached_has_bits & 0x00000008u) {
1018 prevvalue_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.
prevvalue_);
1020 if (cached_has_bits & 0x00000010u) {
1023 if (cached_has_bits & 0x00000020u) {
1026 if (cached_has_bits & 0x00000040u) {
1029 if (cached_has_bits & 0x00000080u) {
1034 if (cached_has_bits & 65280u) {
1035 if (cached_has_bits & 0x00000100u) {
1038 if (cached_has_bits & 0x00000200u) {
1041 if (cached_has_bits & 0x00000400u) {
1044 if (cached_has_bits & 0x00000800u) {
1047 if (cached_has_bits & 0x00001000u) {
1050 if (cached_has_bits & 0x00002000u) {
1053 if (cached_has_bits & 0x00004000u) {
1056 if (cached_has_bits & 0x00008000u) {
1061 if (cached_has_bits & 0x00010000u) {
1068 if (&from ==
this)
return;
1075 if (&from ==
this)
return;
1085 if (other ==
this)
return;
1122 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1125 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1128 : ::google::protobuf::
Message(), _internal_metadata_(NULL) {
1136 : ::google::protobuf::
Message(),
1137 _internal_metadata_(NULL),
1138 _has_bits_(from._has_bits_),
1142 static_cast<size_t>(reinterpret_cast<char*>(&
clusterid_) -
1149 ::memset(&
nodeid_, 0, static_cast<size_t>(
1163 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1165 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1179 if (arena != NULL) {
1187 ::google::protobuf::uint32 cached_has_bits = 0;
1189 (void) cached_has_bits;
1192 if (cached_has_bits & 3u) {
1193 ::memset(&
nodeid_, 0, static_cast<size_t>(
1202 ::google::protobuf::io::CodedInputStream* input) {
1203 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1204 ::google::protobuf::uint32 tag;
1207 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1209 if (!p.second)
goto handle_unusual;
1210 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1213 if (static_cast< ::google::protobuf::uint8>(tag) ==
1214 static_cast< ::google::protobuf::uint8>(8u )) {
1216 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1217 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1220 goto handle_unusual;
1227 if (static_cast< ::google::protobuf::uint8>(tag) ==
1228 static_cast< ::google::protobuf::uint8>(16u )) {
1230 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1231 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1234 goto handle_unusual;
1244 DO_(::google::protobuf::internal::WireFormat::SkipField(
1260 ::google::protobuf::io::CodedOutputStream* output)
const {
1262 ::google::protobuf::uint32 cached_has_bits = 0;
1263 (void) cached_has_bits;
1267 if (cached_has_bits & 0x00000001u) {
1268 ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->
nodeid(), output);
1272 if (cached_has_bits & 0x00000002u) {
1273 ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->
clusterid(), output);
1277 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1284 bool deterministic, ::google::protobuf::uint8* target)
const {
1285 (void)deterministic;
1287 ::google::protobuf::uint32 cached_has_bits = 0;
1288 (void) cached_has_bits;
1292 if (cached_has_bits & 0x00000001u) {
1293 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->
nodeid(), target);
1297 if (cached_has_bits & 0x00000002u) {
1298 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->
clusterid(), target);
1302 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1311 size_t total_size = 0;
1315 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1322 ::google::protobuf::internal::WireFormatLite::UInt64Size(
1329 ::google::protobuf::internal::WireFormatLite::UInt64Size(
1334 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1335 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1337 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1343 GOOGLE_DCHECK_NE(&from,
this);
1345 ::google::protobuf::internal::DynamicCastToGenerated<const Metadata>(
1347 if (source == NULL) {
1349 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1358 GOOGLE_DCHECK_NE(&from,
this);
1360 ::google::protobuf::uint32 cached_has_bits = 0;
1361 (void) cached_has_bits;
1364 if (cached_has_bits & 3u) {
1365 if (cached_has_bits & 0x00000001u) {
1368 if (cached_has_bits & 0x00000002u) {
1377 if (&from ==
this)
return;
1384 if (&from ==
this)
return;
1394 if (other ==
this)
return;
void InitDefaultsMetadataImpl()
void protobuf_AssignDescriptors()
void set_time(::google::protobuf::int64 value)
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
::google::protobuf::uint64 previndex() const
void failure(const char *fmt,...)
::google::protobuf::int64 expiration() const
::google::protobuf::Metadata file_level_metadata[2]
Request * New() const PROTOBUF_FINAL
::google::protobuf::uint64 since() const
const ::std::string & method() const
size_t ByteSizeLong() const PROTOBUF_FINAL
bool has_prevvalue() const
void Swap(Request *other)
bool has_expiration() const
bool has_recursive() const
void InitDefaultsRequestImpl()
const ::std::string & val() const
const ::std::string & prevvalue() const
::google::protobuf::internal::ArenaStringPtr method_
void set_has_expiration()
::std::string * mutable_prevvalue()
::google::protobuf::internal::ArenaStringPtr path_
::google::protobuf::internal::ExplicitlyConstructed< Request > _instance
::google::protobuf::int64 time_
::google::protobuf::internal::HasBits< 1 > _has_bits_
const ::std::string & path() const
::google::protobuf::int64 time() const
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
void SetCachedSize(int size) const PROTOBUF_FINAL
::google::protobuf::int64 expiration_
::google::protobuf::internal::ArenaStringPtr prevvalue_
static const Request & default_instance()
static const ::google::protobuf::uint32 offsets[]
friend void swap(Request &a, Request &b)
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
static const Request * internal_default_instance()
void InternalSwap(Request *other)
::google::protobuf::uint64 previndex_
void protobuf_AssignDescriptorsOnce()
::google::protobuf::uint64 id_
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
bool has_prevexist() const
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
void Clear() PROTOBUF_FINAL
::google::protobuf::uint64 since_
static void InitAsDefaultInstance()
static const ::google::protobuf::Descriptor * descriptor()
bool IsInitialized() const PROTOBUF_FINAL
class etcdserverpb::RequestDefaultTypeInternal _Request_default_instance_
class etcdserverpb::MetadataDefaultTypeInternal _Metadata_default_instance_
::std::string * mutable_path()
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
::std::string * mutable_method()
bool has_previndex() const
void AddDescriptorsImpl()
struct protobuf_etcdserver_2eproto::StaticDescriptorInitializer static_descriptor_initializer
::std::string * mutable_val()
::google::protobuf::Metadata file_level_metadata[3]
void InitDefaultsMetadata()
StaticDescriptorInitializer()
void protobuf_AssignDescriptorsOnce()
void InitDefaultsRequest()
::google::protobuf::internal::ArenaStringPtr val_
void protobuf_RegisterTypes(const ::std::string &) GOOGLE_PROTOBUF_ATTRIBUTE_COLD
::google::protobuf::Message const *const file_default_instances[]
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL