Gazebo Msgs

API Reference

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