Gazebo Msgs

API Reference

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