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