4 #ifndef PROTOBUF_ignition_2fmsgs_2fcollision_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fcollision_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 3000000 < 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. 22 #include <google/protobuf/arena.h> 23 #include <google/protobuf/arenastring.h> 24 #include <google/protobuf/generated_message_util.h> 25 #include <google/protobuf/metadata.h> 26 #include <google/protobuf/message.h> 27 #include <google/protobuf/repeated_field.h> 28 #include <google/protobuf/extension_set.h> 29 #include <google/protobuf/unknown_field_set.h> 36 #pragma GCC system_header 39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 42 #include <sys/sysmacros.h> 60 class IGNITION_MSGS_VISIBLE
Collision :
public ::google::protobuf::Message {
72 static const ::google::protobuf::Descriptor* descriptor();
73 static const Collision& default_instance();
81 Collision* New(::google::protobuf::Arena* arena)
const;
82 void CopyFrom(const ::google::protobuf::Message& from);
83 void MergeFrom(const ::google::protobuf::Message& from);
87 bool IsInitialized()
const;
90 bool MergePartialFromCodedStream(
91 ::google::protobuf::io::CodedInputStream* input);
92 void SerializeWithCachedSizes(
93 ::google::protobuf::io::CodedOutputStream* output)
const;
94 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
95 bool deterministic, ::google::protobuf::uint8* output)
const;
97 return InternalSerializeWithCachedSizesToArray(
false, output);
103 void SetCachedSize(
int size)
const;
106 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
107 return _internal_metadata_.arena();
109 inline void* MaybeArenaPtr()
const {
110 return _internal_metadata_.raw_arena_ptr();
114 ::google::protobuf::Metadata GetMetadata()
const;
121 bool has_header()
const;
123 static const int kHeaderFieldNumber = 1;
124 const ::ignition::msgs::Header& header()
const;
131 static const int kIdFieldNumber = 2;
132 ::google::protobuf::uint32 id()
const;
133 void set_id(::google::protobuf::uint32 value);
137 static const int kNameFieldNumber = 3;
138 const ::std::string& name()
const;
139 void set_name(const ::std::string& value);
140 void set_name(
const char* value);
141 void set_name(
const char* value,
size_t size);
147 void clear_laser_retro();
148 static const int kLaserRetroFieldNumber = 4;
149 double laser_retro()
const;
150 void set_laser_retro(
double value);
153 void clear_max_contacts();
154 static const int kMaxContactsFieldNumber = 5;
155 double max_contacts()
const;
156 void set_max_contacts(
double value);
159 bool has_pose()
const;
161 static const int kPoseFieldNumber = 6;
162 const ::ignition::msgs::Pose& pose()
const;
168 bool has_geometry()
const;
169 void clear_geometry();
170 static const int kGeometryFieldNumber = 7;
171 const ::ignition::msgs::Geometry& geometry()
const;
177 bool has_surface()
const;
178 void clear_surface();
179 static const int kSurfaceFieldNumber = 8;
180 const ::ignition::msgs::Surface& surface()
const;
186 int visual_size()
const;
188 static const int kVisualFieldNumber = 9;
189 const ::ignition::msgs::Visual& visual(
int index)
const;
192 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >*
194 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >&
200 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
201 bool _is_default_instance_;
203 ::google::protobuf::internal::ArenaStringPtr name_;
205 double max_contacts_;
209 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > visual_;
210 ::google::protobuf::uint32 id_;
211 mutable int _cached_size_;
216 void InitAsDefaultInstance();
224 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 229 return !_is_default_instance_ && header_ != NULL;
232 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
237 return header_ != NULL ? *header_ : *default_instance_->header_;
241 if (header_ == NULL) {
242 header_ = new ::ignition::msgs::Header;
281 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
285 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
289 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
294 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
299 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
300 ::
std::string(reinterpret_cast<const char*>(value), size));
306 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
311 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
319 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
333 laser_retro_ = value;
343 return max_contacts_;
347 max_contacts_ = value;
353 return !_is_default_instance_ && pose_ != NULL;
356 if (GetArenaNoVirtual() == NULL && pose_ != NULL)
delete pose_;
361 return pose_ != NULL ? *pose_ : *default_instance_->pose_;
366 pose_ = new ::ignition::msgs::Pose;
391 return !_is_default_instance_ && geometry_ != NULL;
394 if (GetArenaNoVirtual() == NULL && geometry_ != NULL)
delete geometry_;
399 return geometry_ != NULL ? *geometry_ : *default_instance_->geometry_;
403 if (geometry_ == NULL) {
404 geometry_ = new ::ignition::msgs::Geometry;
418 geometry_ = geometry;
429 return !_is_default_instance_ && surface_ != NULL;
432 if (GetArenaNoVirtual() == NULL && surface_ != NULL)
delete surface_;
437 return surface_ != NULL ? *surface_ : *default_instance_->surface_;
441 if (surface_ == NULL) {
442 surface_ = new ::ignition::msgs::Surface;
467 return visual_.size();
474 return visual_.Get(index);
478 return visual_.Mutable(index);
482 return visual_.Add();
484 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >*
489 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >&
495 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 511 #endif // PROTOBUF_ignition_2fmsgs_2fcollision_2eproto__INCLUDED
std::unique_ptr< const Collision > ConstCollisionUniquePtr
Definition: collision.pb.h:498
void protobuf_ShutdownFile_ignition_2fmsgs_2fcollision_2eproto()
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > * mutable_visual()
Definition: collision.pb.h:485
void clear_name()
Definition: collision.pb.h:280
::std::string * release_name()
Definition: collision.pb.h:308
std::unique_ptr< Collision > CollisionUniquePtr
Definition: collision.pb.h:497
void set_name(const ::std::string &value)
Definition: collision.pb.h:287
Collision & operator=(const Collision &from)
Definition: collision.pb.h:67
Collision * New() const
Definition: collision.pb.h:79
const ::ignition::msgs::Pose & pose() const
Definition: collision.pb.h:359
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: collision.pb.h:378
void set_allocated_header(::ignition::msgs::Header *header)
Definition: collision.pb.h:254
const ::std::string & name() const
Definition: collision.pb.h:283
const ::ignition::msgs::Header & header() const
Definition: collision.pb.h:235
bool has_pose() const
Definition: collision.pb.h:352
void clear_visual()
Definition: collision.pb.h:469
void clear_laser_retro()
Definition: collision.pb.h:324
::ignition::msgs::Surface * mutable_surface()
Definition: collision.pb.h:439
::ignition::msgs::Header * release_header()
Definition: collision.pb.h:247
double max_contacts() const
Definition: collision.pb.h:341
int visual_size() const
Definition: collision.pb.h:466
void clear_surface()
Definition: collision.pb.h:431
void set_allocated_name(::std::string *name)
Definition: collision.pb.h:313
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fcollision_2eproto()
::ignition::msgs::Header * mutable_header()
Definition: collision.pb.h:239
bool has_surface() const
Definition: collision.pb.h:428
Definition: geometry.pb.h:100
::ignition::msgs::Pose * release_pose()
Definition: collision.pb.h:371
Definition: visual.pb.h:172
std::shared_ptr< const Collision > ConstCollisionSharedPtr
Definition: collision.pb.h:500
std::shared_ptr< Collision > CollisionSharedPtr
Definition: collision.pb.h:499
const ::ignition::msgs::Surface & surface() const
Definition: collision.pb.h:435
void clear_max_contacts()
Definition: collision.pb.h:338
::ignition::msgs::Geometry * release_geometry()
Definition: collision.pb.h:409
void set_max_contacts(double value)
Definition: collision.pb.h:345
void clear_pose()
Definition: collision.pb.h:355
void clear_header()
Definition: collision.pb.h:231
::ignition::msgs::Visual * add_visual()
Definition: collision.pb.h:480
bool has_header() const
Definition: collision.pb.h:228
Definition: surface.pb.h:57
::google::protobuf::uint32 id() const
Definition: collision.pb.h:269
void set_allocated_geometry(::ignition::msgs::Geometry *geometry)
Definition: collision.pb.h:416
void clear_geometry()
Definition: collision.pb.h:393
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: collision.pb.h:96
::ignition::msgs::Pose * mutable_pose()
Definition: collision.pb.h:363
Definition: collision.pb.h:60
int GetCachedSize() const
Definition: collision.pb.h:99
void set_laser_retro(double value)
Definition: collision.pb.h:331
void set_id(::google::protobuf::uint32 value)
Definition: collision.pb.h:273
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > & visual() const
Definition: collision.pb.h:490
void clear_id()
Definition: collision.pb.h:266
void set_allocated_surface(::ignition::msgs::Surface *surface)
Definition: collision.pb.h:454
::ignition::msgs::Surface * release_surface()
Definition: collision.pb.h:447
::ignition::msgs::Geometry * mutable_geometry()
Definition: collision.pb.h:401
double laser_retro() const
Definition: collision.pb.h:327
::std::string * mutable_name()
Definition: collision.pb.h:303
bool has_geometry() const
Definition: collision.pb.h:390
void protobuf_AssignDesc_ignition_2fmsgs_2fcollision_2eproto()
const ::ignition::msgs::Geometry & geometry() const
Definition: collision.pb.h:397