Gazebo Msgs

API Reference

9.5.1
sonar.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/sonar.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fsonar_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fsonar_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/vector3d.pb.h"
35 #include "gz/msgs/header.pb.h"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fsonar_2eproto GZ_MSGS_VISIBLE
38 
40 // Internal implementation detail -- do not use these members.
41 struct GZ_MSGS_VISIBLE TableStruct {
42  static const ::google::protobuf::internal::ParseTableField entries[];
43  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44  static const ::google::protobuf::internal::ParseTable schema[1];
45  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46  static const ::google::protobuf::internal::SerializationTable serialization_table[];
47  static const ::google::protobuf::uint32 offsets[];
48 };
49 void GZ_MSGS_VISIBLE AddDescriptors();
50 } // namespace protobuf_gz_2fmsgs_2fsonar_2eproto
51 namespace gz {
52 namespace msgs {
53 class Sonar;
54 class SonarDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern SonarDefaultTypeInternal _Sonar_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::Sonar* Arena::CreateMaybeMessage<::gz::msgs::Sonar>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
66 // ===================================================================
67 
68 class GZ_MSGS_VISIBLE Sonar : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Sonar) */ {
69  public:
70  Sonar();
71  virtual ~Sonar();
72 
73  Sonar(const Sonar& from);
74 
75  inline Sonar& operator=(const Sonar& from) {
76  CopyFrom(from);
77  return *this;
78  }
79  #if LANG_CXX11
80  Sonar(Sonar&& from) noexcept
81  : Sonar() {
82  *this = ::std::move(from);
83  }
84 
85  inline Sonar& operator=(Sonar&& from) noexcept {
86  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87  if (this != &from) InternalSwap(&from);
88  } else {
89  CopyFrom(from);
90  }
91  return *this;
92  }
93  #endif
94  static const ::google::protobuf::Descriptor* descriptor();
95  static const Sonar& default_instance();
96 
97  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
98  static inline const Sonar* internal_default_instance() {
99  return reinterpret_cast<const Sonar*>(
101  }
102  static constexpr int kIndexInFileMessages =
103  0;
104 
105  void Swap(Sonar* other);
106  friend void swap(Sonar& a, Sonar& b) {
107  a.Swap(&b);
108  }
109 
110  // implements Message ----------------------------------------------
111 
112  inline Sonar* New() const final {
113  return CreateMaybeMessage<Sonar>(NULL);
114  }
115 
116  Sonar* New(::google::protobuf::Arena* arena) const final {
117  return CreateMaybeMessage<Sonar>(arena);
118  }
119  void CopyFrom(const ::google::protobuf::Message& from) final;
120  void MergeFrom(const ::google::protobuf::Message& from) final;
121  void CopyFrom(const Sonar& from);
122  void MergeFrom(const Sonar& from);
123  void Clear() final;
124  bool IsInitialized() const final;
125 
126  size_t ByteSizeLong() const final;
127  bool MergePartialFromCodedStream(
128  ::google::protobuf::io::CodedInputStream* input) final;
129  void SerializeWithCachedSizes(
130  ::google::protobuf::io::CodedOutputStream* output) const final;
131  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132  bool deterministic, ::google::protobuf::uint8* target) const final;
133  int GetCachedSize() const final { return _cached_size_.Get(); }
134 
135  private:
136  void SharedCtor();
137  void SharedDtor();
138  void SetCachedSize(int size) const final;
139  void InternalSwap(Sonar* other);
140  private:
141  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
142  return NULL;
143  }
144  inline void* MaybeArenaPtr() const {
145  return NULL;
146  }
147  public:
148 
149  ::google::protobuf::Metadata GetMetadata() const final;
150 
151  // nested types ----------------------------------------------------
152 
153  // accessors -------------------------------------------------------
154 
155  // string frame = 2;
156  void clear_frame();
157  static const int kFrameFieldNumber = 2;
158  const ::std::string& frame() const;
159  void set_frame(const ::std::string& value);
160  #if LANG_CXX11
161  void set_frame(::std::string&& value);
162  #endif
163  void set_frame(const char* value);
164  void set_frame(const char* value, size_t size);
165  ::std::string* mutable_frame();
166  ::std::string* release_frame();
167  void set_allocated_frame(::std::string* frame);
168 
169  // string geometry = 8;
170  void clear_geometry();
171  static const int kGeometryFieldNumber = 8;
172  const ::std::string& geometry() const;
173  void set_geometry(const ::std::string& value);
174  #if LANG_CXX11
175  void set_geometry(::std::string&& value);
176  #endif
177  void set_geometry(const char* value);
178  void set_geometry(const char* value, size_t size);
179  ::std::string* mutable_geometry();
180  ::std::string* release_geometry();
181  void set_allocated_geometry(::std::string* geometry);
182 
183  // .gz.msgs.Header header = 1;
184  bool has_header() const;
185  void clear_header();
186  static const int kHeaderFieldNumber = 1;
187  private:
188  const ::gz::msgs::Header& _internal_header() const;
189  public:
190  const ::gz::msgs::Header& header() const;
191  ::gz::msgs::Header* release_header();
192  ::gz::msgs::Header* mutable_header();
193  void set_allocated_header(::gz::msgs::Header* header);
194 
195  // .gz.msgs.Pose world_pose = 3;
196  bool has_world_pose() const;
197  void clear_world_pose();
198  static const int kWorldPoseFieldNumber = 3;
199  private:
200  const ::gz::msgs::Pose& _internal_world_pose() const;
201  public:
202  const ::gz::msgs::Pose& world_pose() const;
203  ::gz::msgs::Pose* release_world_pose();
204  ::gz::msgs::Pose* mutable_world_pose();
205  void set_allocated_world_pose(::gz::msgs::Pose* world_pose);
206 
207  // .gz.msgs.Vector3d contact = 9;
208  bool has_contact() const;
209  void clear_contact();
210  static const int kContactFieldNumber = 9;
211  private:
212  const ::gz::msgs::Vector3d& _internal_contact() const;
213  public:
214  const ::gz::msgs::Vector3d& contact() const;
215  ::gz::msgs::Vector3d* release_contact();
216  ::gz::msgs::Vector3d* mutable_contact();
217  void set_allocated_contact(::gz::msgs::Vector3d* contact);
218 
219  // double range_min = 4;
220  void clear_range_min();
221  static const int kRangeMinFieldNumber = 4;
222  double range_min() const;
223  void set_range_min(double value);
224 
225  // double range_max = 5;
226  void clear_range_max();
227  static const int kRangeMaxFieldNumber = 5;
228  double range_max() const;
229  void set_range_max(double value);
230 
231  // double radius = 6;
232  void clear_radius();
233  static const int kRadiusFieldNumber = 6;
234  double radius() const;
235  void set_radius(double value);
236 
237  // double range = 7;
238  void clear_range();
239  static const int kRangeFieldNumber = 7;
240  double range() const;
241  void set_range(double value);
242 
243  // @@protoc_insertion_point(class_scope:gz.msgs.Sonar)
244  private:
245 
246  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
247  ::google::protobuf::internal::ArenaStringPtr frame_;
248  ::google::protobuf::internal::ArenaStringPtr geometry_;
249  ::gz::msgs::Header* header_;
250  ::gz::msgs::Pose* world_pose_;
251  ::gz::msgs::Vector3d* contact_;
252  double range_min_;
253  double range_max_;
254  double radius_;
255  double range_;
256  mutable ::google::protobuf::internal::CachedSize _cached_size_;
257  friend struct ::protobuf_gz_2fmsgs_2fsonar_2eproto::TableStruct;
258 };
259 // ===================================================================
260 
261 
262 // ===================================================================
263 
264 #ifdef __GNUC__
265  #pragma GCC diagnostic push
266  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
267 #endif // __GNUC__
268 // Sonar
269 
270 // .gz.msgs.Header header = 1;
271 inline bool Sonar::has_header() const {
272  return this != internal_default_instance() && header_ != NULL;
273 }
274 inline const ::gz::msgs::Header& Sonar::_internal_header() const {
275  return *header_;
276 }
277 inline const ::gz::msgs::Header& Sonar::header() const {
278  const ::gz::msgs::Header* p = header_;
279  // @@protoc_insertion_point(field_get:gz.msgs.Sonar.header)
280  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
282 }
283 inline ::gz::msgs::Header* Sonar::release_header() {
284  // @@protoc_insertion_point(field_release:gz.msgs.Sonar.header)
285 
286  ::gz::msgs::Header* temp = header_;
287  header_ = NULL;
288  return temp;
289 }
290 inline ::gz::msgs::Header* Sonar::mutable_header() {
291 
292  if (header_ == NULL) {
293  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
294  header_ = p;
295  }
296  // @@protoc_insertion_point(field_mutable:gz.msgs.Sonar.header)
297  return header_;
298 }
300  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
301  if (message_arena == NULL) {
302  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
303  }
304  if (header) {
305  ::google::protobuf::Arena* submessage_arena = NULL;
306  if (message_arena != submessage_arena) {
307  header = ::google::protobuf::internal::GetOwnedMessage(
308  message_arena, header, submessage_arena);
309  }
310 
311  } else {
312 
313  }
314  header_ = header;
315  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sonar.header)
316 }
317 
318 // string frame = 2;
319 inline void Sonar::clear_frame() {
320  frame_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
321 }
322 inline const ::std::string& Sonar::frame() const {
323  // @@protoc_insertion_point(field_get:gz.msgs.Sonar.frame)
324  return frame_.GetNoArena();
325 }
326 inline void Sonar::set_frame(const ::std::string& value) {
327 
328  frame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
329  // @@protoc_insertion_point(field_set:gz.msgs.Sonar.frame)
330 }
331 #if LANG_CXX11
332 inline void Sonar::set_frame(::std::string&& value) {
333 
334  frame_.SetNoArena(
335  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
336  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Sonar.frame)
337 }
338 #endif
339 inline void Sonar::set_frame(const char* value) {
340  GOOGLE_DCHECK(value != NULL);
341 
342  frame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
343  // @@protoc_insertion_point(field_set_char:gz.msgs.Sonar.frame)
344 }
345 inline void Sonar::set_frame(const char* value, size_t size) {
346 
347  frame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
348  ::std::string(reinterpret_cast<const char*>(value), size));
349  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Sonar.frame)
350 }
351 inline ::std::string* Sonar::mutable_frame() {
352 
353  // @@protoc_insertion_point(field_mutable:gz.msgs.Sonar.frame)
354  return frame_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
355 }
356 inline ::std::string* Sonar::release_frame() {
357  // @@protoc_insertion_point(field_release:gz.msgs.Sonar.frame)
358 
359  return frame_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
360 }
362  if (frame != NULL) {
363 
364  } else {
365 
366  }
367  frame_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), frame);
368  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sonar.frame)
369 }
370 
371 // .gz.msgs.Pose world_pose = 3;
372 inline bool Sonar::has_world_pose() const {
373  return this != internal_default_instance() && world_pose_ != NULL;
374 }
375 inline const ::gz::msgs::Pose& Sonar::_internal_world_pose() const {
376  return *world_pose_;
377 }
378 inline const ::gz::msgs::Pose& Sonar::world_pose() const {
379  const ::gz::msgs::Pose* p = world_pose_;
380  // @@protoc_insertion_point(field_get:gz.msgs.Sonar.world_pose)
381  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Pose*>(
383 }
384 inline ::gz::msgs::Pose* Sonar::release_world_pose() {
385  // @@protoc_insertion_point(field_release:gz.msgs.Sonar.world_pose)
386 
387  ::gz::msgs::Pose* temp = world_pose_;
388  world_pose_ = NULL;
389  return temp;
390 }
391 inline ::gz::msgs::Pose* Sonar::mutable_world_pose() {
392 
393  if (world_pose_ == NULL) {
394  auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
395  world_pose_ = p;
396  }
397  // @@protoc_insertion_point(field_mutable:gz.msgs.Sonar.world_pose)
398  return world_pose_;
399 }
401  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
402  if (message_arena == NULL) {
403  delete reinterpret_cast< ::google::protobuf::MessageLite*>(world_pose_);
404  }
405  if (world_pose) {
406  ::google::protobuf::Arena* submessage_arena = NULL;
407  if (message_arena != submessage_arena) {
408  world_pose = ::google::protobuf::internal::GetOwnedMessage(
409  message_arena, world_pose, submessage_arena);
410  }
411 
412  } else {
413 
414  }
415  world_pose_ = world_pose;
416  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sonar.world_pose)
417 }
418 
419 // double range_min = 4;
420 inline void Sonar::clear_range_min() {
421  range_min_ = 0;
422 }
423 inline double Sonar::range_min() const {
424  // @@protoc_insertion_point(field_get:gz.msgs.Sonar.range_min)
425  return range_min_;
426 }
427 inline void Sonar::set_range_min(double value) {
428 
429  range_min_ = value;
430  // @@protoc_insertion_point(field_set:gz.msgs.Sonar.range_min)
431 }
432 
433 // double range_max = 5;
434 inline void Sonar::clear_range_max() {
435  range_max_ = 0;
436 }
437 inline double Sonar::range_max() const {
438  // @@protoc_insertion_point(field_get:gz.msgs.Sonar.range_max)
439  return range_max_;
440 }
441 inline void Sonar::set_range_max(double value) {
442 
443  range_max_ = value;
444  // @@protoc_insertion_point(field_set:gz.msgs.Sonar.range_max)
445 }
446 
447 // double radius = 6;
448 inline void Sonar::clear_radius() {
449  radius_ = 0;
450 }
451 inline double Sonar::radius() const {
452  // @@protoc_insertion_point(field_get:gz.msgs.Sonar.radius)
453  return radius_;
454 }
455 inline void Sonar::set_radius(double value) {
456 
457  radius_ = value;
458  // @@protoc_insertion_point(field_set:gz.msgs.Sonar.radius)
459 }
460 
461 // double range = 7;
462 inline void Sonar::clear_range() {
463  range_ = 0;
464 }
465 inline double Sonar::range() const {
466  // @@protoc_insertion_point(field_get:gz.msgs.Sonar.range)
467  return range_;
468 }
469 inline void Sonar::set_range(double value) {
470 
471  range_ = value;
472  // @@protoc_insertion_point(field_set:gz.msgs.Sonar.range)
473 }
474 
475 // string geometry = 8;
476 inline void Sonar::clear_geometry() {
477  geometry_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
478 }
479 inline const ::std::string& Sonar::geometry() const {
480  // @@protoc_insertion_point(field_get:gz.msgs.Sonar.geometry)
481  return geometry_.GetNoArena();
482 }
483 inline void Sonar::set_geometry(const ::std::string& value) {
484 
485  geometry_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
486  // @@protoc_insertion_point(field_set:gz.msgs.Sonar.geometry)
487 }
488 #if LANG_CXX11
489 inline void Sonar::set_geometry(::std::string&& value) {
490 
491  geometry_.SetNoArena(
492  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
493  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Sonar.geometry)
494 }
495 #endif
496 inline void Sonar::set_geometry(const char* value) {
497  GOOGLE_DCHECK(value != NULL);
498 
499  geometry_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
500  // @@protoc_insertion_point(field_set_char:gz.msgs.Sonar.geometry)
501 }
502 inline void Sonar::set_geometry(const char* value, size_t size) {
503 
504  geometry_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
505  ::std::string(reinterpret_cast<const char*>(value), size));
506  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Sonar.geometry)
507 }
508 inline ::std::string* Sonar::mutable_geometry() {
509 
510  // @@protoc_insertion_point(field_mutable:gz.msgs.Sonar.geometry)
511  return geometry_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
512 }
513 inline ::std::string* Sonar::release_geometry() {
514  // @@protoc_insertion_point(field_release:gz.msgs.Sonar.geometry)
515 
516  return geometry_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
517 }
518 inline void Sonar::set_allocated_geometry(::std::string* geometry) {
519  if (geometry != NULL) {
520 
521  } else {
522 
523  }
524  geometry_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), geometry);
525  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sonar.geometry)
526 }
527 
528 // .gz.msgs.Vector3d contact = 9;
529 inline bool Sonar::has_contact() const {
530  return this != internal_default_instance() && contact_ != NULL;
531 }
532 inline const ::gz::msgs::Vector3d& Sonar::_internal_contact() const {
533  return *contact_;
534 }
535 inline const ::gz::msgs::Vector3d& Sonar::contact() const {
536  const ::gz::msgs::Vector3d* p = contact_;
537  // @@protoc_insertion_point(field_get:gz.msgs.Sonar.contact)
538  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
540 }
541 inline ::gz::msgs::Vector3d* Sonar::release_contact() {
542  // @@protoc_insertion_point(field_release:gz.msgs.Sonar.contact)
543 
544  ::gz::msgs::Vector3d* temp = contact_;
545  contact_ = NULL;
546  return temp;
547 }
548 inline ::gz::msgs::Vector3d* Sonar::mutable_contact() {
549 
550  if (contact_ == NULL) {
551  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
552  contact_ = p;
553  }
554  // @@protoc_insertion_point(field_mutable:gz.msgs.Sonar.contact)
555  return contact_;
556 }
558  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
559  if (message_arena == NULL) {
560  delete reinterpret_cast< ::google::protobuf::MessageLite*>(contact_);
561  }
562  if (contact) {
563  ::google::protobuf::Arena* submessage_arena = NULL;
564  if (message_arena != submessage_arena) {
565  contact = ::google::protobuf::internal::GetOwnedMessage(
566  message_arena, contact, submessage_arena);
567  }
568 
569  } else {
570 
571  }
572  contact_ = contact;
573  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sonar.contact)
574 }
575 
576 #ifdef __GNUC__
577  #pragma GCC diagnostic pop
578 #endif // __GNUC__
579 
580 // @@protoc_insertion_point(namespace_scope)
581 
582 } // namespace msgs
583 } // namespace gz
584 
585 // @@protoc_insertion_point(global_scope)
586 
587 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fsonar_2eproto