Ignition Msgs

API Reference

8.1.0
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_ignition_2fmsgs_2ftopic_5finfo_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2ftopic_5finfo_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
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 3000000 < 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/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
33 #ifndef _MSC_VER
34 #pragma GCC system_header
35 #else
36 #pragma warning(push)
37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
38 #endif
39 #ifdef __linux__
40 #include <sys/sysmacros.h>
41 #endif
42 #include <memory>
43 #include <ignition/msgs/Export.hh>
44 // @@protoc_insertion_point(includes)
45 
46 namespace ignition {
47 namespace msgs {
48 
49 // Internal implementation detail -- do not call these.
53 
54 class TopicInfo;
55 
56 // ===================================================================
57 
58 class IGNITION_MSGS_VISIBLE TopicInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.TopicInfo) */ {
59  public:
60  TopicInfo();
61  virtual ~TopicInfo();
62 
63  TopicInfo(const TopicInfo& from);
64 
65  inline TopicInfo& operator=(const TopicInfo& from) {
66  CopyFrom(from);
67  return *this;
68  }
69 
70  static const ::google::protobuf::Descriptor* descriptor();
71  static const TopicInfo& default_instance();
72 
73  void Swap(TopicInfo* other);
74 
75  // implements Message ----------------------------------------------
76 
77  inline TopicInfo* New() const { return New(NULL); }
78 
79  TopicInfo* New(::google::protobuf::Arena* arena) const;
80  void CopyFrom(const ::google::protobuf::Message& from);
81  void MergeFrom(const ::google::protobuf::Message& from);
82  void CopyFrom(const TopicInfo& from);
83  void MergeFrom(const TopicInfo& from);
84  void Clear();
85  bool IsInitialized() const;
86 
87  int ByteSize() const;
88  bool MergePartialFromCodedStream(
89  ::google::protobuf::io::CodedInputStream* input);
90  void SerializeWithCachedSizes(
91  ::google::protobuf::io::CodedOutputStream* output) const;
92  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
93  bool deterministic, ::google::protobuf::uint8* output) const;
94  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
95  return InternalSerializeWithCachedSizesToArray(false, output);
96  }
97  int GetCachedSize() const { return _cached_size_; }
98  private:
99  void SharedCtor();
100  void SharedDtor();
101  void SetCachedSize(int size) const;
102  void InternalSwap(TopicInfo* other);
103  private:
104  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
105  return _internal_metadata_.arena();
106  }
107  inline void* MaybeArenaPtr() const {
108  return _internal_metadata_.raw_arena_ptr();
109  }
110  public:
111 
112  ::google::protobuf::Metadata GetMetadata() const;
113 
114  // nested types ----------------------------------------------------
115 
116  // accessors -------------------------------------------------------
117 
118  // optional .ignition.msgs.Header header = 1;
119  bool has_header() const;
120  void clear_header();
121  static const int kHeaderFieldNumber = 1;
122  const ::ignition::msgs::Header& header() const;
123  ::ignition::msgs::Header* mutable_header();
124  ::ignition::msgs::Header* release_header();
125  void set_allocated_header(::ignition::msgs::Header* header);
126 
127  // optional string msg_type = 2;
128  void clear_msg_type();
129  static const int kMsgTypeFieldNumber = 2;
130  const ::std::string& msg_type() const;
131  void set_msg_type(const ::std::string& value);
132  void set_msg_type(const char* value);
133  void set_msg_type(const char* value, size_t size);
134  ::std::string* mutable_msg_type();
135  ::std::string* release_msg_type();
136  void set_allocated_msg_type(::std::string* msg_type);
137 
138  // repeated .ignition.msgs.Publish publisher = 3;
139  int publisher_size() const;
140  void clear_publisher();
141  static const int kPublisherFieldNumber = 3;
142  const ::ignition::msgs::Publish& publisher(int index) const;
143  ::ignition::msgs::Publish* mutable_publisher(int index);
144  ::ignition::msgs::Publish* add_publisher();
145  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Publish >*
146  mutable_publisher();
147  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Publish >&
148  publisher() const;
149 
150  // repeated .ignition.msgs.Subscribe subscriber = 4;
151  int subscriber_size() const;
152  void clear_subscriber();
153  static const int kSubscriberFieldNumber = 4;
154  const ::ignition::msgs::Subscribe& subscriber(int index) const;
155  ::ignition::msgs::Subscribe* mutable_subscriber(int index);
156  ::ignition::msgs::Subscribe* add_subscriber();
157  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Subscribe >*
158  mutable_subscriber();
159  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Subscribe >&
160  subscriber() const;
161 
162  // @@protoc_insertion_point(class_scope:ignition.msgs.TopicInfo)
163  private:
164 
165  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
166  bool _is_default_instance_;
167  ::ignition::msgs::Header* header_;
168  ::google::protobuf::internal::ArenaStringPtr msg_type_;
169  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Publish > publisher_;
170  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Subscribe > subscriber_;
171  mutable int _cached_size_;
172  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2ftopic_5finfo_2eproto();
175 
176  void InitAsDefaultInstance();
177  static TopicInfo* default_instance_;
178 };
179 // ===================================================================
180 
181 
182 // ===================================================================
183 
184 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
185 // TopicInfo
186 
187 // optional .ignition.msgs.Header header = 1;
188 inline bool TopicInfo::has_header() const {
189  return !_is_default_instance_ && header_ != NULL;
190 }
191 inline void TopicInfo::clear_header() {
192  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
193  header_ = NULL;
194 }
195 inline const ::ignition::msgs::Header& TopicInfo::header() const {
196  // @@protoc_insertion_point(field_get:ignition.msgs.TopicInfo.header)
197  return header_ != NULL ? *header_ : *default_instance_->header_;
198 }
199 inline ::ignition::msgs::Header* TopicInfo::mutable_header() {
200 
201  if (header_ == NULL) {
202  header_ = new ::ignition::msgs::Header;
203  }
204  // @@protoc_insertion_point(field_mutable:ignition.msgs.TopicInfo.header)
205  return header_;
206 }
207 inline ::ignition::msgs::Header* TopicInfo::release_header() {
208  // @@protoc_insertion_point(field_release:ignition.msgs.TopicInfo.header)
209 
210  ::ignition::msgs::Header* temp = header_;
211  header_ = NULL;
212  return temp;
213 }
215  delete header_;
216  header_ = header;
217  if (header) {
218 
219  } else {
220 
221  }
222  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.TopicInfo.header)
223 }
224 
225 // optional string msg_type = 2;
227  msg_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
228 }
229 inline const ::std::string& TopicInfo::msg_type() const {
230  // @@protoc_insertion_point(field_get:ignition.msgs.TopicInfo.msg_type)
231  return msg_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
232 }
233 inline void TopicInfo::set_msg_type(const ::std::string& value) {
234 
235  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
236  // @@protoc_insertion_point(field_set:ignition.msgs.TopicInfo.msg_type)
237 }
238 inline void TopicInfo::set_msg_type(const char* value) {
239 
240  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
241  // @@protoc_insertion_point(field_set_char:ignition.msgs.TopicInfo.msg_type)
242 }
243 inline void TopicInfo::set_msg_type(const char* value, size_t size) {
244 
245  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
246  ::std::string(reinterpret_cast<const char*>(value), size));
247  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.TopicInfo.msg_type)
248 }
249 inline ::std::string* TopicInfo::mutable_msg_type() {
250 
251  // @@protoc_insertion_point(field_mutable:ignition.msgs.TopicInfo.msg_type)
252  return msg_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
253 }
254 inline ::std::string* TopicInfo::release_msg_type() {
255  // @@protoc_insertion_point(field_release:ignition.msgs.TopicInfo.msg_type)
256 
257  return msg_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
258 }
260  if (msg_type != NULL) {
261 
262  } else {
263 
264  }
265  msg_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg_type);
266  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.TopicInfo.msg_type)
267 }
268 
269 // repeated .ignition.msgs.Publish publisher = 3;
270 inline int TopicInfo::publisher_size() const {
271  return publisher_.size();
272 }
274  publisher_.Clear();
275 }
276 inline const ::ignition::msgs::Publish& TopicInfo::publisher(int index) const {
277  // @@protoc_insertion_point(field_get:ignition.msgs.TopicInfo.publisher)
278  return publisher_.Get(index);
279 }
280 inline ::ignition::msgs::Publish* TopicInfo::mutable_publisher(int index) {
281  // @@protoc_insertion_point(field_mutable:ignition.msgs.TopicInfo.publisher)
282  return publisher_.Mutable(index);
283 }
284 inline ::ignition::msgs::Publish* TopicInfo::add_publisher() {
285  // @@protoc_insertion_point(field_add:ignition.msgs.TopicInfo.publisher)
286  return publisher_.Add();
287 }
288 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Publish >*
290  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.TopicInfo.publisher)
291  return &publisher_;
292 }
293 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Publish >&
295  // @@protoc_insertion_point(field_list:ignition.msgs.TopicInfo.publisher)
296  return publisher_;
297 }
298 
299 // repeated .ignition.msgs.Subscribe subscriber = 4;
300 inline int TopicInfo::subscriber_size() const {
301  return subscriber_.size();
302 }
304  subscriber_.Clear();
305 }
306 inline const ::ignition::msgs::Subscribe& TopicInfo::subscriber(int index) const {
307  // @@protoc_insertion_point(field_get:ignition.msgs.TopicInfo.subscriber)
308  return subscriber_.Get(index);
309 }
310 inline ::ignition::msgs::Subscribe* TopicInfo::mutable_subscriber(int index) {
311  // @@protoc_insertion_point(field_mutable:ignition.msgs.TopicInfo.subscriber)
312  return subscriber_.Mutable(index);
313 }
314 inline ::ignition::msgs::Subscribe* TopicInfo::add_subscriber() {
315  // @@protoc_insertion_point(field_add:ignition.msgs.TopicInfo.subscriber)
316  return subscriber_.Add();
317 }
318 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Subscribe >*
320  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.TopicInfo.subscriber)
321  return &subscriber_;
322 }
323 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Subscribe >&
325  // @@protoc_insertion_point(field_list:ignition.msgs.TopicInfo.subscriber)
326  return subscriber_;
327 }
328 
329 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
330 
335 // @@protoc_insertion_point(namespace_scope)
336 
337 } // namespace msgs
338 } // namespace ignition
339 
340 #ifdef _MSC_VER
341 #pragma warning(pop)
342 #endif
343 // @@protoc_insertion_point(global_scope)
344 
345 #endif // PROTOBUF_ignition_2fmsgs_2ftopic_5finfo_2eproto__INCLUDED
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2ftopic_5finfo_2eproto()
const ::std::string & msg_type() const
Definition: topic_info.pb.h:229
int GetCachedSize() const
Definition: topic_info.pb.h:97
TopicInfo & operator=(const TopicInfo &from)
Definition: topic_info.pb.h:65
const ::ignition::msgs::Header & header() const
Definition: topic_info.pb.h:195
Definition: subscribe.pb.h:56
::ignition::msgs::Publish * add_publisher()
Definition: topic_info.pb.h:284
void clear_publisher()
Definition: topic_info.pb.h:273
void set_allocated_header(::ignition::msgs::Header *header)
Definition: topic_info.pb.h:214
std::shared_ptr< TopicInfo > TopicInfoSharedPtr
Definition: topic_info.pb.h:333
::std::string * release_msg_type()
Definition: topic_info.pb.h:254
std::shared_ptr< const TopicInfo > ConstTopicInfoSharedPtr
Definition: topic_info.pb.h:334
int publisher_size() const
Definition: topic_info.pb.h:270
TopicInfo * New() const
Definition: topic_info.pb.h:77
void clear_subscriber()
Definition: topic_info.pb.h:303
Definition: header.pb.h:161
STL class.
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Publish > & publisher() const
Definition: topic_info.pb.h:294
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: topic_info.pb.h:94
void set_msg_type(const ::std::string &value)
Definition: topic_info.pb.h:233
void protobuf_AssignDesc_ignition_2fmsgs_2ftopic_5finfo_2eproto()
std::unique_ptr< TopicInfo > TopicInfoUniquePtr
Definition: topic_info.pb.h:331
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Subscribe > * mutable_subscriber()
Definition: topic_info.pb.h:319
Definition: topic_info.pb.h:58
::ignition::msgs::Header * mutable_header()
Definition: topic_info.pb.h:199
::std::string * mutable_msg_type()
Definition: topic_info.pb.h:249
void set_allocated_msg_type(::std::string *msg_type)
Definition: topic_info.pb.h:259
void protobuf_ShutdownFile_ignition_2fmsgs_2ftopic_5finfo_2eproto()
STL class.
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Subscribe > & subscriber() const
Definition: topic_info.pb.h:324
bool has_header() const
Definition: topic_info.pb.h:188
std::unique_ptr< const TopicInfo > ConstTopicInfoUniquePtr
Definition: topic_info.pb.h:332
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Publish > * mutable_publisher()
Definition: topic_info.pb.h:289
void clear_msg_type()
Definition: topic_info.pb.h:226
int subscriber_size() const
Definition: topic_info.pb.h:300
Definition: publish.pb.h:56
::ignition::msgs::Header * release_header()
Definition: topic_info.pb.h:207
void clear_header()
Definition: topic_info.pb.h:191
::ignition::msgs::Subscribe * add_subscriber()
Definition: topic_info.pb.h:314