Gazebo Msgs

API Reference

9.5.1
discovery.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/discovery.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fdiscovery_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fdiscovery_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
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/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fdiscovery_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE 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[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[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fdiscovery_2eproto
50 namespace gz {
51 namespace msgs {
52 class Discovery;
53 class DiscoveryDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern DiscoveryDefaultTypeInternal _Discovery_default_instance_;
55 class Discovery_Flags;
56 class Discovery_FlagsDefaultTypeInternal;
57 GZ_MSGS_VISIBLE extern Discovery_FlagsDefaultTypeInternal _Discovery_Flags_default_instance_;
58 class Discovery_Publisher;
59 class Discovery_PublisherDefaultTypeInternal;
60 GZ_MSGS_VISIBLE extern Discovery_PublisherDefaultTypeInternal _Discovery_Publisher_default_instance_;
61 class Discovery_Publisher_MessagePublisher;
62 class Discovery_Publisher_MessagePublisherDefaultTypeInternal;
63 GZ_MSGS_VISIBLE extern Discovery_Publisher_MessagePublisherDefaultTypeInternal _Discovery_Publisher_MessagePublisher_default_instance_;
64 class Discovery_Publisher_ServicePublisher;
65 class Discovery_Publisher_ServicePublisherDefaultTypeInternal;
66 GZ_MSGS_VISIBLE extern Discovery_Publisher_ServicePublisherDefaultTypeInternal _Discovery_Publisher_ServicePublisher_default_instance_;
67 class Discovery_Subscriber;
68 class Discovery_SubscriberDefaultTypeInternal;
69 GZ_MSGS_VISIBLE extern Discovery_SubscriberDefaultTypeInternal _Discovery_Subscriber_default_instance_;
70 } // namespace msgs
71 } // namespace gz
72 namespace google {
73 namespace protobuf {
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*);
80 } // namespace protobuf
81 } // namespace google
82 namespace gz {
83 namespace msgs {
84 
91 };
92 GZ_MSGS_VISIBLE bool Discovery_Publisher_Scope_IsValid(int value);
96 
97 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Discovery_Publisher_Scope_descriptor();
98 inline const ::std::string& Discovery_Publisher_Scope_Name(Discovery_Publisher_Scope value) {
99  return ::google::protobuf::internal::NameOfEnum(
101 }
103  const ::std::string& name, Discovery_Publisher_Scope* value) {
104  return ::google::protobuf::internal::ParseNamedEnum<Discovery_Publisher_Scope>(
105  Discovery_Publisher_Scope_descriptor(), name, value);
106 }
118 };
119 GZ_MSGS_VISIBLE bool Discovery_Type_IsValid(int value);
123 
124 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Discovery_Type_descriptor();
125 inline const ::std::string& Discovery_Type_Name(Discovery_Type value) {
126  return ::google::protobuf::internal::NameOfEnum(
127  Discovery_Type_descriptor(), value);
128 }
130  const ::std::string& name, Discovery_Type* value) {
131  return ::google::protobuf::internal::ParseNamedEnum<Discovery_Type>(
132  Discovery_Type_descriptor(), name, value);
133 }
134 // ===================================================================
135 
136 class GZ_MSGS_VISIBLE Discovery_Flags : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Discovery.Flags) */ {
137  public:
138  Discovery_Flags();
139  virtual ~Discovery_Flags();
140 
141  Discovery_Flags(const Discovery_Flags& from);
142 
144  CopyFrom(from);
145  return *this;
146  }
147  #if LANG_CXX11
148  Discovery_Flags(Discovery_Flags&& from) noexcept
149  : Discovery_Flags() {
150  *this = ::std::move(from);
151  }
152 
153  inline Discovery_Flags& operator=(Discovery_Flags&& from) noexcept {
154  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
155  if (this != &from) InternalSwap(&from);
156  } else {
157  CopyFrom(from);
158  }
159  return *this;
160  }
161  #endif
162  static const ::google::protobuf::Descriptor* descriptor();
163  static const Discovery_Flags& default_instance();
164 
165  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
167  return reinterpret_cast<const Discovery_Flags*>(
169  }
170  static constexpr int kIndexInFileMessages =
171  0;
172 
173  void Swap(Discovery_Flags* other);
174  friend void swap(Discovery_Flags& a, Discovery_Flags& b) {
175  a.Swap(&b);
176  }
177 
178  // implements Message ----------------------------------------------
179 
180  inline Discovery_Flags* New() const final {
181  return CreateMaybeMessage<Discovery_Flags>(NULL);
182  }
183 
184  Discovery_Flags* New(::google::protobuf::Arena* arena) const final {
185  return CreateMaybeMessage<Discovery_Flags>(arena);
186  }
187  void CopyFrom(const ::google::protobuf::Message& from) final;
188  void MergeFrom(const ::google::protobuf::Message& from) final;
189  void CopyFrom(const Discovery_Flags& from);
190  void MergeFrom(const Discovery_Flags& from);
191  void Clear() final;
192  bool IsInitialized() const final;
193 
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(); }
202 
203  private:
204  void SharedCtor();
205  void SharedDtor();
206  void SetCachedSize(int size) const final;
207  void InternalSwap(Discovery_Flags* other);
208  private:
209  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
210  return NULL;
211  }
212  inline void* MaybeArenaPtr() const {
213  return NULL;
214  }
215  public:
216 
217  ::google::protobuf::Metadata GetMetadata() const final;
218 
219  // nested types ----------------------------------------------------
220 
221  // accessors -------------------------------------------------------
222 
223  // bool relay = 1;
224  void clear_relay();
225  static const int kRelayFieldNumber = 1;
226  bool relay() const;
227  void set_relay(bool value);
228 
229  // bool no_relay = 2;
230  void clear_no_relay();
231  static const int kNoRelayFieldNumber = 2;
232  bool no_relay() const;
233  void set_no_relay(bool value);
234 
235  // @@protoc_insertion_point(class_scope:gz.msgs.Discovery.Flags)
236  private:
237 
238  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
239  bool relay_;
240  bool no_relay_;
241  mutable ::google::protobuf::internal::CachedSize _cached_size_;
242  friend struct ::protobuf_gz_2fmsgs_2fdiscovery_2eproto::TableStruct;
243 };
244 // -------------------------------------------------------------------
245 
246 class GZ_MSGS_VISIBLE Discovery_Subscriber : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Discovery.Subscriber) */ {
247  public:
249  virtual ~Discovery_Subscriber();
250 
252 
254  CopyFrom(from);
255  return *this;
256  }
257  #if LANG_CXX11
260  *this = ::std::move(from);
261  }
262 
263  inline Discovery_Subscriber& operator=(Discovery_Subscriber&& from) noexcept {
264  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
265  if (this != &from) InternalSwap(&from);
266  } else {
267  CopyFrom(from);
268  }
269  return *this;
270  }
271  #endif
272  static const ::google::protobuf::Descriptor* descriptor();
273  static const Discovery_Subscriber& default_instance();
274 
275  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
277  return reinterpret_cast<const Discovery_Subscriber*>(
279  }
280  static constexpr int kIndexInFileMessages =
281  1;
282 
283  void Swap(Discovery_Subscriber* other);
285  a.Swap(&b);
286  }
287 
288  // implements Message ----------------------------------------------
289 
290  inline Discovery_Subscriber* New() const final {
291  return CreateMaybeMessage<Discovery_Subscriber>(NULL);
292  }
293 
294  Discovery_Subscriber* New(::google::protobuf::Arena* arena) const final {
295  return CreateMaybeMessage<Discovery_Subscriber>(arena);
296  }
297  void CopyFrom(const ::google::protobuf::Message& from) final;
298  void MergeFrom(const ::google::protobuf::Message& from) final;
299  void CopyFrom(const Discovery_Subscriber& from);
300  void MergeFrom(const Discovery_Subscriber& from);
301  void Clear() final;
302  bool IsInitialized() const final;
303 
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(); }
312 
313  private:
314  void SharedCtor();
315  void SharedDtor();
316  void SetCachedSize(int size) const final;
317  void InternalSwap(Discovery_Subscriber* other);
318  private:
319  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
320  return NULL;
321  }
322  inline void* MaybeArenaPtr() const {
323  return NULL;
324  }
325  public:
326 
327  ::google::protobuf::Metadata GetMetadata() const final;
328 
329  // nested types ----------------------------------------------------
330 
331  // accessors -------------------------------------------------------
332 
333  // string topic = 1;
334  void clear_topic();
335  static const int kTopicFieldNumber = 1;
336  const ::std::string& topic() const;
337  void set_topic(const ::std::string& value);
338  #if LANG_CXX11
339  void set_topic(::std::string&& value);
340  #endif
341  void set_topic(const char* value);
342  void set_topic(const char* value, size_t size);
343  ::std::string* mutable_topic();
344  ::std::string* release_topic();
345  void set_allocated_topic(::std::string* topic);
346 
347  // @@protoc_insertion_point(class_scope:gz.msgs.Discovery.Subscriber)
348  private:
349 
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;
354 };
355 // -------------------------------------------------------------------
356 
357 class GZ_MSGS_VISIBLE Discovery_Publisher_MessagePublisher : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Discovery.Publisher.MessagePublisher) */ {
358  public:
361 
363 
365  CopyFrom(from);
366  return *this;
367  }
368  #if LANG_CXX11
371  *this = ::std::move(from);
372  }
373 
374  inline Discovery_Publisher_MessagePublisher& operator=(Discovery_Publisher_MessagePublisher&& from) noexcept {
375  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
376  if (this != &from) InternalSwap(&from);
377  } else {
378  CopyFrom(from);
379  }
380  return *this;
381  }
382  #endif
383  static const ::google::protobuf::Descriptor* descriptor();
384  static const Discovery_Publisher_MessagePublisher& default_instance();
385 
386  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
388  return reinterpret_cast<const Discovery_Publisher_MessagePublisher*>(
390  }
391  static constexpr int kIndexInFileMessages =
392  2;
393 
394  void Swap(Discovery_Publisher_MessagePublisher* other);
396  a.Swap(&b);
397  }
398 
399  // implements Message ----------------------------------------------
400 
402  return CreateMaybeMessage<Discovery_Publisher_MessagePublisher>(NULL);
403  }
404 
405  Discovery_Publisher_MessagePublisher* New(::google::protobuf::Arena* arena) const final {
406  return CreateMaybeMessage<Discovery_Publisher_MessagePublisher>(arena);
407  }
408  void CopyFrom(const ::google::protobuf::Message& from) final;
409  void MergeFrom(const ::google::protobuf::Message& from) final;
410  void CopyFrom(const Discovery_Publisher_MessagePublisher& from);
411  void MergeFrom(const Discovery_Publisher_MessagePublisher& from);
412  void Clear() final;
413  bool IsInitialized() const final;
414 
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(); }
423 
424  private:
425  void SharedCtor();
426  void SharedDtor();
427  void SetCachedSize(int size) const final;
428  void InternalSwap(Discovery_Publisher_MessagePublisher* other);
429  private:
430  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
431  return NULL;
432  }
433  inline void* MaybeArenaPtr() const {
434  return NULL;
435  }
436  public:
437 
438  ::google::protobuf::Metadata GetMetadata() const final;
439 
440  // nested types ----------------------------------------------------
441 
442  // accessors -------------------------------------------------------
443 
444  // string ctrl = 1;
445  void clear_ctrl();
446  static const int kCtrlFieldNumber = 1;
447  const ::std::string& ctrl() const;
448  void set_ctrl(const ::std::string& value);
449  #if LANG_CXX11
450  void set_ctrl(::std::string&& value);
451  #endif
452  void set_ctrl(const char* value);
453  void set_ctrl(const char* value, size_t size);
454  ::std::string* mutable_ctrl();
455  ::std::string* release_ctrl();
456  void set_allocated_ctrl(::std::string* ctrl);
457 
458  // string msg_type = 2;
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);
463  #if LANG_CXX11
464  void set_msg_type(::std::string&& value);
465  #endif
466  void set_msg_type(const char* value);
467  void set_msg_type(const char* value, size_t size);
468  ::std::string* mutable_msg_type();
469  ::std::string* release_msg_type();
470  void set_allocated_msg_type(::std::string* msg_type);
471 
472  // uint64 msgs_per_sec = 4;
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);
477 
478  // bool throttled = 3;
479  void clear_throttled();
480  static const int kThrottledFieldNumber = 3;
481  bool throttled() const;
482  void set_throttled(bool value);
483 
484  // @@protoc_insertion_point(class_scope:gz.msgs.Discovery.Publisher.MessagePublisher)
485  private:
486 
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_;
491  bool throttled_;
492  mutable ::google::protobuf::internal::CachedSize _cached_size_;
493  friend struct ::protobuf_gz_2fmsgs_2fdiscovery_2eproto::TableStruct;
494 };
495 // -------------------------------------------------------------------
496 
497 class GZ_MSGS_VISIBLE Discovery_Publisher_ServicePublisher : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Discovery.Publisher.ServicePublisher) */ {
498  public:
501 
503 
505  CopyFrom(from);
506  return *this;
507  }
508  #if LANG_CXX11
511  *this = ::std::move(from);
512  }
513 
514  inline Discovery_Publisher_ServicePublisher& operator=(Discovery_Publisher_ServicePublisher&& from) noexcept {
515  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
516  if (this != &from) InternalSwap(&from);
517  } else {
518  CopyFrom(from);
519  }
520  return *this;
521  }
522  #endif
523  static const ::google::protobuf::Descriptor* descriptor();
524  static const Discovery_Publisher_ServicePublisher& default_instance();
525 
526  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
528  return reinterpret_cast<const Discovery_Publisher_ServicePublisher*>(
530  }
531  static constexpr int kIndexInFileMessages =
532  3;
533 
534  void Swap(Discovery_Publisher_ServicePublisher* other);
536  a.Swap(&b);
537  }
538 
539  // implements Message ----------------------------------------------
540 
542  return CreateMaybeMessage<Discovery_Publisher_ServicePublisher>(NULL);
543  }
544 
545  Discovery_Publisher_ServicePublisher* New(::google::protobuf::Arena* arena) const final {
546  return CreateMaybeMessage<Discovery_Publisher_ServicePublisher>(arena);
547  }
548  void CopyFrom(const ::google::protobuf::Message& from) final;
549  void MergeFrom(const ::google::protobuf::Message& from) final;
550  void CopyFrom(const Discovery_Publisher_ServicePublisher& from);
551  void MergeFrom(const Discovery_Publisher_ServicePublisher& from);
552  void Clear() final;
553  bool IsInitialized() const final;
554 
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(); }
563 
564  private:
565  void SharedCtor();
566  void SharedDtor();
567  void SetCachedSize(int size) const final;
568  void InternalSwap(Discovery_Publisher_ServicePublisher* other);
569  private:
570  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
571  return NULL;
572  }
573  inline void* MaybeArenaPtr() const {
574  return NULL;
575  }
576  public:
577 
578  ::google::protobuf::Metadata GetMetadata() const final;
579 
580  // nested types ----------------------------------------------------
581 
582  // accessors -------------------------------------------------------
583 
584  // string socket_id = 1;
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);
589  #if LANG_CXX11
590  void set_socket_id(::std::string&& value);
591  #endif
592  void set_socket_id(const char* value);
593  void set_socket_id(const char* value, size_t size);
594  ::std::string* mutable_socket_id();
595  ::std::string* release_socket_id();
596  void set_allocated_socket_id(::std::string* socket_id);
597 
598  // string request_type = 2;
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);
603  #if LANG_CXX11
604  void set_request_type(::std::string&& value);
605  #endif
606  void set_request_type(const char* value);
607  void set_request_type(const char* value, size_t size);
608  ::std::string* mutable_request_type();
609  ::std::string* release_request_type();
610  void set_allocated_request_type(::std::string* request_type);
611 
612  // string response_type = 3;
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);
617  #if LANG_CXX11
618  void set_response_type(::std::string&& value);
619  #endif
620  void set_response_type(const char* value);
621  void set_response_type(const char* value, size_t size);
622  ::std::string* mutable_response_type();
623  ::std::string* release_response_type();
624  void set_allocated_response_type(::std::string* response_type);
625 
626  // @@protoc_insertion_point(class_scope:gz.msgs.Discovery.Publisher.ServicePublisher)
627  private:
628 
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;
635 };
636 // -------------------------------------------------------------------
637 
638 class GZ_MSGS_VISIBLE Discovery_Publisher : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Discovery.Publisher) */ {
639  public:
641  virtual ~Discovery_Publisher();
642 
644 
646  CopyFrom(from);
647  return *this;
648  }
649  #if LANG_CXX11
651  : Discovery_Publisher() {
652  *this = ::std::move(from);
653  }
654 
655  inline Discovery_Publisher& operator=(Discovery_Publisher&& from) noexcept {
656  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
657  if (this != &from) InternalSwap(&from);
658  } else {
659  CopyFrom(from);
660  }
661  return *this;
662  }
663  #endif
664  static const ::google::protobuf::Descriptor* descriptor();
665  static const Discovery_Publisher& default_instance();
666 
667  enum PubTypeCase {
668  kMsgPub = 6,
669  kSrvPub = 7,
670  PUB_TYPE_NOT_SET = 0,
671  };
672 
673  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
675  return reinterpret_cast<const Discovery_Publisher*>(
677  }
678  static constexpr int kIndexInFileMessages =
679  4;
680 
681  void Swap(Discovery_Publisher* other);
683  a.Swap(&b);
684  }
685 
686  // implements Message ----------------------------------------------
687 
688  inline Discovery_Publisher* New() const final {
689  return CreateMaybeMessage<Discovery_Publisher>(NULL);
690  }
691 
692  Discovery_Publisher* New(::google::protobuf::Arena* arena) const final {
693  return CreateMaybeMessage<Discovery_Publisher>(arena);
694  }
695  void CopyFrom(const ::google::protobuf::Message& from) final;
696  void MergeFrom(const ::google::protobuf::Message& from) final;
697  void CopyFrom(const Discovery_Publisher& from);
698  void MergeFrom(const Discovery_Publisher& from);
699  void Clear() final;
700  bool IsInitialized() const final;
701 
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(); }
710 
711  private:
712  void SharedCtor();
713  void SharedDtor();
714  void SetCachedSize(int size) const final;
715  void InternalSwap(Discovery_Publisher* other);
716  private:
717  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
718  return NULL;
719  }
720  inline void* MaybeArenaPtr() const {
721  return NULL;
722  }
723  public:
724 
725  ::google::protobuf::Metadata GetMetadata() const final;
726 
727  // nested types ----------------------------------------------------
728 
731 
733  static const Scope PROCESS =
735  static const Scope HOST =
737  static const Scope ALL =
739  static inline bool Scope_IsValid(int value) {
740  return Discovery_Publisher_Scope_IsValid(value);
741  }
742  static const Scope Scope_MIN =
744  static const Scope Scope_MAX =
746  static const int Scope_ARRAYSIZE =
748  static inline const ::google::protobuf::EnumDescriptor*
751  }
752  static inline const ::std::string& Scope_Name(Scope value) {
753  return Discovery_Publisher_Scope_Name(value);
754  }
755  static inline bool Scope_Parse(const ::std::string& name,
756  Scope* value) {
757  return Discovery_Publisher_Scope_Parse(name, value);
758  }
759 
760  // accessors -------------------------------------------------------
761 
762  // string topic = 1;
763  void clear_topic();
764  static const int kTopicFieldNumber = 1;
765  const ::std::string& topic() const;
766  void set_topic(const ::std::string& value);
767  #if LANG_CXX11
768  void set_topic(::std::string&& value);
769  #endif
770  void set_topic(const char* value);
771  void set_topic(const char* value, size_t size);
772  ::std::string* mutable_topic();
773  ::std::string* release_topic();
774  void set_allocated_topic(::std::string* topic);
775 
776  // string address = 2;
777  void clear_address();
778  static const int kAddressFieldNumber = 2;
779  const ::std::string& address() const;
780  void set_address(const ::std::string& value);
781  #if LANG_CXX11
782  void set_address(::std::string&& value);
783  #endif
784  void set_address(const char* value);
785  void set_address(const char* value, size_t size);
786  ::std::string* mutable_address();
787  ::std::string* release_address();
788  void set_allocated_address(::std::string* address);
789 
790  // string process_uuid = 3;
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);
795  #if LANG_CXX11
796  void set_process_uuid(::std::string&& value);
797  #endif
798  void set_process_uuid(const char* value);
799  void set_process_uuid(const char* value, size_t size);
800  ::std::string* mutable_process_uuid();
801  ::std::string* release_process_uuid();
802  void set_allocated_process_uuid(::std::string* process_uuid);
803 
804  // string node_uuid = 4;
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);
809  #if LANG_CXX11
810  void set_node_uuid(::std::string&& value);
811  #endif
812  void set_node_uuid(const char* value);
813  void set_node_uuid(const char* value, size_t size);
814  ::std::string* mutable_node_uuid();
815  ::std::string* release_node_uuid();
816  void set_allocated_node_uuid(::std::string* node_uuid);
817 
818  // .gz.msgs.Discovery.Publisher.Scope scope = 5;
819  void clear_scope();
820  static const int kScopeFieldNumber = 5;
822  void set_scope(::gz::msgs::Discovery_Publisher_Scope value);
823 
824  // .gz.msgs.Discovery.Publisher.MessagePublisher msg_pub = 6;
825  bool has_msg_pub() const;
826  void clear_msg_pub();
827  static const int kMsgPubFieldNumber = 6;
828  private:
829  const ::gz::msgs::Discovery_Publisher_MessagePublisher& _internal_msg_pub() const;
830  public:
831  const ::gz::msgs::Discovery_Publisher_MessagePublisher& msg_pub() const;
834  void set_allocated_msg_pub(::gz::msgs::Discovery_Publisher_MessagePublisher* msg_pub);
835 
836  // .gz.msgs.Discovery.Publisher.ServicePublisher srv_pub = 7;
837  bool has_srv_pub() const;
838  void clear_srv_pub();
839  static const int kSrvPubFieldNumber = 7;
840  private:
841  const ::gz::msgs::Discovery_Publisher_ServicePublisher& _internal_srv_pub() const;
842  public:
843  const ::gz::msgs::Discovery_Publisher_ServicePublisher& srv_pub() const;
846  void set_allocated_srv_pub(::gz::msgs::Discovery_Publisher_ServicePublisher* srv_pub);
847 
848  void clear_pub_type();
849  PubTypeCase pub_type_case() const;
850  // @@protoc_insertion_point(class_scope:gz.msgs.Discovery.Publisher)
851  private:
852  void set_has_msg_pub();
853  void set_has_srv_pub();
854 
855  inline bool has_pub_type() const;
856  inline void clear_has_pub_type();
857 
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_;
863  int scope_;
864  union PubTypeUnion {
865  PubTypeUnion() {}
868  } pub_type_;
869  mutable ::google::protobuf::internal::CachedSize _cached_size_;
870  ::google::protobuf::uint32 _oneof_case_[1];
871 
872  friend struct ::protobuf_gz_2fmsgs_2fdiscovery_2eproto::TableStruct;
873 };
874 // -------------------------------------------------------------------
875 
876 class GZ_MSGS_VISIBLE Discovery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Discovery) */ {
877  public:
878  Discovery();
879  virtual ~Discovery();
880 
881  Discovery(const Discovery& from);
882 
883  inline Discovery& operator=(const Discovery& from) {
884  CopyFrom(from);
885  return *this;
886  }
887  #if LANG_CXX11
888  Discovery(Discovery&& from) noexcept
889  : Discovery() {
890  *this = ::std::move(from);
891  }
892 
893  inline Discovery& operator=(Discovery&& from) noexcept {
894  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
895  if (this != &from) InternalSwap(&from);
896  } else {
897  CopyFrom(from);
898  }
899  return *this;
900  }
901  #endif
902  static const ::google::protobuf::Descriptor* descriptor();
903  static const Discovery& default_instance();
904 
906  kSub = 6,
907  kPub = 7,
908  DISC_CONTENTS_NOT_SET = 0,
909  };
910 
911  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
912  static inline const Discovery* internal_default_instance() {
913  return reinterpret_cast<const Discovery*>(
915  }
916  static constexpr int kIndexInFileMessages =
917  5;
918 
919  void Swap(Discovery* other);
920  friend void swap(Discovery& a, Discovery& b) {
921  a.Swap(&b);
922  }
923 
924  // implements Message ----------------------------------------------
925 
926  inline Discovery* New() const final {
927  return CreateMaybeMessage<Discovery>(NULL);
928  }
929 
930  Discovery* New(::google::protobuf::Arena* arena) const final {
931  return CreateMaybeMessage<Discovery>(arena);
932  }
933  void CopyFrom(const ::google::protobuf::Message& from) final;
934  void MergeFrom(const ::google::protobuf::Message& from) final;
935  void CopyFrom(const Discovery& from);
936  void MergeFrom(const Discovery& from);
937  void Clear() final;
938  bool IsInitialized() const final;
939 
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(); }
948 
949  private:
950  void SharedCtor();
951  void SharedDtor();
952  void SetCachedSize(int size) const final;
953  void InternalSwap(Discovery* other);
954  private:
955  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
956  return NULL;
957  }
958  inline void* MaybeArenaPtr() const {
959  return NULL;
960  }
961  public:
962 
963  ::google::protobuf::Metadata GetMetadata() const final;
964 
965  // nested types ----------------------------------------------------
966 
970 
972  static const Type UNINITIALIZED =
974  static const Type ADVERTISE =
976  static const Type SUBSCRIBE =
978  static const Type UNADVERTISE =
980  static const Type HEARTBEAT =
982  static const Type BYE =
984  static const Type NEW_CONNECTION =
986  static const Type END_CONNECTION =
988  static inline bool Type_IsValid(int value) {
989  return Discovery_Type_IsValid(value);
990  }
991  static const Type Type_MIN =
993  static const Type Type_MAX =
995  static const int Type_ARRAYSIZE =
997  static inline const ::google::protobuf::EnumDescriptor*
999  return Discovery_Type_descriptor();
1000  }
1001  static inline const ::std::string& Type_Name(Type value) {
1002  return Discovery_Type_Name(value);
1003  }
1004  static inline bool Type_Parse(const ::std::string& name,
1005  Type* value) {
1006  return Discovery_Type_Parse(name, value);
1007  }
1008 
1009  // accessors -------------------------------------------------------
1010 
1011  // string process_uuid = 3;
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);
1016  #if LANG_CXX11
1017  void set_process_uuid(::std::string&& value);
1018  #endif
1019  void set_process_uuid(const char* value);
1020  void set_process_uuid(const char* value, size_t size);
1021  ::std::string* mutable_process_uuid();
1022  ::std::string* release_process_uuid();
1023  void set_allocated_process_uuid(::std::string* process_uuid);
1024 
1025  // .gz.msgs.Header header = 1;
1026  bool has_header() const;
1027  void clear_header();
1028  static const int kHeaderFieldNumber = 1;
1029  private:
1030  const ::gz::msgs::Header& _internal_header() const;
1031  public:
1032  const ::gz::msgs::Header& header() const;
1033  ::gz::msgs::Header* release_header();
1034  ::gz::msgs::Header* mutable_header();
1035  void set_allocated_header(::gz::msgs::Header* header);
1036 
1037  // .gz.msgs.Discovery.Flags flags = 5;
1038  bool has_flags() const;
1039  void clear_flags();
1040  static const int kFlagsFieldNumber = 5;
1041  private:
1042  const ::gz::msgs::Discovery_Flags& _internal_flags() const;
1043  public:
1044  const ::gz::msgs::Discovery_Flags& flags() const;
1045  ::gz::msgs::Discovery_Flags* release_flags();
1046  ::gz::msgs::Discovery_Flags* mutable_flags();
1047  void set_allocated_flags(::gz::msgs::Discovery_Flags* flags);
1048 
1049  // uint32 version = 2;
1050  void clear_version();
1051  static const int kVersionFieldNumber = 2;
1052  ::google::protobuf::uint32 version() const;
1053  void set_version(::google::protobuf::uint32 value);
1054 
1055  // .gz.msgs.Discovery.Type type = 4;
1056  void clear_type();
1057  static const int kTypeFieldNumber = 4;
1058  ::gz::msgs::Discovery_Type type() const;
1059  void set_type(::gz::msgs::Discovery_Type value);
1060 
1061  // .gz.msgs.Discovery.Subscriber sub = 6;
1062  bool has_sub() const;
1063  void clear_sub();
1064  static const int kSubFieldNumber = 6;
1065  private:
1066  const ::gz::msgs::Discovery_Subscriber& _internal_sub() const;
1067  public:
1068  const ::gz::msgs::Discovery_Subscriber& sub() const;
1069  ::gz::msgs::Discovery_Subscriber* release_sub();
1070  ::gz::msgs::Discovery_Subscriber* mutable_sub();
1071  void set_allocated_sub(::gz::msgs::Discovery_Subscriber* sub);
1072 
1073  // .gz.msgs.Discovery.Publisher pub = 7;
1074  bool has_pub() const;
1075  void clear_pub();
1076  static const int kPubFieldNumber = 7;
1077  private:
1078  const ::gz::msgs::Discovery_Publisher& _internal_pub() const;
1079  public:
1080  const ::gz::msgs::Discovery_Publisher& pub() const;
1081  ::gz::msgs::Discovery_Publisher* release_pub();
1082  ::gz::msgs::Discovery_Publisher* mutable_pub();
1083  void set_allocated_pub(::gz::msgs::Discovery_Publisher* pub);
1084 
1085  void clear_disc_contents();
1086  DiscContentsCase disc_contents_case() const;
1087  // @@protoc_insertion_point(class_scope:gz.msgs.Discovery)
1088  private:
1089  void set_has_sub();
1090  void set_has_pub();
1091 
1092  inline bool has_disc_contents() const;
1093  inline void clear_has_disc_contents();
1094 
1095  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1096  ::google::protobuf::internal::ArenaStringPtr process_uuid_;
1097  ::gz::msgs::Header* header_;
1099  ::google::protobuf::uint32 version_;
1100  int type_;
1101  union DiscContentsUnion {
1102  DiscContentsUnion() {}
1105  } disc_contents_;
1106  mutable ::google::protobuf::internal::CachedSize _cached_size_;
1107  ::google::protobuf::uint32 _oneof_case_[1];
1108 
1109  friend struct ::protobuf_gz_2fmsgs_2fdiscovery_2eproto::TableStruct;
1110 };
1111 // ===================================================================
1112 
1113 
1114 // ===================================================================
1115 
1116 #ifdef __GNUC__
1117  #pragma GCC diagnostic push
1118  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1119 #endif // __GNUC__
1120 // Discovery_Flags
1121 
1122 // bool relay = 1;
1124  relay_ = false;
1125 }
1126 inline bool Discovery_Flags::relay() const {
1127  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Flags.relay)
1128  return relay_;
1129 }
1130 inline void Discovery_Flags::set_relay(bool value) {
1131 
1132  relay_ = value;
1133  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.Flags.relay)
1134 }
1135 
1136 // bool no_relay = 2;
1138  no_relay_ = false;
1139 }
1140 inline bool Discovery_Flags::no_relay() const {
1141  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Flags.no_relay)
1142  return no_relay_;
1143 }
1144 inline void Discovery_Flags::set_no_relay(bool value) {
1145 
1146  no_relay_ = value;
1147  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.Flags.no_relay)
1148 }
1149 
1150 // -------------------------------------------------------------------
1151 
1152 // Discovery_Subscriber
1153 
1154 // string topic = 1;
1156  topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1157 }
1158 inline const ::std::string& Discovery_Subscriber::topic() const {
1159  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Subscriber.topic)
1160  return topic_.GetNoArena();
1161 }
1162 inline void Discovery_Subscriber::set_topic(const ::std::string& value) {
1163 
1164  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1165  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.Subscriber.topic)
1166 }
1167 #if LANG_CXX11
1168 inline void Discovery_Subscriber::set_topic(::std::string&& value) {
1169 
1170  topic_.SetNoArena(
1171  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1172  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Discovery.Subscriber.topic)
1173 }
1174 #endif
1175 inline void Discovery_Subscriber::set_topic(const char* value) {
1176  GOOGLE_DCHECK(value != NULL);
1177 
1178  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1179  // @@protoc_insertion_point(field_set_char:gz.msgs.Discovery.Subscriber.topic)
1180 }
1181 inline void Discovery_Subscriber::set_topic(const char* value, size_t size) {
1182 
1183  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1184  ::std::string(reinterpret_cast<const char*>(value), size));
1185  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Discovery.Subscriber.topic)
1186 }
1187 inline ::std::string* Discovery_Subscriber::mutable_topic() {
1188 
1189  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.Subscriber.topic)
1190  return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1191 }
1192 inline ::std::string* Discovery_Subscriber::release_topic() {
1193  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.Subscriber.topic)
1194 
1195  return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1196 }
1198  if (topic != NULL) {
1199 
1200  } else {
1201 
1202  }
1203  topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic);
1204  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Discovery.Subscriber.topic)
1205 }
1206 
1207 // -------------------------------------------------------------------
1208 
1209 // Discovery_Publisher_MessagePublisher
1210 
1211 // string ctrl = 1;
1213  ctrl_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1214 }
1215 inline const ::std::string& Discovery_Publisher_MessagePublisher::ctrl() const {
1216  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Publisher.MessagePublisher.ctrl)
1217  return ctrl_.GetNoArena();
1218 }
1219 inline void Discovery_Publisher_MessagePublisher::set_ctrl(const ::std::string& value) {
1220 
1221  ctrl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1222  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.Publisher.MessagePublisher.ctrl)
1223 }
1224 #if LANG_CXX11
1226 
1227  ctrl_.SetNoArena(
1228  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1229  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Discovery.Publisher.MessagePublisher.ctrl)
1230 }
1231 #endif
1232 inline void Discovery_Publisher_MessagePublisher::set_ctrl(const char* value) {
1233  GOOGLE_DCHECK(value != NULL);
1234 
1235  ctrl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1236  // @@protoc_insertion_point(field_set_char:gz.msgs.Discovery.Publisher.MessagePublisher.ctrl)
1237 }
1238 inline void Discovery_Publisher_MessagePublisher::set_ctrl(const char* value, size_t size) {
1239 
1240  ctrl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1241  ::std::string(reinterpret_cast<const char*>(value), size));
1242  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Discovery.Publisher.MessagePublisher.ctrl)
1243 }
1245 
1246  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.Publisher.MessagePublisher.ctrl)
1247  return ctrl_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1248 }
1250  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.Publisher.MessagePublisher.ctrl)
1251 
1252  return ctrl_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1253 }
1255  if (ctrl != NULL) {
1256 
1257  } else {
1258 
1259  }
1260  ctrl_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ctrl);
1261  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Discovery.Publisher.MessagePublisher.ctrl)
1262 }
1263 
1264 // string msg_type = 2;
1266  msg_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1267 }
1268 inline const ::std::string& Discovery_Publisher_MessagePublisher::msg_type() const {
1269  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Publisher.MessagePublisher.msg_type)
1270  return msg_type_.GetNoArena();
1271 }
1272 inline void Discovery_Publisher_MessagePublisher::set_msg_type(const ::std::string& value) {
1273 
1274  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1275  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.Publisher.MessagePublisher.msg_type)
1276 }
1277 #if LANG_CXX11
1279 
1280  msg_type_.SetNoArena(
1281  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1282  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Discovery.Publisher.MessagePublisher.msg_type)
1283 }
1284 #endif
1286  GOOGLE_DCHECK(value != NULL);
1287 
1288  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1289  // @@protoc_insertion_point(field_set_char:gz.msgs.Discovery.Publisher.MessagePublisher.msg_type)
1290 }
1291 inline void Discovery_Publisher_MessagePublisher::set_msg_type(const char* value, size_t size) {
1292 
1293  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1294  ::std::string(reinterpret_cast<const char*>(value), size));
1295  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Discovery.Publisher.MessagePublisher.msg_type)
1296 }
1298 
1299  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.Publisher.MessagePublisher.msg_type)
1300  return msg_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1301 }
1303  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.Publisher.MessagePublisher.msg_type)
1304 
1305  return msg_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1306 }
1308  if (msg_type != NULL) {
1309 
1310  } else {
1311 
1312  }
1313  msg_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg_type);
1314  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Discovery.Publisher.MessagePublisher.msg_type)
1315 }
1316 
1317 // bool throttled = 3;
1319  throttled_ = false;
1320 }
1322  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Publisher.MessagePublisher.throttled)
1323  return throttled_;
1324 }
1326 
1327  throttled_ = value;
1328  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.Publisher.MessagePublisher.throttled)
1329 }
1330 
1331 // uint64 msgs_per_sec = 4;
1333  msgs_per_sec_ = GOOGLE_ULONGLONG(0);
1334 }
1335 inline ::google::protobuf::uint64 Discovery_Publisher_MessagePublisher::msgs_per_sec() const {
1336  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Publisher.MessagePublisher.msgs_per_sec)
1337  return msgs_per_sec_;
1338 }
1339 inline void Discovery_Publisher_MessagePublisher::set_msgs_per_sec(::google::protobuf::uint64 value) {
1340 
1341  msgs_per_sec_ = value;
1342  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.Publisher.MessagePublisher.msgs_per_sec)
1343 }
1344 
1345 // -------------------------------------------------------------------
1346 
1347 // Discovery_Publisher_ServicePublisher
1348 
1349 // string socket_id = 1;
1351  socket_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1352 }
1353 inline const ::std::string& Discovery_Publisher_ServicePublisher::socket_id() const {
1354  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Publisher.ServicePublisher.socket_id)
1355  return socket_id_.GetNoArena();
1356 }
1357 inline void Discovery_Publisher_ServicePublisher::set_socket_id(const ::std::string& value) {
1358 
1359  socket_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1360  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.Publisher.ServicePublisher.socket_id)
1361 }
1362 #if LANG_CXX11
1364 
1365  socket_id_.SetNoArena(
1366  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1367  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Discovery.Publisher.ServicePublisher.socket_id)
1368 }
1369 #endif
1371  GOOGLE_DCHECK(value != NULL);
1372 
1373  socket_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1374  // @@protoc_insertion_point(field_set_char:gz.msgs.Discovery.Publisher.ServicePublisher.socket_id)
1375 }
1376 inline void Discovery_Publisher_ServicePublisher::set_socket_id(const char* value, size_t size) {
1377 
1378  socket_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1379  ::std::string(reinterpret_cast<const char*>(value), size));
1380  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Discovery.Publisher.ServicePublisher.socket_id)
1381 }
1383 
1384  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.Publisher.ServicePublisher.socket_id)
1385  return socket_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1386 }
1388  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.Publisher.ServicePublisher.socket_id)
1389 
1390  return socket_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1391 }
1393  if (socket_id != NULL) {
1394 
1395  } else {
1396 
1397  }
1398  socket_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), socket_id);
1399  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Discovery.Publisher.ServicePublisher.socket_id)
1400 }
1401 
1402 // string request_type = 2;
1404  request_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1405 }
1406 inline const ::std::string& Discovery_Publisher_ServicePublisher::request_type() const {
1407  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Publisher.ServicePublisher.request_type)
1408  return request_type_.GetNoArena();
1409 }
1410 inline void Discovery_Publisher_ServicePublisher::set_request_type(const ::std::string& value) {
1411 
1412  request_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1413  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.Publisher.ServicePublisher.request_type)
1414 }
1415 #if LANG_CXX11
1417 
1418  request_type_.SetNoArena(
1419  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1420  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Discovery.Publisher.ServicePublisher.request_type)
1421 }
1422 #endif
1424  GOOGLE_DCHECK(value != NULL);
1425 
1426  request_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1427  // @@protoc_insertion_point(field_set_char:gz.msgs.Discovery.Publisher.ServicePublisher.request_type)
1428 }
1429 inline void Discovery_Publisher_ServicePublisher::set_request_type(const char* value, size_t size) {
1430 
1431  request_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1432  ::std::string(reinterpret_cast<const char*>(value), size));
1433  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Discovery.Publisher.ServicePublisher.request_type)
1434 }
1436 
1437  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.Publisher.ServicePublisher.request_type)
1438  return request_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1439 }
1441  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.Publisher.ServicePublisher.request_type)
1442 
1443  return request_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1444 }
1446  if (request_type != NULL) {
1447 
1448  } else {
1449 
1450  }
1451  request_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_type);
1452  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Discovery.Publisher.ServicePublisher.request_type)
1453 }
1454 
1455 // string response_type = 3;
1457  response_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1458 }
1459 inline const ::std::string& Discovery_Publisher_ServicePublisher::response_type() const {
1460  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Publisher.ServicePublisher.response_type)
1461  return response_type_.GetNoArena();
1462 }
1463 inline void Discovery_Publisher_ServicePublisher::set_response_type(const ::std::string& value) {
1464 
1465  response_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1466  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.Publisher.ServicePublisher.response_type)
1467 }
1468 #if LANG_CXX11
1470 
1471  response_type_.SetNoArena(
1472  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1473  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Discovery.Publisher.ServicePublisher.response_type)
1474 }
1475 #endif
1477  GOOGLE_DCHECK(value != NULL);
1478 
1479  response_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1480  // @@protoc_insertion_point(field_set_char:gz.msgs.Discovery.Publisher.ServicePublisher.response_type)
1481 }
1482 inline void Discovery_Publisher_ServicePublisher::set_response_type(const char* value, size_t size) {
1483 
1484  response_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1485  ::std::string(reinterpret_cast<const char*>(value), size));
1486  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Discovery.Publisher.ServicePublisher.response_type)
1487 }
1489 
1490  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.Publisher.ServicePublisher.response_type)
1491  return response_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1492 }
1494  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.Publisher.ServicePublisher.response_type)
1495 
1496  return response_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1497 }
1499  if (response_type != NULL) {
1500 
1501  } else {
1502 
1503  }
1504  response_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), response_type);
1505  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Discovery.Publisher.ServicePublisher.response_type)
1506 }
1507 
1508 // -------------------------------------------------------------------
1509 
1510 // Discovery_Publisher
1511 
1512 // string topic = 1;
1514  topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1515 }
1516 inline const ::std::string& Discovery_Publisher::topic() const {
1517  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Publisher.topic)
1518  return topic_.GetNoArena();
1519 }
1520 inline void Discovery_Publisher::set_topic(const ::std::string& value) {
1521 
1522  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1523  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.Publisher.topic)
1524 }
1525 #if LANG_CXX11
1526 inline void Discovery_Publisher::set_topic(::std::string&& value) {
1527 
1528  topic_.SetNoArena(
1529  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1530  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Discovery.Publisher.topic)
1531 }
1532 #endif
1533 inline void Discovery_Publisher::set_topic(const char* value) {
1534  GOOGLE_DCHECK(value != NULL);
1535 
1536  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1537  // @@protoc_insertion_point(field_set_char:gz.msgs.Discovery.Publisher.topic)
1538 }
1539 inline void Discovery_Publisher::set_topic(const char* value, size_t size) {
1540 
1541  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1542  ::std::string(reinterpret_cast<const char*>(value), size));
1543  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Discovery.Publisher.topic)
1544 }
1545 inline ::std::string* Discovery_Publisher::mutable_topic() {
1546 
1547  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.Publisher.topic)
1548  return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1549 }
1550 inline ::std::string* Discovery_Publisher::release_topic() {
1551  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.Publisher.topic)
1552 
1553  return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1554 }
1556  if (topic != NULL) {
1557 
1558  } else {
1559 
1560  }
1561  topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic);
1562  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Discovery.Publisher.topic)
1563 }
1564 
1565 // string address = 2;
1567  address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1568 }
1569 inline const ::std::string& Discovery_Publisher::address() const {
1570  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Publisher.address)
1571  return address_.GetNoArena();
1572 }
1573 inline void Discovery_Publisher::set_address(const ::std::string& value) {
1574 
1575  address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1576  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.Publisher.address)
1577 }
1578 #if LANG_CXX11
1579 inline void Discovery_Publisher::set_address(::std::string&& value) {
1580 
1581  address_.SetNoArena(
1582  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1583  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Discovery.Publisher.address)
1584 }
1585 #endif
1586 inline void Discovery_Publisher::set_address(const char* value) {
1587  GOOGLE_DCHECK(value != NULL);
1588 
1589  address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1590  // @@protoc_insertion_point(field_set_char:gz.msgs.Discovery.Publisher.address)
1591 }
1592 inline void Discovery_Publisher::set_address(const char* value, size_t size) {
1593 
1594  address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1595  ::std::string(reinterpret_cast<const char*>(value), size));
1596  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Discovery.Publisher.address)
1597 }
1598 inline ::std::string* Discovery_Publisher::mutable_address() {
1599 
1600  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.Publisher.address)
1601  return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1602 }
1603 inline ::std::string* Discovery_Publisher::release_address() {
1604  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.Publisher.address)
1605 
1606  return address_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1607 }
1609  if (address != NULL) {
1610 
1611  } else {
1612 
1613  }
1614  address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address);
1615  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Discovery.Publisher.address)
1616 }
1617 
1618 // string process_uuid = 3;
1620  process_uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1621 }
1622 inline const ::std::string& Discovery_Publisher::process_uuid() const {
1623  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Publisher.process_uuid)
1624  return process_uuid_.GetNoArena();
1625 }
1626 inline void Discovery_Publisher::set_process_uuid(const ::std::string& value) {
1627 
1628  process_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1629  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.Publisher.process_uuid)
1630 }
1631 #if LANG_CXX11
1632 inline void Discovery_Publisher::set_process_uuid(::std::string&& value) {
1633 
1634  process_uuid_.SetNoArena(
1635  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1636  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Discovery.Publisher.process_uuid)
1637 }
1638 #endif
1639 inline void Discovery_Publisher::set_process_uuid(const char* value) {
1640  GOOGLE_DCHECK(value != NULL);
1641 
1642  process_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1643  // @@protoc_insertion_point(field_set_char:gz.msgs.Discovery.Publisher.process_uuid)
1644 }
1645 inline void Discovery_Publisher::set_process_uuid(const char* value, size_t size) {
1646 
1647  process_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1648  ::std::string(reinterpret_cast<const char*>(value), size));
1649  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Discovery.Publisher.process_uuid)
1650 }
1652 
1653  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.Publisher.process_uuid)
1654  return process_uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1655 }
1657  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.Publisher.process_uuid)
1658 
1659  return process_uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1660 }
1662  if (process_uuid != NULL) {
1663 
1664  } else {
1665 
1666  }
1667  process_uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), process_uuid);
1668  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Discovery.Publisher.process_uuid)
1669 }
1670 
1671 // string node_uuid = 4;
1673  node_uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1674 }
1675 inline const ::std::string& Discovery_Publisher::node_uuid() const {
1676  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Publisher.node_uuid)
1677  return node_uuid_.GetNoArena();
1678 }
1679 inline void Discovery_Publisher::set_node_uuid(const ::std::string& value) {
1680 
1681  node_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1682  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.Publisher.node_uuid)
1683 }
1684 #if LANG_CXX11
1685 inline void Discovery_Publisher::set_node_uuid(::std::string&& value) {
1686 
1687  node_uuid_.SetNoArena(
1688  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1689  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Discovery.Publisher.node_uuid)
1690 }
1691 #endif
1692 inline void Discovery_Publisher::set_node_uuid(const char* value) {
1693  GOOGLE_DCHECK(value != NULL);
1694 
1695  node_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1696  // @@protoc_insertion_point(field_set_char:gz.msgs.Discovery.Publisher.node_uuid)
1697 }
1698 inline void Discovery_Publisher::set_node_uuid(const char* value, size_t size) {
1699 
1700  node_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1701  ::std::string(reinterpret_cast<const char*>(value), size));
1702  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Discovery.Publisher.node_uuid)
1703 }
1705 
1706  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.Publisher.node_uuid)
1707  return node_uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1708 }
1710  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.Publisher.node_uuid)
1711 
1712  return node_uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1713 }
1715  if (node_uuid != NULL) {
1716 
1717  } else {
1718 
1719  }
1720  node_uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_uuid);
1721  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Discovery.Publisher.node_uuid)
1722 }
1723 
1724 // .gz.msgs.Discovery.Publisher.Scope scope = 5;
1726  scope_ = 0;
1727 }
1729  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Publisher.scope)
1730  return static_cast< ::gz::msgs::Discovery_Publisher_Scope >(scope_);
1731 }
1733 
1734  scope_ = value;
1735  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.Publisher.scope)
1736 }
1737 
1738 // .gz.msgs.Discovery.Publisher.MessagePublisher msg_pub = 6;
1740  return pub_type_case() == kMsgPub;
1741 }
1742 inline void Discovery_Publisher::set_has_msg_pub() {
1743  _oneof_case_[0] = kMsgPub;
1744 }
1746  if (has_msg_pub()) {
1747  delete pub_type_.msg_pub_;
1748  clear_has_pub_type();
1749  }
1750 }
1751 inline const ::gz::msgs::Discovery_Publisher_MessagePublisher& Discovery_Publisher::_internal_msg_pub() const {
1752  return *pub_type_.msg_pub_;
1753 }
1754 inline ::gz::msgs::Discovery_Publisher_MessagePublisher* Discovery_Publisher::release_msg_pub() {
1755  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.Publisher.msg_pub)
1756  if (has_msg_pub()) {
1757  clear_has_pub_type();
1758  ::gz::msgs::Discovery_Publisher_MessagePublisher* temp = pub_type_.msg_pub_;
1759  pub_type_.msg_pub_ = NULL;
1760  return temp;
1761  } else {
1762  return NULL;
1763  }
1764 }
1765 inline const ::gz::msgs::Discovery_Publisher_MessagePublisher& Discovery_Publisher::msg_pub() const {
1766  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Publisher.msg_pub)
1767  return has_msg_pub()
1768  ? *pub_type_.msg_pub_
1770 }
1771 inline ::gz::msgs::Discovery_Publisher_MessagePublisher* Discovery_Publisher::mutable_msg_pub() {
1772  if (!has_msg_pub()) {
1773  clear_pub_type();
1774  set_has_msg_pub();
1775  pub_type_.msg_pub_ = CreateMaybeMessage< ::gz::msgs::Discovery_Publisher_MessagePublisher >(
1776  GetArenaNoVirtual());
1777  }
1778  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.Publisher.msg_pub)
1779  return pub_type_.msg_pub_;
1780 }
1781 
1782 // .gz.msgs.Discovery.Publisher.ServicePublisher srv_pub = 7;
1784  return pub_type_case() == kSrvPub;
1785 }
1786 inline void Discovery_Publisher::set_has_srv_pub() {
1787  _oneof_case_[0] = kSrvPub;
1788 }
1790  if (has_srv_pub()) {
1791  delete pub_type_.srv_pub_;
1792  clear_has_pub_type();
1793  }
1794 }
1795 inline const ::gz::msgs::Discovery_Publisher_ServicePublisher& Discovery_Publisher::_internal_srv_pub() const {
1796  return *pub_type_.srv_pub_;
1797 }
1798 inline ::gz::msgs::Discovery_Publisher_ServicePublisher* Discovery_Publisher::release_srv_pub() {
1799  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.Publisher.srv_pub)
1800  if (has_srv_pub()) {
1801  clear_has_pub_type();
1802  ::gz::msgs::Discovery_Publisher_ServicePublisher* temp = pub_type_.srv_pub_;
1803  pub_type_.srv_pub_ = NULL;
1804  return temp;
1805  } else {
1806  return NULL;
1807  }
1808 }
1809 inline const ::gz::msgs::Discovery_Publisher_ServicePublisher& Discovery_Publisher::srv_pub() const {
1810  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.Publisher.srv_pub)
1811  return has_srv_pub()
1812  ? *pub_type_.srv_pub_
1814 }
1815 inline ::gz::msgs::Discovery_Publisher_ServicePublisher* Discovery_Publisher::mutable_srv_pub() {
1816  if (!has_srv_pub()) {
1817  clear_pub_type();
1818  set_has_srv_pub();
1819  pub_type_.srv_pub_ = CreateMaybeMessage< ::gz::msgs::Discovery_Publisher_ServicePublisher >(
1820  GetArenaNoVirtual());
1821  }
1822  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.Publisher.srv_pub)
1823  return pub_type_.srv_pub_;
1824 }
1825 
1826 inline bool Discovery_Publisher::has_pub_type() const {
1827  return pub_type_case() != PUB_TYPE_NOT_SET;
1828 }
1829 inline void Discovery_Publisher::clear_has_pub_type() {
1830  _oneof_case_[0] = PUB_TYPE_NOT_SET;
1831 }
1833  return Discovery_Publisher::PubTypeCase(_oneof_case_[0]);
1834 }
1835 // -------------------------------------------------------------------
1836 
1837 // Discovery
1838 
1839 // .gz.msgs.Header header = 1;
1840 inline bool Discovery::has_header() const {
1841  return this != internal_default_instance() && header_ != NULL;
1842 }
1843 inline const ::gz::msgs::Header& Discovery::_internal_header() const {
1844  return *header_;
1845 }
1846 inline const ::gz::msgs::Header& Discovery::header() const {
1847  const ::gz::msgs::Header* p = header_;
1848  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.header)
1849  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
1851 }
1852 inline ::gz::msgs::Header* Discovery::release_header() {
1853  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.header)
1854 
1855  ::gz::msgs::Header* temp = header_;
1856  header_ = NULL;
1857  return temp;
1858 }
1859 inline ::gz::msgs::Header* Discovery::mutable_header() {
1860 
1861  if (header_ == NULL) {
1862  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
1863  header_ = p;
1864  }
1865  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.header)
1866  return header_;
1867 }
1869  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1870  if (message_arena == NULL) {
1871  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
1872  }
1873  if (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);
1878  }
1879 
1880  } else {
1881 
1882  }
1883  header_ = header;
1884  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Discovery.header)
1885 }
1886 
1887 // uint32 version = 2;
1889  version_ = 0u;
1890 }
1891 inline ::google::protobuf::uint32 Discovery::version() const {
1892  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.version)
1893  return version_;
1894 }
1895 inline void Discovery::set_version(::google::protobuf::uint32 value) {
1896 
1897  version_ = value;
1898  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.version)
1899 }
1900 
1901 // string process_uuid = 3;
1903  process_uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1904 }
1905 inline const ::std::string& Discovery::process_uuid() const {
1906  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.process_uuid)
1907  return process_uuid_.GetNoArena();
1908 }
1909 inline void Discovery::set_process_uuid(const ::std::string& value) {
1910 
1911  process_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1912  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.process_uuid)
1913 }
1914 #if LANG_CXX11
1915 inline void Discovery::set_process_uuid(::std::string&& value) {
1916 
1917  process_uuid_.SetNoArena(
1918  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1919  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Discovery.process_uuid)
1920 }
1921 #endif
1922 inline void Discovery::set_process_uuid(const char* value) {
1923  GOOGLE_DCHECK(value != NULL);
1924 
1925  process_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1926  // @@protoc_insertion_point(field_set_char:gz.msgs.Discovery.process_uuid)
1927 }
1928 inline void Discovery::set_process_uuid(const char* value, size_t size) {
1929 
1930  process_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1931  ::std::string(reinterpret_cast<const char*>(value), size));
1932  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Discovery.process_uuid)
1933 }
1934 inline ::std::string* Discovery::mutable_process_uuid() {
1935 
1936  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.process_uuid)
1937  return process_uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1938 }
1939 inline ::std::string* Discovery::release_process_uuid() {
1940  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.process_uuid)
1941 
1942  return process_uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1943 }
1945  if (process_uuid != NULL) {
1946 
1947  } else {
1948 
1949  }
1950  process_uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), process_uuid);
1951  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Discovery.process_uuid)
1952 }
1953 
1954 // .gz.msgs.Discovery.Type type = 4;
1955 inline void Discovery::clear_type() {
1956  type_ = 0;
1957 }
1959  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.type)
1960  return static_cast< ::gz::msgs::Discovery_Type >(type_);
1961 }
1963 
1964  type_ = value;
1965  // @@protoc_insertion_point(field_set:gz.msgs.Discovery.type)
1966 }
1967 
1968 // .gz.msgs.Discovery.Flags flags = 5;
1969 inline bool Discovery::has_flags() const {
1970  return this != internal_default_instance() && flags_ != NULL;
1971 }
1972 inline void Discovery::clear_flags() {
1973  if (GetArenaNoVirtual() == NULL && flags_ != NULL) {
1974  delete flags_;
1975  }
1976  flags_ = NULL;
1977 }
1978 inline const ::gz::msgs::Discovery_Flags& Discovery::_internal_flags() const {
1979  return *flags_;
1980 }
1981 inline const ::gz::msgs::Discovery_Flags& Discovery::flags() const {
1982  const ::gz::msgs::Discovery_Flags* p = flags_;
1983  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.flags)
1984  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Discovery_Flags*>(
1986 }
1987 inline ::gz::msgs::Discovery_Flags* Discovery::release_flags() {
1988  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.flags)
1989 
1990  ::gz::msgs::Discovery_Flags* temp = flags_;
1991  flags_ = NULL;
1992  return temp;
1993 }
1994 inline ::gz::msgs::Discovery_Flags* Discovery::mutable_flags() {
1995 
1996  if (flags_ == NULL) {
1997  auto* p = CreateMaybeMessage<::gz::msgs::Discovery_Flags>(GetArenaNoVirtual());
1998  flags_ = p;
1999  }
2000  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.flags)
2001  return flags_;
2002 }
2004  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2005  if (message_arena == NULL) {
2006  delete flags_;
2007  }
2008  if (flags) {
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);
2013  }
2014 
2015  } else {
2016 
2017  }
2018  flags_ = flags;
2019  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Discovery.flags)
2020 }
2021 
2022 // .gz.msgs.Discovery.Subscriber sub = 6;
2023 inline bool Discovery::has_sub() const {
2024  return disc_contents_case() == kSub;
2025 }
2026 inline void Discovery::set_has_sub() {
2027  _oneof_case_[0] = kSub;
2028 }
2029 inline void Discovery::clear_sub() {
2030  if (has_sub()) {
2031  delete disc_contents_.sub_;
2032  clear_has_disc_contents();
2033  }
2034 }
2035 inline const ::gz::msgs::Discovery_Subscriber& Discovery::_internal_sub() const {
2036  return *disc_contents_.sub_;
2037 }
2038 inline ::gz::msgs::Discovery_Subscriber* Discovery::release_sub() {
2039  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.sub)
2040  if (has_sub()) {
2041  clear_has_disc_contents();
2042  ::gz::msgs::Discovery_Subscriber* temp = disc_contents_.sub_;
2043  disc_contents_.sub_ = NULL;
2044  return temp;
2045  } else {
2046  return NULL;
2047  }
2048 }
2049 inline const ::gz::msgs::Discovery_Subscriber& Discovery::sub() const {
2050  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.sub)
2051  return has_sub()
2052  ? *disc_contents_.sub_
2054 }
2055 inline ::gz::msgs::Discovery_Subscriber* Discovery::mutable_sub() {
2056  if (!has_sub()) {
2057  clear_disc_contents();
2058  set_has_sub();
2059  disc_contents_.sub_ = CreateMaybeMessage< ::gz::msgs::Discovery_Subscriber >(
2060  GetArenaNoVirtual());
2061  }
2062  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.sub)
2063  return disc_contents_.sub_;
2064 }
2065 
2066 // .gz.msgs.Discovery.Publisher pub = 7;
2067 inline bool Discovery::has_pub() const {
2068  return disc_contents_case() == kPub;
2069 }
2070 inline void Discovery::set_has_pub() {
2071  _oneof_case_[0] = kPub;
2072 }
2073 inline void Discovery::clear_pub() {
2074  if (has_pub()) {
2075  delete disc_contents_.pub_;
2076  clear_has_disc_contents();
2077  }
2078 }
2079 inline const ::gz::msgs::Discovery_Publisher& Discovery::_internal_pub() const {
2080  return *disc_contents_.pub_;
2081 }
2082 inline ::gz::msgs::Discovery_Publisher* Discovery::release_pub() {
2083  // @@protoc_insertion_point(field_release:gz.msgs.Discovery.pub)
2084  if (has_pub()) {
2085  clear_has_disc_contents();
2086  ::gz::msgs::Discovery_Publisher* temp = disc_contents_.pub_;
2087  disc_contents_.pub_ = NULL;
2088  return temp;
2089  } else {
2090  return NULL;
2091  }
2092 }
2093 inline const ::gz::msgs::Discovery_Publisher& Discovery::pub() const {
2094  // @@protoc_insertion_point(field_get:gz.msgs.Discovery.pub)
2095  return has_pub()
2096  ? *disc_contents_.pub_
2098 }
2099 inline ::gz::msgs::Discovery_Publisher* Discovery::mutable_pub() {
2100  if (!has_pub()) {
2101  clear_disc_contents();
2102  set_has_pub();
2103  disc_contents_.pub_ = CreateMaybeMessage< ::gz::msgs::Discovery_Publisher >(
2104  GetArenaNoVirtual());
2105  }
2106  // @@protoc_insertion_point(field_mutable:gz.msgs.Discovery.pub)
2107  return disc_contents_.pub_;
2108 }
2109 
2110 inline bool Discovery::has_disc_contents() const {
2111  return disc_contents_case() != DISC_CONTENTS_NOT_SET;
2112 }
2113 inline void Discovery::clear_has_disc_contents() {
2114  _oneof_case_[0] = DISC_CONTENTS_NOT_SET;
2115 }
2117  return Discovery::DiscContentsCase(_oneof_case_[0]);
2118 }
2119 #ifdef __GNUC__
2120  #pragma GCC diagnostic pop
2121 #endif // __GNUC__
2122 // -------------------------------------------------------------------
2123 
2124 // -------------------------------------------------------------------
2125 
2126 // -------------------------------------------------------------------
2127 
2128 // -------------------------------------------------------------------
2129 
2130 // -------------------------------------------------------------------
2131 
2132 
2133 // @@protoc_insertion_point(namespace_scope)
2134 
2135 } // namespace msgs
2136 } // namespace gz
2137 
2138 namespace google {
2139 namespace protobuf {
2140 
2141 template <> struct is_proto_enum< ::gz::msgs::Discovery_Publisher_Scope> : ::std::true_type {};
2142 template <>
2143 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Discovery_Publisher_Scope>() {
2145 }
2146 template <> struct is_proto_enum< ::gz::msgs::Discovery_Type> : ::std::true_type {};
2147 template <>
2148 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Discovery_Type>() {
2150 }
2151 
2152 } // namespace protobuf
2153 } // namespace google
2154 
2155 // @@protoc_insertion_point(global_scope)
2156 
2157 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fdiscovery_2eproto