4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fcollision_2eproto
5 #define PROTOBUF_INCLUDED_gz_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>
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"
39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fcollision_2eproto GZ_MSGS_VISIBLE
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[];
56 class CollisionDefaultTypeInternal;
62 template<> GZ_MSGS_VISIBLE ::gz::msgs::Collision* Arena::CreateMaybeMessage<::gz::msgs::Collision>(Arena*);
70 class GZ_MSGS_VISIBLE
Collision :
public ::google::protobuf::Message {
84 *
this = ::std::move(from);
87 inline Collision& operator=(Collision&& from) noexcept {
88 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
89 if (
this != &from) InternalSwap(&from);
96 static const ::google::protobuf::Descriptor* descriptor();
97 static const Collision& default_instance();
99 static void InitAsDefaultInstance();
101 return reinterpret_cast<const Collision*
>(
104 static constexpr
int kIndexInFileMessages =
115 return CreateMaybeMessage<Collision>(NULL);
119 return CreateMaybeMessage<Collision>(arena);
121 void CopyFrom(const ::google::protobuf::Message& from)
final;
122 void MergeFrom(const ::google::protobuf::Message& from)
final;
126 bool IsInitialized() const final;
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(); }
140 void SetCachedSize(
int size)
const final;
143 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
146 inline void* MaybeArenaPtr()
const {
151 ::google::protobuf::Metadata GetMetadata() const final;
158 int visual_size() const;
160 static const
int kVisualFieldNumber = 9;
161 ::
gz::msgs::
Visual* mutable_visual(
int index);
164 const ::
gz::msgs::
Visual& visual(
int index) const;
171 static const
int kNameFieldNumber = 3;
172 const ::
std::
string& name() const;
173 void set_name(const ::
std::
string& value);
177 void set_name(
const char* value);
178 void set_name(
const char* value,
size_t size);
184 bool has_header()
const;
186 static const int kHeaderFieldNumber = 1;
188 const ::gz::msgs::Header& _internal_header()
const;
190 const ::gz::msgs::Header& header()
const;
196 bool has_pose()
const;
198 static const int kPoseFieldNumber = 6;
200 const ::gz::msgs::Pose& _internal_pose()
const;
202 const ::gz::msgs::Pose& pose()
const;
208 bool has_geometry()
const;
209 void clear_geometry();
210 static const int kGeometryFieldNumber = 7;
212 const ::gz::msgs::Geometry& _internal_geometry()
const;
214 const ::gz::msgs::Geometry& geometry()
const;
220 bool has_surface()
const;
221 void clear_surface();
222 static const int kSurfaceFieldNumber = 8;
224 const ::gz::msgs::Surface& _internal_surface()
const;
226 const ::gz::msgs::Surface& surface()
const;
232 void clear_laser_retro();
233 static const int kLaserRetroFieldNumber = 4;
234 double laser_retro()
const;
235 void set_laser_retro(
double value);
238 void clear_max_contacts();
239 static const int kMaxContactsFieldNumber = 5;
240 double max_contacts()
const;
241 void set_max_contacts(
double value);
245 static const int kIdFieldNumber = 2;
246 ::google::protobuf::uint32 id()
const;
247 void set_id(::google::protobuf::uint32 value);
252 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
253 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Visual > visual_;
254 ::google::protobuf::internal::ArenaStringPtr name_;
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;
271 #pragma GCC diagnostic push
272 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
280 inline const ::gz::msgs::Header& Collision::_internal_header()
const {
284 const ::gz::msgs::Header* p = header_;
298 if (header_ == NULL) {
299 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
306 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
307 if (message_arena == NULL) {
308 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
340 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
344 return name_.GetNoArena();
348 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
355 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
360 GOOGLE_DCHECK(value != NULL);
362 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
367 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
368 ::
std::string(
reinterpret_cast<const char*
>(value), size));
374 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
379 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
387 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
401 laser_retro_ = value;
411 return max_contacts_;
415 max_contacts_ = value;
423 inline const ::gz::msgs::Pose& Collision::_internal_pose()
const {
427 const ::gz::msgs::Pose* p = pose_;
429 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Pose*
>(
442 auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
449 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
450 if (message_arena == NULL) {
451 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
471 inline const ::gz::msgs::Geometry& Collision::_internal_geometry()
const {
475 const ::gz::msgs::Geometry* p = geometry_;
489 if (geometry_ == NULL) {
490 auto* p = CreateMaybeMessage<::gz::msgs::Geometry>(GetArenaNoVirtual());
497 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
498 if (message_arena == NULL) {
499 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
519 inline const ::gz::msgs::Surface& Collision::_internal_surface()
const {
523 const ::gz::msgs::Surface* p = surface_;
537 if (surface_ == NULL) {
538 auto* p = CreateMaybeMessage<::gz::msgs::Surface>(GetArenaNoVirtual());
545 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
546 if (message_arena == NULL) {
547 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
565 return visual_.size();
569 return visual_.Mutable(index);
571 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Visual >*
578 return visual_.Get(index);
582 return visual_.Add();
584 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Visual >&
591 #pragma GCC diagnostic pop
601 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fcollision_2eproto