Ignition Msgs

API Reference

8.2.0
subscribe.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/subscribe.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fsubscribe_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fsubscribe_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>
31 #ifndef _MSC_VER
32 #pragma GCC system_header
33 #else
34 #pragma warning(push)
35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
36 #endif
37 #ifdef __linux__
38 #include <sys/sysmacros.h>
39 #endif
40 #include <memory>
41 #include <ignition/msgs/Export.hh>
42 // @@protoc_insertion_point(includes)
43 
44 namespace ignition {
45 namespace msgs {
46 
47 // Internal implementation detail -- do not call these.
48 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fsubscribe_2eproto();
51 
52 class Subscribe;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE Subscribe : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Subscribe) */ {
57  public:
58  Subscribe();
59  virtual ~Subscribe();
60 
61  Subscribe(const Subscribe& from);
62 
63  inline Subscribe& operator=(const Subscribe& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const Subscribe& default_instance();
70 
71  void Swap(Subscribe* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline Subscribe* New() const { return New(NULL); }
76 
77  Subscribe* New(::google::protobuf::Arena* arena) const;
78  void CopyFrom(const ::google::protobuf::Message& from);
79  void MergeFrom(const ::google::protobuf::Message& from);
80  void CopyFrom(const Subscribe& from);
81  void MergeFrom(const Subscribe& from);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() const;
86  bool MergePartialFromCodedStream(
87  ::google::protobuf::io::CodedInputStream* input);
88  void SerializeWithCachedSizes(
89  ::google::protobuf::io::CodedOutputStream* output) const;
90  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91  bool deterministic, ::google::protobuf::uint8* output) const;
92  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
93  return InternalSerializeWithCachedSizesToArray(false, output);
94  }
95  int GetCachedSize() const { return _cached_size_; }
96  private:
97  void SharedCtor();
98  void SharedDtor();
99  void SetCachedSize(int size) const;
100  void InternalSwap(Subscribe* other);
101  private:
102  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
103  return _internal_metadata_.arena();
104  }
105  inline void* MaybeArenaPtr() const {
106  return _internal_metadata_.raw_arena_ptr();
107  }
108  public:
109 
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
114  // accessors -------------------------------------------------------
115 
116  // optional .ignition.msgs.Header header = 1;
117  bool has_header() const;
118  void clear_header();
119  static const int kHeaderFieldNumber = 1;
120  const ::ignition::msgs::Header& header() const;
121  ::ignition::msgs::Header* mutable_header();
122  ::ignition::msgs::Header* release_header();
123  void set_allocated_header(::ignition::msgs::Header* header);
124 
125  // optional string topic = 2;
126  void clear_topic();
127  static const int kTopicFieldNumber = 2;
128  const ::std::string& topic() const;
129  void set_topic(const ::std::string& value);
130  void set_topic(const char* value);
131  void set_topic(const char* value, size_t size);
132  ::std::string* mutable_topic();
133  ::std::string* release_topic();
134  void set_allocated_topic(::std::string* topic);
135 
136  // optional string host = 3;
137  void clear_host();
138  static const int kHostFieldNumber = 3;
139  const ::std::string& host() const;
140  void set_host(const ::std::string& value);
141  void set_host(const char* value);
142  void set_host(const char* value, size_t size);
143  ::std::string* mutable_host();
144  ::std::string* release_host();
145  void set_allocated_host(::std::string* host);
146 
147  // optional uint32 port = 4;
148  void clear_port();
149  static const int kPortFieldNumber = 4;
150  ::google::protobuf::uint32 port() const;
151  void set_port(::google::protobuf::uint32 value);
152 
153  // optional string msg_type = 5;
154  void clear_msg_type();
155  static const int kMsgTypeFieldNumber = 5;
156  const ::std::string& msg_type() const;
157  void set_msg_type(const ::std::string& value);
158  void set_msg_type(const char* value);
159  void set_msg_type(const char* value, size_t size);
160  ::std::string* mutable_msg_type();
161  ::std::string* release_msg_type();
162  void set_allocated_msg_type(::std::string* msg_type);
163 
164  // optional bool latching = 6;
165  void clear_latching();
166  static const int kLatchingFieldNumber = 6;
167  bool latching() const;
168  void set_latching(bool value);
169 
170  // @@protoc_insertion_point(class_scope:ignition.msgs.Subscribe)
171  private:
172 
173  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
174  bool _is_default_instance_;
175  ::ignition::msgs::Header* header_;
176  ::google::protobuf::internal::ArenaStringPtr topic_;
177  ::google::protobuf::internal::ArenaStringPtr host_;
178  ::google::protobuf::internal::ArenaStringPtr msg_type_;
179  ::google::protobuf::uint32 port_;
180  bool latching_;
181  mutable int _cached_size_;
182  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fsubscribe_2eproto();
185 
186  void InitAsDefaultInstance();
187  static Subscribe* default_instance_;
188 };
189 // ===================================================================
190 
191 
192 // ===================================================================
193 
194 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
195 // Subscribe
196 
197 // optional .ignition.msgs.Header header = 1;
198 inline bool Subscribe::has_header() const {
199  return !_is_default_instance_ && header_ != NULL;
200 }
201 inline void Subscribe::clear_header() {
202  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
203  header_ = NULL;
204 }
205 inline const ::ignition::msgs::Header& Subscribe::header() const {
206  // @@protoc_insertion_point(field_get:ignition.msgs.Subscribe.header)
207  return header_ != NULL ? *header_ : *default_instance_->header_;
208 }
209 inline ::ignition::msgs::Header* Subscribe::mutable_header() {
210 
211  if (header_ == NULL) {
212  header_ = new ::ignition::msgs::Header;
213  }
214  // @@protoc_insertion_point(field_mutable:ignition.msgs.Subscribe.header)
215  return header_;
216 }
217 inline ::ignition::msgs::Header* Subscribe::release_header() {
218  // @@protoc_insertion_point(field_release:ignition.msgs.Subscribe.header)
219 
220  ::ignition::msgs::Header* temp = header_;
221  header_ = NULL;
222  return temp;
223 }
225  delete header_;
226  header_ = header;
227  if (header) {
228 
229  } else {
230 
231  }
232  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Subscribe.header)
233 }
234 
235 // optional string topic = 2;
236 inline void Subscribe::clear_topic() {
237  topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
238 }
239 inline const ::std::string& Subscribe::topic() const {
240  // @@protoc_insertion_point(field_get:ignition.msgs.Subscribe.topic)
241  return topic_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
242 }
243 inline void Subscribe::set_topic(const ::std::string& value) {
244 
245  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
246  // @@protoc_insertion_point(field_set:ignition.msgs.Subscribe.topic)
247 }
248 inline void Subscribe::set_topic(const char* value) {
249 
250  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
251  // @@protoc_insertion_point(field_set_char:ignition.msgs.Subscribe.topic)
252 }
253 inline void Subscribe::set_topic(const char* value, size_t size) {
254 
255  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
256  ::std::string(reinterpret_cast<const char*>(value), size));
257  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Subscribe.topic)
258 }
259 inline ::std::string* Subscribe::mutable_topic() {
260 
261  // @@protoc_insertion_point(field_mutable:ignition.msgs.Subscribe.topic)
262  return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
263 }
264 inline ::std::string* Subscribe::release_topic() {
265  // @@protoc_insertion_point(field_release:ignition.msgs.Subscribe.topic)
266 
267  return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
268 }
270  if (topic != NULL) {
271 
272  } else {
273 
274  }
275  topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic);
276  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Subscribe.topic)
277 }
278 
279 // optional string host = 3;
280 inline void Subscribe::clear_host() {
281  host_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
282 }
283 inline const ::std::string& Subscribe::host() const {
284  // @@protoc_insertion_point(field_get:ignition.msgs.Subscribe.host)
285  return host_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
286 }
287 inline void Subscribe::set_host(const ::std::string& value) {
288 
289  host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
290  // @@protoc_insertion_point(field_set:ignition.msgs.Subscribe.host)
291 }
292 inline void Subscribe::set_host(const char* value) {
293 
294  host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
295  // @@protoc_insertion_point(field_set_char:ignition.msgs.Subscribe.host)
296 }
297 inline void Subscribe::set_host(const char* value, size_t size) {
298 
299  host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
300  ::std::string(reinterpret_cast<const char*>(value), size));
301  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Subscribe.host)
302 }
303 inline ::std::string* Subscribe::mutable_host() {
304 
305  // @@protoc_insertion_point(field_mutable:ignition.msgs.Subscribe.host)
306  return host_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
307 }
308 inline ::std::string* Subscribe::release_host() {
309  // @@protoc_insertion_point(field_release:ignition.msgs.Subscribe.host)
310 
311  return host_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
312 }
314  if (host != NULL) {
315 
316  } else {
317 
318  }
319  host_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), host);
320  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Subscribe.host)
321 }
322 
323 // optional uint32 port = 4;
324 inline void Subscribe::clear_port() {
325  port_ = 0u;
326 }
327 inline ::google::protobuf::uint32 Subscribe::port() const {
328  // @@protoc_insertion_point(field_get:ignition.msgs.Subscribe.port)
329  return port_;
330 }
331 inline void Subscribe::set_port(::google::protobuf::uint32 value) {
332 
333  port_ = value;
334  // @@protoc_insertion_point(field_set:ignition.msgs.Subscribe.port)
335 }
336 
337 // optional string msg_type = 5;
339  msg_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
340 }
341 inline const ::std::string& Subscribe::msg_type() const {
342  // @@protoc_insertion_point(field_get:ignition.msgs.Subscribe.msg_type)
343  return msg_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
344 }
345 inline void Subscribe::set_msg_type(const ::std::string& value) {
346 
347  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
348  // @@protoc_insertion_point(field_set:ignition.msgs.Subscribe.msg_type)
349 }
350 inline void Subscribe::set_msg_type(const char* value) {
351 
352  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
353  // @@protoc_insertion_point(field_set_char:ignition.msgs.Subscribe.msg_type)
354 }
355 inline void Subscribe::set_msg_type(const char* value, size_t size) {
356 
357  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
358  ::std::string(reinterpret_cast<const char*>(value), size));
359  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Subscribe.msg_type)
360 }
361 inline ::std::string* Subscribe::mutable_msg_type() {
362 
363  // @@protoc_insertion_point(field_mutable:ignition.msgs.Subscribe.msg_type)
364  return msg_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
365 }
366 inline ::std::string* Subscribe::release_msg_type() {
367  // @@protoc_insertion_point(field_release:ignition.msgs.Subscribe.msg_type)
368 
369  return msg_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
370 }
372  if (msg_type != NULL) {
373 
374  } else {
375 
376  }
377  msg_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg_type);
378  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Subscribe.msg_type)
379 }
380 
381 // optional bool latching = 6;
383  latching_ = false;
384 }
385 inline bool Subscribe::latching() const {
386  // @@protoc_insertion_point(field_get:ignition.msgs.Subscribe.latching)
387  return latching_;
388 }
389 inline void Subscribe::set_latching(bool value) {
390 
391  latching_ = value;
392  // @@protoc_insertion_point(field_set:ignition.msgs.Subscribe.latching)
393 }
394 
395 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
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_ignition_2fmsgs_2fsubscribe_2eproto__INCLUDED
void set_allocated_msg_type(::std::string *msg_type)
Definition: subscribe.pb.h:371
void clear_topic()
Definition: subscribe.pb.h:236
::std::string * mutable_topic()
Definition: subscribe.pb.h:259
std::unique_ptr< Subscribe > SubscribeUniquePtr
Definition: subscribe.pb.h:397
Definition: subscribe.pb.h:56
std::unique_ptr< const Subscribe > ConstSubscribeUniquePtr
Definition: subscribe.pb.h:398
void set_port(::google::protobuf::uint32 value)
Definition: subscribe.pb.h:331
::std::string * release_msg_type()
Definition: subscribe.pb.h:366
::std::string * release_topic()
Definition: subscribe.pb.h:264
void set_allocated_host(::std::string *host)
Definition: subscribe.pb.h:313
::std::string * mutable_msg_type()
Definition: subscribe.pb.h:361
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fsubscribe_2eproto()
void set_allocated_header(::ignition::msgs::Header *header)
Definition: subscribe.pb.h:224
std::shared_ptr< const Subscribe > ConstSubscribeSharedPtr
Definition: subscribe.pb.h:400
void protobuf_ShutdownFile_ignition_2fmsgs_2fsubscribe_2eproto()
void clear_host()
Definition: subscribe.pb.h:280
::ignition::msgs::Header * mutable_header()
Definition: subscribe.pb.h:209
Definition: header.pb.h:161
STL class.
void set_latching(bool value)
Definition: subscribe.pb.h:389
void protobuf_AssignDesc_ignition_2fmsgs_2fsubscribe_2eproto()
bool has_header() const
Definition: subscribe.pb.h:198
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: subscribe.pb.h:92
void set_msg_type(const ::std::string &value)
Definition: subscribe.pb.h:345
void set_allocated_topic(::std::string *topic)
Definition: subscribe.pb.h:269
Subscribe * New() const
Definition: subscribe.pb.h:75
const ::std::string & host() const
Definition: subscribe.pb.h:283
const ::std::string & msg_type() const
Definition: subscribe.pb.h:341
void clear_port()
Definition: subscribe.pb.h:324
Subscribe & operator=(const Subscribe &from)
Definition: subscribe.pb.h:63
const ::std::string & topic() const
Definition: subscribe.pb.h:239
STL class.
void clear_latching()
Definition: subscribe.pb.h:382
void clear_msg_type()
Definition: subscribe.pb.h:338
::ignition::msgs::Header * release_header()
Definition: subscribe.pb.h:217
std::shared_ptr< Subscribe > SubscribeSharedPtr
Definition: subscribe.pb.h:399
bool latching() const
Definition: subscribe.pb.h:385
void set_host(const ::std::string &value)
Definition: subscribe.pb.h:287
::google::protobuf::uint32 port() const
Definition: subscribe.pb.h:327
::std::string * release_host()
Definition: subscribe.pb.h:308
void clear_header()
Definition: subscribe.pb.h:201
int GetCachedSize() const
Definition: subscribe.pb.h:95
void set_topic(const ::std::string &value)
Definition: subscribe.pb.h:243
::std::string * mutable_host()
Definition: subscribe.pb.h:303
const ::ignition::msgs::Header & header() const
Definition: subscribe.pb.h:205