Gazebo Msgs

API Reference

8.7.0
build/ignition-msgs8/include/ignition/msgs/packet.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/packet.proto
3 
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fpacket_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fpacket_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>
34 #include "ignition/msgs/clock.pb.h"
36 #include "ignition/msgs/image.pb.h"
37 #include "ignition/msgs/pose.pb.h"
40 #include "ignition/msgs/time.pb.h"
43 #ifndef _MSC_VER
44 #pragma GCC system_header
45 #else
46 #pragma warning(push)
47 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
48 #endif
49 #ifdef __linux__
50 #include <sys/sysmacros.h>
51 #endif
52 #include <memory>
53 #include <ignition/msgs/Export.hh>
54 // @@protoc_insertion_point(includes)
55 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fpacket_2eproto IGNITION_MSGS_VISIBLE
56 
58 // Internal implementation detail -- do not use these members.
59 struct IGNITION_MSGS_VISIBLE TableStruct {
60  static const ::google::protobuf::internal::ParseTableField entries[];
61  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
62  static const ::google::protobuf::internal::ParseTable schema[1];
63  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
64  static const ::google::protobuf::internal::SerializationTable serialization_table[];
65  static const ::google::protobuf::uint32 offsets[];
66 };
67 void IGNITION_MSGS_VISIBLE AddDescriptors();
68 } // namespace protobuf_ignition_2fmsgs_2fpacket_2eproto
69 namespace ignition {
70 namespace msgs {
71 class Packet;
72 class PacketDefaultTypeInternal;
73 IGNITION_MSGS_VISIBLE extern PacketDefaultTypeInternal _Packet_default_instance_;
74 } // namespace msgs
75 } // namespace ignition
76 namespace google {
77 namespace protobuf {
78 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Packet* Arena::CreateMaybeMessage<::ignition::msgs::Packet>(Arena*);
79 } // namespace protobuf
80 } // namespace google
81 namespace ignition {
82 namespace msgs {
83 
84 // ===================================================================
85 
86 class IGNITION_MSGS_VISIBLE Packet : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Packet) */ {
87  public:
88  Packet();
89  virtual ~Packet();
90 
91  Packet(const Packet& from);
92 
93  inline Packet& operator=(const Packet& from) {
94  CopyFrom(from);
95  return *this;
96  }
97  #if LANG_CXX11
98  Packet(Packet&& from) noexcept
99  : Packet() {
100  *this = ::std::move(from);
101  }
102 
103  inline Packet& operator=(Packet&& from) noexcept {
104  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
105  if (this != &from) InternalSwap(&from);
106  } else {
107  CopyFrom(from);
108  }
109  return *this;
110  }
111  #endif
112  static const ::google::protobuf::Descriptor* descriptor();
113  static const Packet& default_instance();
114 
115  enum ContentCase {
116  kCmdVel2D = 3,
117  kImage = 4,
118  kStringMsgV = 5,
119  kWebRequest = 6,
120  kPose = 7,
121  kDoublev = 8,
122  kPoseV = 9,
123  kTime = 10,
124  kClock = 11,
125  kWorldStats = 12,
126  CONTENT_NOT_SET = 0,
127  };
128 
129  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
130  static inline const Packet* internal_default_instance() {
131  return reinterpret_cast<const Packet*>(
133  }
134  static constexpr int kIndexInFileMessages =
135  0;
136 
137  void Swap(Packet* other);
138  friend void swap(Packet& a, Packet& b) {
139  a.Swap(&b);
140  }
141 
142  // implements Message ----------------------------------------------
143 
144  inline Packet* New() const final {
145  return CreateMaybeMessage<Packet>(NULL);
146  }
147 
148  Packet* New(::google::protobuf::Arena* arena) const final {
149  return CreateMaybeMessage<Packet>(arena);
150  }
151  void CopyFrom(const ::google::protobuf::Message& from) final;
152  void MergeFrom(const ::google::protobuf::Message& from) final;
153  void CopyFrom(const Packet& from);
154  void MergeFrom(const Packet& from);
155  void Clear() final;
156  bool IsInitialized() const final;
157 
158  size_t ByteSizeLong() const final;
159  bool MergePartialFromCodedStream(
160  ::google::protobuf::io::CodedInputStream* input) final;
161  void SerializeWithCachedSizes(
162  ::google::protobuf::io::CodedOutputStream* output) const final;
163  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
164  bool deterministic, ::google::protobuf::uint8* target) const final;
165  int GetCachedSize() const final { return _cached_size_.Get(); }
166 
167  private:
168  void SharedCtor();
169  void SharedDtor();
170  void SetCachedSize(int size) const final;
171  void InternalSwap(Packet* other);
172  private:
173  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
174  return NULL;
175  }
176  inline void* MaybeArenaPtr() const {
177  return NULL;
178  }
179  public:
180 
181  ::google::protobuf::Metadata GetMetadata() const final;
182 
183  // nested types ----------------------------------------------------
184 
185  // accessors -------------------------------------------------------
186 
187  // string topic = 1;
188  void clear_topic();
189  static const int kTopicFieldNumber = 1;
190  const ::std::string& topic() const;
191  void set_topic(const ::std::string& value);
192  #if LANG_CXX11
193  void set_topic(::std::string&& value);
194  #endif
195  void set_topic(const char* value);
196  void set_topic(const char* value, size_t size);
197  ::std::string* mutable_topic();
198  ::std::string* release_topic();
199  void set_allocated_topic(::std::string* topic);
200 
201  // string type = 2;
202  void clear_type();
203  static const int kTypeFieldNumber = 2;
204  const ::std::string& type() const;
205  void set_type(const ::std::string& value);
206  #if LANG_CXX11
207  void set_type(::std::string&& value);
208  #endif
209  void set_type(const char* value);
210  void set_type(const char* value, size_t size);
211  ::std::string* mutable_type();
212  ::std::string* release_type();
213  void set_allocated_type(::std::string* type);
214 
215  // .ignition.msgs.CmdVel2D cmd_vel2d = 3;
216  bool has_cmd_vel2d() const;
217  void clear_cmd_vel2d();
218  static const int kCmdVel2DFieldNumber = 3;
219  private:
220  const ::ignition::msgs::CmdVel2D& _internal_cmd_vel2d() const;
221  public:
222  const ::ignition::msgs::CmdVel2D& cmd_vel2d() const;
223  ::ignition::msgs::CmdVel2D* release_cmd_vel2d();
224  ::ignition::msgs::CmdVel2D* mutable_cmd_vel2d();
225  void set_allocated_cmd_vel2d(::ignition::msgs::CmdVel2D* cmd_vel2d);
226 
227  // .ignition.msgs.Image image = 4;
228  bool has_image() const;
229  void clear_image();
230  static const int kImageFieldNumber = 4;
231  private:
232  const ::ignition::msgs::Image& _internal_image() const;
233  public:
234  const ::ignition::msgs::Image& image() const;
235  ::ignition::msgs::Image* release_image();
236  ::ignition::msgs::Image* mutable_image();
237  void set_allocated_image(::ignition::msgs::Image* image);
238 
239  // .ignition.msgs.StringMsg_V string_msg_v = 5;
240  bool has_string_msg_v() const;
241  void clear_string_msg_v();
242  static const int kStringMsgVFieldNumber = 5;
243  private:
244  const ::ignition::msgs::StringMsg_V& _internal_string_msg_v() const;
245  public:
246  const ::ignition::msgs::StringMsg_V& string_msg_v() const;
247  ::ignition::msgs::StringMsg_V* release_string_msg_v();
248  ::ignition::msgs::StringMsg_V* mutable_string_msg_v();
249  void set_allocated_string_msg_v(::ignition::msgs::StringMsg_V* string_msg_v);
250 
251  // .ignition.msgs.WebRequest web_request = 6;
252  bool has_web_request() const;
253  void clear_web_request();
254  static const int kWebRequestFieldNumber = 6;
255  private:
256  const ::ignition::msgs::WebRequest& _internal_web_request() const;
257  public:
258  const ::ignition::msgs::WebRequest& web_request() const;
259  ::ignition::msgs::WebRequest* release_web_request();
260  ::ignition::msgs::WebRequest* mutable_web_request();
261  void set_allocated_web_request(::ignition::msgs::WebRequest* web_request);
262 
263  // .ignition.msgs.Pose pose = 7;
264  bool has_pose() const;
265  void clear_pose();
266  static const int kPoseFieldNumber = 7;
267  private:
268  const ::ignition::msgs::Pose& _internal_pose() const;
269  public:
270  const ::ignition::msgs::Pose& pose() const;
271  ::ignition::msgs::Pose* release_pose();
272  ::ignition::msgs::Pose* mutable_pose();
273  void set_allocated_pose(::ignition::msgs::Pose* pose);
274 
275  // .ignition.msgs.Double_V doublev = 8;
276  bool has_doublev() const;
277  void clear_doublev();
278  static const int kDoublevFieldNumber = 8;
279  private:
280  const ::ignition::msgs::Double_V& _internal_doublev() const;
281  public:
282  const ::ignition::msgs::Double_V& doublev() const;
283  ::ignition::msgs::Double_V* release_doublev();
284  ::ignition::msgs::Double_V* mutable_doublev();
285  void set_allocated_doublev(::ignition::msgs::Double_V* doublev);
286 
287  // .ignition.msgs.Pose_V pose_v = 9;
288  bool has_pose_v() const;
289  void clear_pose_v();
290  static const int kPoseVFieldNumber = 9;
291  private:
292  const ::ignition::msgs::Pose_V& _internal_pose_v() const;
293  public:
294  const ::ignition::msgs::Pose_V& pose_v() const;
295  ::ignition::msgs::Pose_V* release_pose_v();
296  ::ignition::msgs::Pose_V* mutable_pose_v();
297  void set_allocated_pose_v(::ignition::msgs::Pose_V* pose_v);
298 
299  // .ignition.msgs.Time time = 10;
300  bool has_time() const;
301  void clear_time();
302  static const int kTimeFieldNumber = 10;
303  private:
304  const ::ignition::msgs::Time& _internal_time() const;
305  public:
306  const ::ignition::msgs::Time& time() const;
307  ::ignition::msgs::Time* release_time();
308  ::ignition::msgs::Time* mutable_time();
309  void set_allocated_time(::ignition::msgs::Time* time);
310 
311  // .ignition.msgs.Clock clock = 11;
312  bool has_clock() const;
313  void clear_clock();
314  static const int kClockFieldNumber = 11;
315  private:
316  const ::ignition::msgs::Clock& _internal_clock() const;
317  public:
318  const ::ignition::msgs::Clock& clock() const;
319  ::ignition::msgs::Clock* release_clock();
320  ::ignition::msgs::Clock* mutable_clock();
321  void set_allocated_clock(::ignition::msgs::Clock* clock);
322 
323  // .ignition.msgs.WorldStatistics world_stats = 12;
324  bool has_world_stats() const;
325  void clear_world_stats();
326  static const int kWorldStatsFieldNumber = 12;
327  private:
328  const ::ignition::msgs::WorldStatistics& _internal_world_stats() const;
329  public:
330  const ::ignition::msgs::WorldStatistics& world_stats() const;
331  ::ignition::msgs::WorldStatistics* release_world_stats();
332  ::ignition::msgs::WorldStatistics* mutable_world_stats();
333  void set_allocated_world_stats(::ignition::msgs::WorldStatistics* world_stats);
334 
335  void clear_content();
336  ContentCase content_case() const;
337  // @@protoc_insertion_point(class_scope:ignition.msgs.Packet)
338  private:
339  void set_has_cmd_vel2d();
340  void set_has_image();
341  void set_has_string_msg_v();
342  void set_has_web_request();
343  void set_has_pose();
344  void set_has_doublev();
345  void set_has_pose_v();
346  void set_has_time();
347  void set_has_clock();
348  void set_has_world_stats();
349 
350  inline bool has_content() const;
351  inline void clear_has_content();
352 
353  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
354  ::google::protobuf::internal::ArenaStringPtr topic_;
355  ::google::protobuf::internal::ArenaStringPtr type_;
356  union ContentUnion {
357  ContentUnion() {}
358  ::ignition::msgs::CmdVel2D* cmd_vel2d_;
359  ::ignition::msgs::Image* image_;
360  ::ignition::msgs::StringMsg_V* string_msg_v_;
361  ::ignition::msgs::WebRequest* web_request_;
362  ::ignition::msgs::Pose* pose_;
363  ::ignition::msgs::Double_V* doublev_;
364  ::ignition::msgs::Pose_V* pose_v_;
365  ::ignition::msgs::Time* time_;
366  ::ignition::msgs::Clock* clock_;
367  ::ignition::msgs::WorldStatistics* world_stats_;
368  } content_;
369  mutable ::google::protobuf::internal::CachedSize _cached_size_;
370  ::google::protobuf::uint32 _oneof_case_[1];
371 
372  friend struct ::protobuf_ignition_2fmsgs_2fpacket_2eproto::TableStruct;
373 };
374 // ===================================================================
375 
376 
377 // ===================================================================
378 
379 #ifdef __GNUC__
380  #pragma GCC diagnostic push
381  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
382 #endif // __GNUC__
383 // Packet
384 
385 // string topic = 1;
386 inline void Packet::clear_topic() {
387  topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
388 }
389 inline const ::std::string& Packet::topic() const {
390  // @@protoc_insertion_point(field_get:ignition.msgs.Packet.topic)
391  return topic_.GetNoArena();
392 }
393 inline void Packet::set_topic(const ::std::string& value) {
394 
395  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
396  // @@protoc_insertion_point(field_set:ignition.msgs.Packet.topic)
397 }
398 #if LANG_CXX11
399 inline void Packet::set_topic(::std::string&& value) {
400 
401  topic_.SetNoArena(
402  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
403  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Packet.topic)
404 }
405 #endif
406 inline void Packet::set_topic(const char* value) {
407  GOOGLE_DCHECK(value != NULL);
408 
409  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
410  // @@protoc_insertion_point(field_set_char:ignition.msgs.Packet.topic)
411 }
412 inline void Packet::set_topic(const char* value, size_t size) {
413 
414  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
415  ::std::string(reinterpret_cast<const char*>(value), size));
416  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Packet.topic)
417 }
418 inline ::std::string* Packet::mutable_topic() {
419 
420  // @@protoc_insertion_point(field_mutable:ignition.msgs.Packet.topic)
421  return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
422 }
423 inline ::std::string* Packet::release_topic() {
424  // @@protoc_insertion_point(field_release:ignition.msgs.Packet.topic)
425 
426  return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
427 }
429  if (topic != NULL) {
430 
431  } else {
432 
433  }
434  topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic);
435  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Packet.topic)
436 }
437 
438 // string type = 2;
439 inline void Packet::clear_type() {
440  type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
441 }
442 inline const ::std::string& Packet::type() const {
443  // @@protoc_insertion_point(field_get:ignition.msgs.Packet.type)
444  return type_.GetNoArena();
445 }
446 inline void Packet::set_type(const ::std::string& value) {
447 
448  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
449  // @@protoc_insertion_point(field_set:ignition.msgs.Packet.type)
450 }
451 #if LANG_CXX11
452 inline void Packet::set_type(::std::string&& value) {
453 
454  type_.SetNoArena(
455  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
456  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Packet.type)
457 }
458 #endif
459 inline void Packet::set_type(const char* value) {
460  GOOGLE_DCHECK(value != NULL);
461 
462  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
463  // @@protoc_insertion_point(field_set_char:ignition.msgs.Packet.type)
464 }
465 inline void Packet::set_type(const char* value, size_t size) {
466 
467  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
468  ::std::string(reinterpret_cast<const char*>(value), size));
469  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Packet.type)
470 }
471 inline ::std::string* Packet::mutable_type() {
472 
473  // @@protoc_insertion_point(field_mutable:ignition.msgs.Packet.type)
474  return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
475 }
476 inline ::std::string* Packet::release_type() {
477  // @@protoc_insertion_point(field_release:ignition.msgs.Packet.type)
478 
479  return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
480 }
482  if (type != NULL) {
483 
484  } else {
485 
486  }
487  type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type);
488  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Packet.type)
489 }
490 
491 // .ignition.msgs.CmdVel2D cmd_vel2d = 3;
492 inline bool Packet::has_cmd_vel2d() const {
493  return content_case() == kCmdVel2D;
494 }
495 inline void Packet::set_has_cmd_vel2d() {
496  _oneof_case_[0] = kCmdVel2D;
497 }
498 inline const ::ignition::msgs::CmdVel2D& Packet::_internal_cmd_vel2d() const {
499  return *content_.cmd_vel2d_;
500 }
501 inline ::ignition::msgs::CmdVel2D* Packet::release_cmd_vel2d() {
502  // @@protoc_insertion_point(field_release:ignition.msgs.Packet.cmd_vel2d)
503  if (has_cmd_vel2d()) {
504  clear_has_content();
505  ::ignition::msgs::CmdVel2D* temp = content_.cmd_vel2d_;
506  content_.cmd_vel2d_ = NULL;
507  return temp;
508  } else {
509  return NULL;
510  }
511 }
512 inline const ::ignition::msgs::CmdVel2D& Packet::cmd_vel2d() const {
513  // @@protoc_insertion_point(field_get:ignition.msgs.Packet.cmd_vel2d)
514  return has_cmd_vel2d()
515  ? *content_.cmd_vel2d_
517 }
518 inline ::ignition::msgs::CmdVel2D* Packet::mutable_cmd_vel2d() {
519  if (!has_cmd_vel2d()) {
520  clear_content();
521  set_has_cmd_vel2d();
522  content_.cmd_vel2d_ = CreateMaybeMessage< ::ignition::msgs::CmdVel2D >(
523  GetArenaNoVirtual());
524  }
525  // @@protoc_insertion_point(field_mutable:ignition.msgs.Packet.cmd_vel2d)
526  return content_.cmd_vel2d_;
527 }
528 
529 // .ignition.msgs.Image image = 4;
530 inline bool Packet::has_image() const {
531  return content_case() == kImage;
532 }
533 inline void Packet::set_has_image() {
534  _oneof_case_[0] = kImage;
535 }
536 inline const ::ignition::msgs::Image& Packet::_internal_image() const {
537  return *content_.image_;
538 }
539 inline ::ignition::msgs::Image* Packet::release_image() {
540  // @@protoc_insertion_point(field_release:ignition.msgs.Packet.image)
541  if (has_image()) {
542  clear_has_content();
543  ::ignition::msgs::Image* temp = content_.image_;
544  content_.image_ = NULL;
545  return temp;
546  } else {
547  return NULL;
548  }
549 }
550 inline const ::ignition::msgs::Image& Packet::image() const {
551  // @@protoc_insertion_point(field_get:ignition.msgs.Packet.image)
552  return has_image()
553  ? *content_.image_
555 }
556 inline ::ignition::msgs::Image* Packet::mutable_image() {
557  if (!has_image()) {
558  clear_content();
559  set_has_image();
560  content_.image_ = CreateMaybeMessage< ::ignition::msgs::Image >(
561  GetArenaNoVirtual());
562  }
563  // @@protoc_insertion_point(field_mutable:ignition.msgs.Packet.image)
564  return content_.image_;
565 }
566 
567 // .ignition.msgs.StringMsg_V string_msg_v = 5;
568 inline bool Packet::has_string_msg_v() const {
569  return content_case() == kStringMsgV;
570 }
571 inline void Packet::set_has_string_msg_v() {
572  _oneof_case_[0] = kStringMsgV;
573 }
574 inline const ::ignition::msgs::StringMsg_V& Packet::_internal_string_msg_v() const {
575  return *content_.string_msg_v_;
576 }
577 inline ::ignition::msgs::StringMsg_V* Packet::release_string_msg_v() {
578  // @@protoc_insertion_point(field_release:ignition.msgs.Packet.string_msg_v)
579  if (has_string_msg_v()) {
580  clear_has_content();
581  ::ignition::msgs::StringMsg_V* temp = content_.string_msg_v_;
582  content_.string_msg_v_ = NULL;
583  return temp;
584  } else {
585  return NULL;
586  }
587 }
588 inline const ::ignition::msgs::StringMsg_V& Packet::string_msg_v() const {
589  // @@protoc_insertion_point(field_get:ignition.msgs.Packet.string_msg_v)
590  return has_string_msg_v()
591  ? *content_.string_msg_v_
593 }
594 inline ::ignition::msgs::StringMsg_V* Packet::mutable_string_msg_v() {
595  if (!has_string_msg_v()) {
596  clear_content();
597  set_has_string_msg_v();
598  content_.string_msg_v_ = CreateMaybeMessage< ::ignition::msgs::StringMsg_V >(
599  GetArenaNoVirtual());
600  }
601  // @@protoc_insertion_point(field_mutable:ignition.msgs.Packet.string_msg_v)
602  return content_.string_msg_v_;
603 }
604 
605 // .ignition.msgs.WebRequest web_request = 6;
606 inline bool Packet::has_web_request() const {
607  return content_case() == kWebRequest;
608 }
609 inline void Packet::set_has_web_request() {
610  _oneof_case_[0] = kWebRequest;
611 }
612 inline const ::ignition::msgs::WebRequest& Packet::_internal_web_request() const {
613  return *content_.web_request_;
614 }
615 inline ::ignition::msgs::WebRequest* Packet::release_web_request() {
616  // @@protoc_insertion_point(field_release:ignition.msgs.Packet.web_request)
617  if (has_web_request()) {
618  clear_has_content();
619  ::ignition::msgs::WebRequest* temp = content_.web_request_;
620  content_.web_request_ = NULL;
621  return temp;
622  } else {
623  return NULL;
624  }
625 }
626 inline const ::ignition::msgs::WebRequest& Packet::web_request() const {
627  // @@protoc_insertion_point(field_get:ignition.msgs.Packet.web_request)
628  return has_web_request()
629  ? *content_.web_request_
631 }
632 inline ::ignition::msgs::WebRequest* Packet::mutable_web_request() {
633  if (!has_web_request()) {
634  clear_content();
635  set_has_web_request();
636  content_.web_request_ = CreateMaybeMessage< ::ignition::msgs::WebRequest >(
637  GetArenaNoVirtual());
638  }
639  // @@protoc_insertion_point(field_mutable:ignition.msgs.Packet.web_request)
640  return content_.web_request_;
641 }
642 
643 // .ignition.msgs.Pose pose = 7;
644 inline bool Packet::has_pose() const {
645  return content_case() == kPose;
646 }
647 inline void Packet::set_has_pose() {
648  _oneof_case_[0] = kPose;
649 }
650 inline const ::ignition::msgs::Pose& Packet::_internal_pose() const {
651  return *content_.pose_;
652 }
653 inline ::ignition::msgs::Pose* Packet::release_pose() {
654  // @@protoc_insertion_point(field_release:ignition.msgs.Packet.pose)
655  if (has_pose()) {
656  clear_has_content();
657  ::ignition::msgs::Pose* temp = content_.pose_;
658  content_.pose_ = NULL;
659  return temp;
660  } else {
661  return NULL;
662  }
663 }
664 inline const ::ignition::msgs::Pose& Packet::pose() const {
665  // @@protoc_insertion_point(field_get:ignition.msgs.Packet.pose)
666  return has_pose()
667  ? *content_.pose_
669 }
670 inline ::ignition::msgs::Pose* Packet::mutable_pose() {
671  if (!has_pose()) {
672  clear_content();
673  set_has_pose();
674  content_.pose_ = CreateMaybeMessage< ::ignition::msgs::Pose >(
675  GetArenaNoVirtual());
676  }
677  // @@protoc_insertion_point(field_mutable:ignition.msgs.Packet.pose)
678  return content_.pose_;
679 }
680 
681 // .ignition.msgs.Double_V doublev = 8;
682 inline bool Packet::has_doublev() const {
683  return content_case() == kDoublev;
684 }
685 inline void Packet::set_has_doublev() {
686  _oneof_case_[0] = kDoublev;
687 }
688 inline const ::ignition::msgs::Double_V& Packet::_internal_doublev() const {
689  return *content_.doublev_;
690 }
691 inline ::ignition::msgs::Double_V* Packet::release_doublev() {
692  // @@protoc_insertion_point(field_release:ignition.msgs.Packet.doublev)
693  if (has_doublev()) {
694  clear_has_content();
695  ::ignition::msgs::Double_V* temp = content_.doublev_;
696  content_.doublev_ = NULL;
697  return temp;
698  } else {
699  return NULL;
700  }
701 }
702 inline const ::ignition::msgs::Double_V& Packet::doublev() const {
703  // @@protoc_insertion_point(field_get:ignition.msgs.Packet.doublev)
704  return has_doublev()
705  ? *content_.doublev_
707 }
708 inline ::ignition::msgs::Double_V* Packet::mutable_doublev() {
709  if (!has_doublev()) {
710  clear_content();
711  set_has_doublev();
712  content_.doublev_ = CreateMaybeMessage< ::ignition::msgs::Double_V >(
713  GetArenaNoVirtual());
714  }
715  // @@protoc_insertion_point(field_mutable:ignition.msgs.Packet.doublev)
716  return content_.doublev_;
717 }
718 
719 // .ignition.msgs.Pose_V pose_v = 9;
720 inline bool Packet::has_pose_v() const {
721  return content_case() == kPoseV;
722 }
723 inline void Packet::set_has_pose_v() {
724  _oneof_case_[0] = kPoseV;
725 }
726 inline const ::ignition::msgs::Pose_V& Packet::_internal_pose_v() const {
727  return *content_.pose_v_;
728 }
729 inline ::ignition::msgs::Pose_V* Packet::release_pose_v() {
730  // @@protoc_insertion_point(field_release:ignition.msgs.Packet.pose_v)
731  if (has_pose_v()) {
732  clear_has_content();
733  ::ignition::msgs::Pose_V* temp = content_.pose_v_;
734  content_.pose_v_ = NULL;
735  return temp;
736  } else {
737  return NULL;
738  }
739 }
740 inline const ::ignition::msgs::Pose_V& Packet::pose_v() const {
741  // @@protoc_insertion_point(field_get:ignition.msgs.Packet.pose_v)
742  return has_pose_v()
743  ? *content_.pose_v_
745 }
746 inline ::ignition::msgs::Pose_V* Packet::mutable_pose_v() {
747  if (!has_pose_v()) {
748  clear_content();
749  set_has_pose_v();
750  content_.pose_v_ = CreateMaybeMessage< ::ignition::msgs::Pose_V >(
751  GetArenaNoVirtual());
752  }
753  // @@protoc_insertion_point(field_mutable:ignition.msgs.Packet.pose_v)
754  return content_.pose_v_;
755 }
756 
757 // .ignition.msgs.Time time = 10;
758 inline bool Packet::has_time() const {
759  return content_case() == kTime;
760 }
761 inline void Packet::set_has_time() {
762  _oneof_case_[0] = kTime;
763 }
764 inline const ::ignition::msgs::Time& Packet::_internal_time() const {
765  return *content_.time_;
766 }
767 inline ::ignition::msgs::Time* Packet::release_time() {
768  // @@protoc_insertion_point(field_release:ignition.msgs.Packet.time)
769  if (has_time()) {
770  clear_has_content();
771  ::ignition::msgs::Time* temp = content_.time_;
772  content_.time_ = NULL;
773  return temp;
774  } else {
775  return NULL;
776  }
777 }
778 inline const ::ignition::msgs::Time& Packet::time() const {
779  // @@protoc_insertion_point(field_get:ignition.msgs.Packet.time)
780  return has_time()
781  ? *content_.time_
783 }
784 inline ::ignition::msgs::Time* Packet::mutable_time() {
785  if (!has_time()) {
786  clear_content();
787  set_has_time();
788  content_.time_ = CreateMaybeMessage< ::ignition::msgs::Time >(
789  GetArenaNoVirtual());
790  }
791  // @@protoc_insertion_point(field_mutable:ignition.msgs.Packet.time)
792  return content_.time_;
793 }
794 
795 // .ignition.msgs.Clock clock = 11;
796 inline bool Packet::has_clock() const {
797  return content_case() == kClock;
798 }
799 inline void Packet::set_has_clock() {
800  _oneof_case_[0] = kClock;
801 }
802 inline const ::ignition::msgs::Clock& Packet::_internal_clock() const {
803  return *content_.clock_;
804 }
805 inline ::ignition::msgs::Clock* Packet::release_clock() {
806  // @@protoc_insertion_point(field_release:ignition.msgs.Packet.clock)
807  if (has_clock()) {
808  clear_has_content();
809  ::ignition::msgs::Clock* temp = content_.clock_;
810  content_.clock_ = NULL;
811  return temp;
812  } else {
813  return NULL;
814  }
815 }
816 inline const ::ignition::msgs::Clock& Packet::clock() const {
817  // @@protoc_insertion_point(field_get:ignition.msgs.Packet.clock)
818  return has_clock()
819  ? *content_.clock_
821 }
822 inline ::ignition::msgs::Clock* Packet::mutable_clock() {
823  if (!has_clock()) {
824  clear_content();
825  set_has_clock();
826  content_.clock_ = CreateMaybeMessage< ::ignition::msgs::Clock >(
827  GetArenaNoVirtual());
828  }
829  // @@protoc_insertion_point(field_mutable:ignition.msgs.Packet.clock)
830  return content_.clock_;
831 }
832 
833 // .ignition.msgs.WorldStatistics world_stats = 12;
834 inline bool Packet::has_world_stats() const {
835  return content_case() == kWorldStats;
836 }
837 inline void Packet::set_has_world_stats() {
838  _oneof_case_[0] = kWorldStats;
839 }
840 inline const ::ignition::msgs::WorldStatistics& Packet::_internal_world_stats() const {
841  return *content_.world_stats_;
842 }
843 inline ::ignition::msgs::WorldStatistics* Packet::release_world_stats() {
844  // @@protoc_insertion_point(field_release:ignition.msgs.Packet.world_stats)
845  if (has_world_stats()) {
846  clear_has_content();
847  ::ignition::msgs::WorldStatistics* temp = content_.world_stats_;
848  content_.world_stats_ = NULL;
849  return temp;
850  } else {
851  return NULL;
852  }
853 }
854 inline const ::ignition::msgs::WorldStatistics& Packet::world_stats() const {
855  // @@protoc_insertion_point(field_get:ignition.msgs.Packet.world_stats)
856  return has_world_stats()
857  ? *content_.world_stats_
859 }
860 inline ::ignition::msgs::WorldStatistics* Packet::mutable_world_stats() {
861  if (!has_world_stats()) {
862  clear_content();
863  set_has_world_stats();
864  content_.world_stats_ = CreateMaybeMessage< ::ignition::msgs::WorldStatistics >(
865  GetArenaNoVirtual());
866  }
867  // @@protoc_insertion_point(field_mutable:ignition.msgs.Packet.world_stats)
868  return content_.world_stats_;
869 }
870 
871 inline bool Packet::has_content() const {
872  return content_case() != CONTENT_NOT_SET;
873 }
874 inline void Packet::clear_has_content() {
875  _oneof_case_[0] = CONTENT_NOT_SET;
876 }
878  return Packet::ContentCase(_oneof_case_[0]);
879 }
880 #ifdef __GNUC__
881  #pragma GCC diagnostic pop
882 #endif // __GNUC__
883 
888 // @@protoc_insertion_point(namespace_scope)
889 
890 } // namespace msgs
891 } // namespace ignition
892 
893 #ifdef _MSC_VER
894 #pragma warning(pop)
895 #endif
896 // @@protoc_insertion_point(global_scope)
897 
898 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fpacket_2eproto
const ::std::string & topic() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:389
IGNITION_MSGS_VISIBLE PacketDefaultTypeInternal _Packet_default_instance_
const ::ignition::msgs::Image & image() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:550
IGNITION_MSGS_VISIBLE CmdVel2DDefaultTypeInternal _CmdVel2D_default_instance_
@ kPoseV
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:122
const ::ignition::msgs::StringMsg_V & string_msg_v() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:588
Definition: build/ignition-msgs8/include/ignition/msgs/double_v.pb.h:76
STL class.
STL class.
Definition: build/ignition-msgs8/include/ignition/msgs/time.pb.h:76
::ignition::msgs::Image * mutable_image()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:556
Packet * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:144
bool has_cmd_vel2d() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:492
::ignition::msgs::Pose_V * mutable_pose_v()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:746
void set_allocated_type(::std::string *type)
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:481
T move(T... args)
void IGNITION_MSGS_VISIBLE AddDescriptors()
@ kDoublev
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:121
bool has_pose_v() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:720
bool has_time() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:758
const ::ignition::msgs::WebRequest & web_request() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:626
const ::ignition::msgs::Double_V & doublev() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:702
Definition: build/ignition-msgs8/include/ignition/msgs/pose_v.pb.h:78
const ::ignition::msgs::Time & time() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:778
::ignition::msgs::Pose * mutable_pose()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:670
::ignition::msgs::WebRequest * release_web_request()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:615
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:79
::ignition::msgs::Time * mutable_time()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:784
::ignition::msgs::WorldStatistics * mutable_world_stats()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:860
@ CONTENT_NOT_SET
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:126
Definition: build/ignition-msgs8/include/ignition/msgs/stringmsg_v.pb.h:77
void set_type(const ::std::string &value)
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:446
IGNITION_MSGS_VISIBLE TimeDefaultTypeInternal _Time_default_instance_
bool has_clock() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:796
bool has_pose() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:644
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:86
void Swap(Packet *other)
::std::string * release_topic()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:423
std::shared_ptr< const Packet > ConstPacketSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:887
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:59
void clear_topic()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:386
const ::std::string & type() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:442
::ignition::msgs::Pose * release_pose()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:653
void set_topic(const ::std::string &value)
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:393
bool has_doublev() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:682
IGNITION_MSGS_VISIBLE PoseDefaultTypeInternal _Pose_default_instance_
::ignition::msgs::WorldStatistics * release_world_stats()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:843
Definition: build/ignition-msgs8/include/ignition/msgs/clock.pb.h:78
::ignition::msgs::Clock * release_clock()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:805
Definition: build/ignition-msgs8/include/ignition/msgs/cmd_vel2d.pb.h:77
::std::string * mutable_topic()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:418
::ignition::msgs::WebRequest * mutable_web_request()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:632
const ::ignition::msgs::WorldStatistics & world_stats() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:854
Definition: build/ignition-msgs8/include/ignition/msgs/world_stats.pb.h:79
Packet & operator=(const Packet &from)
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:93
Definition: build/ignition-msgs8/include/ignition/msgs/image.pb.h:116
@ kClock
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:124
@ kImage
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:117
@ kStringMsgV
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:118
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:57
IGNITION_MSGS_VISIBLE ClockDefaultTypeInternal _Clock_default_instance_
::ignition::msgs::CmdVel2D * mutable_cmd_vel2d()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:518
IGNITION_MSGS_VISIBLE Pose_VDefaultTypeInternal _Pose_V_default_instance_
::std::string * mutable_type()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:471
@ kWebRequest
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:119
bool has_image() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:530
static const Packet * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:130
bool has_world_stats() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:834
::ignition::msgs::Double_V * release_doublev()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:691
::ignition::msgs::Pose_V * release_pose_v()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:729
const ::ignition::msgs::Pose_V & pose_v() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:740
::ignition::msgs::Image * release_image()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:539
const ::ignition::msgs::Pose & pose() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:664
::ignition::msgs::Clock * mutable_clock()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:822
const ::ignition::msgs::Clock & clock() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:816
Definition: build/ignition-msgs8/include/ignition/msgs/web_request.pb.h:77
IGNITION_MSGS_VISIBLE WorldStatisticsDefaultTypeInternal _WorldStatistics_default_instance_
@ kWorldStats
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:125
::ignition::msgs::CmdVel2D * release_cmd_vel2d()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:501
IGNITION_MSGS_VISIBLE ImageDefaultTypeInternal _Image_default_instance_
bool has_string_msg_v() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:568
std::shared_ptr< Packet > PacketSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:886
STL namespace.
bool has_web_request() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:606
IGNITION_MSGS_VISIBLE WebRequestDefaultTypeInternal _WebRequest_default_instance_
void clear_type()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:439
std::unique_ptr< Packet > PacketUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:884
::ignition::msgs::Time * release_time()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:767
@ kCmdVel2D
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:116
::std::string * release_type()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:476
::ignition::msgs::Double_V * mutable_doublev()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:708
Packet * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:148
friend void swap(Packet &a, Packet &b)
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:138
@ kTime
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:123
ContentCase content_case() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:877
const ::ignition::msgs::CmdVel2D & cmd_vel2d() const
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:512
@ kPose
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:120
IGNITION_MSGS_VISIBLE Double_VDefaultTypeInternal _Double_V_default_instance_
STL class.
::ignition::msgs::StringMsg_V * mutable_string_msg_v()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:594
IGNITION_MSGS_VISIBLE StringMsg_VDefaultTypeInternal _StringMsg_V_default_instance_
ContentCase
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:115
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:78
std::unique_ptr< const Packet > ConstPacketUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:885
void set_allocated_topic(::std::string *topic)
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:428
::ignition::msgs::StringMsg_V * release_string_msg_v()
Definition: build/ignition-msgs8/include/ignition/msgs/packet.pb.h:577