Gazebo Msgs

API Reference

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