Gazebo Msgs

API Reference

9.5.1
hydra.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/hydra.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fhydra_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fhydra_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/pose.pb.h"
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fhydra_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[2];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fhydra_2eproto
50 namespace gz {
51 namespace msgs {
52 class Hydra;
53 class HydraDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern HydraDefaultTypeInternal _Hydra_default_instance_;
55 class Hydra_Paddle;
56 class Hydra_PaddleDefaultTypeInternal;
57 GZ_MSGS_VISIBLE extern Hydra_PaddleDefaultTypeInternal _Hydra_Paddle_default_instance_;
58 } // namespace msgs
59 } // namespace gz
60 namespace google {
61 namespace protobuf {
62 template<> GZ_MSGS_VISIBLE ::gz::msgs::Hydra* Arena::CreateMaybeMessage<::gz::msgs::Hydra>(Arena*);
63 template<> GZ_MSGS_VISIBLE ::gz::msgs::Hydra_Paddle* Arena::CreateMaybeMessage<::gz::msgs::Hydra_Paddle>(Arena*);
64 } // namespace protobuf
65 } // namespace google
66 namespace gz {
67 namespace msgs {
68 
69 // ===================================================================
70 
71 class GZ_MSGS_VISIBLE Hydra_Paddle : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Hydra.Paddle) */ {
72  public:
73  Hydra_Paddle();
74  virtual ~Hydra_Paddle();
75 
76  Hydra_Paddle(const Hydra_Paddle& from);
77 
78  inline Hydra_Paddle& operator=(const Hydra_Paddle& from) {
79  CopyFrom(from);
80  return *this;
81  }
82  #if LANG_CXX11
83  Hydra_Paddle(Hydra_Paddle&& from) noexcept
84  : Hydra_Paddle() {
85  *this = ::std::move(from);
86  }
87 
88  inline Hydra_Paddle& operator=(Hydra_Paddle&& from) noexcept {
89  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
90  if (this != &from) InternalSwap(&from);
91  } else {
92  CopyFrom(from);
93  }
94  return *this;
95  }
96  #endif
97  static const ::google::protobuf::Descriptor* descriptor();
98  static const Hydra_Paddle& default_instance();
99 
100  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
101  static inline const Hydra_Paddle* internal_default_instance() {
102  return reinterpret_cast<const Hydra_Paddle*>(
104  }
105  static constexpr int kIndexInFileMessages =
106  0;
107 
108  void Swap(Hydra_Paddle* other);
109  friend void swap(Hydra_Paddle& a, Hydra_Paddle& b) {
110  a.Swap(&b);
111  }
112 
113  // implements Message ----------------------------------------------
114 
115  inline Hydra_Paddle* New() const final {
116  return CreateMaybeMessage<Hydra_Paddle>(NULL);
117  }
118 
119  Hydra_Paddle* New(::google::protobuf::Arena* arena) const final {
120  return CreateMaybeMessage<Hydra_Paddle>(arena);
121  }
122  void CopyFrom(const ::google::protobuf::Message& from) final;
123  void MergeFrom(const ::google::protobuf::Message& from) final;
124  void CopyFrom(const Hydra_Paddle& from);
125  void MergeFrom(const Hydra_Paddle& from);
126  void Clear() final;
127  bool IsInitialized() const final;
128 
129  size_t ByteSizeLong() const final;
130  bool MergePartialFromCodedStream(
131  ::google::protobuf::io::CodedInputStream* input) final;
132  void SerializeWithCachedSizes(
133  ::google::protobuf::io::CodedOutputStream* output) const final;
134  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
135  bool deterministic, ::google::protobuf::uint8* target) const final;
136  int GetCachedSize() const final { return _cached_size_.Get(); }
137 
138  private:
139  void SharedCtor();
140  void SharedDtor();
141  void SetCachedSize(int size) const final;
142  void InternalSwap(Hydra_Paddle* other);
143  private:
144  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
145  return NULL;
146  }
147  inline void* MaybeArenaPtr() const {
148  return NULL;
149  }
150  public:
151 
152  ::google::protobuf::Metadata GetMetadata() const final;
153 
154  // nested types ----------------------------------------------------
155 
156  // accessors -------------------------------------------------------
157 
158  // .gz.msgs.Pose pose = 1;
159  bool has_pose() const;
160  void clear_pose();
161  static const int kPoseFieldNumber = 1;
162  private:
163  const ::gz::msgs::Pose& _internal_pose() const;
164  public:
165  const ::gz::msgs::Pose& pose() const;
166  ::gz::msgs::Pose* release_pose();
167  ::gz::msgs::Pose* mutable_pose();
168  void set_allocated_pose(::gz::msgs::Pose* pose);
169 
170  // bool button_bumper = 2;
171  void clear_button_bumper();
172  static const int kButtonBumperFieldNumber = 2;
173  bool button_bumper() const;
174  void set_button_bumper(bool value);
175 
176  // bool button_1 = 3;
177  void clear_button_1();
178  static const int kButton1FieldNumber = 3;
179  bool button_1() const;
180  void set_button_1(bool value);
181 
182  // bool button_2 = 4;
183  void clear_button_2();
184  static const int kButton2FieldNumber = 4;
185  bool button_2() const;
186  void set_button_2(bool value);
187 
188  // bool button_3 = 5;
189  void clear_button_3();
190  static const int kButton3FieldNumber = 5;
191  bool button_3() const;
192  void set_button_3(bool value);
193 
194  // bool button_4 = 6;
195  void clear_button_4();
196  static const int kButton4FieldNumber = 6;
197  bool button_4() const;
198  void set_button_4(bool value);
199 
200  // bool button_joy = 7;
201  void clear_button_joy();
202  static const int kButtonJoyFieldNumber = 7;
203  bool button_joy() const;
204  void set_button_joy(bool value);
205 
206  // bool button_center = 8;
207  void clear_button_center();
208  static const int kButtonCenterFieldNumber = 8;
209  bool button_center() const;
210  void set_button_center(bool value);
211 
212  // double joy_x = 9;
213  void clear_joy_x();
214  static const int kJoyXFieldNumber = 9;
215  double joy_x() const;
216  void set_joy_x(double value);
217 
218  // double joy_y = 10;
219  void clear_joy_y();
220  static const int kJoyYFieldNumber = 10;
221  double joy_y() const;
222  void set_joy_y(double value);
223 
224  // double trigger = 11;
225  void clear_trigger();
226  static const int kTriggerFieldNumber = 11;
227  double trigger() const;
228  void set_trigger(double value);
229 
230  // @@protoc_insertion_point(class_scope:gz.msgs.Hydra.Paddle)
231  private:
232 
233  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
234  ::gz::msgs::Pose* pose_;
235  bool button_bumper_;
236  bool button_1_;
237  bool button_2_;
238  bool button_3_;
239  bool button_4_;
240  bool button_joy_;
241  bool button_center_;
242  double joy_x_;
243  double joy_y_;
244  double trigger_;
245  mutable ::google::protobuf::internal::CachedSize _cached_size_;
246  friend struct ::protobuf_gz_2fmsgs_2fhydra_2eproto::TableStruct;
247 };
248 // -------------------------------------------------------------------
249 
250 class GZ_MSGS_VISIBLE Hydra : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Hydra) */ {
251  public:
252  Hydra();
253  virtual ~Hydra();
254 
255  Hydra(const Hydra& from);
256 
257  inline Hydra& operator=(const Hydra& from) {
258  CopyFrom(from);
259  return *this;
260  }
261  #if LANG_CXX11
262  Hydra(Hydra&& from) noexcept
263  : Hydra() {
264  *this = ::std::move(from);
265  }
266 
267  inline Hydra& operator=(Hydra&& from) noexcept {
268  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
269  if (this != &from) InternalSwap(&from);
270  } else {
271  CopyFrom(from);
272  }
273  return *this;
274  }
275  #endif
276  static const ::google::protobuf::Descriptor* descriptor();
277  static const Hydra& default_instance();
278 
279  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
280  static inline const Hydra* internal_default_instance() {
281  return reinterpret_cast<const Hydra*>(
283  }
284  static constexpr int kIndexInFileMessages =
285  1;
286 
287  void Swap(Hydra* other);
288  friend void swap(Hydra& a, Hydra& b) {
289  a.Swap(&b);
290  }
291 
292  // implements Message ----------------------------------------------
293 
294  inline Hydra* New() const final {
295  return CreateMaybeMessage<Hydra>(NULL);
296  }
297 
298  Hydra* New(::google::protobuf::Arena* arena) const final {
299  return CreateMaybeMessage<Hydra>(arena);
300  }
301  void CopyFrom(const ::google::protobuf::Message& from) final;
302  void MergeFrom(const ::google::protobuf::Message& from) final;
303  void CopyFrom(const Hydra& from);
304  void MergeFrom(const Hydra& from);
305  void Clear() final;
306  bool IsInitialized() const final;
307 
308  size_t ByteSizeLong() const final;
309  bool MergePartialFromCodedStream(
310  ::google::protobuf::io::CodedInputStream* input) final;
311  void SerializeWithCachedSizes(
312  ::google::protobuf::io::CodedOutputStream* output) const final;
313  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
314  bool deterministic, ::google::protobuf::uint8* target) const final;
315  int GetCachedSize() const final { return _cached_size_.Get(); }
316 
317  private:
318  void SharedCtor();
319  void SharedDtor();
320  void SetCachedSize(int size) const final;
321  void InternalSwap(Hydra* other);
322  private:
323  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
324  return NULL;
325  }
326  inline void* MaybeArenaPtr() const {
327  return NULL;
328  }
329  public:
330 
331  ::google::protobuf::Metadata GetMetadata() const final;
332 
333  // nested types ----------------------------------------------------
334 
336 
337  // accessors -------------------------------------------------------
338 
339  // .gz.msgs.Header header = 1;
340  bool has_header() const;
341  void clear_header();
342  static const int kHeaderFieldNumber = 1;
343  private:
344  const ::gz::msgs::Header& _internal_header() const;
345  public:
346  const ::gz::msgs::Header& header() const;
347  ::gz::msgs::Header* release_header();
348  ::gz::msgs::Header* mutable_header();
349  void set_allocated_header(::gz::msgs::Header* header);
350 
351  // .gz.msgs.Hydra.Paddle right = 2;
352  bool has_right() const;
353  void clear_right();
354  static const int kRightFieldNumber = 2;
355  private:
356  const ::gz::msgs::Hydra_Paddle& _internal_right() const;
357  public:
358  const ::gz::msgs::Hydra_Paddle& right() const;
359  ::gz::msgs::Hydra_Paddle* release_right();
360  ::gz::msgs::Hydra_Paddle* mutable_right();
361  void set_allocated_right(::gz::msgs::Hydra_Paddle* right);
362 
363  // .gz.msgs.Hydra.Paddle left = 3;
364  bool has_left() const;
365  void clear_left();
366  static const int kLeftFieldNumber = 3;
367  private:
368  const ::gz::msgs::Hydra_Paddle& _internal_left() const;
369  public:
370  const ::gz::msgs::Hydra_Paddle& left() const;
371  ::gz::msgs::Hydra_Paddle* release_left();
372  ::gz::msgs::Hydra_Paddle* mutable_left();
373  void set_allocated_left(::gz::msgs::Hydra_Paddle* left);
374 
375  // @@protoc_insertion_point(class_scope:gz.msgs.Hydra)
376  private:
377 
378  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
379  ::gz::msgs::Header* header_;
380  ::gz::msgs::Hydra_Paddle* right_;
381  ::gz::msgs::Hydra_Paddle* left_;
382  mutable ::google::protobuf::internal::CachedSize _cached_size_;
383  friend struct ::protobuf_gz_2fmsgs_2fhydra_2eproto::TableStruct;
384 };
385 // ===================================================================
386 
387 
388 // ===================================================================
389 
390 #ifdef __GNUC__
391  #pragma GCC diagnostic push
392  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
393 #endif // __GNUC__
394 // Hydra_Paddle
395 
396 // .gz.msgs.Pose pose = 1;
397 inline bool Hydra_Paddle::has_pose() const {
398  return this != internal_default_instance() && pose_ != NULL;
399 }
400 inline const ::gz::msgs::Pose& Hydra_Paddle::_internal_pose() const {
401  return *pose_;
402 }
403 inline const ::gz::msgs::Pose& Hydra_Paddle::pose() const {
404  const ::gz::msgs::Pose* p = pose_;
405  // @@protoc_insertion_point(field_get:gz.msgs.Hydra.Paddle.pose)
406  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Pose*>(
408 }
409 inline ::gz::msgs::Pose* Hydra_Paddle::release_pose() {
410  // @@protoc_insertion_point(field_release:gz.msgs.Hydra.Paddle.pose)
411 
412  ::gz::msgs::Pose* temp = pose_;
413  pose_ = NULL;
414  return temp;
415 }
416 inline ::gz::msgs::Pose* Hydra_Paddle::mutable_pose() {
417 
418  if (pose_ == NULL) {
419  auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
420  pose_ = p;
421  }
422  // @@protoc_insertion_point(field_mutable:gz.msgs.Hydra.Paddle.pose)
423  return pose_;
424 }
426  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
427  if (message_arena == NULL) {
428  delete reinterpret_cast< ::google::protobuf::MessageLite*>(pose_);
429  }
430  if (pose) {
431  ::google::protobuf::Arena* submessage_arena = NULL;
432  if (message_arena != submessage_arena) {
433  pose = ::google::protobuf::internal::GetOwnedMessage(
434  message_arena, pose, submessage_arena);
435  }
436 
437  } else {
438 
439  }
440  pose_ = pose;
441  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Hydra.Paddle.pose)
442 }
443 
444 // bool button_bumper = 2;
446  button_bumper_ = false;
447 }
448 inline bool Hydra_Paddle::button_bumper() const {
449  // @@protoc_insertion_point(field_get:gz.msgs.Hydra.Paddle.button_bumper)
450  return button_bumper_;
451 }
452 inline void Hydra_Paddle::set_button_bumper(bool value) {
453 
454  button_bumper_ = value;
455  // @@protoc_insertion_point(field_set:gz.msgs.Hydra.Paddle.button_bumper)
456 }
457 
458 // bool button_1 = 3;
460  button_1_ = false;
461 }
462 inline bool Hydra_Paddle::button_1() const {
463  // @@protoc_insertion_point(field_get:gz.msgs.Hydra.Paddle.button_1)
464  return button_1_;
465 }
466 inline void Hydra_Paddle::set_button_1(bool value) {
467 
468  button_1_ = value;
469  // @@protoc_insertion_point(field_set:gz.msgs.Hydra.Paddle.button_1)
470 }
471 
472 // bool button_2 = 4;
474  button_2_ = false;
475 }
476 inline bool Hydra_Paddle::button_2() const {
477  // @@protoc_insertion_point(field_get:gz.msgs.Hydra.Paddle.button_2)
478  return button_2_;
479 }
480 inline void Hydra_Paddle::set_button_2(bool value) {
481 
482  button_2_ = value;
483  // @@protoc_insertion_point(field_set:gz.msgs.Hydra.Paddle.button_2)
484 }
485 
486 // bool button_3 = 5;
488  button_3_ = false;
489 }
490 inline bool Hydra_Paddle::button_3() const {
491  // @@protoc_insertion_point(field_get:gz.msgs.Hydra.Paddle.button_3)
492  return button_3_;
493 }
494 inline void Hydra_Paddle::set_button_3(bool value) {
495 
496  button_3_ = value;
497  // @@protoc_insertion_point(field_set:gz.msgs.Hydra.Paddle.button_3)
498 }
499 
500 // bool button_4 = 6;
502  button_4_ = false;
503 }
504 inline bool Hydra_Paddle::button_4() const {
505  // @@protoc_insertion_point(field_get:gz.msgs.Hydra.Paddle.button_4)
506  return button_4_;
507 }
508 inline void Hydra_Paddle::set_button_4(bool value) {
509 
510  button_4_ = value;
511  // @@protoc_insertion_point(field_set:gz.msgs.Hydra.Paddle.button_4)
512 }
513 
514 // bool button_joy = 7;
516  button_joy_ = false;
517 }
518 inline bool Hydra_Paddle::button_joy() const {
519  // @@protoc_insertion_point(field_get:gz.msgs.Hydra.Paddle.button_joy)
520  return button_joy_;
521 }
522 inline void Hydra_Paddle::set_button_joy(bool value) {
523 
524  button_joy_ = value;
525  // @@protoc_insertion_point(field_set:gz.msgs.Hydra.Paddle.button_joy)
526 }
527 
528 // bool button_center = 8;
530  button_center_ = false;
531 }
532 inline bool Hydra_Paddle::button_center() const {
533  // @@protoc_insertion_point(field_get:gz.msgs.Hydra.Paddle.button_center)
534  return button_center_;
535 }
536 inline void Hydra_Paddle::set_button_center(bool value) {
537 
538  button_center_ = value;
539  // @@protoc_insertion_point(field_set:gz.msgs.Hydra.Paddle.button_center)
540 }
541 
542 // double joy_x = 9;
544  joy_x_ = 0;
545 }
546 inline double Hydra_Paddle::joy_x() const {
547  // @@protoc_insertion_point(field_get:gz.msgs.Hydra.Paddle.joy_x)
548  return joy_x_;
549 }
550 inline void Hydra_Paddle::set_joy_x(double value) {
551 
552  joy_x_ = value;
553  // @@protoc_insertion_point(field_set:gz.msgs.Hydra.Paddle.joy_x)
554 }
555 
556 // double joy_y = 10;
558  joy_y_ = 0;
559 }
560 inline double Hydra_Paddle::joy_y() const {
561  // @@protoc_insertion_point(field_get:gz.msgs.Hydra.Paddle.joy_y)
562  return joy_y_;
563 }
564 inline void Hydra_Paddle::set_joy_y(double value) {
565 
566  joy_y_ = value;
567  // @@protoc_insertion_point(field_set:gz.msgs.Hydra.Paddle.joy_y)
568 }
569 
570 // double trigger = 11;
572  trigger_ = 0;
573 }
574 inline double Hydra_Paddle::trigger() const {
575  // @@protoc_insertion_point(field_get:gz.msgs.Hydra.Paddle.trigger)
576  return trigger_;
577 }
578 inline void Hydra_Paddle::set_trigger(double value) {
579 
580  trigger_ = value;
581  // @@protoc_insertion_point(field_set:gz.msgs.Hydra.Paddle.trigger)
582 }
583 
584 // -------------------------------------------------------------------
585 
586 // Hydra
587 
588 // .gz.msgs.Header header = 1;
589 inline bool Hydra::has_header() const {
590  return this != internal_default_instance() && header_ != NULL;
591 }
592 inline const ::gz::msgs::Header& Hydra::_internal_header() const {
593  return *header_;
594 }
595 inline const ::gz::msgs::Header& Hydra::header() const {
596  const ::gz::msgs::Header* p = header_;
597  // @@protoc_insertion_point(field_get:gz.msgs.Hydra.header)
598  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
600 }
601 inline ::gz::msgs::Header* Hydra::release_header() {
602  // @@protoc_insertion_point(field_release:gz.msgs.Hydra.header)
603 
604  ::gz::msgs::Header* temp = header_;
605  header_ = NULL;
606  return temp;
607 }
608 inline ::gz::msgs::Header* Hydra::mutable_header() {
609 
610  if (header_ == NULL) {
611  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
612  header_ = p;
613  }
614  // @@protoc_insertion_point(field_mutable:gz.msgs.Hydra.header)
615  return header_;
616 }
618  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
619  if (message_arena == NULL) {
620  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
621  }
622  if (header) {
623  ::google::protobuf::Arena* submessage_arena = NULL;
624  if (message_arena != submessage_arena) {
625  header = ::google::protobuf::internal::GetOwnedMessage(
626  message_arena, header, submessage_arena);
627  }
628 
629  } else {
630 
631  }
632  header_ = header;
633  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Hydra.header)
634 }
635 
636 // .gz.msgs.Hydra.Paddle right = 2;
637 inline bool Hydra::has_right() const {
638  return this != internal_default_instance() && right_ != NULL;
639 }
640 inline void Hydra::clear_right() {
641  if (GetArenaNoVirtual() == NULL && right_ != NULL) {
642  delete right_;
643  }
644  right_ = NULL;
645 }
646 inline const ::gz::msgs::Hydra_Paddle& Hydra::_internal_right() const {
647  return *right_;
648 }
649 inline const ::gz::msgs::Hydra_Paddle& Hydra::right() const {
650  const ::gz::msgs::Hydra_Paddle* p = right_;
651  // @@protoc_insertion_point(field_get:gz.msgs.Hydra.right)
652  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Hydra_Paddle*>(
654 }
655 inline ::gz::msgs::Hydra_Paddle* Hydra::release_right() {
656  // @@protoc_insertion_point(field_release:gz.msgs.Hydra.right)
657 
658  ::gz::msgs::Hydra_Paddle* temp = right_;
659  right_ = NULL;
660  return temp;
661 }
662 inline ::gz::msgs::Hydra_Paddle* Hydra::mutable_right() {
663 
664  if (right_ == NULL) {
665  auto* p = CreateMaybeMessage<::gz::msgs::Hydra_Paddle>(GetArenaNoVirtual());
666  right_ = p;
667  }
668  // @@protoc_insertion_point(field_mutable:gz.msgs.Hydra.right)
669  return right_;
670 }
672  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
673  if (message_arena == NULL) {
674  delete right_;
675  }
676  if (right) {
677  ::google::protobuf::Arena* submessage_arena = NULL;
678  if (message_arena != submessage_arena) {
679  right = ::google::protobuf::internal::GetOwnedMessage(
680  message_arena, right, submessage_arena);
681  }
682 
683  } else {
684 
685  }
686  right_ = right;
687  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Hydra.right)
688 }
689 
690 // .gz.msgs.Hydra.Paddle left = 3;
691 inline bool Hydra::has_left() const {
692  return this != internal_default_instance() && left_ != NULL;
693 }
694 inline void Hydra::clear_left() {
695  if (GetArenaNoVirtual() == NULL && left_ != NULL) {
696  delete left_;
697  }
698  left_ = NULL;
699 }
700 inline const ::gz::msgs::Hydra_Paddle& Hydra::_internal_left() const {
701  return *left_;
702 }
703 inline const ::gz::msgs::Hydra_Paddle& Hydra::left() const {
704  const ::gz::msgs::Hydra_Paddle* p = left_;
705  // @@protoc_insertion_point(field_get:gz.msgs.Hydra.left)
706  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Hydra_Paddle*>(
708 }
709 inline ::gz::msgs::Hydra_Paddle* Hydra::release_left() {
710  // @@protoc_insertion_point(field_release:gz.msgs.Hydra.left)
711 
712  ::gz::msgs::Hydra_Paddle* temp = left_;
713  left_ = NULL;
714  return temp;
715 }
716 inline ::gz::msgs::Hydra_Paddle* Hydra::mutable_left() {
717 
718  if (left_ == NULL) {
719  auto* p = CreateMaybeMessage<::gz::msgs::Hydra_Paddle>(GetArenaNoVirtual());
720  left_ = p;
721  }
722  // @@protoc_insertion_point(field_mutable:gz.msgs.Hydra.left)
723  return left_;
724 }
726  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
727  if (message_arena == NULL) {
728  delete left_;
729  }
730  if (left) {
731  ::google::protobuf::Arena* submessage_arena = NULL;
732  if (message_arena != submessage_arena) {
733  left = ::google::protobuf::internal::GetOwnedMessage(
734  message_arena, left, submessage_arena);
735  }
736 
737  } else {
738 
739  }
740  left_ = left;
741  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Hydra.left)
742 }
743 
744 #ifdef __GNUC__
745  #pragma GCC diagnostic pop
746 #endif // __GNUC__
747 // -------------------------------------------------------------------
748 
749 
750 // @@protoc_insertion_point(namespace_scope)
751 
752 } // namespace msgs
753 } // namespace gz
754 
755 // @@protoc_insertion_point(global_scope)
756 
757 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fhydra_2eproto