4 #ifndef PROTOBUF_ignition_2fmsgs_2flink_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2flink_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> 42 #pragma GCC system_header 45 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 48 #include <sys/sysmacros.h> 66 class IGNITION_MSGS_VISIBLE
Link :
public ::google::protobuf::Message {
78 static const ::google::protobuf::Descriptor* descriptor();
79 static const Link& default_instance();
81 void Swap(
Link* other);
87 Link* New(::google::protobuf::Arena* arena)
const;
88 void CopyFrom(const ::google::protobuf::Message& from);
89 void MergeFrom(const ::google::protobuf::Message& from);
90 void CopyFrom(
const Link& from);
91 void MergeFrom(
const Link& from);
93 bool IsInitialized()
const;
96 bool MergePartialFromCodedStream(
97 ::google::protobuf::io::CodedInputStream* input);
98 void SerializeWithCachedSizes(
99 ::google::protobuf::io::CodedOutputStream* output)
const;
100 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
101 bool deterministic, ::google::protobuf::uint8* output)
const;
103 return InternalSerializeWithCachedSizesToArray(
false, output);
109 void SetCachedSize(
int size)
const;
110 void InternalSwap(
Link* other);
112 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
113 return _internal_metadata_.arena();
115 inline void* MaybeArenaPtr()
const {
116 return _internal_metadata_.raw_arena_ptr();
120 ::google::protobuf::Metadata GetMetadata()
const;
127 bool has_header()
const;
129 static const int kHeaderFieldNumber = 1;
130 const ::ignition::msgs::Header& header()
const;
137 static const int kIdFieldNumber = 2;
138 ::google::protobuf::uint32 id()
const;
139 void set_id(::google::protobuf::uint32 value);
143 static const int kNameFieldNumber = 3;
144 const ::std::string& name()
const;
145 void set_name(const ::std::string& value);
146 void set_name(
const char* value);
147 void set_name(
const char* value,
size_t size);
153 void clear_self_collide();
154 static const int kSelfCollideFieldNumber = 4;
155 bool self_collide()
const;
156 void set_self_collide(
bool value);
159 void clear_gravity();
160 static const int kGravityFieldNumber = 5;
161 bool gravity()
const;
162 void set_gravity(
bool value);
165 void clear_kinematic();
166 static const int kKinematicFieldNumber = 6;
167 bool kinematic()
const;
168 void set_kinematic(
bool value);
171 void clear_enabled();
172 static const int kEnabledFieldNumber = 7;
173 bool enabled()
const;
174 void set_enabled(
bool value);
177 bool has_density()
const;
178 void clear_density();
179 static const int kDensityFieldNumber = 8;
180 const ::ignition::msgs::Density& density()
const;
186 bool has_inertial()
const;
187 void clear_inertial();
188 static const int kInertialFieldNumber = 9;
189 const ::ignition::msgs::Inertial& inertial()
const;
195 bool has_pose()
const;
197 static const int kPoseFieldNumber = 10;
198 const ::ignition::msgs::Pose& pose()
const;
204 int visual_size()
const;
206 static const int kVisualFieldNumber = 11;
207 const ::ignition::msgs::Visual& visual(
int index)
const;
210 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >*
212 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >&
216 int collision_size()
const;
217 void clear_collision();
218 static const int kCollisionFieldNumber = 12;
219 const ::ignition::msgs::Collision& collision(
int index)
const;
222 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision >*
224 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision >&
228 int sensor_size()
const;
230 static const int kSensorFieldNumber = 13;
231 const ::ignition::msgs::Sensor& sensor(
int index)
const;
234 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor >*
236 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor >&
240 int projector_size()
const;
241 void clear_projector();
242 static const int kProjectorFieldNumber = 14;
243 const ::ignition::msgs::Projector& projector(
int index)
const;
246 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector >*
248 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector >&
252 void clear_canonical();
253 static const int kCanonicalFieldNumber = 15;
254 bool canonical()
const;
255 void set_canonical(
bool value);
258 int battery_size()
const;
259 void clear_battery();
260 static const int kBatteryFieldNumber = 16;
261 const ::ignition::msgs::Battery& battery(
int index)
const;
264 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery >*
266 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery >&
270 int light_size()
const;
272 static const int kLightFieldNumber = 17;
273 const ::ignition::msgs::Light& light(
int index)
const;
276 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
278 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
282 int particle_emitter_size()
const;
283 void clear_particle_emitter();
284 static const int kParticleEmitterFieldNumber = 18;
285 const ::ignition::msgs::ParticleEmitter& particle_emitter(
int index)
const;
288 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::ParticleEmitter >*
289 mutable_particle_emitter();
290 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::ParticleEmitter >&
291 particle_emitter()
const;
296 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
297 bool _is_default_instance_;
299 ::google::protobuf::internal::ArenaStringPtr name_;
300 ::google::protobuf::uint32 id_;
308 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > visual_;
309 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision > collision_;
310 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor > sensor_;
311 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector > projector_;
312 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery > battery_;
313 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > light_;
314 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::ParticleEmitter > particle_emitter_;
316 mutable int _cached_size_;
321 void InitAsDefaultInstance();
322 static Link* default_instance_;
329 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 334 return !_is_default_instance_ && header_ != NULL;
337 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
342 return header_ != NULL ? *header_ : *default_instance_->header_;
346 if (header_ == NULL) {
347 header_ = new ::ignition::msgs::Header;
374 inline ::google::protobuf::uint32
Link::id()
const {
386 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
390 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
394 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
399 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
404 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
405 ::
std::string(reinterpret_cast<const char*>(value), size));
411 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
416 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
424 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
430 self_collide_ =
false;
434 return self_collide_;
438 self_collide_ = value;
486 return !_is_default_instance_ && density_ != NULL;
489 if (GetArenaNoVirtual() == NULL && density_ != NULL)
delete density_;
494 return density_ != NULL ? *density_ : *default_instance_->density_;
498 if (density_ == NULL) {
499 density_ = new ::ignition::msgs::Density;
524 return !_is_default_instance_ && inertial_ != NULL;
527 if (GetArenaNoVirtual() == NULL && inertial_ != NULL)
delete inertial_;
532 return inertial_ != NULL ? *inertial_ : *default_instance_->inertial_;
536 if (inertial_ == NULL) {
537 inertial_ = new ::ignition::msgs::Inertial;
551 inertial_ = inertial;
562 return !_is_default_instance_ && pose_ != NULL;
565 if (GetArenaNoVirtual() == NULL && pose_ != NULL)
delete pose_;
570 return pose_ != NULL ? *pose_ : *default_instance_->pose_;
575 pose_ = new ::ignition::msgs::Pose;
600 return visual_.size();
607 return visual_.Get(index);
611 return visual_.Mutable(index);
615 return visual_.Add();
617 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >*
622 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >&
630 return collision_.size();
637 return collision_.Get(index);
641 return collision_.Mutable(index);
645 return collision_.Add();
647 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision >*
652 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision >&
660 return sensor_.size();
667 return sensor_.Get(index);
671 return sensor_.Mutable(index);
675 return sensor_.Add();
677 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor >*
682 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor >&
690 return projector_.size();
697 return projector_.Get(index);
701 return projector_.Mutable(index);
705 return projector_.Add();
707 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector >*
712 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector >&
734 return battery_.size();
741 return battery_.Get(index);
745 return battery_.Mutable(index);
749 return battery_.Add();
751 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery >*
756 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery >&
764 return light_.size();
769 inline const ::ignition::msgs::Light&
Link::light(
int index)
const {
771 return light_.Get(index);
775 return light_.Mutable(index);
781 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
786 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
794 return particle_emitter_.size();
797 particle_emitter_.Clear();
801 return particle_emitter_.Get(index);
805 return particle_emitter_.Mutable(index);
809 return particle_emitter_.Add();
811 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::ParticleEmitter >*
814 return &particle_emitter_;
816 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::ParticleEmitter >&
819 return particle_emitter_;
822 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 838 #endif // PROTOBUF_ignition_2fmsgs_2flink_2eproto__INCLUDED ::ignition::msgs::Inertial * mutable_inertial()
Definition: link.pb.h:534
Link & operator=(const Link &from)
Definition: link.pb.h:73
void clear_visual()
Definition: link.pb.h:602
::ignition::msgs::Pose * mutable_pose()
Definition: link.pb.h:572
::ignition::msgs::Pose * release_pose()
Definition: link.pb.h:580
::std::string * mutable_name()
Definition: link.pb.h:408
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2flink_2eproto()
void set_name(const ::std::string &value)
Definition: link.pb.h:392
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: link.pb.h:102
::ignition::msgs::Density * mutable_density()
Definition: link.pb.h:496
void set_self_collide(bool value)
Definition: link.pb.h:436
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor > & sensor() const
Definition: link.pb.h:683
bool has_pose() const
Definition: link.pb.h:561
::google::protobuf::RepeatedPtrField< ::ignition::msgs::ParticleEmitter > * mutable_particle_emitter()
Definition: link.pb.h:812
bool kinematic() const
Definition: link.pb.h:460
::ignition::msgs::Header * mutable_header()
Definition: link.pb.h:344
::ignition::msgs::Collision * add_collision()
Definition: link.pb.h:643
void set_id(::google::protobuf::uint32 value)
Definition: link.pb.h:378
::ignition::msgs::Inertial * release_inertial()
Definition: link.pb.h:542
Definition: light.pb.h:82
std::unique_ptr< const Link > ConstLinkUniquePtr
Definition: link.pb.h:825
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision > & collision() const
Definition: link.pb.h:653
void set_allocated_inertial(::ignition::msgs::Inertial *inertial)
Definition: link.pb.h:549
void clear_particle_emitter()
Definition: link.pb.h:796
void set_kinematic(bool value)
Definition: link.pb.h:464
::google::protobuf::uint32 id() const
Definition: link.pb.h:374
std::unique_ptr< Link > LinkUniquePtr
Definition: link.pb.h:824
void clear_gravity()
Definition: link.pb.h:443
Definition: particle_emitter.pb.h:87
::std::string * release_name()
Definition: link.pb.h:413
void protobuf_ShutdownFile_ignition_2fmsgs_2flink_2eproto()
void protobuf_AssignDesc_ignition_2fmsgs_2flink_2eproto()
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::ParticleEmitter > & particle_emitter() const
Definition: link.pb.h:817
int battery_size() const
Definition: link.pb.h:733
::ignition::msgs::Sensor * add_sensor()
Definition: link.pb.h:673
void set_gravity(bool value)
Definition: link.pb.h:450
void clear_canonical()
Definition: link.pb.h:719
::ignition::msgs::Projector * add_projector()
Definition: link.pb.h:703
void clear_self_collide()
Definition: link.pb.h:429
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor > * mutable_sensor()
Definition: link.pb.h:678
void clear_pose()
Definition: link.pb.h:564
std::shared_ptr< Link > LinkSharedPtr
Definition: link.pb.h:826
const ::ignition::msgs::Pose & pose() const
Definition: link.pb.h:568
int visual_size() const
Definition: link.pb.h:599
void clear_id()
Definition: link.pb.h:371
int light_size() const
Definition: link.pb.h:763
Definition: density.pb.h:56
::ignition::msgs::Battery * add_battery()
Definition: link.pb.h:747
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector > & projector() const
Definition: link.pb.h:713
Definition: visual.pb.h:172
int GetCachedSize() const
Definition: link.pb.h:105
bool canonical() const
Definition: link.pb.h:722
Definition: battery.pb.h:56
void clear_sensor()
Definition: link.pb.h:662
void clear_light()
Definition: link.pb.h:766
::ignition::msgs::ParticleEmitter * add_particle_emitter()
Definition: link.pb.h:807
::ignition::msgs::Header * release_header()
Definition: link.pb.h:352
void set_allocated_name(::std::string *name)
Definition: link.pb.h:418
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery > & battery() const
Definition: link.pb.h:757
const ::ignition::msgs::Density & density() const
Definition: link.pb.h:492
int collision_size() const
Definition: link.pb.h:629
void set_allocated_header(::ignition::msgs::Header *header)
Definition: link.pb.h:359
void clear_inertial()
Definition: link.pb.h:526
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > * mutable_visual()
Definition: link.pb.h:618
const ::ignition::msgs::Inertial & inertial() const
Definition: link.pb.h:530
void set_allocated_density(::ignition::msgs::Density *density)
Definition: link.pb.h:511
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector > * mutable_projector()
Definition: link.pb.h:708
Definition: inertial.pb.h:57
void clear_density()
Definition: link.pb.h:488
::ignition::msgs::Density * release_density()
Definition: link.pb.h:504
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > & light() const
Definition: link.pb.h:787
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision > * mutable_collision()
Definition: link.pb.h:648
void clear_kinematic()
Definition: link.pb.h:457
bool has_inertial() const
Definition: link.pb.h:523
void set_canonical(bool value)
Definition: link.pb.h:726
void clear_battery()
Definition: link.pb.h:736
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > * mutable_light()
Definition: link.pb.h:782
::ignition::msgs::Light * add_light()
Definition: link.pb.h:777
bool has_header() const
Definition: link.pb.h:333
Link * New() const
Definition: link.pb.h:85
Definition: projector.pb.h:57
void clear_enabled()
Definition: link.pb.h:471
Definition: sensor.pb.h:66
Definition: collision.pb.h:60
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery > * mutable_battery()
Definition: link.pb.h:752
void clear_name()
Definition: link.pb.h:385
void set_enabled(bool value)
Definition: link.pb.h:478
void clear_projector()
Definition: link.pb.h:692
int sensor_size() const
Definition: link.pb.h:659
int particle_emitter_size() const
Definition: link.pb.h:793
const ::std::string & name() const
Definition: link.pb.h:388
::ignition::msgs::Visual * add_visual()
Definition: link.pb.h:613
int projector_size() const
Definition: link.pb.h:689
const ::ignition::msgs::Header & header() const
Definition: link.pb.h:340
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: link.pb.h:587
bool gravity() const
Definition: link.pb.h:446
bool self_collide() const
Definition: link.pb.h:432
void clear_header()
Definition: link.pb.h:336
std::shared_ptr< const Link > ConstLinkSharedPtr
Definition: link.pb.h:827
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > & visual() const
Definition: link.pb.h:623
bool has_density() const
Definition: link.pb.h:485
bool enabled() const
Definition: link.pb.h:474
void clear_collision()
Definition: link.pb.h:632