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>
45 #pragma GCC system_header
48 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
51 #include <sys/sysmacros.h>
56 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2flink_2eproto IGNITION_MSGS_VISIBLE
61 static const ::google::protobuf::internal::ParseTableField entries[];
62 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
63 static const ::google::protobuf::internal::ParseTable schema[1];
64 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
65 static const ::google::protobuf::internal::SerializationTable serialization_table[];
66 static const ::google::protobuf::uint32 offsets[];
73 class LinkDefaultTypeInternal;
79 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Link* Arena::CreateMaybeMessage<::ignition::msgs::Link>(Arena*);
87 class IGNITION_MSGS_VISIBLE
Link :
public ::google::protobuf::Message {
101 *
this = ::std::move(from);
104 inline Link& operator=(Link&& from) noexcept {
105 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
106 if (
this != &from) InternalSwap(&from);
113 static const ::google::protobuf::Descriptor* descriptor();
114 static const Link& default_instance();
116 static void InitAsDefaultInstance();
118 return reinterpret_cast<const Link*
>(
121 static constexpr
int kIndexInFileMessages =
124 void Swap(
Link* other);
132 return CreateMaybeMessage<Link>(NULL);
135 Link*
New(::google::protobuf::Arena* arena)
const final {
136 return CreateMaybeMessage<Link>(arena);
138 void CopyFrom(const ::google::protobuf::Message& from)
final;
139 void MergeFrom(const ::google::protobuf::Message& from)
final;
140 void CopyFrom(
const Link& from);
141 void MergeFrom(
const Link& from);
143 bool IsInitialized() const final;
145 size_t ByteSizeLong() const final;
146 bool MergePartialFromCodedStream(
147 ::
google::protobuf::io::CodedInputStream* input) final;
148 void SerializeWithCachedSizes(
149 ::
google::protobuf::io::CodedOutputStream* output) const final;
150 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
151 bool deterministic, ::
google::protobuf::uint8* target) const final;
152 int GetCachedSize() const final {
return _cached_size_.Get(); }
157 void SetCachedSize(
int size)
const final;
158 void InternalSwap(
Link* other);
160 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
163 inline void* MaybeArenaPtr()
const {
168 ::google::protobuf::Metadata GetMetadata() const final;
175 int visual_size() const;
177 static const
int kVisualFieldNumber = 11;
187 int collision_size() const;
188 void clear_collision();
189 static const
int kCollisionFieldNumber = 12;
199 int sensor_size() const;
201 static const
int kSensorFieldNumber = 13;
211 int projector_size() const;
212 void clear_projector();
213 static const
int kProjectorFieldNumber = 14;
223 int battery_size() const;
224 void clear_battery();
225 static const
int kBatteryFieldNumber = 16;
235 int light_size() const;
237 static const
int kLightFieldNumber = 17;
247 int particle_emitter_size() const;
248 void clear_particle_emitter();
249 static const
int kParticleEmitterFieldNumber = 18;
252 mutable_particle_emitter();
256 particle_emitter() const;
260 static const
int kNameFieldNumber = 3;
261 const ::
std::
string& name() const;
262 void set_name(const ::
std::
string& value);
266 void set_name(
const char* value);
267 void set_name(
const char* value,
size_t size);
273 bool has_header()
const;
275 static const int kHeaderFieldNumber = 1;
277 const ::ignition::msgs::Header& _internal_header()
const;
279 const ::ignition::msgs::Header& header()
const;
285 bool has_density()
const;
286 void clear_density();
287 static const int kDensityFieldNumber = 8;
289 const ::ignition::msgs::Density& _internal_density()
const;
291 const ::ignition::msgs::Density& density()
const;
297 bool has_inertial()
const;
298 void clear_inertial();
299 static const int kInertialFieldNumber = 9;
301 const ::ignition::msgs::Inertial& _internal_inertial()
const;
303 const ::ignition::msgs::Inertial& inertial()
const;
309 bool has_pose()
const;
311 static const int kPoseFieldNumber = 10;
313 const ::ignition::msgs::Pose& _internal_pose()
const;
315 const ::ignition::msgs::Pose& pose()
const;
322 static const int kIdFieldNumber = 2;
323 ::google::protobuf::uint32 id()
const;
324 void set_id(::google::protobuf::uint32 value);
327 void clear_self_collide();
328 static const int kSelfCollideFieldNumber = 4;
329 bool self_collide()
const;
330 void set_self_collide(
bool value);
333 void clear_gravity();
334 static const int kGravityFieldNumber = 5;
335 bool gravity()
const;
336 void set_gravity(
bool value);
339 void clear_kinematic();
340 static const int kKinematicFieldNumber = 6;
341 bool kinematic()
const;
342 void set_kinematic(
bool value);
345 void clear_enabled();
346 static const int kEnabledFieldNumber = 7;
347 bool enabled()
const;
348 void set_enabled(
bool value);
351 void clear_canonical();
352 static const int kCanonicalFieldNumber = 15;
353 bool canonical()
const;
354 void set_canonical(
bool value);
359 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
360 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > visual_;
361 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision > collision_;
362 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor > sensor_;
363 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector > projector_;
364 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery > battery_;
365 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > light_;
366 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::ParticleEmitter > particle_emitter_;
367 ::google::protobuf::internal::ArenaStringPtr name_;
372 ::google::protobuf::uint32 id_;
378 mutable ::google::protobuf::internal::CachedSize _cached_size_;
379 friend struct ::protobuf_ignition_2fmsgs_2flink_2eproto::TableStruct;
387 #pragma GCC diagnostic push
388 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
396 inline const ::ignition::msgs::Header& Link::_internal_header()
const {
400 const ::ignition::msgs::Header* p = header_;
414 if (header_ == NULL) {
415 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
422 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
423 if (message_arena == NULL) {
424 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
427 ::google::protobuf::Arena* submessage_arena = NULL;
428 if (message_arena != submessage_arena) {
429 header = ::google::protobuf::internal::GetOwnedMessage(
430 message_arena,
header, submessage_arena);
444 inline ::google::protobuf::uint32
Link::id()
const {
456 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
460 return name_.GetNoArena();
464 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
471 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
476 GOOGLE_DCHECK(value != NULL);
478 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
483 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
484 ::
std::string(
reinterpret_cast<const char*
>(value), size));
490 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
495 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
503 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
509 self_collide_ =
false;
513 return self_collide_;
517 self_collide_ = value;
567 inline const ::ignition::msgs::Density& Link::_internal_density()
const {
571 const ::ignition::msgs::Density* p = density_;
585 if (density_ == NULL) {
586 auto* p = CreateMaybeMessage<::ignition::msgs::Density>(GetArenaNoVirtual());
593 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
594 if (message_arena == NULL) {
595 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(density_);
598 ::google::protobuf::Arena* submessage_arena = NULL;
599 if (message_arena != submessage_arena) {
600 density = ::google::protobuf::internal::GetOwnedMessage(
601 message_arena,
density, submessage_arena);
615 inline const ::ignition::msgs::Inertial& Link::_internal_inertial()
const {
619 const ::ignition::msgs::Inertial* p = inertial_;
633 if (inertial_ == NULL) {
634 auto* p = CreateMaybeMessage<::ignition::msgs::Inertial>(GetArenaNoVirtual());
641 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
642 if (message_arena == NULL) {
643 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(inertial_);
646 ::google::protobuf::Arena* submessage_arena = NULL;
647 if (message_arena != submessage_arena) {
648 inertial = ::google::protobuf::internal::GetOwnedMessage(
649 message_arena,
inertial, submessage_arena);
663 inline const ::ignition::msgs::Pose& Link::_internal_pose()
const {
667 const ::ignition::msgs::Pose* p = pose_;
682 auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaNoVirtual());
689 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
690 if (message_arena == NULL) {
691 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
694 ::google::protobuf::Arena* submessage_arena = NULL;
695 if (message_arena != submessage_arena) {
696 pose = ::google::protobuf::internal::GetOwnedMessage(
697 message_arena,
pose, submessage_arena);
709 return visual_.size();
713 return visual_.Mutable(index);
715 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >*
722 return visual_.Get(index);
726 return visual_.Add();
728 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >&
736 return collision_.size();
740 return collision_.Mutable(index);
742 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision >*
749 return collision_.Get(index);
753 return collision_.Add();
755 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision >&
763 return sensor_.size();
767 return sensor_.Mutable(index);
769 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor >*
776 return sensor_.Get(index);
780 return sensor_.Add();
782 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor >&
790 return projector_.size();
794 return projector_.Mutable(index);
796 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector >*
803 return projector_.Get(index);
807 return projector_.Add();
809 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector >&
831 return battery_.size();
835 return battery_.Mutable(index);
837 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery >*
844 return battery_.Get(index);
848 return battery_.Add();
850 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery >&
858 return light_.size();
862 return light_.Mutable(index);
864 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
869 inline const ::ignition::msgs::Light&
Link::light(
int index)
const {
871 return light_.Get(index);
877 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
885 return particle_emitter_.size();
889 return particle_emitter_.Mutable(index);
891 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::ParticleEmitter >*
894 return &particle_emitter_;
898 return particle_emitter_.Get(index);
902 return particle_emitter_.Add();
904 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::ParticleEmitter >&
907 return particle_emitter_;
911 #pragma GCC diagnostic pop
928 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2flink_2eproto