4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fdiscovery_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fdiscovery_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fdiscovery_2eproto GZ_MSGS_VISIBLE
41 static const ::google::protobuf::internal::ParseTableField entries[];
42 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43 static const ::google::protobuf::internal::ParseTable schema[6];
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[];
53 class DiscoveryDefaultTypeInternal;
55 class Discovery_Flags;
56 class Discovery_FlagsDefaultTypeInternal;
58 class Discovery_Publisher;
59 class Discovery_PublisherDefaultTypeInternal;
61 class Discovery_Publisher_MessagePublisher;
62 class Discovery_Publisher_MessagePublisherDefaultTypeInternal;
64 class Discovery_Publisher_ServicePublisher;
65 class Discovery_Publisher_ServicePublisherDefaultTypeInternal;
67 class Discovery_Subscriber;
68 class Discovery_SubscriberDefaultTypeInternal;
74 template<> GZ_MSGS_VISIBLE ::gz::msgs::Discovery* Arena::CreateMaybeMessage<::gz::msgs::Discovery>(Arena*);
75 template<> GZ_MSGS_VISIBLE ::gz::msgs::Discovery_Flags* Arena::CreateMaybeMessage<::gz::msgs::Discovery_Flags>(Arena*);
76 template<> GZ_MSGS_VISIBLE ::gz::msgs::Discovery_Publisher* Arena::CreateMaybeMessage<::gz::msgs::Discovery_Publisher>(Arena*);
77 template<> GZ_MSGS_VISIBLE ::gz::msgs::Discovery_Publisher_MessagePublisher* Arena::CreateMaybeMessage<::gz::msgs::Discovery_Publisher_MessagePublisher>(Arena*);
78 template<> GZ_MSGS_VISIBLE ::gz::msgs::Discovery_Publisher_ServicePublisher* Arena::CreateMaybeMessage<::gz::msgs::Discovery_Publisher_ServicePublisher>(Arena*);
79 template<> GZ_MSGS_VISIBLE ::gz::msgs::Discovery_Subscriber* Arena::CreateMaybeMessage<::gz::msgs::Discovery_Subscriber>(Arena*);
99 return ::google::protobuf::internal::NameOfEnum(
104 return ::google::protobuf::internal::ParseNamedEnum<Discovery_Publisher_Scope>(
126 return ::google::protobuf::internal::NameOfEnum(
131 return ::google::protobuf::internal::ParseNamedEnum<Discovery_Type>(
150 *
this = ::std::move(from);
153 inline Discovery_Flags& operator=(Discovery_Flags&& from) noexcept {
154 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
155 if (
this != &from) InternalSwap(&from);
162 static const ::google::protobuf::Descriptor* descriptor();
163 static const Discovery_Flags& default_instance();
165 static void InitAsDefaultInstance();
170 static constexpr
int kIndexInFileMessages =
181 return CreateMaybeMessage<Discovery_Flags>(NULL);
185 return CreateMaybeMessage<Discovery_Flags>(arena);
187 void CopyFrom(const ::google::protobuf::Message& from)
final;
188 void MergeFrom(const ::google::protobuf::Message& from)
final;
192 bool IsInitialized() const final;
194 size_t ByteSizeLong() const final;
195 bool MergePartialFromCodedStream(
196 ::
google::protobuf::io::CodedInputStream* input) final;
197 void SerializeWithCachedSizes(
198 ::
google::protobuf::io::CodedOutputStream* output) const final;
199 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
200 bool deterministic, ::
google::protobuf::uint8* target) const final;
201 int GetCachedSize() const final {
return _cached_size_.Get(); }
206 void SetCachedSize(
int size)
const final;
209 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
212 inline void* MaybeArenaPtr()
const {
217 ::google::protobuf::Metadata GetMetadata() const final;
225 static const
int kRelayFieldNumber = 1;
227 void set_relay(
bool value);
230 void clear_no_relay();
231 static const
int kNoRelayFieldNumber = 2;
232 bool no_relay() const;
233 void set_no_relay(
bool value);
238 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
241 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
260 *
this = ::std::move(from);
263 inline Discovery_Subscriber& operator=(Discovery_Subscriber&& from) noexcept {
264 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
265 if (
this != &from) InternalSwap(&from);
272 static const ::google::protobuf::Descriptor* descriptor();
273 static const Discovery_Subscriber& default_instance();
275 static void InitAsDefaultInstance();
280 static constexpr
int kIndexInFileMessages =
291 return CreateMaybeMessage<Discovery_Subscriber>(NULL);
295 return CreateMaybeMessage<Discovery_Subscriber>(arena);
297 void CopyFrom(const ::google::protobuf::Message& from)
final;
298 void MergeFrom(const ::google::protobuf::Message& from)
final;
302 bool IsInitialized() const final;
304 size_t ByteSizeLong() const final;
305 bool MergePartialFromCodedStream(
306 ::
google::protobuf::io::CodedInputStream* input) final;
307 void SerializeWithCachedSizes(
308 ::
google::protobuf::io::CodedOutputStream* output) const final;
309 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
310 bool deterministic, ::
google::protobuf::uint8* target) const final;
311 int GetCachedSize() const final {
return _cached_size_.Get(); }
316 void SetCachedSize(
int size)
const final;
319 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
322 inline void* MaybeArenaPtr()
const {
327 ::google::protobuf::Metadata GetMetadata() const final;
335 static const
int kTopicFieldNumber = 1;
336 const ::
std::
string& topic() const;
337 void set_topic(const ::
std::
string& value);
341 void set_topic(
const char* value);
342 void set_topic(
const char* value,
size_t size);
350 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
351 ::google::protobuf::internal::ArenaStringPtr topic_;
352 mutable ::google::protobuf::internal::CachedSize _cached_size_;
353 friend struct ::protobuf_gz_2fmsgs_2fdiscovery_2eproto::TableStruct;
371 *
this = ::std::move(from);
374 inline Discovery_Publisher_MessagePublisher& operator=(Discovery_Publisher_MessagePublisher&& from) noexcept {
375 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
376 if (
this != &from) InternalSwap(&from);
383 static const ::google::protobuf::Descriptor* descriptor();
384 static const Discovery_Publisher_MessagePublisher& default_instance();
386 static void InitAsDefaultInstance();
391 static constexpr
int kIndexInFileMessages =
402 return CreateMaybeMessage<Discovery_Publisher_MessagePublisher>(NULL);
406 return CreateMaybeMessage<Discovery_Publisher_MessagePublisher>(arena);
408 void CopyFrom(const ::google::protobuf::Message& from)
final;
409 void MergeFrom(const ::google::protobuf::Message& from)
final;
413 bool IsInitialized() const final;
415 size_t ByteSizeLong() const final;
416 bool MergePartialFromCodedStream(
417 ::
google::protobuf::io::CodedInputStream* input) final;
418 void SerializeWithCachedSizes(
419 ::
google::protobuf::io::CodedOutputStream* output) const final;
420 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
421 bool deterministic, ::
google::protobuf::uint8* target) const final;
422 int GetCachedSize() const final {
return _cached_size_.Get(); }
427 void SetCachedSize(
int size)
const final;
430 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
433 inline void* MaybeArenaPtr()
const {
438 ::google::protobuf::Metadata GetMetadata() const final;
446 static const
int kCtrlFieldNumber = 1;
447 const ::
std::
string& ctrl() const;
448 void set_ctrl(const ::
std::
string& value);
452 void set_ctrl(
const char* value);
453 void set_ctrl(
const char* value,
size_t size);
459 void clear_msg_type();
460 static const int kMsgTypeFieldNumber = 2;
461 const ::std::string& msg_type()
const;
462 void set_msg_type(const ::std::string& value);
466 void set_msg_type(
const char* value);
467 void set_msg_type(
const char* value,
size_t size);
470 void set_allocated_msg_type(::
std::string* msg_type);
473 void clear_msgs_per_sec();
474 static const int kMsgsPerSecFieldNumber = 4;
475 ::google::protobuf::uint64 msgs_per_sec()
const;
476 void set_msgs_per_sec(::google::protobuf::uint64 value);
479 void clear_throttled();
480 static const int kThrottledFieldNumber = 3;
481 bool throttled()
const;
482 void set_throttled(
bool value);
487 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
488 ::google::protobuf::internal::ArenaStringPtr ctrl_;
489 ::google::protobuf::internal::ArenaStringPtr msg_type_;
490 ::google::protobuf::uint64 msgs_per_sec_;
492 mutable ::google::protobuf::internal::CachedSize _cached_size_;
493 friend struct ::protobuf_gz_2fmsgs_2fdiscovery_2eproto::TableStruct;
511 *
this = ::std::move(from);
514 inline Discovery_Publisher_ServicePublisher& operator=(Discovery_Publisher_ServicePublisher&& from) noexcept {
515 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
516 if (
this != &from) InternalSwap(&from);
523 static const ::google::protobuf::Descriptor* descriptor();
524 static const Discovery_Publisher_ServicePublisher& default_instance();
526 static void InitAsDefaultInstance();
531 static constexpr
int kIndexInFileMessages =
542 return CreateMaybeMessage<Discovery_Publisher_ServicePublisher>(NULL);
546 return CreateMaybeMessage<Discovery_Publisher_ServicePublisher>(arena);
548 void CopyFrom(const ::google::protobuf::Message& from)
final;
549 void MergeFrom(const ::google::protobuf::Message& from)
final;
553 bool IsInitialized() const final;
555 size_t ByteSizeLong() const final;
556 bool MergePartialFromCodedStream(
557 ::
google::protobuf::io::CodedInputStream* input) final;
558 void SerializeWithCachedSizes(
559 ::
google::protobuf::io::CodedOutputStream* output) const final;
560 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
561 bool deterministic, ::
google::protobuf::uint8* target) const final;
562 int GetCachedSize() const final {
return _cached_size_.Get(); }
567 void SetCachedSize(
int size)
const final;
570 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
573 inline void* MaybeArenaPtr()
const {
578 ::google::protobuf::Metadata GetMetadata() const final;
585 void clear_socket_id();
586 static const
int kSocketIdFieldNumber = 1;
587 const ::
std::
string& socket_id() const;
588 void set_socket_id(const ::
std::
string& value);
592 void set_socket_id(
const char* value);
593 void set_socket_id(
const char* value,
size_t size);
596 void set_allocated_socket_id(::
std::string* socket_id);
599 void clear_request_type();
600 static const int kRequestTypeFieldNumber = 2;
601 const ::std::string& request_type()
const;
602 void set_request_type(const ::std::string& value);
606 void set_request_type(
const char* value);
607 void set_request_type(
const char* value,
size_t size);
610 void set_allocated_request_type(::
std::string* request_type);
613 void clear_response_type();
614 static const int kResponseTypeFieldNumber = 3;
615 const ::std::string& response_type()
const;
616 void set_response_type(const ::std::string& value);
620 void set_response_type(
const char* value);
621 void set_response_type(
const char* value,
size_t size);
624 void set_allocated_response_type(::
std::string* response_type);
629 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
630 ::google::protobuf::internal::ArenaStringPtr socket_id_;
631 ::google::protobuf::internal::ArenaStringPtr request_type_;
632 ::google::protobuf::internal::ArenaStringPtr response_type_;
633 mutable ::google::protobuf::internal::CachedSize _cached_size_;
634 friend struct ::protobuf_gz_2fmsgs_2fdiscovery_2eproto::TableStruct;
652 *
this = ::std::move(from);
655 inline Discovery_Publisher& operator=(Discovery_Publisher&& from) noexcept {
656 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
657 if (
this != &from) InternalSwap(&from);
664 static const ::google::protobuf::Descriptor* descriptor();
665 static const Discovery_Publisher& default_instance();
670 PUB_TYPE_NOT_SET = 0,
673 static void InitAsDefaultInstance();
678 static constexpr
int kIndexInFileMessages =
689 return CreateMaybeMessage<Discovery_Publisher>(NULL);
693 return CreateMaybeMessage<Discovery_Publisher>(arena);
695 void CopyFrom(const ::google::protobuf::Message& from)
final;
696 void MergeFrom(const ::google::protobuf::Message& from)
final;
700 bool IsInitialized() const final;
702 size_t ByteSizeLong() const final;
703 bool MergePartialFromCodedStream(
704 ::
google::protobuf::io::CodedInputStream* input) final;
705 void SerializeWithCachedSizes(
706 ::
google::protobuf::io::CodedOutputStream* output) const final;
707 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
708 bool deterministic, ::
google::protobuf::uint8* target) const final;
709 int GetCachedSize() const final {
return _cached_size_.Get(); }
714 void SetCachedSize(
int size)
const final;
717 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
720 inline void* MaybeArenaPtr()
const {
725 ::google::protobuf::Metadata GetMetadata() const final;
739 static inline
bool Scope_IsValid(
int value) {
746 static const int Scope_ARRAYSIZE =
748 static inline const ::google::protobuf::EnumDescriptor*
764 static const int kTopicFieldNumber = 1;
765 const ::std::string& topic()
const;
766 void set_topic(const ::std::string& value);
770 void set_topic(
const char* value);
771 void set_topic(
const char* value,
size_t size);
777 void clear_address();
778 static const int kAddressFieldNumber = 2;
779 const ::std::string& address()
const;
780 void set_address(const ::std::string& value);
784 void set_address(
const char* value);
785 void set_address(
const char* value,
size_t size);
788 void set_allocated_address(::
std::string* address);
791 void clear_process_uuid();
792 static const int kProcessUuidFieldNumber = 3;
793 const ::std::string& process_uuid()
const;
794 void set_process_uuid(const ::std::string& value);
798 void set_process_uuid(
const char* value);
799 void set_process_uuid(
const char* value,
size_t size);
802 void set_allocated_process_uuid(::
std::string* process_uuid);
805 void clear_node_uuid();
806 static const int kNodeUuidFieldNumber = 4;
807 const ::std::string& node_uuid()
const;
808 void set_node_uuid(const ::std::string& value);
812 void set_node_uuid(
const char* value);
813 void set_node_uuid(
const char* value,
size_t size);
816 void set_allocated_node_uuid(::
std::string* node_uuid);
820 static const int kScopeFieldNumber = 5;
825 bool has_msg_pub()
const;
826 void clear_msg_pub();
827 static const int kMsgPubFieldNumber = 6;
829 const ::gz::msgs::Discovery_Publisher_MessagePublisher& _internal_msg_pub()
const;
831 const ::gz::msgs::Discovery_Publisher_MessagePublisher& msg_pub()
const;
837 bool has_srv_pub()
const;
838 void clear_srv_pub();
839 static const int kSrvPubFieldNumber = 7;
841 const ::gz::msgs::Discovery_Publisher_ServicePublisher& _internal_srv_pub()
const;
843 const ::gz::msgs::Discovery_Publisher_ServicePublisher& srv_pub()
const;
848 void clear_pub_type();
852 void set_has_msg_pub();
853 void set_has_srv_pub();
855 inline bool has_pub_type()
const;
856 inline void clear_has_pub_type();
858 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
859 ::google::protobuf::internal::ArenaStringPtr topic_;
860 ::google::protobuf::internal::ArenaStringPtr address_;
861 ::google::protobuf::internal::ArenaStringPtr process_uuid_;
862 ::google::protobuf::internal::ArenaStringPtr node_uuid_;
869 mutable ::google::protobuf::internal::CachedSize _cached_size_;
870 ::google::protobuf::uint32 _oneof_case_[1];
872 friend struct ::protobuf_gz_2fmsgs_2fdiscovery_2eproto::TableStruct;
876 class GZ_MSGS_VISIBLE
Discovery :
public ::google::protobuf::Message {
890 *
this = ::std::move(from);
893 inline Discovery& operator=(Discovery&& from) noexcept {
894 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
895 if (
this != &from) InternalSwap(&from);
902 static const ::google::protobuf::Descriptor* descriptor();
903 static const Discovery& default_instance();
908 DISC_CONTENTS_NOT_SET = 0,
911 static void InitAsDefaultInstance();
913 return reinterpret_cast<const Discovery*
>(
916 static constexpr
int kIndexInFileMessages =
927 return CreateMaybeMessage<Discovery>(NULL);
931 return CreateMaybeMessage<Discovery>(arena);
933 void CopyFrom(const ::google::protobuf::Message& from)
final;
934 void MergeFrom(const ::google::protobuf::Message& from)
final;
938 bool IsInitialized() const final;
940 size_t ByteSizeLong() const final;
941 bool MergePartialFromCodedStream(
942 ::
google::protobuf::io::CodedInputStream* input) final;
943 void SerializeWithCachedSizes(
944 ::
google::protobuf::io::CodedOutputStream* output) const final;
945 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
946 bool deterministic, ::
google::protobuf::uint8* target) const final;
947 int GetCachedSize() const final {
return _cached_size_.Get(); }
952 void SetCachedSize(
int size)
const final;
955 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
958 inline void* MaybeArenaPtr()
const {
963 ::google::protobuf::Metadata GetMetadata() const final;
972 static const
Type UNINITIALIZED =
978 static const
Type UNADVERTISE =
984 static const
Type NEW_CONNECTION =
986 static const
Type END_CONNECTION =
988 static inline
bool Type_IsValid(
int value) {
995 static const int Type_ARRAYSIZE =
997 static inline const ::google::protobuf::EnumDescriptor*
1012 void clear_process_uuid();
1013 static const int kProcessUuidFieldNumber = 3;
1014 const ::std::string& process_uuid()
const;
1015 void set_process_uuid(const ::std::string& value);
1019 void set_process_uuid(
const char* value);
1020 void set_process_uuid(
const char* value,
size_t size);
1023 void set_allocated_process_uuid(::
std::string* process_uuid);
1026 bool has_header()
const;
1027 void clear_header();
1028 static const int kHeaderFieldNumber = 1;
1030 const ::gz::msgs::Header& _internal_header()
const;
1032 const ::gz::msgs::Header& header()
const;
1038 bool has_flags()
const;
1040 static const int kFlagsFieldNumber = 5;
1042 const ::gz::msgs::Discovery_Flags& _internal_flags()
const;
1044 const ::gz::msgs::Discovery_Flags& flags()
const;
1050 void clear_version();
1051 static const int kVersionFieldNumber = 2;
1052 ::google::protobuf::uint32 version()
const;
1053 void set_version(::google::protobuf::uint32 value);
1057 static const int kTypeFieldNumber = 4;
1062 bool has_sub()
const;
1064 static const int kSubFieldNumber = 6;
1066 const ::gz::msgs::Discovery_Subscriber& _internal_sub()
const;
1068 const ::gz::msgs::Discovery_Subscriber& sub()
const;
1074 bool has_pub()
const;
1076 static const int kPubFieldNumber = 7;
1078 const ::gz::msgs::Discovery_Publisher& _internal_pub()
const;
1080 const ::gz::msgs::Discovery_Publisher& pub()
const;
1085 void clear_disc_contents();
1092 inline bool has_disc_contents()
const;
1093 inline void clear_has_disc_contents();
1095 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1096 ::google::protobuf::internal::ArenaStringPtr process_uuid_;
1099 ::google::protobuf::uint32 version_;
1101 union DiscContentsUnion {
1102 DiscContentsUnion() {}
1106 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1107 ::google::protobuf::uint32 _oneof_case_[1];
1109 friend struct ::protobuf_gz_2fmsgs_2fdiscovery_2eproto::TableStruct;
1117 #pragma GCC diagnostic push
1118 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1156 topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1160 return topic_.GetNoArena();
1164 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1171 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
1176 GOOGLE_DCHECK(value != NULL);
1178 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
1183 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1184 ::
std::string(
reinterpret_cast<const char*
>(value), size));
1190 return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1195 return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1198 if (topic != NULL) {
1203 topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic);
1213 ctrl_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1217 return ctrl_.GetNoArena();
1221 ctrl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1228 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
1233 GOOGLE_DCHECK(value != NULL);
1235 ctrl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
1240 ctrl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1241 ::
std::string(
reinterpret_cast<const char*
>(value), size));
1247 return ctrl_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1252 return ctrl_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1260 ctrl_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ctrl);
1266 msg_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1270 return msg_type_.GetNoArena();
1274 msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1280 msg_type_.SetNoArena(
1281 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
1286 GOOGLE_DCHECK(value != NULL);
1288 msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
1293 msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1294 ::
std::string(
reinterpret_cast<const char*
>(value), size));
1300 return msg_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1305 return msg_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1308 if (msg_type != NULL) {
1313 msg_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg_type);
1333 msgs_per_sec_ = GOOGLE_ULONGLONG(0);
1337 return msgs_per_sec_;
1341 msgs_per_sec_ = value;
1351 socket_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1355 return socket_id_.GetNoArena();
1359 socket_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1365 socket_id_.SetNoArena(
1366 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
1371 GOOGLE_DCHECK(value != NULL);
1373 socket_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
1378 socket_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1379 ::
std::string(
reinterpret_cast<const char*
>(value), size));
1385 return socket_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1390 return socket_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1393 if (socket_id != NULL) {
1398 socket_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), socket_id);
1404 request_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1408 return request_type_.GetNoArena();
1412 request_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1418 request_type_.SetNoArena(
1419 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
1424 GOOGLE_DCHECK(value != NULL);
1426 request_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
1431 request_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1432 ::
std::string(
reinterpret_cast<const char*
>(value), size));
1438 return request_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1443 return request_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1446 if (request_type != NULL) {
1451 request_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_type);
1457 response_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1461 return response_type_.GetNoArena();
1465 response_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1471 response_type_.SetNoArena(
1472 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
1477 GOOGLE_DCHECK(value != NULL);
1479 response_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
1484 response_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1485 ::
std::string(
reinterpret_cast<const char*
>(value), size));
1491 return response_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1496 return response_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1499 if (response_type != NULL) {
1504 response_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), response_type);
1514 topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1518 return topic_.GetNoArena();
1522 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1529 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
1534 GOOGLE_DCHECK(value != NULL);
1536 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
1541 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1542 ::
std::string(
reinterpret_cast<const char*
>(value), size));
1548 return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1553 return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1556 if (topic != NULL) {
1561 topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic);
1567 address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1571 return address_.GetNoArena();
1575 address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1581 address_.SetNoArena(
1582 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
1587 GOOGLE_DCHECK(value != NULL);
1589 address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
1594 address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1595 ::
std::string(
reinterpret_cast<const char*
>(value), size));
1601 return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1606 return address_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1609 if (address != NULL) {
1614 address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address);
1620 process_uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1624 return process_uuid_.GetNoArena();
1628 process_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1634 process_uuid_.SetNoArena(
1635 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
1640 GOOGLE_DCHECK(value != NULL);
1642 process_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
1647 process_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1648 ::
std::string(
reinterpret_cast<const char*
>(value), size));
1654 return process_uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1659 return process_uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1662 if (process_uuid != NULL) {
1667 process_uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), process_uuid);
1673 node_uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1677 return node_uuid_.GetNoArena();
1681 node_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1687 node_uuid_.SetNoArena(
1688 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
1693 GOOGLE_DCHECK(value != NULL);
1695 node_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
1700 node_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1701 ::
std::string(
reinterpret_cast<const char*
>(value), size));
1707 return node_uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1712 return node_uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1715 if (node_uuid != NULL) {
1720 node_uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_uuid);
1740 return pub_type_case() == kMsgPub;
1742 inline void Discovery_Publisher::set_has_msg_pub() {
1743 _oneof_case_[0] = kMsgPub;
1746 if (has_msg_pub()) {
1747 delete pub_type_.msg_pub_;
1748 clear_has_pub_type();
1751 inline const ::gz::msgs::Discovery_Publisher_MessagePublisher& Discovery_Publisher::_internal_msg_pub()
const {
1752 return *pub_type_.msg_pub_;
1756 if (has_msg_pub()) {
1757 clear_has_pub_type();
1759 pub_type_.msg_pub_ = NULL;
1767 return has_msg_pub()
1768 ? *pub_type_.msg_pub_
1772 if (!has_msg_pub()) {
1775 pub_type_.msg_pub_ = CreateMaybeMessage< ::gz::msgs::Discovery_Publisher_MessagePublisher >(
1776 GetArenaNoVirtual());
1779 return pub_type_.msg_pub_;
1784 return pub_type_case() == kSrvPub;
1786 inline void Discovery_Publisher::set_has_srv_pub() {
1787 _oneof_case_[0] = kSrvPub;
1790 if (has_srv_pub()) {
1791 delete pub_type_.srv_pub_;
1792 clear_has_pub_type();
1795 inline const ::gz::msgs::Discovery_Publisher_ServicePublisher& Discovery_Publisher::_internal_srv_pub()
const {
1796 return *pub_type_.srv_pub_;
1800 if (has_srv_pub()) {
1801 clear_has_pub_type();
1803 pub_type_.srv_pub_ = NULL;
1811 return has_srv_pub()
1812 ? *pub_type_.srv_pub_
1816 if (!has_srv_pub()) {
1819 pub_type_.srv_pub_ = CreateMaybeMessage< ::gz::msgs::Discovery_Publisher_ServicePublisher >(
1820 GetArenaNoVirtual());
1823 return pub_type_.srv_pub_;
1826 inline bool Discovery_Publisher::has_pub_type()
const {
1827 return pub_type_case() != PUB_TYPE_NOT_SET;
1829 inline void Discovery_Publisher::clear_has_pub_type() {
1830 _oneof_case_[0] = PUB_TYPE_NOT_SET;
1841 return this != internal_default_instance() && header_ != NULL;
1843 inline const ::gz::msgs::Header& Discovery::_internal_header()
const {
1847 const ::gz::msgs::Header* p = header_;
1861 if (header_ == NULL) {
1862 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
1869 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1870 if (message_arena == NULL) {
1871 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
1874 ::google::protobuf::Arena* submessage_arena = NULL;
1875 if (message_arena != submessage_arena) {
1876 header = ::google::protobuf::internal::GetOwnedMessage(
1877 message_arena, header, submessage_arena);
1903 process_uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1907 return process_uuid_.GetNoArena();
1911 process_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1917 process_uuid_.SetNoArena(
1918 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
1923 GOOGLE_DCHECK(value != NULL);
1925 process_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
1930 process_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1931 ::
std::string(
reinterpret_cast<const char*
>(value), size));
1937 return process_uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1942 return process_uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1945 if (process_uuid != NULL) {
1950 process_uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), process_uuid);
1970 return this != internal_default_instance() && flags_ != NULL;
1973 if (GetArenaNoVirtual() == NULL && flags_ != NULL) {
1978 inline const ::gz::msgs::Discovery_Flags& Discovery::_internal_flags()
const {
1982 const ::gz::msgs::Discovery_Flags* p = flags_;
1996 if (flags_ == NULL) {
1997 auto* p = CreateMaybeMessage<::gz::msgs::Discovery_Flags>(GetArenaNoVirtual());
2004 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2005 if (message_arena == NULL) {
2009 ::google::protobuf::Arena* submessage_arena = NULL;
2010 if (message_arena != submessage_arena) {
2011 flags = ::google::protobuf::internal::GetOwnedMessage(
2012 message_arena, flags, submessage_arena);
2024 return disc_contents_case() == kSub;
2026 inline void Discovery::set_has_sub() {
2027 _oneof_case_[0] = kSub;
2031 delete disc_contents_.sub_;
2032 clear_has_disc_contents();
2035 inline const ::gz::msgs::Discovery_Subscriber& Discovery::_internal_sub()
const {
2036 return *disc_contents_.sub_;
2041 clear_has_disc_contents();
2043 disc_contents_.sub_ = NULL;
2052 ? *disc_contents_.sub_
2057 clear_disc_contents();
2059 disc_contents_.sub_ = CreateMaybeMessage< ::gz::msgs::Discovery_Subscriber >(
2060 GetArenaNoVirtual());
2063 return disc_contents_.sub_;
2068 return disc_contents_case() == kPub;
2070 inline void Discovery::set_has_pub() {
2071 _oneof_case_[0] = kPub;
2075 delete disc_contents_.pub_;
2076 clear_has_disc_contents();
2079 inline const ::gz::msgs::Discovery_Publisher& Discovery::_internal_pub()
const {
2080 return *disc_contents_.pub_;
2085 clear_has_disc_contents();
2087 disc_contents_.pub_ = NULL;
2096 ? *disc_contents_.pub_
2101 clear_disc_contents();
2103 disc_contents_.pub_ = CreateMaybeMessage< ::gz::msgs::Discovery_Publisher >(
2104 GetArenaNoVirtual());
2107 return disc_contents_.pub_;
2110 inline bool Discovery::has_disc_contents()
const {
2111 return disc_contents_case() != DISC_CONTENTS_NOT_SET;
2113 inline void Discovery::clear_has_disc_contents() {
2114 _oneof_case_[0] = DISC_CONTENTS_NOT_SET;
2120 #pragma GCC diagnostic pop
2139 namespace protobuf {
2143 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Discovery_Publisher_Scope>() {
2148 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Discovery_Type>() {
2157 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fdiscovery_2eproto