4 #ifndef PROTOBUF_http_5ftests_2eproto__INCLUDED 5 #define PROTOBUF_http_5ftests_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 3005000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 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. 22 #include <google/protobuf/io/coded_stream.h> 23 #include <google/protobuf/arena.h> 24 #include <google/protobuf/arenastring.h> 25 #include <google/protobuf/generated_message_table_driven.h> 26 #include <google/protobuf/generated_message_util.h> 27 #include <google/protobuf/metadata.h> 28 #include <google/protobuf/message.h> 29 #include <google/protobuf/repeated_field.h> 30 #include <google/protobuf/extension_set.h> 31 #include <google/protobuf/map.h> 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> 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];
46 static const ::google::protobuf::uint32
offsets[];
64 class ParentMessageDefaultTypeInternal;
67 class TestSlaveMessageDefaultTypeInternal;
70 class TestSlaveMessage_SomeSlaveMapEntry_DoNotUseDefaultTypeInternal;
87 return ::google::protobuf::internal::NameOfEnum(
92 return ::google::protobuf::internal::ParseNamedEnum<TestSlaveMessage_E>(
99 ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
100 ::google::protobuf::internal::WireFormatLite::TYPE_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);
112 void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
113 ::google::protobuf::Metadata GetMetadata()
const;
132 *
this = ::std::move(from);
136 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
137 if (
this != &from) InternalSwap(&from);
145 return _internal_metadata_.unknown_fields();
148 return _internal_metadata_.mutable_unknown_fields();
151 static const ::google::protobuf::Descriptor* descriptor();
154 static void InitAsDefaultInstance();
159 static PROTOBUF_CONSTEXPR
int const kIndexInFileMessages =
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;
176 void Clear() PROTOBUF_FINAL;
177 bool IsInitialized()
const PROTOBUF_FINAL;
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;
190 void SetCachedSize(
int size)
const PROTOBUF_FINAL;
193 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
196 inline void* MaybeArenaPtr()
const {
201 ::google::protobuf::Metadata GetMetadata()
const PROTOBUF_FINAL;
207 static const E A_SLAVE_ENUM =
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*
222 static inline const ::std::string&
E_Name(E value) {
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();
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();
254 int some_slave_enums_size()
const;
255 void clear_some_slave_enums();
256 static const int kSomeSlaveEnumsFieldNumber = 5;
260 const ::google::protobuf::RepeatedField<int>& some_slave_enums()
const;
261 ::google::protobuf::RepeatedField<int>* mutable_some_slave_enums();
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);
271 bool has_some_slave_enum()
const;
272 void clear_some_slave_enum();
273 static const int kSomeSlaveEnumFieldNumber = 4;
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();
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<
291 ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
292 ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
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;
316 *
this = ::std::move(from);
320 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
321 if (
this != &from) InternalSwap(&from);
329 return _internal_metadata_.unknown_fields();
332 return _internal_metadata_.mutable_unknown_fields();
335 static const ::google::protobuf::Descriptor* descriptor();
338 static void InitAsDefaultInstance();
343 static PROTOBUF_CONSTEXPR
int const kIndexInFileMessages =
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;
360 void Clear() PROTOBUF_FINAL;
361 bool IsInitialized()
const PROTOBUF_FINAL;
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;
374 void SetCachedSize(
int size)
const PROTOBUF_FINAL;
377 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
380 inline void* MaybeArenaPtr()
const {
385 ::google::protobuf::Metadata GetMetadata()
const PROTOBUF_FINAL;
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;
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;
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;
414 void set_has_some_slave_message();
415 void clear_has_some_slave_message();
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_;
422 friend struct ::protobuf_http_5ftests_2eproto::TableStruct;
431 #pragma GCC diagnostic push 432 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 439 inline bool TestSlaveMessage::has_some_slave_field()
const {
440 return (_has_bits_[0] & 0x00000001u) != 0;
442 inline void TestSlaveMessage::set_has_some_slave_field() {
443 _has_bits_[0] |= 0x00000001u;
445 inline void TestSlaveMessage::clear_has_some_slave_field() {
446 _has_bits_[0] &= ~0x00000001u;
448 inline void TestSlaveMessage::clear_some_slave_field() {
449 some_slave_field_ =
false;
450 clear_has_some_slave_field();
452 inline bool TestSlaveMessage::some_slave_field()
const {
454 return some_slave_field_;
456 inline void TestSlaveMessage::set_some_slave_field(
bool value) {
457 set_has_some_slave_field();
458 some_slave_field_ = value;
463 inline int TestSlaveMessage::some_slave_fields_size()
const {
464 return some_slave_fields_.size();
466 inline void TestSlaveMessage::clear_some_slave_fields() {
467 some_slave_fields_.Clear();
469 inline bool TestSlaveMessage::some_slave_fields(
int index)
const {
471 return some_slave_fields_.Get(index);
473 inline void TestSlaveMessage::set_some_slave_fields(
int index,
bool value) {
474 some_slave_fields_.Set(index, value);
477 inline void TestSlaveMessage::add_some_slave_fields(
bool value) {
478 some_slave_fields_.Add(value);
481 inline const ::google::protobuf::RepeatedField< bool >&
482 TestSlaveMessage::some_slave_fields()
const {
484 return some_slave_fields_;
486 inline ::google::protobuf::RepeatedField< bool >*
487 TestSlaveMessage::mutable_some_slave_fields() {
489 return &some_slave_fields_;
493 inline int TestSlaveMessage::some_slave_map_size()
const {
494 return some_slave_map_.size();
496 inline void TestSlaveMessage::clear_some_slave_map() {
497 some_slave_map_.Clear();
499 inline const ::google::protobuf::Map< bool, bool >&
500 TestSlaveMessage::some_slave_map()
const {
502 return some_slave_map_.GetMap();
504 inline ::google::protobuf::Map< bool, bool >*
505 TestSlaveMessage::mutable_some_slave_map() {
507 return some_slave_map_.MutableMap();
511 inline bool TestSlaveMessage::has_some_slave_enum()
const {
512 return (_has_bits_[0] & 0x00000002u) != 0;
514 inline void TestSlaveMessage::set_has_some_slave_enum() {
515 _has_bits_[0] |= 0x00000002u;
517 inline void TestSlaveMessage::clear_has_some_slave_enum() {
518 _has_bits_[0] &= ~0x00000002u;
520 inline void TestSlaveMessage::clear_some_slave_enum() {
521 some_slave_enum_ = 0;
522 clear_has_some_slave_enum();
530 set_has_some_slave_enum();
531 some_slave_enum_ = value;
536 inline int TestSlaveMessage::some_slave_enums_size()
const {
537 return some_slave_enums_.size();
539 inline void TestSlaveMessage::clear_some_slave_enums() {
540 some_slave_enums_.Clear();
548 some_slave_enums_.Set(index, value);
553 some_slave_enums_.Add(value);
556 inline const ::google::protobuf::RepeatedField<int>&
557 TestSlaveMessage::some_slave_enums()
const {
559 return some_slave_enums_;
561 inline ::google::protobuf::RepeatedField<int>*
562 TestSlaveMessage::mutable_some_slave_enums() {
564 return &some_slave_enums_;
572 inline bool ParentMessage::has_some_slave_message()
const {
573 return (_has_bits_[0] & 0x00000001u) != 0;
575 inline void ParentMessage::set_has_some_slave_message() {
576 _has_bits_[0] |= 0x00000001u;
578 inline void ParentMessage::clear_has_some_slave_message() {
579 _has_bits_[0] &= ~0x00000001u;
581 inline void ParentMessage::clear_some_slave_message() {
582 if (some_slave_message_ != NULL) some_slave_message_->Clear();
583 clear_has_some_slave_message();
585 inline const ::mesos::test::TestSlaveMessage& ParentMessage::some_slave_message()
const {
586 const ::mesos::test::TestSlaveMessage* p = some_slave_message_;
591 inline ::mesos::test::TestSlaveMessage* ParentMessage::release_some_slave_message() {
593 clear_has_some_slave_message();
595 some_slave_message_ = NULL;
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;
604 return some_slave_message_;
607 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
608 if (message_arena == NULL) {
609 delete some_slave_message_;
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);
617 set_has_some_slave_message();
619 clear_has_some_slave_message();
621 some_slave_message_ = some_slave_message;
626 inline int ParentMessage::some_slave_messages_size()
const {
627 return some_slave_messages_.size();
629 inline void ParentMessage::clear_some_slave_messages() {
630 some_slave_messages_.
Clear();
632 inline const ::mesos::test::TestSlaveMessage& ParentMessage::some_slave_messages(
int index)
const {
634 return some_slave_messages_.Get(index);
636 inline ::mesos::test::TestSlaveMessage* ParentMessage::mutable_some_slave_messages(
int index) {
638 return some_slave_messages_.Mutable(index);
640 inline ::mesos::test::TestSlaveMessage* ParentMessage::add_some_slave_messages() {
642 return some_slave_messages_.Add();
644 inline ::google::protobuf::RepeatedPtrField< ::mesos::test::TestSlaveMessage >*
645 ParentMessage::mutable_some_slave_messages() {
647 return &some_slave_messages_;
649 inline const ::google::protobuf::RepeatedPtrField< ::mesos::test::TestSlaveMessage >&
650 ParentMessage::some_slave_messages()
const {
652 return some_slave_messages_;
656 #pragma GCC diagnostic pop 673 inline const EnumDescriptor* GetEnumDescriptor< ::mesos::test::TestSlaveMessage_E>() {
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
void InitDefaultsParentMessageImpl()
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
void InitDefaultsTestSlaveMessage()
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
Result< int > index(const std::string &link)
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
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
Definition: http_tests.pb.h:97
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:552
void InitDefaultsParentMessage()
Result< bool > test(const std::string &_link, unsigned int flags)
Definition: internal.hpp:111
void InitDefaultsTestSlaveMessageImpl()
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:41
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