Ignition Msgs

API Reference

5.8.1
sonar.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/sonar.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fsonar_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fsonar_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
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 3019000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/unknown_field_set.h>
34 #include "ignition/msgs/pose.pb.h"
37 #ifndef _MSC_VER
38 #pragma GCC system_header
39 #else
40 #pragma warning(push)
41 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
42 #endif
43 #ifdef __linux__
44 #include <sys/sysmacros.h>
45 #endif
46 #include <memory>
47 #include <ignition/msgs/Export.hh>
48 // @@protoc_insertion_point(includes)
49 #include <google/protobuf/port_def.inc>
50 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fsonar_2eproto IGNITION_MSGS_VISIBLE
51 PROTOBUF_NAMESPACE_OPEN
52 namespace internal {
53 class AnyMetadata;
54 } // namespace internal
55 PROTOBUF_NAMESPACE_CLOSE
56 
57 // Internal implementation detail -- do not use these members.
58 struct IGNITION_MSGS_VISIBLE TableStruct_ignition_2fmsgs_2fsonar_2eproto {
59  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
60  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
61  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
62  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
63  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
64  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
65  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
66  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
67  static const uint32_t offsets[];
68 };
69 IGNITION_MSGS_VISIBLE extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fsonar_2eproto;
70 namespace ignition {
71 namespace msgs {
72 class Sonar;
73 struct SonarDefaultTypeInternal;
74 IGNITION_MSGS_VISIBLE extern SonarDefaultTypeInternal _Sonar_default_instance_;
75 } // namespace msgs
76 } // namespace ignition
77 PROTOBUF_NAMESPACE_OPEN
78 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Sonar* Arena::CreateMaybeMessage<::ignition::msgs::Sonar>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
80 namespace ignition {
81 namespace msgs {
82 
83 // ===================================================================
84 
85 class IGNITION_MSGS_VISIBLE Sonar final :
86  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Sonar) */ {
87  public:
88  inline Sonar() : Sonar(nullptr) {}
89  ~Sonar() override;
90  explicit constexpr Sonar(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
91 
92  Sonar(const Sonar& from);
93  Sonar(Sonar&& from) noexcept
94  : Sonar() {
95  *this = ::std::move(from);
96  }
97 
98  inline Sonar& operator=(const Sonar& from) {
99  CopyFrom(from);
100  return *this;
101  }
102  inline Sonar& operator=(Sonar&& from) noexcept {
103  if (this == &from) return *this;
104  if (GetOwningArena() == from.GetOwningArena()
105  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
106  && GetOwningArena() != nullptr
107  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
108  ) {
109  InternalSwap(&from);
110  } else {
111  CopyFrom(from);
112  }
113  return *this;
114  }
115 
116  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
117  return GetDescriptor();
118  }
119  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
120  return default_instance().GetMetadata().descriptor;
121  }
122  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
123  return default_instance().GetMetadata().reflection;
124  }
125  static const Sonar& default_instance() {
126  return *internal_default_instance();
127  }
128  static inline const Sonar* internal_default_instance() {
129  return reinterpret_cast<const Sonar*>(
131  }
132  static constexpr int kIndexInFileMessages =
133  0;
134 
135  friend void swap(Sonar& a, Sonar& b) {
136  a.Swap(&b);
137  }
138  inline void Swap(Sonar* other) {
139  if (other == this) return;
140  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
141  if (GetOwningArena() != nullptr &&
142  GetOwningArena() == other->GetOwningArena()) {
143  #else // PROTOBUF_FORCE_COPY_IN_SWAP
144  if (GetOwningArena() == other->GetOwningArena()) {
145  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
146  InternalSwap(other);
147  } else {
148  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
149  }
150  }
151  void UnsafeArenaSwap(Sonar* other) {
152  if (other == this) return;
153  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
154  InternalSwap(other);
155  }
156 
157  // implements Message ----------------------------------------------
158 
159  Sonar* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
160  return CreateMaybeMessage<Sonar>(arena);
161  }
162  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
163  void CopyFrom(const Sonar& from);
164  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
165  void MergeFrom(const Sonar& from);
166  private:
167  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
168  public:
169  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
170  bool IsInitialized() const final;
171 
172  size_t ByteSizeLong() const final;
173  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
174  uint8_t* _InternalSerialize(
175  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
176  int GetCachedSize() const final { return _cached_size_.Get(); }
177 
178  private:
179  void SharedCtor();
180  void SharedDtor();
181  void SetCachedSize(int size) const final;
182  void InternalSwap(Sonar* other);
183 
184  private:
185  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
186  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
187  return "ignition.msgs.Sonar";
188  }
189  protected:
190  explicit Sonar(::PROTOBUF_NAMESPACE_ID::Arena* arena,
191  bool is_message_owned = false);
192  private:
193  static void ArenaDtor(void* object);
194  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
195  public:
196 
197  static const ClassData _class_data_;
198  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
199 
200  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
201 
202  // nested types ----------------------------------------------------
203 
204  // accessors -------------------------------------------------------
205 
206  enum : int {
207  kFrameFieldNumber = 2,
208  kGeometryFieldNumber = 8,
209  kHeaderFieldNumber = 1,
210  kWorldPoseFieldNumber = 3,
211  kContactFieldNumber = 9,
212  kRangeMinFieldNumber = 4,
213  kRangeMaxFieldNumber = 5,
214  kRadiusFieldNumber = 6,
215  kRangeFieldNumber = 7,
216  };
217  // string frame = 2;
218  void clear_frame();
219  const std::string& frame() const;
220  template <typename ArgT0 = const std::string&, typename... ArgT>
221  void set_frame(ArgT0&& arg0, ArgT... args);
222  std::string* mutable_frame();
223  PROTOBUF_NODISCARD std::string* release_frame();
224  void set_allocated_frame(std::string* frame);
225  private:
226  const std::string& _internal_frame() const;
227  inline PROTOBUF_ALWAYS_INLINE void _internal_set_frame(const std::string& value);
228  std::string* _internal_mutable_frame();
229  public:
230 
231  // string geometry = 8;
232  void clear_geometry();
233  const std::string& geometry() const;
234  template <typename ArgT0 = const std::string&, typename... ArgT>
235  void set_geometry(ArgT0&& arg0, ArgT... args);
236  std::string* mutable_geometry();
237  PROTOBUF_NODISCARD std::string* release_geometry();
238  void set_allocated_geometry(std::string* geometry);
239  private:
240  const std::string& _internal_geometry() const;
241  inline PROTOBUF_ALWAYS_INLINE void _internal_set_geometry(const std::string& value);
242  std::string* _internal_mutable_geometry();
243  public:
244 
245  // .ignition.msgs.Header header = 1;
246  bool has_header() const;
247  private:
248  bool _internal_has_header() const;
249  public:
250  void clear_header();
251  const ::ignition::msgs::Header& header() const;
252  PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
253  ::ignition::msgs::Header* mutable_header();
254  void set_allocated_header(::ignition::msgs::Header* header);
255  private:
256  const ::ignition::msgs::Header& _internal_header() const;
257  ::ignition::msgs::Header* _internal_mutable_header();
258  public:
259  void unsafe_arena_set_allocated_header(
260  ::ignition::msgs::Header* header);
261  ::ignition::msgs::Header* unsafe_arena_release_header();
262 
263  // .ignition.msgs.Pose world_pose = 3;
264  bool has_world_pose() const;
265  private:
266  bool _internal_has_world_pose() const;
267  public:
269  const ::ignition::msgs::Pose& world_pose() const;
270  PROTOBUF_NODISCARD ::ignition::msgs::Pose* release_world_pose();
271  ::ignition::msgs::Pose* mutable_world_pose();
272  void set_allocated_world_pose(::ignition::msgs::Pose* world_pose);
273  private:
274  const ::ignition::msgs::Pose& _internal_world_pose() const;
275  ::ignition::msgs::Pose* _internal_mutable_world_pose();
276  public:
277  void unsafe_arena_set_allocated_world_pose(
278  ::ignition::msgs::Pose* world_pose);
279  ::ignition::msgs::Pose* unsafe_arena_release_world_pose();
280 
281  // .ignition.msgs.Vector3d contact = 9;
282  bool has_contact() const;
283  private:
284  bool _internal_has_contact() const;
285  public:
287  const ::ignition::msgs::Vector3d& contact() const;
288  PROTOBUF_NODISCARD ::ignition::msgs::Vector3d* release_contact();
289  ::ignition::msgs::Vector3d* mutable_contact();
290  void set_allocated_contact(::ignition::msgs::Vector3d* contact);
291  private:
292  const ::ignition::msgs::Vector3d& _internal_contact() const;
293  ::ignition::msgs::Vector3d* _internal_mutable_contact();
294  public:
295  void unsafe_arena_set_allocated_contact(
296  ::ignition::msgs::Vector3d* contact);
297  ::ignition::msgs::Vector3d* unsafe_arena_release_contact();
298 
299  // double range_min = 4;
300  void clear_range_min();
301  double range_min() const;
302  void set_range_min(double value);
303  private:
304  double _internal_range_min() const;
305  void _internal_set_range_min(double value);
306  public:
307 
308  // double range_max = 5;
309  void clear_range_max();
310  double range_max() const;
311  void set_range_max(double value);
312  private:
313  double _internal_range_max() const;
314  void _internal_set_range_max(double value);
315  public:
316 
317  // double radius = 6;
318  void clear_radius();
319  double radius() const;
320  void set_radius(double value);
321  private:
322  double _internal_radius() const;
323  void _internal_set_radius(double value);
324  public:
325 
326  // double range = 7;
327  void clear_range();
328  double range() const;
329  void set_range(double value);
330  private:
331  double _internal_range() const;
332  void _internal_set_range(double value);
333  public:
334 
335  // @@protoc_insertion_point(class_scope:ignition.msgs.Sonar)
336  private:
337  class _Internal;
338 
339  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
340  typedef void InternalArenaConstructable_;
341  typedef void DestructorSkippable_;
342  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr frame_;
343  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr geometry_;
344  ::ignition::msgs::Header* header_;
345  ::ignition::msgs::Pose* world_pose_;
346  ::ignition::msgs::Vector3d* contact_;
347  double range_min_;
348  double range_max_;
349  double radius_;
350  double range_;
351  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
352  friend struct ::TableStruct_ignition_2fmsgs_2fsonar_2eproto;
353 };
354 // ===================================================================
355 
356 
357 // ===================================================================
358 
359 #ifdef __GNUC__
360  #pragma GCC diagnostic push
361  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
362 #endif // __GNUC__
363 // Sonar
364 
365 // .ignition.msgs.Header header = 1;
366 inline bool Sonar::_internal_has_header() const {
367  return this != internal_default_instance() && header_ != nullptr;
368 }
369 inline bool Sonar::has_header() const {
370  return _internal_has_header();
371 }
372 inline const ::ignition::msgs::Header& Sonar::_internal_header() const {
373  const ::ignition::msgs::Header* p = header_;
374  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
376 }
377 inline const ::ignition::msgs::Header& Sonar::header() const {
378  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.header)
379  return _internal_header();
380 }
382  ::ignition::msgs::Header* header) {
383  if (GetArenaForAllocation() == nullptr) {
384  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
385  }
386  header_ = header;
387  if (header) {
388 
389  } else {
390 
391  }
392  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Sonar.header)
393 }
394 inline ::ignition::msgs::Header* Sonar::release_header() {
395 
396  ::ignition::msgs::Header* temp = header_;
397  header_ = nullptr;
398 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
399  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
400  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
401  if (GetArenaForAllocation() == nullptr) { delete old; }
402 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
403  if (GetArenaForAllocation() != nullptr) {
404  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
405  }
406 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
407  return temp;
408 }
409 inline ::ignition::msgs::Header* Sonar::unsafe_arena_release_header() {
410  // @@protoc_insertion_point(field_release:ignition.msgs.Sonar.header)
411 
412  ::ignition::msgs::Header* temp = header_;
413  header_ = nullptr;
414  return temp;
415 }
416 inline ::ignition::msgs::Header* Sonar::_internal_mutable_header() {
417 
418  if (header_ == nullptr) {
419  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
420  header_ = p;
421  }
422  return header_;
423 }
424 inline ::ignition::msgs::Header* Sonar::mutable_header() {
425  ::ignition::msgs::Header* _msg = _internal_mutable_header();
426  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sonar.header)
427  return _msg;
428 }
430  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
431  if (message_arena == nullptr) {
432  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
433  }
434  if (header) {
435  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
436  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
437  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
438  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
439  if (message_arena != submessage_arena) {
440  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
441  message_arena, header, submessage_arena);
442  }
443 
444  } else {
445 
446  }
447  header_ = header;
448  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sonar.header)
449 }
450 
451 // string frame = 2;
452 inline void Sonar::clear_frame() {
453  frame_.ClearToEmpty();
454 }
455 inline const std::string& Sonar::frame() const {
456  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.frame)
457  return _internal_frame();
458 }
459 template <typename ArgT0, typename... ArgT>
460 inline PROTOBUF_ALWAYS_INLINE
461 void Sonar::set_frame(ArgT0&& arg0, ArgT... args) {
462 
463  frame_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
464  // @@protoc_insertion_point(field_set:ignition.msgs.Sonar.frame)
465 }
467  std::string* _s = _internal_mutable_frame();
468  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sonar.frame)
469  return _s;
470 }
471 inline const std::string& Sonar::_internal_frame() const {
472  return frame_.Get();
473 }
474 inline void Sonar::_internal_set_frame(const std::string& value) {
475 
476  frame_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
477 }
478 inline std::string* Sonar::_internal_mutable_frame() {
479 
480  return frame_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
481 }
483  // @@protoc_insertion_point(field_release:ignition.msgs.Sonar.frame)
484  return frame_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
485 }
487  if (frame != nullptr) {
488 
489  } else {
490 
491  }
492  frame_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), frame,
493  GetArenaForAllocation());
494 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
495  if (frame_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
496  frame_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
497  }
498 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
499  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sonar.frame)
500 }
501 
502 // .ignition.msgs.Pose world_pose = 3;
503 inline bool Sonar::_internal_has_world_pose() const {
504  return this != internal_default_instance() && world_pose_ != nullptr;
505 }
506 inline bool Sonar::has_world_pose() const {
507  return _internal_has_world_pose();
508 }
509 inline const ::ignition::msgs::Pose& Sonar::_internal_world_pose() const {
510  const ::ignition::msgs::Pose* p = world_pose_;
511  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Pose&>(
513 }
514 inline const ::ignition::msgs::Pose& Sonar::world_pose() const {
515  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.world_pose)
516  return _internal_world_pose();
517 }
519  ::ignition::msgs::Pose* world_pose) {
520  if (GetArenaForAllocation() == nullptr) {
521  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_pose_);
522  }
523  world_pose_ = world_pose;
524  if (world_pose) {
525 
526  } else {
527 
528  }
529  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Sonar.world_pose)
530 }
531 inline ::ignition::msgs::Pose* Sonar::release_world_pose() {
532 
533  ::ignition::msgs::Pose* temp = world_pose_;
534  world_pose_ = nullptr;
535 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
536  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
537  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
538  if (GetArenaForAllocation() == nullptr) { delete old; }
539 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
540  if (GetArenaForAllocation() != nullptr) {
541  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
542  }
543 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
544  return temp;
545 }
546 inline ::ignition::msgs::Pose* Sonar::unsafe_arena_release_world_pose() {
547  // @@protoc_insertion_point(field_release:ignition.msgs.Sonar.world_pose)
548 
549  ::ignition::msgs::Pose* temp = world_pose_;
550  world_pose_ = nullptr;
551  return temp;
552 }
553 inline ::ignition::msgs::Pose* Sonar::_internal_mutable_world_pose() {
554 
555  if (world_pose_ == nullptr) {
556  auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaForAllocation());
557  world_pose_ = p;
558  }
559  return world_pose_;
560 }
561 inline ::ignition::msgs::Pose* Sonar::mutable_world_pose() {
562  ::ignition::msgs::Pose* _msg = _internal_mutable_world_pose();
563  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sonar.world_pose)
564  return _msg;
565 }
567  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
568  if (message_arena == nullptr) {
569  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_pose_);
570  }
571  if (world_pose) {
572  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
573  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
574  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
575  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_pose));
576  if (message_arena != submessage_arena) {
577  world_pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
578  message_arena, world_pose, submessage_arena);
579  }
580 
581  } else {
582 
583  }
584  world_pose_ = world_pose;
585  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sonar.world_pose)
586 }
587 
588 // double range_min = 4;
589 inline void Sonar::clear_range_min() {
590  range_min_ = 0;
591 }
592 inline double Sonar::_internal_range_min() const {
593  return range_min_;
594 }
595 inline double Sonar::range_min() const {
596  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.range_min)
597  return _internal_range_min();
598 }
599 inline void Sonar::_internal_set_range_min(double value) {
600 
601  range_min_ = value;
602 }
603 inline void Sonar::set_range_min(double value) {
604  _internal_set_range_min(value);
605  // @@protoc_insertion_point(field_set:ignition.msgs.Sonar.range_min)
606 }
607 
608 // double range_max = 5;
609 inline void Sonar::clear_range_max() {
610  range_max_ = 0;
611 }
612 inline double Sonar::_internal_range_max() const {
613  return range_max_;
614 }
615 inline double Sonar::range_max() const {
616  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.range_max)
617  return _internal_range_max();
618 }
619 inline void Sonar::_internal_set_range_max(double value) {
620 
621  range_max_ = value;
622 }
623 inline void Sonar::set_range_max(double value) {
624  _internal_set_range_max(value);
625  // @@protoc_insertion_point(field_set:ignition.msgs.Sonar.range_max)
626 }
627 
628 // double radius = 6;
629 inline void Sonar::clear_radius() {
630  radius_ = 0;
631 }
632 inline double Sonar::_internal_radius() const {
633  return radius_;
634 }
635 inline double Sonar::radius() const {
636  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.radius)
637  return _internal_radius();
638 }
639 inline void Sonar::_internal_set_radius(double value) {
640 
641  radius_ = value;
642 }
643 inline void Sonar::set_radius(double value) {
644  _internal_set_radius(value);
645  // @@protoc_insertion_point(field_set:ignition.msgs.Sonar.radius)
646 }
647 
648 // double range = 7;
649 inline void Sonar::clear_range() {
650  range_ = 0;
651 }
652 inline double Sonar::_internal_range() const {
653  return range_;
654 }
655 inline double Sonar::range() const {
656  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.range)
657  return _internal_range();
658 }
659 inline void Sonar::_internal_set_range(double value) {
660 
661  range_ = value;
662 }
663 inline void Sonar::set_range(double value) {
664  _internal_set_range(value);
665  // @@protoc_insertion_point(field_set:ignition.msgs.Sonar.range)
666 }
667 
668 // string geometry = 8;
669 inline void Sonar::clear_geometry() {
670  geometry_.ClearToEmpty();
671 }
672 inline const std::string& Sonar::geometry() const {
673  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.geometry)
674  return _internal_geometry();
675 }
676 template <typename ArgT0, typename... ArgT>
677 inline PROTOBUF_ALWAYS_INLINE
678 void Sonar::set_geometry(ArgT0&& arg0, ArgT... args) {
679 
680  geometry_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
681  // @@protoc_insertion_point(field_set:ignition.msgs.Sonar.geometry)
682 }
684  std::string* _s = _internal_mutable_geometry();
685  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sonar.geometry)
686  return _s;
687 }
688 inline const std::string& Sonar::_internal_geometry() const {
689  return geometry_.Get();
690 }
691 inline void Sonar::_internal_set_geometry(const std::string& value) {
692 
693  geometry_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
694 }
695 inline std::string* Sonar::_internal_mutable_geometry() {
696 
697  return geometry_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
698 }
700  // @@protoc_insertion_point(field_release:ignition.msgs.Sonar.geometry)
701  return geometry_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
702 }
704  if (geometry != nullptr) {
705 
706  } else {
707 
708  }
709  geometry_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), geometry,
710  GetArenaForAllocation());
711 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
712  if (geometry_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
713  geometry_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
714  }
715 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
716  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sonar.geometry)
717 }
718 
719 // .ignition.msgs.Vector3d contact = 9;
720 inline bool Sonar::_internal_has_contact() const {
721  return this != internal_default_instance() && contact_ != nullptr;
722 }
723 inline bool Sonar::has_contact() const {
724  return _internal_has_contact();
725 }
726 inline const ::ignition::msgs::Vector3d& Sonar::_internal_contact() const {
727  const ::ignition::msgs::Vector3d* p = contact_;
728  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Vector3d&>(
730 }
731 inline const ::ignition::msgs::Vector3d& Sonar::contact() const {
732  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.contact)
733  return _internal_contact();
734 }
736  ::ignition::msgs::Vector3d* contact) {
737  if (GetArenaForAllocation() == nullptr) {
738  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contact_);
739  }
740  contact_ = contact;
741  if (contact) {
742 
743  } else {
744 
745  }
746  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Sonar.contact)
747 }
748 inline ::ignition::msgs::Vector3d* Sonar::release_contact() {
749 
750  ::ignition::msgs::Vector3d* temp = contact_;
751  contact_ = nullptr;
752 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
753  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
754  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
755  if (GetArenaForAllocation() == nullptr) { delete old; }
756 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
757  if (GetArenaForAllocation() != nullptr) {
758  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
759  }
760 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
761  return temp;
762 }
763 inline ::ignition::msgs::Vector3d* Sonar::unsafe_arena_release_contact() {
764  // @@protoc_insertion_point(field_release:ignition.msgs.Sonar.contact)
765 
766  ::ignition::msgs::Vector3d* temp = contact_;
767  contact_ = nullptr;
768  return temp;
769 }
770 inline ::ignition::msgs::Vector3d* Sonar::_internal_mutable_contact() {
771 
772  if (contact_ == nullptr) {
773  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaForAllocation());
774  contact_ = p;
775  }
776  return contact_;
777 }
778 inline ::ignition::msgs::Vector3d* Sonar::mutable_contact() {
779  ::ignition::msgs::Vector3d* _msg = _internal_mutable_contact();
780  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sonar.contact)
781  return _msg;
782 }
784  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
785  if (message_arena == nullptr) {
786  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(contact_);
787  }
788  if (contact) {
789  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
790  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
791  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
792  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contact));
793  if (message_arena != submessage_arena) {
794  contact = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
795  message_arena, contact, submessage_arena);
796  }
797 
798  } else {
799 
800  }
801  contact_ = contact;
802  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sonar.contact)
803 }
804 
805 #ifdef __GNUC__
806  #pragma GCC diagnostic pop
807 #endif // __GNUC__
808 
813 // @@protoc_insertion_point(namespace_scope)
814 
815 } // namespace msgs
816 } // namespace ignition
817 
818 #ifdef _MSC_VER
819 #pragma warning(pop)
820 #endif
821 // @@protoc_insertion_point(global_scope)
822 
823 #include <google/protobuf/port_undef.inc>
824 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fsonar_2eproto
Definition: header.pb.h:265
Definition: pose.pb.h:86
Definition: sonar.pb.h:86
void set_allocated_world_pose(::ignition::msgs::Pose *world_pose)
Definition: sonar.pb.h:566
std::string * mutable_frame()
Definition: sonar.pb.h:466
void set_range_max(double value)
Definition: sonar.pb.h:623
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: sonar.pb.h:122
void set_frame(ArgT0 &&arg0, ArgT... args)
bool has_header() const
Definition: sonar.pb.h:369
::ignition::msgs::Header * mutable_header()
Definition: sonar.pb.h:424
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void unsafe_arena_set_allocated_contact(::ignition::msgs::Vector3d *contact)
Definition: sonar.pb.h:735
void clear_range_max()
Definition: sonar.pb.h:609
void set_geometry(ArgT0 &&arg0, ArgT... args)
PROTOBUF_NODISCARD std::string * release_geometry()
Definition: sonar.pb.h:699
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: sonar.pb.h:116
void clear_radius()
Definition: sonar.pb.h:629
double radius() const
Definition: sonar.pb.h:635
const std::string & frame() const
Definition: sonar.pb.h:455
double range_max() const
Definition: sonar.pb.h:615
PROTOBUF_NODISCARD ::ignition::msgs::Pose * release_world_pose()
Definition: sonar.pb.h:531
double range() const
Definition: sonar.pb.h:655
void set_allocated_frame(std::string *frame)
Definition: sonar.pb.h:486
void unsafe_arena_set_allocated_world_pose(::ignition::msgs::Pose *world_pose)
Definition: sonar.pb.h:518
void UnsafeArenaSwap(Sonar *other)
Definition: sonar.pb.h:151
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: sonar.pb.h:381
Sonar(Sonar &&from) noexcept
Definition: sonar.pb.h:93
::ignition::msgs::Pose * unsafe_arena_release_world_pose()
Definition: sonar.pb.h:546
friend void swap(Sonar &a, Sonar &b)
Definition: sonar.pb.h:135
::ignition::msgs::Pose * mutable_world_pose()
Definition: sonar.pb.h:561
Sonar(const Sonar &from)
void clear_range_min()
Definition: sonar.pb.h:589
const ::ignition::msgs::Pose & world_pose() const
Definition: sonar.pb.h:514
::ignition::msgs::Vector3d * mutable_contact()
Definition: sonar.pb.h:778
void set_allocated_contact(::ignition::msgs::Vector3d *contact)
Definition: sonar.pb.h:783
void set_range_min(double value)
Definition: sonar.pb.h:603
void set_radius(double value)
Definition: sonar.pb.h:643
const std::string & geometry() const
Definition: sonar.pb.h:672
bool has_world_pose() const
Definition: sonar.pb.h:506
void set_allocated_geometry(std::string *geometry)
Definition: sonar.pb.h:703
void CopyFrom(const Sonar &from)
void set_allocated_header(::ignition::msgs::Header *header)
Definition: sonar.pb.h:429
void clear_frame()
Definition: sonar.pb.h:452
Sonar * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: sonar.pb.h:159
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: sonar.pb.h:394
PROTOBUF_NODISCARD std::string * release_frame()
Definition: sonar.pb.h:482
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void clear_range()
Definition: sonar.pb.h:649
void MergeFrom(const Sonar &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: sonar.pb.h:119
static const Sonar * internal_default_instance()
Definition: sonar.pb.h:128
void Swap(Sonar *other)
Definition: sonar.pb.h:138
void set_range(double value)
Definition: sonar.pb.h:663
PROTOBUF_NODISCARD ::ignition::msgs::Vector3d * release_contact()
Definition: sonar.pb.h:748
const ::ignition::msgs::Header & header() const
Definition: sonar.pb.h:377
Sonar()
Definition: sonar.pb.h:88
void clear_geometry()
Definition: sonar.pb.h:669
::ignition::msgs::Vector3d * unsafe_arena_release_contact()
Definition: sonar.pb.h:763
Sonar(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const ClassData _class_data_
Definition: sonar.pb.h:197
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: sonar.pb.h:409
const ::ignition::msgs::Vector3d & contact() const
Definition: sonar.pb.h:731
std::string * mutable_geometry()
Definition: sonar.pb.h:683
Sonar & operator=(const Sonar &from)
Definition: sonar.pb.h:98
bool has_contact() const
Definition: sonar.pb.h:723
static const Sonar & default_instance()
Definition: sonar.pb.h:125
constexpr Sonar(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
double range_min() const
Definition: sonar.pb.h:595
Sonar & operator=(Sonar &&from) noexcept
Definition: sonar.pb.h:102
Definition: vector3d.pb.h:84
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
std::shared_ptr< Sonar > SonarSharedPtr
Definition: sonar.pb.h:811
std::shared_ptr< const Sonar > ConstSonarSharedPtr
Definition: sonar.pb.h:812
IGNITION_MSGS_VISIBLE SonarDefaultTypeInternal _Sonar_default_instance_
std::unique_ptr< const Sonar > ConstSonarUniquePtr
Definition: sonar.pb.h:810
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< Sonar > SonarUniquePtr
Definition: sonar.pb.h:809
IGNITION_MSGS_VISIBLE PoseDefaultTypeInternal _Pose_default_instance_
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fsonar_2eproto
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)