4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fcollision_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fcollision_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
39 #pragma GCC system_header
42 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
45 #include <sys/sysmacros.h>
50 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fcollision_2eproto IGNITION_MSGS_VISIBLE
55 static const ::google::protobuf::internal::ParseTableField entries[];
56 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
57 static const ::google::protobuf::internal::ParseTable schema[1];
58 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
59 static const ::google::protobuf::internal::SerializationTable serialization_table[];
60 static const ::google::protobuf::uint32 offsets[];
67 class CollisionDefaultTypeInternal;
73 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Collision* Arena::CreateMaybeMessage<::ignition::msgs::Collision>(Arena*);
81 class IGNITION_MSGS_VISIBLE
Collision :
public ::google::protobuf::Message {
95 *
this = ::std::move(from);
98 inline Collision& operator=(Collision&& from) noexcept {
99 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
100 if (
this != &from) InternalSwap(&from);
107 static const ::google::protobuf::Descriptor* descriptor();
108 static const Collision& default_instance();
110 static void InitAsDefaultInstance();
112 return reinterpret_cast<const Collision*
>(
115 static constexpr
int kIndexInFileMessages =
126 return CreateMaybeMessage<Collision>(NULL);
130 return CreateMaybeMessage<Collision>(arena);
132 void CopyFrom(const ::google::protobuf::Message& from)
final;
133 void MergeFrom(const ::google::protobuf::Message& from)
final;
137 bool IsInitialized() const final;
139 size_t ByteSizeLong() const final;
140 bool MergePartialFromCodedStream(
141 ::
google::protobuf::io::CodedInputStream* input) final;
142 void SerializeWithCachedSizes(
143 ::
google::protobuf::io::CodedOutputStream* output) const final;
144 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
145 bool deterministic, ::
google::protobuf::uint8* target) const final;
146 int GetCachedSize() const final {
return _cached_size_.Get(); }
151 void SetCachedSize(
int size)
const final;
154 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
157 inline void* MaybeArenaPtr()
const {
162 ::google::protobuf::Metadata GetMetadata() const final;
169 int visual_size() const;
171 static const
int kVisualFieldNumber = 9;
182 static const
int kNameFieldNumber = 3;
183 const ::
std::
string& name() const;
184 void set_name(const ::
std::
string& value);
188 void set_name(
const char* value);
189 void set_name(
const char* value,
size_t size);
195 bool has_header()
const;
197 static const int kHeaderFieldNumber = 1;
199 const ::ignition::msgs::Header& _internal_header()
const;
201 const ::ignition::msgs::Header& header()
const;
207 bool has_pose()
const;
209 static const int kPoseFieldNumber = 6;
211 const ::ignition::msgs::Pose& _internal_pose()
const;
213 const ::ignition::msgs::Pose& pose()
const;
219 bool has_geometry()
const;
220 void clear_geometry();
221 static const int kGeometryFieldNumber = 7;
223 const ::ignition::msgs::Geometry& _internal_geometry()
const;
225 const ::ignition::msgs::Geometry& geometry()
const;
231 bool has_surface()
const;
232 void clear_surface();
233 static const int kSurfaceFieldNumber = 8;
235 const ::ignition::msgs::Surface& _internal_surface()
const;
237 const ::ignition::msgs::Surface& surface()
const;
243 void clear_laser_retro();
244 static const int kLaserRetroFieldNumber = 4;
245 double laser_retro()
const;
246 void set_laser_retro(
double value);
249 void clear_max_contacts();
250 static const int kMaxContactsFieldNumber = 5;
251 double max_contacts()
const;
252 void set_max_contacts(
double value);
256 static const int kIdFieldNumber = 2;
257 ::google::protobuf::uint32 id()
const;
258 void set_id(::google::protobuf::uint32 value);
263 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
264 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > visual_;
265 ::google::protobuf::internal::ArenaStringPtr name_;
271 double max_contacts_;
272 ::google::protobuf::uint32 id_;
273 mutable ::google::protobuf::internal::CachedSize _cached_size_;
274 friend struct ::protobuf_ignition_2fmsgs_2fcollision_2eproto::TableStruct;
282 #pragma GCC diagnostic push
283 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
291 inline const ::ignition::msgs::Header& Collision::_internal_header()
const {
295 const ::ignition::msgs::Header* p = header_;
309 if (header_ == NULL) {
310 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
317 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
318 if (message_arena == NULL) {
319 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
322 ::google::protobuf::Arena* submessage_arena = NULL;
323 if (message_arena != submessage_arena) {
324 header = ::google::protobuf::internal::GetOwnedMessage(
325 message_arena,
header, submessage_arena);
351 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
355 return name_.GetNoArena();
359 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
366 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
371 GOOGLE_DCHECK(value != NULL);
373 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
378 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
379 ::
std::string(
reinterpret_cast<const char*
>(value), size));
385 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
390 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
398 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
412 laser_retro_ = value;
422 return max_contacts_;
426 max_contacts_ = value;
434 inline const ::ignition::msgs::Pose& Collision::_internal_pose()
const {
438 const ::ignition::msgs::Pose* p = pose_;
453 auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaNoVirtual());
460 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
461 if (message_arena == NULL) {
462 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
465 ::google::protobuf::Arena* submessage_arena = NULL;
466 if (message_arena != submessage_arena) {
467 pose = ::google::protobuf::internal::GetOwnedMessage(
468 message_arena,
pose, submessage_arena);
482 inline const ::ignition::msgs::Geometry& Collision::_internal_geometry()
const {
486 const ::ignition::msgs::Geometry* p = geometry_;
500 if (geometry_ == NULL) {
501 auto* p = CreateMaybeMessage<::ignition::msgs::Geometry>(GetArenaNoVirtual());
508 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
509 if (message_arena == NULL) {
510 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(geometry_);
513 ::google::protobuf::Arena* submessage_arena = NULL;
514 if (message_arena != submessage_arena) {
515 geometry = ::google::protobuf::internal::GetOwnedMessage(
516 message_arena,
geometry, submessage_arena);
530 inline const ::ignition::msgs::Surface& Collision::_internal_surface()
const {
534 const ::ignition::msgs::Surface* p = surface_;
548 if (surface_ == NULL) {
549 auto* p = CreateMaybeMessage<::ignition::msgs::Surface>(GetArenaNoVirtual());
556 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
557 if (message_arena == NULL) {
558 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(surface_);
561 ::google::protobuf::Arena* submessage_arena = NULL;
562 if (message_arena != submessage_arena) {
563 surface = ::google::protobuf::internal::GetOwnedMessage(
564 message_arena,
surface, submessage_arena);
576 return visual_.size();
580 return visual_.Mutable(index);
582 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >*
589 return visual_.Get(index);
593 return visual_.Add();
595 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >&
602 #pragma GCC diagnostic pop
619 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fcollision_2eproto