4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2flink_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2flink_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>
44 #pragma GCC system_header
47 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
50 #include <sys/sysmacros.h>
55 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2flink_2eproto IGNITION_MSGS_VISIBLE
60 static const ::google::protobuf::internal::ParseTableField entries[];
61 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
62 static const ::google::protobuf::internal::ParseTable schema[1];
63 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
64 static const ::google::protobuf::internal::SerializationTable serialization_table[];
65 static const ::google::protobuf::uint32 offsets[];
72 class LinkDefaultTypeInternal;
78 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Link* Arena::CreateMaybeMessage<::ignition::msgs::Link>(Arena*);
86 class IGNITION_MSGS_VISIBLE
Link :
public ::google::protobuf::Message {
100 *
this = ::std::move(from);
103 inline Link& operator=(Link&& from) noexcept {
104 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
105 if (
this != &from) InternalSwap(&from);
112 static const ::google::protobuf::Descriptor* descriptor();
113 static const Link& default_instance();
115 static void InitAsDefaultInstance();
117 return reinterpret_cast<const Link*
>(
120 static constexpr
int kIndexInFileMessages =
123 void Swap(
Link* other);
131 return CreateMaybeMessage<Link>(NULL);
134 Link*
New(::google::protobuf::Arena* arena)
const final {
135 return CreateMaybeMessage<Link>(arena);
137 void CopyFrom(const ::google::protobuf::Message& from)
final;
138 void MergeFrom(const ::google::protobuf::Message& from)
final;
139 void CopyFrom(
const Link& from);
140 void MergeFrom(
const Link& from);
142 bool IsInitialized() const final;
144 size_t ByteSizeLong() const final;
145 bool MergePartialFromCodedStream(
146 ::
google::protobuf::io::CodedInputStream* input) final;
147 void SerializeWithCachedSizes(
148 ::
google::protobuf::io::CodedOutputStream* output) const final;
149 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
150 bool deterministic, ::
google::protobuf::uint8* target) const final;
151 int GetCachedSize() const final {
return _cached_size_.Get(); }
156 void SetCachedSize(
int size)
const final;
157 void InternalSwap(
Link* other);
159 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
162 inline void* MaybeArenaPtr()
const {
167 ::google::protobuf::Metadata GetMetadata() const final;
174 int visual_size() const;
176 static const
int kVisualFieldNumber = 11;
186 int collision_size() const;
187 void clear_collision();
188 static const
int kCollisionFieldNumber = 12;
198 int sensor_size() const;
200 static const
int kSensorFieldNumber = 13;
210 int projector_size() const;
211 void clear_projector();
212 static const
int kProjectorFieldNumber = 14;
222 int battery_size() const;
223 void clear_battery();
224 static const
int kBatteryFieldNumber = 16;
234 int light_size() const;
236 static const
int kLightFieldNumber = 17;
247 static const
int kNameFieldNumber = 3;
248 const ::
std::
string& name() const;
249 void set_name(const ::
std::
string& value);
253 void set_name(
const char* value);
254 void set_name(
const char* value,
size_t size);
260 bool has_header()
const;
262 static const int kHeaderFieldNumber = 1;
264 const ::ignition::msgs::Header& _internal_header()
const;
266 const ::ignition::msgs::Header& header()
const;
272 bool has_density()
const;
273 void clear_density();
274 static const int kDensityFieldNumber = 8;
276 const ::ignition::msgs::Density& _internal_density()
const;
278 const ::ignition::msgs::Density& density()
const;
284 bool has_inertial()
const;
285 void clear_inertial();
286 static const int kInertialFieldNumber = 9;
288 const ::ignition::msgs::Inertial& _internal_inertial()
const;
290 const ::ignition::msgs::Inertial& inertial()
const;
296 bool has_pose()
const;
298 static const int kPoseFieldNumber = 10;
300 const ::ignition::msgs::Pose& _internal_pose()
const;
302 const ::ignition::msgs::Pose& pose()
const;
309 static const int kIdFieldNumber = 2;
310 ::google::protobuf::uint32 id()
const;
311 void set_id(::google::protobuf::uint32 value);
314 void clear_self_collide();
315 static const int kSelfCollideFieldNumber = 4;
316 bool self_collide()
const;
317 void set_self_collide(
bool value);
320 void clear_gravity();
321 static const int kGravityFieldNumber = 5;
322 bool gravity()
const;
323 void set_gravity(
bool value);
326 void clear_kinematic();
327 static const int kKinematicFieldNumber = 6;
328 bool kinematic()
const;
329 void set_kinematic(
bool value);
332 void clear_enabled();
333 static const int kEnabledFieldNumber = 7;
334 bool enabled()
const;
335 void set_enabled(
bool value);
338 void clear_canonical();
339 static const int kCanonicalFieldNumber = 15;
340 bool canonical()
const;
341 void set_canonical(
bool value);
346 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
347 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > visual_;
348 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision > collision_;
349 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor > sensor_;
350 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector > projector_;
351 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery > battery_;
352 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > light_;
353 ::google::protobuf::internal::ArenaStringPtr name_;
358 ::google::protobuf::uint32 id_;
364 mutable ::google::protobuf::internal::CachedSize _cached_size_;
365 friend struct ::protobuf_ignition_2fmsgs_2flink_2eproto::TableStruct;
373 #pragma GCC diagnostic push
374 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
382 inline const ::ignition::msgs::Header& Link::_internal_header()
const {
386 const ::ignition::msgs::Header* p = header_;
400 if (header_ == NULL) {
401 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
408 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
409 if (message_arena == NULL) {
410 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
413 ::google::protobuf::Arena* submessage_arena = NULL;
414 if (message_arena != submessage_arena) {
415 header = ::google::protobuf::internal::GetOwnedMessage(
416 message_arena,
header, submessage_arena);
430 inline ::google::protobuf::uint32
Link::id()
const {
442 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
446 return name_.GetNoArena();
450 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
457 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
462 GOOGLE_DCHECK(value != NULL);
464 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
469 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
470 ::
std::string(
reinterpret_cast<const char*
>(value), size));
476 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
481 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
489 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
495 self_collide_ =
false;
499 return self_collide_;
503 self_collide_ = value;
553 inline const ::ignition::msgs::Density& Link::_internal_density()
const {
557 const ::ignition::msgs::Density* p = density_;
571 if (density_ == NULL) {
572 auto* p = CreateMaybeMessage<::ignition::msgs::Density>(GetArenaNoVirtual());
579 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
580 if (message_arena == NULL) {
581 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(density_);
584 ::google::protobuf::Arena* submessage_arena = NULL;
585 if (message_arena != submessage_arena) {
586 density = ::google::protobuf::internal::GetOwnedMessage(
587 message_arena,
density, submessage_arena);
601 inline const ::ignition::msgs::Inertial& Link::_internal_inertial()
const {
605 const ::ignition::msgs::Inertial* p = inertial_;
619 if (inertial_ == NULL) {
620 auto* p = CreateMaybeMessage<::ignition::msgs::Inertial>(GetArenaNoVirtual());
627 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
628 if (message_arena == NULL) {
629 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(inertial_);
632 ::google::protobuf::Arena* submessage_arena = NULL;
633 if (message_arena != submessage_arena) {
634 inertial = ::google::protobuf::internal::GetOwnedMessage(
635 message_arena,
inertial, submessage_arena);
649 inline const ::ignition::msgs::Pose& Link::_internal_pose()
const {
653 const ::ignition::msgs::Pose* p = pose_;
668 auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaNoVirtual());
675 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
676 if (message_arena == NULL) {
677 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
680 ::google::protobuf::Arena* submessage_arena = NULL;
681 if (message_arena != submessage_arena) {
682 pose = ::google::protobuf::internal::GetOwnedMessage(
683 message_arena,
pose, submessage_arena);
695 return visual_.size();
699 return visual_.Mutable(index);
701 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >*
708 return visual_.Get(index);
712 return visual_.Add();
714 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >&
722 return collision_.size();
726 return collision_.Mutable(index);
728 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision >*
735 return collision_.Get(index);
739 return collision_.Add();
741 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision >&
749 return sensor_.size();
753 return sensor_.Mutable(index);
755 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor >*
762 return sensor_.Get(index);
766 return sensor_.Add();
768 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor >&
776 return projector_.size();
780 return projector_.Mutable(index);
782 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector >*
789 return projector_.Get(index);
793 return projector_.Add();
795 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector >&
817 return battery_.size();
821 return battery_.Mutable(index);
823 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery >*
830 return battery_.Get(index);
834 return battery_.Add();
836 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery >&
844 return light_.size();
848 return light_.Mutable(index);
850 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
855 inline const ::ignition::msgs::Light&
Link::light(
int index)
const {
857 return light_.Get(index);
863 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
870 #pragma GCC diagnostic pop
887 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2flink_2eproto