OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
etcdserver.pb.cc
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: etcdserver.proto
3 
4 #include "etcdserver.pb.h"
5 
6 #include <algorithm>
7 
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>
17 // This is a temporary google only hack
18 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
19 #include "third_party/protobuf/version.h"
20 #endif
21 // @@protoc_insertion_point(includes)
22 namespace etcdserverpb {
24  public:
25  ::google::protobuf::internal::ExplicitlyConstructed<Request>
29  public:
30  ::google::protobuf::internal::ExplicitlyConstructed<Metadata>
33 } // namespace etcdserverpb
34 namespace protobuf_etcdserver_2eproto {
36  GOOGLE_PROTOBUF_VERIFY_VERSION;
37 
38 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
39  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
40 #else
41  ::google::protobuf::internal::InitProtobufDefaults();
42 #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
43  {
45  new (ptr) ::etcdserverpb::Request();
46  ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
47  }
49 }
50 
52  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
53  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRequestImpl);
54 }
55 
57  GOOGLE_PROTOBUF_VERIFY_VERSION;
58 
59 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
60  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
61 #else
62  ::google::protobuf::internal::InitProtobufDefaults();
63 #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
64  {
66  new (ptr) ::etcdserverpb::Metadata();
67  ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
68  }
70 }
71 
73  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
74  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMetadataImpl);
75 }
76 
77 ::google::protobuf::Metadata file_level_metadata[2];
78 
79 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
80  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, _has_bits_),
81  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, _internal_metadata_),
82  ~0u, // no _extensions_
83  ~0u, // no _oneof_case_
84  ~0u, // no _weak_field_map_
85  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, id_),
86  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, method_),
87  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, path_),
88  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, val_),
89  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, dir_),
90  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, prevvalue_),
91  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, previndex_),
92  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, prevexist_),
93  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, expiration_),
94  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, wait_),
95  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, since_),
96  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, recursive_),
97  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, sorted_),
98  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, quorum_),
99  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, time_),
100  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, stream_),
101  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Request, refresh_),
102  4,
103  0,
104  1,
105  2,
106  8,
107  3,
108  5,
109  9,
110  6,
111  10,
112  7,
113  11,
114  12,
115  13,
116  16,
117  14,
118  15,
119  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Metadata, _has_bits_),
120  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Metadata, _internal_metadata_),
121  ~0u, // no _extensions_
122  ~0u, // no _oneof_case_
123  ~0u, // no _weak_field_map_
124  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Metadata, nodeid_),
125  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::etcdserverpb::Metadata, clusterid_),
126  0,
127  1,
128 };
129 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
130  { 0, 22, sizeof(::etcdserverpb::Request)},
131  { 39, 46, sizeof(::etcdserverpb::Metadata)},
132 };
133 
134 static ::google::protobuf::Message const * const file_default_instances[] = {
135  reinterpret_cast<const ::google::protobuf::Message*>(&::etcdserverpb::_Request_default_instance_),
136  reinterpret_cast<const ::google::protobuf::Message*>(&::etcdserverpb::_Metadata_default_instance_),
137 };
138 
140  AddDescriptors();
141  ::google::protobuf::MessageFactory* factory = NULL;
142  AssignDescriptors(
143  "etcdserver.proto", schemas, file_default_instances, TableStruct::offsets, factory,
144  file_level_metadata, NULL, NULL);
145 }
146 
148  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
149  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
150 }
151 
152 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
153 void protobuf_RegisterTypes(const ::std::string&) {
155  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
156 }
157 
159  InitDefaults();
160  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
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 "
170  "\001(\004"
171  };
172  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
173  descriptor, 363);
174  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
175  "etcdserver.proto", &protobuf_RegisterTypes);
176 }
177 
179  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
180  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
181 }
182 // Force AddDescriptors() to be called at dynamic initialization time.
185  AddDescriptors();
186  }
188 } // namespace protobuf_etcdserver_2eproto
189 namespace etcdserverpb {
190 
191 // ===================================================================
192 
193 void Request::InitAsDefaultInstance() {
194 }
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
214 
215 Request::Request()
216  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
217  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
219  }
220  SharedCtor();
221  // @@protoc_insertion_point(constructor:etcdserverpb.Request)
222 }
224  : ::google::protobuf::Message(),
225  _internal_metadata_(NULL),
226  _has_bits_(from._has_bits_),
227  _cached_size_(0) {
229  method_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
230  if (from.has_method()) {
231  method_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.method_);
232  }
233  path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
234  if (from.has_path()) {
235  path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.path_);
236  }
237  val_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
238  if (from.has_val()) {
239  val_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.val_);
240  }
241  prevvalue_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
242  if (from.has_prevvalue()) {
243  prevvalue_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.prevvalue_);
244  }
245  ::memcpy(&id_, &from.id_,
246  static_cast<size_t>(reinterpret_cast<char*>(&time_) -
247  reinterpret_cast<char*>(&id_)) + sizeof(time_));
248  // @@protoc_insertion_point(copy_constructor:etcdserverpb.Request)
249 }
250 
252  _cached_size_ = 0;
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_));
260 }
261 
263  // @@protoc_insertion_point(destructor:etcdserverpb.Request)
264  SharedDtor();
265 }
266 
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());
272 }
273 
274 void Request::SetCachedSize(int size) const {
275  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
276  _cached_size_ = size;
277  GOOGLE_SAFE_CONCURRENT_WRITES_END();
278 }
279 const ::google::protobuf::Descriptor* Request::descriptor() {
282 }
283 
286  return *internal_default_instance();
287 }
288 
289 Request* Request::New(::google::protobuf::Arena* arena) const {
290  Request* n = new Request;
291  if (arena != NULL) {
292  arena->Own(n);
293  }
294  return n;
295 }
296 
298 // @@protoc_insertion_point(message_clear_start:etcdserverpb.Request)
299  ::google::protobuf::uint32 cached_has_bits = 0;
300  // Prevent compiler warnings about cached_has_bits being unused
301  (void) cached_has_bits;
302 
303  cached_has_bits = _has_bits_[0];
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();
308  }
309  if (cached_has_bits & 0x00000002u) {
310  GOOGLE_DCHECK(!path_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
311  (*path_.UnsafeRawStringPointer())->clear();
312  }
313  if (cached_has_bits & 0x00000004u) {
314  GOOGLE_DCHECK(!val_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
315  (*val_.UnsafeRawStringPointer())->clear();
316  }
317  if (cached_has_bits & 0x00000008u) {
318  GOOGLE_DCHECK(!prevvalue_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
319  (*prevvalue_.UnsafeRawStringPointer())->clear();
320  }
321  }
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_));
326  }
327  if (cached_has_bits & 65280u) {
328  ::memset(&dir_, 0, static_cast<size_t>(
329  reinterpret_cast<char*>(&refresh_) -
330  reinterpret_cast<char*>(&dir_)) + sizeof(refresh_));
331  }
332  time_ = GOOGLE_LONGLONG(0);
333  _has_bits_.Clear();
334  _internal_metadata_.Clear();
335 }
336 
338  ::google::protobuf::io::CodedInputStream* input) {
339 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
340  ::google::protobuf::uint32 tag;
341  // @@protoc_insertion_point(parse_start:etcdserverpb.Request)
342  for (;;) {
343  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
344  tag = p.first;
345  if (!p.second) goto handle_unusual;
346  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
347  // optional uint64 ID = 1;
348  case 1: {
349  if (static_cast< ::google::protobuf::uint8>(tag) ==
350  static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
351  set_has_id();
352  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
353  ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
354  input, &id_)));
355  } else {
356  goto handle_unusual;
357  }
358  break;
359  }
360 
361  // optional string Method = 2;
362  case 2: {
363  if (static_cast< ::google::protobuf::uint8>(tag) ==
364  static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
365  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
366  input, this->mutable_method()));
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");
371  } else {
372  goto handle_unusual;
373  }
374  break;
375  }
376 
377  // optional string Path = 3;
378  case 3: {
379  if (static_cast< ::google::protobuf::uint8>(tag) ==
380  static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
381  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
382  input, this->mutable_path()));
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");
387  } else {
388  goto handle_unusual;
389  }
390  break;
391  }
392 
393  // optional string Val = 4;
394  case 4: {
395  if (static_cast< ::google::protobuf::uint8>(tag) ==
396  static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
397  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
398  input, this->mutable_val()));
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");
403  } else {
404  goto handle_unusual;
405  }
406  break;
407  }
408 
409  // optional bool Dir = 5;
410  case 5: {
411  if (static_cast< ::google::protobuf::uint8>(tag) ==
412  static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
413  set_has_dir();
414  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
415  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
416  input, &dir_)));
417  } else {
418  goto handle_unusual;
419  }
420  break;
421  }
422 
423  // optional string PrevValue = 6;
424  case 6: {
425  if (static_cast< ::google::protobuf::uint8>(tag) ==
426  static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
427  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
428  input, this->mutable_prevvalue()));
429  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
430  this->prevvalue().data(), static_cast<int>(this->prevvalue().length()),
431  ::google::protobuf::internal::WireFormat::PARSE,
432  "etcdserverpb.Request.PrevValue");
433  } else {
434  goto handle_unusual;
435  }
436  break;
437  }
438 
439  // optional uint64 PrevIndex = 7;
440  case 7: {
441  if (static_cast< ::google::protobuf::uint8>(tag) ==
442  static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
444  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
445  ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
446  input, &previndex_)));
447  } else {
448  goto handle_unusual;
449  }
450  break;
451  }
452 
453  // optional bool PrevExist = 8;
454  case 8: {
455  if (static_cast< ::google::protobuf::uint8>(tag) ==
456  static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
458  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
459  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
460  input, &prevexist_)));
461  } else {
462  goto handle_unusual;
463  }
464  break;
465  }
466 
467  // optional int64 Expiration = 9;
468  case 9: {
469  if (static_cast< ::google::protobuf::uint8>(tag) ==
470  static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
472  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
473  ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
474  input, &expiration_)));
475  } else {
476  goto handle_unusual;
477  }
478  break;
479  }
480 
481  // optional bool Wait = 10;
482  case 10: {
483  if (static_cast< ::google::protobuf::uint8>(tag) ==
484  static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
485  set_has_wait();
486  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
487  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
488  input, &wait_)));
489  } else {
490  goto handle_unusual;
491  }
492  break;
493  }
494 
495  // optional uint64 Since = 11;
496  case 11: {
497  if (static_cast< ::google::protobuf::uint8>(tag) ==
498  static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
499  set_has_since();
500  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
501  ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
502  input, &since_)));
503  } else {
504  goto handle_unusual;
505  }
506  break;
507  }
508 
509  // optional bool Recursive = 12;
510  case 12: {
511  if (static_cast< ::google::protobuf::uint8>(tag) ==
512  static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
514  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
515  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
516  input, &recursive_)));
517  } else {
518  goto handle_unusual;
519  }
520  break;
521  }
522 
523  // optional bool Sorted = 13;
524  case 13: {
525  if (static_cast< ::google::protobuf::uint8>(tag) ==
526  static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
527  set_has_sorted();
528  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
529  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
530  input, &sorted_)));
531  } else {
532  goto handle_unusual;
533  }
534  break;
535  }
536 
537  // optional bool Quorum = 14;
538  case 14: {
539  if (static_cast< ::google::protobuf::uint8>(tag) ==
540  static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
541  set_has_quorum();
542  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
543  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
544  input, &quorum_)));
545  } else {
546  goto handle_unusual;
547  }
548  break;
549  }
550 
551  // optional int64 Time = 15;
552  case 15: {
553  if (static_cast< ::google::protobuf::uint8>(tag) ==
554  static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
555  set_has_time();
556  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
557  ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
558  input, &time_)));
559  } else {
560  goto handle_unusual;
561  }
562  break;
563  }
564 
565  // optional bool Stream = 16;
566  case 16: {
567  if (static_cast< ::google::protobuf::uint8>(tag) ==
568  static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
569  set_has_stream();
570  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
571  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
572  input, &stream_)));
573  } else {
574  goto handle_unusual;
575  }
576  break;
577  }
578 
579  // optional bool Refresh = 17;
580  case 17: {
581  if (static_cast< ::google::protobuf::uint8>(tag) ==
582  static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
583  set_has_refresh();
584  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
585  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
586  input, &refresh_)));
587  } else {
588  goto handle_unusual;
589  }
590  break;
591  }
592 
593  default: {
594  handle_unusual:
595  if (tag == 0) {
596  goto success;
597  }
598  DO_(::google::protobuf::internal::WireFormat::SkipField(
599  input, tag, _internal_metadata_.mutable_unknown_fields()));
600  break;
601  }
602  }
603  }
604 success:
605  // @@protoc_insertion_point(parse_success:etcdserverpb.Request)
606  return true;
607 failure:
608  // @@protoc_insertion_point(parse_failure:etcdserverpb.Request)
609  return false;
610 #undef DO_
611 }
612 
614  ::google::protobuf::io::CodedOutputStream* output) const {
615  // @@protoc_insertion_point(serialize_start:etcdserverpb.Request)
616  ::google::protobuf::uint32 cached_has_bits = 0;
617  (void) cached_has_bits;
618 
619  cached_has_bits = _has_bits_[0];
620  // optional uint64 ID = 1;
621  if (cached_has_bits & 0x00000010u) {
622  ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->id(), output);
623  }
624 
625  // optional string Method = 2;
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);
633  }
634 
635  // optional string Path = 3;
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);
643  }
644 
645  // optional string Val = 4;
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);
653  }
654 
655  // optional bool Dir = 5;
656  if (cached_has_bits & 0x00000100u) {
657  ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->dir(), output);
658  }
659 
660  // optional string PrevValue = 6;
661  if (cached_has_bits & 0x00000008u) {
662  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
663  this->prevvalue().data(), static_cast<int>(this->prevvalue().length()),
664  ::google::protobuf::internal::WireFormat::SERIALIZE,
665  "etcdserverpb.Request.PrevValue");
666  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
667  6, this->prevvalue(), output);
668  }
669 
670  // optional uint64 PrevIndex = 7;
671  if (cached_has_bits & 0x00000020u) {
672  ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->previndex(), output);
673  }
674 
675  // optional bool PrevExist = 8;
676  if (cached_has_bits & 0x00000200u) {
677  ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->prevexist(), output);
678  }
679 
680  // optional int64 Expiration = 9;
681  if (cached_has_bits & 0x00000040u) {
682  ::google::protobuf::internal::WireFormatLite::WriteInt64(9, this->expiration(), output);
683  }
684 
685  // optional bool Wait = 10;
686  if (cached_has_bits & 0x00000400u) {
687  ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->wait(), output);
688  }
689 
690  // optional uint64 Since = 11;
691  if (cached_has_bits & 0x00000080u) {
692  ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->since(), output);
693  }
694 
695  // optional bool Recursive = 12;
696  if (cached_has_bits & 0x00000800u) {
697  ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->recursive(), output);
698  }
699 
700  // optional bool Sorted = 13;
701  if (cached_has_bits & 0x00001000u) {
702  ::google::protobuf::internal::WireFormatLite::WriteBool(13, this->sorted(), output);
703  }
704 
705  // optional bool Quorum = 14;
706  if (cached_has_bits & 0x00002000u) {
707  ::google::protobuf::internal::WireFormatLite::WriteBool(14, this->quorum(), output);
708  }
709 
710  // optional int64 Time = 15;
711  if (cached_has_bits & 0x00010000u) {
712  ::google::protobuf::internal::WireFormatLite::WriteInt64(15, this->time(), output);
713  }
714 
715  // optional bool Stream = 16;
716  if (cached_has_bits & 0x00004000u) {
717  ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->stream(), output);
718  }
719 
720  // optional bool Refresh = 17;
721  if (cached_has_bits & 0x00008000u) {
722  ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->refresh(), output);
723  }
724 
725  if (_internal_metadata_.have_unknown_fields()) {
726  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
727  _internal_metadata_.unknown_fields(), output);
728  }
729  // @@protoc_insertion_point(serialize_end:etcdserverpb.Request)
730 }
731 
733  bool deterministic, ::google::protobuf::uint8* target) const {
734  (void)deterministic; // Unused
735  // @@protoc_insertion_point(serialize_to_array_start:etcdserverpb.Request)
736  ::google::protobuf::uint32 cached_has_bits = 0;
737  (void) cached_has_bits;
738 
739  cached_has_bits = _has_bits_[0];
740  // optional uint64 ID = 1;
741  if (cached_has_bits & 0x00000010u) {
742  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->id(), target);
743  }
744 
745  // optional string Method = 2;
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");
751  target =
752  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
753  2, this->method(), target);
754  }
755 
756  // optional string Path = 3;
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");
762  target =
763  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
764  3, this->path(), target);
765  }
766 
767  // optional string Val = 4;
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");
773  target =
774  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
775  4, this->val(), target);
776  }
777 
778  // optional bool Dir = 5;
779  if (cached_has_bits & 0x00000100u) {
780  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->dir(), target);
781  }
782 
783  // optional string PrevValue = 6;
784  if (cached_has_bits & 0x00000008u) {
785  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
786  this->prevvalue().data(), static_cast<int>(this->prevvalue().length()),
787  ::google::protobuf::internal::WireFormat::SERIALIZE,
788  "etcdserverpb.Request.PrevValue");
789  target =
790  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
791  6, this->prevvalue(), target);
792  }
793 
794  // optional uint64 PrevIndex = 7;
795  if (cached_has_bits & 0x00000020u) {
796  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->previndex(), target);
797  }
798 
799  // optional bool PrevExist = 8;
800  if (cached_has_bits & 0x00000200u) {
801  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->prevexist(), target);
802  }
803 
804  // optional int64 Expiration = 9;
805  if (cached_has_bits & 0x00000040u) {
806  target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(9, this->expiration(), target);
807  }
808 
809  // optional bool Wait = 10;
810  if (cached_has_bits & 0x00000400u) {
811  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->wait(), target);
812  }
813 
814  // optional uint64 Since = 11;
815  if (cached_has_bits & 0x00000080u) {
816  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->since(), target);
817  }
818 
819  // optional bool Recursive = 12;
820  if (cached_has_bits & 0x00000800u) {
821  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->recursive(), target);
822  }
823 
824  // optional bool Sorted = 13;
825  if (cached_has_bits & 0x00001000u) {
826  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->sorted(), target);
827  }
828 
829  // optional bool Quorum = 14;
830  if (cached_has_bits & 0x00002000u) {
831  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(14, this->quorum(), target);
832  }
833 
834  // optional int64 Time = 15;
835  if (cached_has_bits & 0x00010000u) {
836  target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(15, this->time(), target);
837  }
838 
839  // optional bool Stream = 16;
840  if (cached_has_bits & 0x00004000u) {
841  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->stream(), target);
842  }
843 
844  // optional bool Refresh = 17;
845  if (cached_has_bits & 0x00008000u) {
846  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->refresh(), target);
847  }
848 
849  if (_internal_metadata_.have_unknown_fields()) {
850  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
851  _internal_metadata_.unknown_fields(), target);
852  }
853  // @@protoc_insertion_point(serialize_to_array_end:etcdserverpb.Request)
854  return target;
855 }
856 
857 size_t Request::ByteSizeLong() const {
858 // @@protoc_insertion_point(message_byte_size_start:etcdserverpb.Request)
859  size_t total_size = 0;
860 
861  if (_internal_metadata_.have_unknown_fields()) {
862  total_size +=
863  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
864  _internal_metadata_.unknown_fields());
865  }
866  if (_has_bits_[0 / 32] & 255u) {
867  // optional string Method = 2;
868  if (has_method()) {
869  total_size += 1 +
870  ::google::protobuf::internal::WireFormatLite::StringSize(
871  this->method());
872  }
873 
874  // optional string Path = 3;
875  if (has_path()) {
876  total_size += 1 +
877  ::google::protobuf::internal::WireFormatLite::StringSize(
878  this->path());
879  }
880 
881  // optional string Val = 4;
882  if (has_val()) {
883  total_size += 1 +
884  ::google::protobuf::internal::WireFormatLite::StringSize(
885  this->val());
886  }
887 
888  // optional string PrevValue = 6;
889  if (has_prevvalue()) {
890  total_size += 1 +
891  ::google::protobuf::internal::WireFormatLite::StringSize(
892  this->prevvalue());
893  }
894 
895  // optional uint64 ID = 1;
896  if (has_id()) {
897  total_size += 1 +
898  ::google::protobuf::internal::WireFormatLite::UInt64Size(
899  this->id());
900  }
901 
902  // optional uint64 PrevIndex = 7;
903  if (has_previndex()) {
904  total_size += 1 +
905  ::google::protobuf::internal::WireFormatLite::UInt64Size(
906  this->previndex());
907  }
908 
909  // optional int64 Expiration = 9;
910  if (has_expiration()) {
911  total_size += 1 +
912  ::google::protobuf::internal::WireFormatLite::Int64Size(
913  this->expiration());
914  }
915 
916  // optional uint64 Since = 11;
917  if (has_since()) {
918  total_size += 1 +
919  ::google::protobuf::internal::WireFormatLite::UInt64Size(
920  this->since());
921  }
922 
923  }
924  if (_has_bits_[8 / 32] & 65280u) {
925  // optional bool Dir = 5;
926  if (has_dir()) {
927  total_size += 1 + 1;
928  }
929 
930  // optional bool PrevExist = 8;
931  if (has_prevexist()) {
932  total_size += 1 + 1;
933  }
934 
935  // optional bool Wait = 10;
936  if (has_wait()) {
937  total_size += 1 + 1;
938  }
939 
940  // optional bool Recursive = 12;
941  if (has_recursive()) {
942  total_size += 1 + 1;
943  }
944 
945  // optional bool Sorted = 13;
946  if (has_sorted()) {
947  total_size += 1 + 1;
948  }
949 
950  // optional bool Quorum = 14;
951  if (has_quorum()) {
952  total_size += 1 + 1;
953  }
954 
955  // optional bool Stream = 16;
956  if (has_stream()) {
957  total_size += 2 + 1;
958  }
959 
960  // optional bool Refresh = 17;
961  if (has_refresh()) {
962  total_size += 2 + 1;
963  }
964 
965  }
966  // optional int64 Time = 15;
967  if (has_time()) {
968  total_size += 1 +
969  ::google::protobuf::internal::WireFormatLite::Int64Size(
970  this->time());
971  }
972 
973  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
974  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
975  _cached_size_ = cached_size;
976  GOOGLE_SAFE_CONCURRENT_WRITES_END();
977  return total_size;
978 }
979 
980 void Request::MergeFrom(const ::google::protobuf::Message& from) {
981 // @@protoc_insertion_point(generalized_merge_from_start:etcdserverpb.Request)
982  GOOGLE_DCHECK_NE(&from, this);
983  const Request* source =
984  ::google::protobuf::internal::DynamicCastToGenerated<const Request>(
985  &from);
986  if (source == NULL) {
987  // @@protoc_insertion_point(generalized_merge_from_cast_fail:etcdserverpb.Request)
988  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
989  } else {
990  // @@protoc_insertion_point(generalized_merge_from_cast_success:etcdserverpb.Request)
991  MergeFrom(*source);
992  }
993 }
994 
995 void Request::MergeFrom(const Request& from) {
996 // @@protoc_insertion_point(class_specific_merge_from_start:etcdserverpb.Request)
997  GOOGLE_DCHECK_NE(&from, this);
999  ::google::protobuf::uint32 cached_has_bits = 0;
1000  (void) cached_has_bits;
1001 
1002  cached_has_bits = from._has_bits_[0];
1003  if (cached_has_bits & 255u) {
1004  if (cached_has_bits & 0x00000001u) {
1005  set_has_method();
1006  method_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.method_);
1007  }
1008  if (cached_has_bits & 0x00000002u) {
1009  set_has_path();
1010  path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.path_);
1011  }
1012  if (cached_has_bits & 0x00000004u) {
1013  set_has_val();
1014  val_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.val_);
1015  }
1016  if (cached_has_bits & 0x00000008u) {
1018  prevvalue_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.prevvalue_);
1019  }
1020  if (cached_has_bits & 0x00000010u) {
1021  id_ = from.id_;
1022  }
1023  if (cached_has_bits & 0x00000020u) {
1024  previndex_ = from.previndex_;
1025  }
1026  if (cached_has_bits & 0x00000040u) {
1027  expiration_ = from.expiration_;
1028  }
1029  if (cached_has_bits & 0x00000080u) {
1030  since_ = from.since_;
1031  }
1032  _has_bits_[0] |= cached_has_bits;
1033  }
1034  if (cached_has_bits & 65280u) {
1035  if (cached_has_bits & 0x00000100u) {
1036  dir_ = from.dir_;
1037  }
1038  if (cached_has_bits & 0x00000200u) {
1039  prevexist_ = from.prevexist_;
1040  }
1041  if (cached_has_bits & 0x00000400u) {
1042  wait_ = from.wait_;
1043  }
1044  if (cached_has_bits & 0x00000800u) {
1045  recursive_ = from.recursive_;
1046  }
1047  if (cached_has_bits & 0x00001000u) {
1048  sorted_ = from.sorted_;
1049  }
1050  if (cached_has_bits & 0x00002000u) {
1051  quorum_ = from.quorum_;
1052  }
1053  if (cached_has_bits & 0x00004000u) {
1054  stream_ = from.stream_;
1055  }
1056  if (cached_has_bits & 0x00008000u) {
1057  refresh_ = from.refresh_;
1058  }
1059  _has_bits_[0] |= cached_has_bits;
1060  }
1061  if (cached_has_bits & 0x00010000u) {
1062  set_time(from.time());
1063  }
1064 }
1065 
1066 void Request::CopyFrom(const ::google::protobuf::Message& from) {
1067 // @@protoc_insertion_point(generalized_copy_from_start:etcdserverpb.Request)
1068  if (&from == this) return;
1069  Clear();
1070  MergeFrom(from);
1071 }
1072 
1073 void Request::CopyFrom(const Request& from) {
1074 // @@protoc_insertion_point(class_specific_copy_from_start:etcdserverpb.Request)
1075  if (&from == this) return;
1076  Clear();
1077  MergeFrom(from);
1078 }
1079 
1081  return true;
1082 }
1083 
1084 void Request::Swap(Request* other) {
1085  if (other == this) return;
1086  InternalSwap(other);
1087 }
1089  using std::swap;
1090  method_.Swap(&other->method_);
1091  path_.Swap(&other->path_);
1092  val_.Swap(&other->val_);
1093  prevvalue_.Swap(&other->prevvalue_);
1094  swap(id_, other->id_);
1095  swap(previndex_, other->previndex_);
1096  swap(expiration_, other->expiration_);
1097  swap(since_, other->since_);
1098  swap(dir_, other->dir_);
1099  swap(prevexist_, other->prevexist_);
1100  swap(wait_, other->wait_);
1101  swap(recursive_, other->recursive_);
1102  swap(sorted_, other->sorted_);
1103  swap(quorum_, other->quorum_);
1104  swap(stream_, other->stream_);
1105  swap(refresh_, other->refresh_);
1106  swap(time_, other->time_);
1107  swap(_has_bits_[0], other->_has_bits_[0]);
1109  swap(_cached_size_, other->_cached_size_);
1110 }
1111 
1112 ::google::protobuf::Metadata Request::GetMetadata() const {
1115 }
1116 
1117 
1118 // ===================================================================
1119 
1121 }
1122 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1125 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1126 
1128  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1129  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1131  }
1132  SharedCtor();
1133  // @@protoc_insertion_point(constructor:etcdserverpb.Metadata)
1134 }
1136  : ::google::protobuf::Message(),
1137  _internal_metadata_(NULL),
1138  _has_bits_(from._has_bits_),
1139  _cached_size_(0) {
1140  _internal_metadata_.MergeFrom(from._internal_metadata_);
1141  ::memcpy(&nodeid_, &from.nodeid_,
1142  static_cast<size_t>(reinterpret_cast<char*>(&clusterid_) -
1143  reinterpret_cast<char*>(&nodeid_)) + sizeof(clusterid_));
1144  // @@protoc_insertion_point(copy_constructor:etcdserverpb.Metadata)
1145 }
1146 
1148  _cached_size_ = 0;
1149  ::memset(&nodeid_, 0, static_cast<size_t>(
1150  reinterpret_cast<char*>(&clusterid_) -
1151  reinterpret_cast<char*>(&nodeid_)) + sizeof(clusterid_));
1152 }
1153 
1155  // @@protoc_insertion_point(destructor:etcdserverpb.Metadata)
1156  SharedDtor();
1157 }
1158 
1160 }
1161 
1162 void Metadata::SetCachedSize(int size) const {
1163  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1164  _cached_size_ = size;
1165  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1166 }
1167 const ::google::protobuf::Descriptor* Metadata::descriptor() {
1170 }
1171 
1174  return *internal_default_instance();
1175 }
1176 
1177 Metadata* Metadata::New(::google::protobuf::Arena* arena) const {
1178  Metadata* n = new Metadata;
1179  if (arena != NULL) {
1180  arena->Own(n);
1181  }
1182  return n;
1183 }
1184 
1186 // @@protoc_insertion_point(message_clear_start:etcdserverpb.Metadata)
1187  ::google::protobuf::uint32 cached_has_bits = 0;
1188  // Prevent compiler warnings about cached_has_bits being unused
1189  (void) cached_has_bits;
1190 
1191  cached_has_bits = _has_bits_[0];
1192  if (cached_has_bits & 3u) {
1193  ::memset(&nodeid_, 0, static_cast<size_t>(
1194  reinterpret_cast<char*>(&clusterid_) -
1195  reinterpret_cast<char*>(&nodeid_)) + sizeof(clusterid_));
1196  }
1197  _has_bits_.Clear();
1198  _internal_metadata_.Clear();
1199 }
1200 
1202  ::google::protobuf::io::CodedInputStream* input) {
1203 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1204  ::google::protobuf::uint32 tag;
1205  // @@protoc_insertion_point(parse_start:etcdserverpb.Metadata)
1206  for (;;) {
1207  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1208  tag = p.first;
1209  if (!p.second) goto handle_unusual;
1210  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1211  // optional uint64 NodeID = 1;
1212  case 1: {
1213  if (static_cast< ::google::protobuf::uint8>(tag) ==
1214  static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1215  set_has_nodeid();
1216  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1217  ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1218  input, &nodeid_)));
1219  } else {
1220  goto handle_unusual;
1221  }
1222  break;
1223  }
1224 
1225  // optional uint64 ClusterID = 2;
1226  case 2: {
1227  if (static_cast< ::google::protobuf::uint8>(tag) ==
1228  static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1230  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1231  ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1232  input, &clusterid_)));
1233  } else {
1234  goto handle_unusual;
1235  }
1236  break;
1237  }
1238 
1239  default: {
1240  handle_unusual:
1241  if (tag == 0) {
1242  goto success;
1243  }
1244  DO_(::google::protobuf::internal::WireFormat::SkipField(
1245  input, tag, _internal_metadata_.mutable_unknown_fields()));
1246  break;
1247  }
1248  }
1249  }
1250 success:
1251  // @@protoc_insertion_point(parse_success:etcdserverpb.Metadata)
1252  return true;
1253 failure:
1254  // @@protoc_insertion_point(parse_failure:etcdserverpb.Metadata)
1255  return false;
1256 #undef DO_
1257 }
1258 
1260  ::google::protobuf::io::CodedOutputStream* output) const {
1261  // @@protoc_insertion_point(serialize_start:etcdserverpb.Metadata)
1262  ::google::protobuf::uint32 cached_has_bits = 0;
1263  (void) cached_has_bits;
1264 
1265  cached_has_bits = _has_bits_[0];
1266  // optional uint64 NodeID = 1;
1267  if (cached_has_bits & 0x00000001u) {
1268  ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->nodeid(), output);
1269  }
1270 
1271  // optional uint64 ClusterID = 2;
1272  if (cached_has_bits & 0x00000002u) {
1273  ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->clusterid(), output);
1274  }
1275 
1276  if (_internal_metadata_.have_unknown_fields()) {
1277  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1278  _internal_metadata_.unknown_fields(), output);
1279  }
1280  // @@protoc_insertion_point(serialize_end:etcdserverpb.Metadata)
1281 }
1282 
1284  bool deterministic, ::google::protobuf::uint8* target) const {
1285  (void)deterministic; // Unused
1286  // @@protoc_insertion_point(serialize_to_array_start:etcdserverpb.Metadata)
1287  ::google::protobuf::uint32 cached_has_bits = 0;
1288  (void) cached_has_bits;
1289 
1290  cached_has_bits = _has_bits_[0];
1291  // optional uint64 NodeID = 1;
1292  if (cached_has_bits & 0x00000001u) {
1293  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->nodeid(), target);
1294  }
1295 
1296  // optional uint64 ClusterID = 2;
1297  if (cached_has_bits & 0x00000002u) {
1298  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->clusterid(), target);
1299  }
1300 
1301  if (_internal_metadata_.have_unknown_fields()) {
1302  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1303  _internal_metadata_.unknown_fields(), target);
1304  }
1305  // @@protoc_insertion_point(serialize_to_array_end:etcdserverpb.Metadata)
1306  return target;
1307 }
1308 
1309 size_t Metadata::ByteSizeLong() const {
1310 // @@protoc_insertion_point(message_byte_size_start:etcdserverpb.Metadata)
1311  size_t total_size = 0;
1312 
1313  if (_internal_metadata_.have_unknown_fields()) {
1314  total_size +=
1315  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1316  _internal_metadata_.unknown_fields());
1317  }
1318  if (_has_bits_[0 / 32] & 3u) {
1319  // optional uint64 NodeID = 1;
1320  if (has_nodeid()) {
1321  total_size += 1 +
1322  ::google::protobuf::internal::WireFormatLite::UInt64Size(
1323  this->nodeid());
1324  }
1325 
1326  // optional uint64 ClusterID = 2;
1327  if (has_clusterid()) {
1328  total_size += 1 +
1329  ::google::protobuf::internal::WireFormatLite::UInt64Size(
1330  this->clusterid());
1331  }
1332 
1333  }
1334  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1335  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1336  _cached_size_ = cached_size;
1337  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1338  return total_size;
1339 }
1340 
1341 void Metadata::MergeFrom(const ::google::protobuf::Message& from) {
1342 // @@protoc_insertion_point(generalized_merge_from_start:etcdserverpb.Metadata)
1343  GOOGLE_DCHECK_NE(&from, this);
1344  const Metadata* source =
1345  ::google::protobuf::internal::DynamicCastToGenerated<const Metadata>(
1346  &from);
1347  if (source == NULL) {
1348  // @@protoc_insertion_point(generalized_merge_from_cast_fail:etcdserverpb.Metadata)
1349  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1350  } else {
1351  // @@protoc_insertion_point(generalized_merge_from_cast_success:etcdserverpb.Metadata)
1352  MergeFrom(*source);
1353  }
1354 }
1355 
1356 void Metadata::MergeFrom(const Metadata& from) {
1357 // @@protoc_insertion_point(class_specific_merge_from_start:etcdserverpb.Metadata)
1358  GOOGLE_DCHECK_NE(&from, this);
1359  _internal_metadata_.MergeFrom(from._internal_metadata_);
1360  ::google::protobuf::uint32 cached_has_bits = 0;
1361  (void) cached_has_bits;
1362 
1363  cached_has_bits = from._has_bits_[0];
1364  if (cached_has_bits & 3u) {
1365  if (cached_has_bits & 0x00000001u) {
1366  nodeid_ = from.nodeid_;
1367  }
1368  if (cached_has_bits & 0x00000002u) {
1369  clusterid_ = from.clusterid_;
1370  }
1371  _has_bits_[0] |= cached_has_bits;
1372  }
1373 }
1374 
1375 void Metadata::CopyFrom(const ::google::protobuf::Message& from) {
1376 // @@protoc_insertion_point(generalized_copy_from_start:etcdserverpb.Metadata)
1377  if (&from == this) return;
1378  Clear();
1379  MergeFrom(from);
1380 }
1381 
1382 void Metadata::CopyFrom(const Metadata& from) {
1383 // @@protoc_insertion_point(class_specific_copy_from_start:etcdserverpb.Metadata)
1384  if (&from == this) return;
1385  Clear();
1386  MergeFrom(from);
1387 }
1388 
1390  return true;
1391 }
1392 
1393 void Metadata::Swap(Metadata* other) {
1394  if (other == this) return;
1395  InternalSwap(other);
1396 }
1398  using std::swap;
1399  swap(nodeid_, other->nodeid_);
1400  swap(clusterid_, other->clusterid_);
1401  swap(_has_bits_[0], other->_has_bits_[0]);
1403  swap(_cached_size_, other->_cached_size_);
1404 }
1405 
1406 ::google::protobuf::Metadata Metadata::GetMetadata() const {
1409 }
1410 
1411 
1412 // @@protoc_insertion_point(namespace_scope)
1413 } // namespace etcdserverpb
1414 
1415 // @@protoc_insertion_point(global_scope)
void set_time(::google::protobuf::int64 value)
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
static void InitAsDefaultInstance()
::google::protobuf::uint64 previndex() const
::google::protobuf::uint64 clusterid_
bool has_dir() const
void failure(const char *fmt,...)
::google::protobuf::int64 expiration() const
::google::protobuf::Metadata file_level_metadata[2]
::google::protobuf::internal::ExplicitlyConstructed< Metadata > _instance
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
Request * New() const PROTOBUF_FINAL
void SetCachedSize(int size) const PROTOBUF_FINAL
#define DO_(EXPRESSION)
::google::protobuf::uint64 since() const
const ::std::string & method() const
size_t ByteSizeLong() const PROTOBUF_FINAL
bool prevexist() const
bool has_clusterid() const
void Swap(Metadata *other)
bool has_prevvalue() const
void Swap(Request *other)
bool has_sorted() const
bool has_expiration() const
bool has_id() const
bool has_recursive() const
bool sorted() const
bool has_refresh() const
const ::std::string & val() const
static const int kNodeIDFieldNumber
const ::std::string & prevvalue() const
::google::protobuf::internal::ArenaStringPtr method_
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
::std::string * mutable_prevvalue()
::google::protobuf::internal::HasBits< 1 > _has_bits_
bool recursive() const
::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
bool has_nodeid() const
::google::protobuf::int64 time() const
bool has_wait() const
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
::google::protobuf::uint64 nodeid() const
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[]
Definition: etcdserver.pb.h:42
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
bool has_since() const
void InternalSwap(Metadata *other)
bool has_method() const
friend void swap(Request &a, Request &b)
::google::protobuf::uint64 clusterid() const
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
static const Request * internal_default_instance()
bool has_val() const
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
void InternalSwap(Request *other)
::google::protobuf::uint64 previndex_
void protobuf_AssignDescriptorsOnce()
Definition: auth.pb.cc:151
bool has_path() const
::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 Metadata & default_instance()
bool has_quorum() const
bool IsInitialized() const PROTOBUF_FINAL
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
static const Metadata * internal_default_instance()
void Clear() PROTOBUF_FINAL
::google::protobuf::uint64 since_
Metadata * New() const PROTOBUF_FINAL
static void InitAsDefaultInstance()
static const ::google::protobuf::Descriptor * descriptor()
bool IsInitialized() const PROTOBUF_FINAL
class etcdserverpb::RequestDefaultTypeInternal _Request_default_instance_
Definition: etcdserver.pb.h:59
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
class etcdserverpb::MetadataDefaultTypeInternal _Metadata_default_instance_
Definition: etcdserver.pb.h:56
::std::string * mutable_path()
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
::std::string * mutable_method()
static const int kClusterIDFieldNumber
bool has_previndex() const
bool has_stream() const
friend void swap(Metadata &a, Metadata &b)
size_t ByteSizeLong() const PROTOBUF_FINAL
static const ::google::protobuf::Descriptor * descriptor()
struct protobuf_etcdserver_2eproto::StaticDescriptorInitializer static_descriptor_initializer
bool quorum() const
::std::string * mutable_val()
::google::protobuf::Metadata file_level_metadata[3]
Definition: auth.pb.cc:104
void Clear() PROTOBUF_FINAL
bool has_time() const
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
::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
::google::protobuf::uint64 nodeid_
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL