Gazebo Msgs

API Reference

9.5.1
topic_info.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/topic_info.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2ftopic_5finfo_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2ftopic_5finfo_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/unknown_field_set.h>
33 #include "gz/msgs/publish.pb.h"
34 #include "gz/msgs/subscribe.pb.h"
35 #include "gz/msgs/header.pb.h"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2ftopic_5finfo_2eproto GZ_MSGS_VISIBLE
38 
40 // Internal implementation detail -- do not use these members.
41 struct GZ_MSGS_VISIBLE TableStruct {
42  static const ::google::protobuf::internal::ParseTableField entries[];
43  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44  static const ::google::protobuf::internal::ParseTable schema[1];
45  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46  static const ::google::protobuf::internal::SerializationTable serialization_table[];
47  static const ::google::protobuf::uint32 offsets[];
48 };
49 void GZ_MSGS_VISIBLE AddDescriptors();
50 } // namespace protobuf_gz_2fmsgs_2ftopic_5finfo_2eproto
51 namespace gz {
52 namespace msgs {
53 class TopicInfo;
54 class TopicInfoDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern TopicInfoDefaultTypeInternal _TopicInfo_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::TopicInfo* Arena::CreateMaybeMessage<::gz::msgs::TopicInfo>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
66 // ===================================================================
67 
68 class GZ_MSGS_VISIBLE TopicInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.TopicInfo) */ {
69  public:
70  TopicInfo();
71  virtual ~TopicInfo();
72 
73  TopicInfo(const TopicInfo& from);
74 
75  inline TopicInfo& operator=(const TopicInfo& from) {
76  CopyFrom(from);
77  return *this;
78  }
79  #if LANG_CXX11
80  TopicInfo(TopicInfo&& from) noexcept
81  : TopicInfo() {
82  *this = ::std::move(from);
83  }
84 
85  inline TopicInfo& operator=(TopicInfo&& from) noexcept {
86  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87  if (this != &from) InternalSwap(&from);
88  } else {
89  CopyFrom(from);
90  }
91  return *this;
92  }
93  #endif
94  static const ::google::protobuf::Descriptor* descriptor();
95  static const TopicInfo& default_instance();
96 
97  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
98  static inline const TopicInfo* internal_default_instance() {
99  return reinterpret_cast<const TopicInfo*>(
101  }
102  static constexpr int kIndexInFileMessages =
103  0;
104 
105  void Swap(TopicInfo* other);
106  friend void swap(TopicInfo& a, TopicInfo& b) {
107  a.Swap(&b);
108  }
109 
110  // implements Message ----------------------------------------------
111 
112  inline TopicInfo* New() const final {
113  return CreateMaybeMessage<TopicInfo>(NULL);
114  }
115 
116  TopicInfo* New(::google::protobuf::Arena* arena) const final {
117  return CreateMaybeMessage<TopicInfo>(arena);
118  }
119  void CopyFrom(const ::google::protobuf::Message& from) final;
120  void MergeFrom(const ::google::protobuf::Message& from) final;
121  void CopyFrom(const TopicInfo& from);
122  void MergeFrom(const TopicInfo& from);
123  void Clear() final;
124  bool IsInitialized() const final;
125 
126  size_t ByteSizeLong() const final;
127  bool MergePartialFromCodedStream(
128  ::google::protobuf::io::CodedInputStream* input) final;
129  void SerializeWithCachedSizes(
130  ::google::protobuf::io::CodedOutputStream* output) const final;
131  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132  bool deterministic, ::google::protobuf::uint8* target) const final;
133  int GetCachedSize() const final { return _cached_size_.Get(); }
134 
135  private:
136  void SharedCtor();
137  void SharedDtor();
138  void SetCachedSize(int size) const final;
139  void InternalSwap(TopicInfo* other);
140  private:
141  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
142  return NULL;
143  }
144  inline void* MaybeArenaPtr() const {
145  return NULL;
146  }
147  public:
148 
149  ::google::protobuf::Metadata GetMetadata() const final;
150 
151  // nested types ----------------------------------------------------
152 
153  // accessors -------------------------------------------------------
154 
155  // repeated .gz.msgs.Publish publisher = 3;
156  int publisher_size() const;
157  void clear_publisher();
158  static const int kPublisherFieldNumber = 3;
159  ::gz::msgs::Publish* mutable_publisher(int index);
160  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Publish >*
161  mutable_publisher();
162  const ::gz::msgs::Publish& publisher(int index) const;
163  ::gz::msgs::Publish* add_publisher();
164  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Publish >&
165  publisher() const;
166 
167  // repeated .gz.msgs.Subscribe subscriber = 4;
168  int subscriber_size() const;
169  void clear_subscriber();
170  static const int kSubscriberFieldNumber = 4;
171  ::gz::msgs::Subscribe* mutable_subscriber(int index);
172  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Subscribe >*
173  mutable_subscriber();
174  const ::gz::msgs::Subscribe& subscriber(int index) const;
175  ::gz::msgs::Subscribe* add_subscriber();
176  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Subscribe >&
177  subscriber() const;
178 
179  // string msg_type = 2;
180  void clear_msg_type();
181  static const int kMsgTypeFieldNumber = 2;
182  const ::std::string& msg_type() const;
183  void set_msg_type(const ::std::string& value);
184  #if LANG_CXX11
185  void set_msg_type(::std::string&& value);
186  #endif
187  void set_msg_type(const char* value);
188  void set_msg_type(const char* value, size_t size);
189  ::std::string* mutable_msg_type();
190  ::std::string* release_msg_type();
191  void set_allocated_msg_type(::std::string* msg_type);
192 
193  // .gz.msgs.Header header = 1;
194  bool has_header() const;
195  void clear_header();
196  static const int kHeaderFieldNumber = 1;
197  private:
198  const ::gz::msgs::Header& _internal_header() const;
199  public:
200  const ::gz::msgs::Header& header() const;
201  ::gz::msgs::Header* release_header();
202  ::gz::msgs::Header* mutable_header();
203  void set_allocated_header(::gz::msgs::Header* header);
204 
205  // @@protoc_insertion_point(class_scope:gz.msgs.TopicInfo)
206  private:
207 
208  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
209  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Publish > publisher_;
210  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Subscribe > subscriber_;
211  ::google::protobuf::internal::ArenaStringPtr msg_type_;
212  ::gz::msgs::Header* header_;
213  mutable ::google::protobuf::internal::CachedSize _cached_size_;
214  friend struct ::protobuf_gz_2fmsgs_2ftopic_5finfo_2eproto::TableStruct;
215 };
216 // ===================================================================
217 
218 
219 // ===================================================================
220 
221 #ifdef __GNUC__
222  #pragma GCC diagnostic push
223  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
224 #endif // __GNUC__
225 // TopicInfo
226 
227 // .gz.msgs.Header header = 1;
228 inline bool TopicInfo::has_header() const {
229  return this != internal_default_instance() && header_ != NULL;
230 }
231 inline const ::gz::msgs::Header& TopicInfo::_internal_header() const {
232  return *header_;
233 }
234 inline const ::gz::msgs::Header& TopicInfo::header() const {
235  const ::gz::msgs::Header* p = header_;
236  // @@protoc_insertion_point(field_get:gz.msgs.TopicInfo.header)
237  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
239 }
240 inline ::gz::msgs::Header* TopicInfo::release_header() {
241  // @@protoc_insertion_point(field_release:gz.msgs.TopicInfo.header)
242 
243  ::gz::msgs::Header* temp = header_;
244  header_ = NULL;
245  return temp;
246 }
247 inline ::gz::msgs::Header* TopicInfo::mutable_header() {
248 
249  if (header_ == NULL) {
250  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
251  header_ = p;
252  }
253  // @@protoc_insertion_point(field_mutable:gz.msgs.TopicInfo.header)
254  return header_;
255 }
257  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
258  if (message_arena == NULL) {
259  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
260  }
261  if (header) {
262  ::google::protobuf::Arena* submessage_arena = NULL;
263  if (message_arena != submessage_arena) {
264  header = ::google::protobuf::internal::GetOwnedMessage(
265  message_arena, header, submessage_arena);
266  }
267 
268  } else {
269 
270  }
271  header_ = header;
272  // @@protoc_insertion_point(field_set_allocated:gz.msgs.TopicInfo.header)
273 }
274 
275 // string msg_type = 2;
277  msg_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
278 }
279 inline const ::std::string& TopicInfo::msg_type() const {
280  // @@protoc_insertion_point(field_get:gz.msgs.TopicInfo.msg_type)
281  return msg_type_.GetNoArena();
282 }
283 inline void TopicInfo::set_msg_type(const ::std::string& value) {
284 
285  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
286  // @@protoc_insertion_point(field_set:gz.msgs.TopicInfo.msg_type)
287 }
288 #if LANG_CXX11
289 inline void TopicInfo::set_msg_type(::std::string&& value) {
290 
291  msg_type_.SetNoArena(
292  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
293  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.TopicInfo.msg_type)
294 }
295 #endif
296 inline void TopicInfo::set_msg_type(const char* value) {
297  GOOGLE_DCHECK(value != NULL);
298 
299  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
300  // @@protoc_insertion_point(field_set_char:gz.msgs.TopicInfo.msg_type)
301 }
302 inline void TopicInfo::set_msg_type(const char* value, size_t size) {
303 
304  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
305  ::std::string(reinterpret_cast<const char*>(value), size));
306  // @@protoc_insertion_point(field_set_pointer:gz.msgs.TopicInfo.msg_type)
307 }
308 inline ::std::string* TopicInfo::mutable_msg_type() {
309 
310  // @@protoc_insertion_point(field_mutable:gz.msgs.TopicInfo.msg_type)
311  return msg_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
312 }
313 inline ::std::string* TopicInfo::release_msg_type() {
314  // @@protoc_insertion_point(field_release:gz.msgs.TopicInfo.msg_type)
315 
316  return msg_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
317 }
319  if (msg_type != NULL) {
320 
321  } else {
322 
323  }
324  msg_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg_type);
325  // @@protoc_insertion_point(field_set_allocated:gz.msgs.TopicInfo.msg_type)
326 }
327 
328 // repeated .gz.msgs.Publish publisher = 3;
329 inline int TopicInfo::publisher_size() const {
330  return publisher_.size();
331 }
332 inline ::gz::msgs::Publish* TopicInfo::mutable_publisher(int index) {
333  // @@protoc_insertion_point(field_mutable:gz.msgs.TopicInfo.publisher)
334  return publisher_.Mutable(index);
335 }
336 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Publish >*
338  // @@protoc_insertion_point(field_mutable_list:gz.msgs.TopicInfo.publisher)
339  return &publisher_;
340 }
341 inline const ::gz::msgs::Publish& TopicInfo::publisher(int index) const {
342  // @@protoc_insertion_point(field_get:gz.msgs.TopicInfo.publisher)
343  return publisher_.Get(index);
344 }
345 inline ::gz::msgs::Publish* TopicInfo::add_publisher() {
346  // @@protoc_insertion_point(field_add:gz.msgs.TopicInfo.publisher)
347  return publisher_.Add();
348 }
349 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Publish >&
351  // @@protoc_insertion_point(field_list:gz.msgs.TopicInfo.publisher)
352  return publisher_;
353 }
354 
355 // repeated .gz.msgs.Subscribe subscriber = 4;
356 inline int TopicInfo::subscriber_size() const {
357  return subscriber_.size();
358 }
359 inline ::gz::msgs::Subscribe* TopicInfo::mutable_subscriber(int index) {
360  // @@protoc_insertion_point(field_mutable:gz.msgs.TopicInfo.subscriber)
361  return subscriber_.Mutable(index);
362 }
363 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Subscribe >*
365  // @@protoc_insertion_point(field_mutable_list:gz.msgs.TopicInfo.subscriber)
366  return &subscriber_;
367 }
368 inline const ::gz::msgs::Subscribe& TopicInfo::subscriber(int index) const {
369  // @@protoc_insertion_point(field_get:gz.msgs.TopicInfo.subscriber)
370  return subscriber_.Get(index);
371 }
372 inline ::gz::msgs::Subscribe* TopicInfo::add_subscriber() {
373  // @@protoc_insertion_point(field_add:gz.msgs.TopicInfo.subscriber)
374  return subscriber_.Add();
375 }
376 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Subscribe >&
378  // @@protoc_insertion_point(field_list:gz.msgs.TopicInfo.subscriber)
379  return subscriber_;
380 }
381 
382 #ifdef __GNUC__
383  #pragma GCC diagnostic pop
384 #endif // __GNUC__
385 
386 // @@protoc_insertion_point(namespace_scope)
387 
388 } // namespace msgs
389 } // namespace gz
390 
391 // @@protoc_insertion_point(global_scope)
392 
393 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2ftopic_5finfo_2eproto