Apache Mesos
http_tests.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: http_tests.proto
3 
4 #ifndef PROTOBUF_http_5ftests_2eproto__INCLUDED
5 #define PROTOBUF_http_5ftests_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
16 #if 3005000 < 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.
20 #endif
21 
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> // IWYU pragma: export
30 #include <google/protobuf/extension_set.h> // IWYU pragma: export
31 #include <google/protobuf/map.h> // IWYU pragma: export
32 #include <google/protobuf/map_entry.h>
33 #include <google/protobuf/map_field_inl.h>
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
36 // @@protoc_insertion_point(includes)
37 
39 // Internal implementation detail -- do not use these members.
40 struct TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[3];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void AddDescriptors();
55 inline void InitDefaults() {
59 }
60 } // namespace protobuf_http_5ftests_2eproto
61 namespace mesos {
62 namespace test {
63 class ParentMessage;
64 class ParentMessageDefaultTypeInternal;
65 extern ParentMessageDefaultTypeInternal _ParentMessage_default_instance_;
66 class TestSlaveMessage;
67 class TestSlaveMessageDefaultTypeInternal;
68 extern TestSlaveMessageDefaultTypeInternal _TestSlaveMessage_default_instance_;
70 class TestSlaveMessage_SomeSlaveMapEntry_DoNotUseDefaultTypeInternal;
71 extern TestSlaveMessage_SomeSlaveMapEntry_DoNotUseDefaultTypeInternal _TestSlaveMessage_SomeSlaveMapEntry_DoNotUse_default_instance_;
72 } // namespace test
73 } // namespace mesos
74 namespace mesos {
75 namespace test {
76 
79 };
80 bool TestSlaveMessage_E_IsValid(int value);
83 const int TestSlaveMessage_E_E_ARRAYSIZE = TestSlaveMessage_E_E_MAX + 1;
84 
85 const ::google::protobuf::EnumDescriptor* TestSlaveMessage_E_descriptor();
86 inline const ::std::string& TestSlaveMessage_E_Name(TestSlaveMessage_E value) {
87  return ::google::protobuf::internal::NameOfEnum(
89 }
91  const ::std::string& name, TestSlaveMessage_E* value) {
92  return ::google::protobuf::internal::ParseNamedEnum<TestSlaveMessage_E>(
94 }
95 // ===================================================================
96 
97 class TestSlaveMessage_SomeSlaveMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestSlaveMessage_SomeSlaveMapEntry_DoNotUse,
98  bool, bool,
99  ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
100  ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
101  0 > {
102 public:
103  typedef ::google::protobuf::internal::MapEntry<TestSlaveMessage_SomeSlaveMapEntry_DoNotUse,
104  bool, bool,
105  ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
106  ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
108  TestSlaveMessage_SomeSlaveMapEntry_DoNotUse();
109  TestSlaveMessage_SomeSlaveMapEntry_DoNotUse(::google::protobuf::Arena* arena);
110  void MergeFrom(const TestSlaveMessage_SomeSlaveMapEntry_DoNotUse& other);
111  static const TestSlaveMessage_SomeSlaveMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestSlaveMessage_SomeSlaveMapEntry_DoNotUse*>(&_TestSlaveMessage_SomeSlaveMapEntry_DoNotUse_default_instance_); }
112  void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
113  ::google::protobuf::Metadata GetMetadata() const;
114 };
115 
116 // -------------------------------------------------------------------
117 
118 class TestSlaveMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mesos.test.TestSlaveMessage) */ {
119  public:
121  virtual ~TestSlaveMessage();
122 
123  TestSlaveMessage(const TestSlaveMessage& from);
124 
126  CopyFrom(from);
127  return *this;
128  }
129  #if LANG_CXX11
130  TestSlaveMessage(TestSlaveMessage&& from) noexcept
131  : TestSlaveMessage() {
132  *this = ::std::move(from);
133  }
134 
135  inline TestSlaveMessage& operator=(TestSlaveMessage&& from) noexcept {
136  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
137  if (this != &from) InternalSwap(&from);
138  } else {
139  CopyFrom(from);
140  }
141  return *this;
142  }
143  #endif
144  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
145  return _internal_metadata_.unknown_fields();
146  }
147  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
148  return _internal_metadata_.mutable_unknown_fields();
149  }
150 
151  static const ::google::protobuf::Descriptor* descriptor();
152  static const TestSlaveMessage& default_instance();
153 
154  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
156  return reinterpret_cast<const TestSlaveMessage*>(
158  }
159  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
160  1;
161 
162  void Swap(TestSlaveMessage* other);
163  friend void swap(TestSlaveMessage& a, TestSlaveMessage& b) {
164  a.Swap(&b);
165  }
166 
167  // implements Message ----------------------------------------------
168 
169  inline TestSlaveMessage* New() const PROTOBUF_FINAL { return New(NULL); }
170 
171  TestSlaveMessage* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
172  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
173  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
174  void CopyFrom(const TestSlaveMessage& from);
175  void MergeFrom(const TestSlaveMessage& from);
176  void Clear() PROTOBUF_FINAL;
177  bool IsInitialized() const PROTOBUF_FINAL;
178 
179  size_t ByteSizeLong() const PROTOBUF_FINAL;
180  bool MergePartialFromCodedStream(
181  ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
182  void SerializeWithCachedSizes(
183  ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
184  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
185  bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
186  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
187  private:
188  void SharedCtor();
189  void SharedDtor();
190  void SetCachedSize(int size) const PROTOBUF_FINAL;
191  void InternalSwap(TestSlaveMessage* other);
192  private:
193  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
194  return NULL;
195  }
196  inline void* MaybeArenaPtr() const {
197  return NULL;
198  }
199  public:
200 
201  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
202 
203  // nested types ----------------------------------------------------
204 
205 
207  static const E A_SLAVE_ENUM =
209  static inline bool E_IsValid(int value) {
210  return TestSlaveMessage_E_IsValid(value);
211  }
212  static const E E_MIN =
214  static const E E_MAX =
216  static const int E_ARRAYSIZE =
218  static inline const ::google::protobuf::EnumDescriptor*
221  }
222  static inline const ::std::string& E_Name(E value) {
223  return TestSlaveMessage_E_Name(value);
224  }
225  static inline bool E_Parse(const ::std::string& name,
226  E* value) {
227  return TestSlaveMessage_E_Parse(name, value);
228  }
229 
230  // accessors -------------------------------------------------------
231 
232  // repeated bool some_slave_fields = 2;
233  int some_slave_fields_size() const;
234  void clear_some_slave_fields();
235  static const int kSomeSlaveFieldsFieldNumber = 2;
236  bool some_slave_fields(int index) const;
237  void set_some_slave_fields(int index, bool value);
238  void add_some_slave_fields(bool value);
239  const ::google::protobuf::RepeatedField< bool >&
240  some_slave_fields() const;
241  ::google::protobuf::RepeatedField< bool >*
242  mutable_some_slave_fields();
243 
244  // map<bool, bool> some_slave_map = 3;
245  int some_slave_map_size() const;
246  void clear_some_slave_map();
247  static const int kSomeSlaveMapFieldNumber = 3;
248  const ::google::protobuf::Map< bool, bool >&
249  some_slave_map() const;
250  ::google::protobuf::Map< bool, bool >*
251  mutable_some_slave_map();
252 
253  // repeated .mesos.test.TestSlaveMessage.E some_slave_enums = 5;
254  int some_slave_enums_size() const;
255  void clear_some_slave_enums();
256  static const int kSomeSlaveEnumsFieldNumber = 5;
257  ::mesos::test::TestSlaveMessage_E some_slave_enums(int index) const;
258  void set_some_slave_enums(int index, ::mesos::test::TestSlaveMessage_E value);
259  void add_some_slave_enums(::mesos::test::TestSlaveMessage_E value);
260  const ::google::protobuf::RepeatedField<int>& some_slave_enums() const;
261  ::google::protobuf::RepeatedField<int>* mutable_some_slave_enums();
262 
263  // optional bool some_slave_field = 1;
264  bool has_some_slave_field() const;
265  void clear_some_slave_field();
266  static const int kSomeSlaveFieldFieldNumber = 1;
267  bool some_slave_field() const;
268  void set_some_slave_field(bool value);
269 
270  // optional .mesos.test.TestSlaveMessage.E some_slave_enum = 4;
271  bool has_some_slave_enum() const;
272  void clear_some_slave_enum();
273  static const int kSomeSlaveEnumFieldNumber = 4;
274  ::mesos::test::TestSlaveMessage_E some_slave_enum() const;
275  void set_some_slave_enum(::mesos::test::TestSlaveMessage_E value);
276 
277  // @@protoc_insertion_point(class_scope:mesos.test.TestSlaveMessage)
278  private:
279  void set_has_some_slave_field();
280  void clear_has_some_slave_field();
281  void set_has_some_slave_enum();
282  void clear_has_some_slave_enum();
283 
284  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
285  ::google::protobuf::internal::HasBits<1> _has_bits_;
286  mutable int _cached_size_;
287  ::google::protobuf::RepeatedField< bool > some_slave_fields_;
288  ::google::protobuf::internal::MapField<
290  bool, bool,
291  ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
292  ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
293  0 > some_slave_map_;
294  ::google::protobuf::RepeatedField<int> some_slave_enums_;
295  bool some_slave_field_;
296  int some_slave_enum_;
297  friend struct ::protobuf_http_5ftests_2eproto::TableStruct;
299 };
300 // -------------------------------------------------------------------
301 
302 class ParentMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mesos.test.ParentMessage) */ {
303  public:
304  ParentMessage();
305  virtual ~ParentMessage();
306 
307  ParentMessage(const ParentMessage& from);
308 
309  inline ParentMessage& operator=(const ParentMessage& from) {
310  CopyFrom(from);
311  return *this;
312  }
313  #if LANG_CXX11
314  ParentMessage(ParentMessage&& from) noexcept
315  : ParentMessage() {
316  *this = ::std::move(from);
317  }
318 
319  inline ParentMessage& operator=(ParentMessage&& from) noexcept {
320  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
321  if (this != &from) InternalSwap(&from);
322  } else {
323  CopyFrom(from);
324  }
325  return *this;
326  }
327  #endif
328  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
329  return _internal_metadata_.unknown_fields();
330  }
331  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
332  return _internal_metadata_.mutable_unknown_fields();
333  }
334 
335  static const ::google::protobuf::Descriptor* descriptor();
336  static const ParentMessage& default_instance();
337 
338  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
339  static inline const ParentMessage* internal_default_instance() {
340  return reinterpret_cast<const ParentMessage*>(
342  }
343  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
344  2;
345 
346  void Swap(ParentMessage* other);
347  friend void swap(ParentMessage& a, ParentMessage& b) {
348  a.Swap(&b);
349  }
350 
351  // implements Message ----------------------------------------------
352 
353  inline ParentMessage* New() const PROTOBUF_FINAL { return New(NULL); }
354 
355  ParentMessage* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
356  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
357  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
358  void CopyFrom(const ParentMessage& from);
359  void MergeFrom(const ParentMessage& from);
360  void Clear() PROTOBUF_FINAL;
361  bool IsInitialized() const PROTOBUF_FINAL;
362 
363  size_t ByteSizeLong() const PROTOBUF_FINAL;
364  bool MergePartialFromCodedStream(
365  ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
366  void SerializeWithCachedSizes(
367  ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
368  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
369  bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
370  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
371  private:
372  void SharedCtor();
373  void SharedDtor();
374  void SetCachedSize(int size) const PROTOBUF_FINAL;
375  void InternalSwap(ParentMessage* other);
376  private:
377  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
378  return NULL;
379  }
380  inline void* MaybeArenaPtr() const {
381  return NULL;
382  }
383  public:
384 
385  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
386 
387  // nested types ----------------------------------------------------
388 
389  // accessors -------------------------------------------------------
390 
391  // repeated .mesos.test.TestSlaveMessage some_slave_messages = 2;
392  int some_slave_messages_size() const;
393  void clear_some_slave_messages();
394  static const int kSomeSlaveMessagesFieldNumber = 2;
395  const ::mesos::test::TestSlaveMessage& some_slave_messages(int index) const;
396  ::mesos::test::TestSlaveMessage* mutable_some_slave_messages(int index);
397  ::mesos::test::TestSlaveMessage* add_some_slave_messages();
398  ::google::protobuf::RepeatedPtrField< ::mesos::test::TestSlaveMessage >*
399  mutable_some_slave_messages();
400  const ::google::protobuf::RepeatedPtrField< ::mesos::test::TestSlaveMessage >&
401  some_slave_messages() const;
402 
403  // optional .mesos.test.TestSlaveMessage some_slave_message = 1;
404  bool has_some_slave_message() const;
405  void clear_some_slave_message();
406  static const int kSomeSlaveMessageFieldNumber = 1;
407  const ::mesos::test::TestSlaveMessage& some_slave_message() const;
408  ::mesos::test::TestSlaveMessage* release_some_slave_message();
409  ::mesos::test::TestSlaveMessage* mutable_some_slave_message();
410  void set_allocated_some_slave_message(::mesos::test::TestSlaveMessage* some_slave_message);
411 
412  // @@protoc_insertion_point(class_scope:mesos.test.ParentMessage)
413  private:
414  void set_has_some_slave_message();
415  void clear_has_some_slave_message();
416 
417  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
418  ::google::protobuf::internal::HasBits<1> _has_bits_;
419  mutable int _cached_size_;
420  ::google::protobuf::RepeatedPtrField< ::mesos::test::TestSlaveMessage > some_slave_messages_;
421  ::mesos::test::TestSlaveMessage* some_slave_message_;
422  friend struct ::protobuf_http_5ftests_2eproto::TableStruct;
424 };
425 // ===================================================================
426 
427 
428 // ===================================================================
429 
430 #ifdef __GNUC__
431  #pragma GCC diagnostic push
432  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
433 #endif // __GNUC__
434 // -------------------------------------------------------------------
435 
436 // TestSlaveMessage
437 
438 // optional bool some_slave_field = 1;
439 inline bool TestSlaveMessage::has_some_slave_field() const {
440  return (_has_bits_[0] & 0x00000001u) != 0;
441 }
442 inline void TestSlaveMessage::set_has_some_slave_field() {
443  _has_bits_[0] |= 0x00000001u;
444 }
445 inline void TestSlaveMessage::clear_has_some_slave_field() {
446  _has_bits_[0] &= ~0x00000001u;
447 }
448 inline void TestSlaveMessage::clear_some_slave_field() {
449  some_slave_field_ = false;
450  clear_has_some_slave_field();
451 }
452 inline bool TestSlaveMessage::some_slave_field() const {
453  // @@protoc_insertion_point(field_get:mesos.test.TestSlaveMessage.some_slave_field)
454  return some_slave_field_;
455 }
456 inline void TestSlaveMessage::set_some_slave_field(bool value) {
457  set_has_some_slave_field();
458  some_slave_field_ = value;
459  // @@protoc_insertion_point(field_set:mesos.test.TestSlaveMessage.some_slave_field)
460 }
461 
462 // repeated bool some_slave_fields = 2;
463 inline int TestSlaveMessage::some_slave_fields_size() const {
464  return some_slave_fields_.size();
465 }
466 inline void TestSlaveMessage::clear_some_slave_fields() {
467  some_slave_fields_.Clear();
468 }
469 inline bool TestSlaveMessage::some_slave_fields(int index) const {
470  // @@protoc_insertion_point(field_get:mesos.test.TestSlaveMessage.some_slave_fields)
471  return some_slave_fields_.Get(index);
472 }
473 inline void TestSlaveMessage::set_some_slave_fields(int index, bool value) {
474  some_slave_fields_.Set(index, value);
475  // @@protoc_insertion_point(field_set:mesos.test.TestSlaveMessage.some_slave_fields)
476 }
477 inline void TestSlaveMessage::add_some_slave_fields(bool value) {
478  some_slave_fields_.Add(value);
479  // @@protoc_insertion_point(field_add:mesos.test.TestSlaveMessage.some_slave_fields)
480 }
481 inline const ::google::protobuf::RepeatedField< bool >&
482 TestSlaveMessage::some_slave_fields() const {
483  // @@protoc_insertion_point(field_list:mesos.test.TestSlaveMessage.some_slave_fields)
484  return some_slave_fields_;
485 }
486 inline ::google::protobuf::RepeatedField< bool >*
487 TestSlaveMessage::mutable_some_slave_fields() {
488  // @@protoc_insertion_point(field_mutable_list:mesos.test.TestSlaveMessage.some_slave_fields)
489  return &some_slave_fields_;
490 }
491 
492 // map<bool, bool> some_slave_map = 3;
493 inline int TestSlaveMessage::some_slave_map_size() const {
494  return some_slave_map_.size();
495 }
496 inline void TestSlaveMessage::clear_some_slave_map() {
497  some_slave_map_.Clear();
498 }
499 inline const ::google::protobuf::Map< bool, bool >&
500 TestSlaveMessage::some_slave_map() const {
501  // @@protoc_insertion_point(field_map:mesos.test.TestSlaveMessage.some_slave_map)
502  return some_slave_map_.GetMap();
503 }
504 inline ::google::protobuf::Map< bool, bool >*
505 TestSlaveMessage::mutable_some_slave_map() {
506  // @@protoc_insertion_point(field_mutable_map:mesos.test.TestSlaveMessage.some_slave_map)
507  return some_slave_map_.MutableMap();
508 }
509 
510 // optional .mesos.test.TestSlaveMessage.E some_slave_enum = 4;
511 inline bool TestSlaveMessage::has_some_slave_enum() const {
512  return (_has_bits_[0] & 0x00000002u) != 0;
513 }
514 inline void TestSlaveMessage::set_has_some_slave_enum() {
515  _has_bits_[0] |= 0x00000002u;
516 }
517 inline void TestSlaveMessage::clear_has_some_slave_enum() {
518  _has_bits_[0] &= ~0x00000002u;
519 }
520 inline void TestSlaveMessage::clear_some_slave_enum() {
521  some_slave_enum_ = 0;
522  clear_has_some_slave_enum();
523 }
524 inline ::mesos::test::TestSlaveMessage_E TestSlaveMessage::some_slave_enum() const {
525  // @@protoc_insertion_point(field_get:mesos.test.TestSlaveMessage.some_slave_enum)
526  return static_cast< ::mesos::test::TestSlaveMessage_E >(some_slave_enum_);
527 }
528 inline void TestSlaveMessage::set_some_slave_enum(::mesos::test::TestSlaveMessage_E value) {
530  set_has_some_slave_enum();
531  some_slave_enum_ = value;
532  // @@protoc_insertion_point(field_set:mesos.test.TestSlaveMessage.some_slave_enum)
533 }
534 
535 // repeated .mesos.test.TestSlaveMessage.E some_slave_enums = 5;
536 inline int TestSlaveMessage::some_slave_enums_size() const {
537  return some_slave_enums_.size();
538 }
539 inline void TestSlaveMessage::clear_some_slave_enums() {
540  some_slave_enums_.Clear();
541 }
542 inline ::mesos::test::TestSlaveMessage_E TestSlaveMessage::some_slave_enums(int index) const {
543  // @@protoc_insertion_point(field_get:mesos.test.TestSlaveMessage.some_slave_enums)
544  return static_cast< ::mesos::test::TestSlaveMessage_E >(some_slave_enums_.Get(index));
545 }
546 inline void TestSlaveMessage::set_some_slave_enums(int index, ::mesos::test::TestSlaveMessage_E value) {
548  some_slave_enums_.Set(index, value);
549  // @@protoc_insertion_point(field_set:mesos.test.TestSlaveMessage.some_slave_enums)
550 }
551 inline void TestSlaveMessage::add_some_slave_enums(::mesos::test::TestSlaveMessage_E value) {
553  some_slave_enums_.Add(value);
554  // @@protoc_insertion_point(field_add:mesos.test.TestSlaveMessage.some_slave_enums)
555 }
556 inline const ::google::protobuf::RepeatedField<int>&
557 TestSlaveMessage::some_slave_enums() const {
558  // @@protoc_insertion_point(field_list:mesos.test.TestSlaveMessage.some_slave_enums)
559  return some_slave_enums_;
560 }
561 inline ::google::protobuf::RepeatedField<int>*
562 TestSlaveMessage::mutable_some_slave_enums() {
563  // @@protoc_insertion_point(field_mutable_list:mesos.test.TestSlaveMessage.some_slave_enums)
564  return &some_slave_enums_;
565 }
566 
567 // -------------------------------------------------------------------
568 
569 // ParentMessage
570 
571 // optional .mesos.test.TestSlaveMessage some_slave_message = 1;
572 inline bool ParentMessage::has_some_slave_message() const {
573  return (_has_bits_[0] & 0x00000001u) != 0;
574 }
575 inline void ParentMessage::set_has_some_slave_message() {
576  _has_bits_[0] |= 0x00000001u;
577 }
578 inline void ParentMessage::clear_has_some_slave_message() {
579  _has_bits_[0] &= ~0x00000001u;
580 }
581 inline void ParentMessage::clear_some_slave_message() {
582  if (some_slave_message_ != NULL) some_slave_message_->Clear();
583  clear_has_some_slave_message();
584 }
585 inline const ::mesos::test::TestSlaveMessage& ParentMessage::some_slave_message() const {
586  const ::mesos::test::TestSlaveMessage* p = some_slave_message_;
587  // @@protoc_insertion_point(field_get:mesos.test.ParentMessage.some_slave_message)
588  return p != NULL ? *p : *reinterpret_cast<const ::mesos::test::TestSlaveMessage*>(
590 }
591 inline ::mesos::test::TestSlaveMessage* ParentMessage::release_some_slave_message() {
592  // @@protoc_insertion_point(field_release:mesos.test.ParentMessage.some_slave_message)
593  clear_has_some_slave_message();
594  ::mesos::test::TestSlaveMessage* temp = some_slave_message_;
595  some_slave_message_ = NULL;
596  return temp;
597 }
598 inline ::mesos::test::TestSlaveMessage* ParentMessage::mutable_some_slave_message() {
599  set_has_some_slave_message();
600  if (some_slave_message_ == NULL) {
601  some_slave_message_ = new ::mesos::test::TestSlaveMessage;
602  }
603  // @@protoc_insertion_point(field_mutable:mesos.test.ParentMessage.some_slave_message)
604  return some_slave_message_;
605 }
606 inline void ParentMessage::set_allocated_some_slave_message(::mesos::test::TestSlaveMessage* some_slave_message) {
607  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
608  if (message_arena == NULL) {
609  delete some_slave_message_;
610  }
611  if (some_slave_message) {
612  ::google::protobuf::Arena* submessage_arena = NULL;
613  if (message_arena != submessage_arena) {
614  some_slave_message = ::google::protobuf::internal::GetOwnedMessage(
615  message_arena, some_slave_message, submessage_arena);
616  }
617  set_has_some_slave_message();
618  } else {
619  clear_has_some_slave_message();
620  }
621  some_slave_message_ = some_slave_message;
622  // @@protoc_insertion_point(field_set_allocated:mesos.test.ParentMessage.some_slave_message)
623 }
624 
625 // repeated .mesos.test.TestSlaveMessage some_slave_messages = 2;
626 inline int ParentMessage::some_slave_messages_size() const {
627  return some_slave_messages_.size();
628 }
629 inline void ParentMessage::clear_some_slave_messages() {
630  some_slave_messages_.Clear();
631 }
632 inline const ::mesos::test::TestSlaveMessage& ParentMessage::some_slave_messages(int index) const {
633  // @@protoc_insertion_point(field_get:mesos.test.ParentMessage.some_slave_messages)
634  return some_slave_messages_.Get(index);
635 }
636 inline ::mesos::test::TestSlaveMessage* ParentMessage::mutable_some_slave_messages(int index) {
637  // @@protoc_insertion_point(field_mutable:mesos.test.ParentMessage.some_slave_messages)
638  return some_slave_messages_.Mutable(index);
639 }
640 inline ::mesos::test::TestSlaveMessage* ParentMessage::add_some_slave_messages() {
641  // @@protoc_insertion_point(field_add:mesos.test.ParentMessage.some_slave_messages)
642  return some_slave_messages_.Add();
643 }
644 inline ::google::protobuf::RepeatedPtrField< ::mesos::test::TestSlaveMessage >*
645 ParentMessage::mutable_some_slave_messages() {
646  // @@protoc_insertion_point(field_mutable_list:mesos.test.ParentMessage.some_slave_messages)
647  return &some_slave_messages_;
648 }
649 inline const ::google::protobuf::RepeatedPtrField< ::mesos::test::TestSlaveMessage >&
650 ParentMessage::some_slave_messages() const {
651  // @@protoc_insertion_point(field_list:mesos.test.ParentMessage.some_slave_messages)
652  return some_slave_messages_;
653 }
654 
655 #ifdef __GNUC__
656  #pragma GCC diagnostic pop
657 #endif // __GNUC__
658 // -------------------------------------------------------------------
659 
660 // -------------------------------------------------------------------
661 
662 
663 // @@protoc_insertion_point(namespace_scope)
664 
665 } // namespace test
666 } // namespace mesos
667 
668 namespace google {
669 namespace protobuf {
670 
671 template <> struct is_proto_enum< ::mesos::test::TestSlaveMessage_E> : ::google::protobuf::internal::true_type {};
672 template <>
673 inline const EnumDescriptor* GetEnumDescriptor< ::mesos::test::TestSlaveMessage_E>() {
675 }
676 
677 } // namespace protobuf
678 } // namespace google
679 
680 // @@protoc_insertion_point(global_scope)
681 
682 #endif // PROTOBUF_http_5ftests_2eproto__INCLUDED
TestSlaveMessage * New() const PROTOBUF_FINAL
Definition: http_tests.pb.h:169
Try< Bytes > size(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
Definition: stat.hpp:130
static bool E_Parse(const ::std::string &name, E *value)
Definition: http_tests.pb.h:225
bool TestSlaveMessage_E_Parse(const ::std::string &name, TestSlaveMessage_E *value)
Definition: http_tests.pb.h:90
void InitDefaults()
Definition: http_tests.pb.h:55
TestSlaveMessage_E
Definition: http_tests.pb.h:77
Definition: http_tests.pb.h:118
Definition: http_tests.pb.h:302
TestSlaveMessage & operator=(const TestSlaveMessage &from)
Definition: http_tests.pb.h:125
static const ::google::protobuf::internal::SerializationTable serialization_table[]
Definition: http_tests.pb.h:45
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
Definition: http_tests.pb.h:42
const int TestSlaveMessage_E_E_ARRAYSIZE
Definition: http_tests.pb.h:83
const ::google::protobuf::EnumDescriptor * TestSlaveMessage_E_descriptor()
void Swap(TestSlaveMessage *other)
const TestSlaveMessage_E TestSlaveMessage_E_E_MAX
Definition: http_tests.pb.h:82
static const TestSlaveMessage_SomeSlaveMapEntry_DoNotUse * internal_default_instance()
Definition: http_tests.pb.h:111
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: http_tests.pb.h:147
void Clear() PROTOBUF_FINAL
void InitDefaultsTestSlaveMessage_SomeSlaveMapEntry_DoNotUseImpl()
int GetCachedSize() const PROTOBUF_FINAL
Definition: http_tests.pb.h:186
Definition: http_tests.pb.h:78
void Swap(ParentMessage *other)
TestSlaveMessage_SomeSlaveMapEntry_DoNotUseDefaultTypeInternal _TestSlaveMessage_SomeSlaveMapEntry_DoNotUse_default_instance_
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
Definition: http_tests.pb.h:44
static const ::google::protobuf::internal::ParseTableField entries[]
Definition: http_tests.pb.h:41
static const ParentMessage * internal_default_instance()
Definition: http_tests.pb.h:339
ParentMessageDefaultTypeInternal _ParentMessage_default_instance_
Definition: http_tests.pb.h:38
Definition: agent.hpp:25
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: http_tests.pb.h:144
TestSlaveMessageDefaultTypeInternal _TestSlaveMessage_default_instance_
const ::std::string & TestSlaveMessage_E_Name(TestSlaveMessage_E value)
Definition: http_tests.pb.h:86
TestSlaveMessage_E E
Definition: http_tests.pb.h:206
Definition: protobuf.hpp:61
static bool E_IsValid(int value)
Definition: http_tests.pb.h:209
ParentMessage & operator=(const ParentMessage &from)
Definition: http_tests.pb.h:309
int GetCachedSize() const PROTOBUF_FINAL
Definition: http_tests.pb.h:370
static const TestSlaveMessage * internal_default_instance()
Definition: http_tests.pb.h:155
friend void swap(ParentMessage &a, ParentMessage &b)
Definition: http_tests.pb.h:347
::google::protobuf::internal::MapEntry< TestSlaveMessage_SomeSlaveMapEntry_DoNotUse, bool, bool,::google::protobuf::internal::WireFormatLite::TYPE_BOOL,::google::protobuf::internal::WireFormatLite::TYPE_BOOL, 0 > SuperType
Definition: http_tests.pb.h:107
static const ::google::protobuf::EnumDescriptor * E_descriptor()
Definition: http_tests.pb.h:219
void InitDefaultsTestSlaveMessage_SomeSlaveMapEntry_DoNotUse()
std::string temp()
Definition: temp.hpp:27
static const ::google::protobuf::uint32 offsets[]
Definition: http_tests.pb.h:46
const TestSlaveMessage_E TestSlaveMessage_E_E_MIN
Definition: http_tests.pb.h:81
static const ::std::string & E_Name(E value)
Definition: http_tests.pb.h:222
Type utilities for the protobuf library that are not specific to particular protobuf classes...
Definition: type_utils.hpp:531
static const ::google::protobuf::internal::ParseTable schema[3]
Definition: http_tests.pb.h:43
friend void swap(TestSlaveMessage &a, TestSlaveMessage &b)
Definition: http_tests.pb.h:163
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: http_tests.pb.h:328
ParentMessage * New() const PROTOBUF_FINAL
Definition: http_tests.pb.h:353
constexpr const char * name
Definition: shell.hpp:43
Definition: http_tests.pb.h:40
bool TestSlaveMessage_E_IsValid(int value)
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: http_tests.pb.h:331