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> 41 #pragma GCC system_header 44 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 47 #include <sys/sysmacros.h> 65 class IGNITION_MSGS_VISIBLE
Link :
public ::google::protobuf::Message {
77 static const ::google::protobuf::Descriptor* descriptor();
78 static const Link& default_instance();
80 void Swap(
Link* other);
86 Link* New(::google::protobuf::Arena* arena)
const;
87 void CopyFrom(const ::google::protobuf::Message& from);
88 void MergeFrom(const ::google::protobuf::Message& from);
89 void CopyFrom(
const Link& from);
90 void MergeFrom(
const Link& from);
92 bool IsInitialized()
const;
95 bool MergePartialFromCodedStream(
96 ::google::protobuf::io::CodedInputStream* input);
97 void SerializeWithCachedSizes(
98 ::google::protobuf::io::CodedOutputStream* output)
const;
99 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
100 bool deterministic, ::google::protobuf::uint8* output)
const;
102 return InternalSerializeWithCachedSizesToArray(
false, output);
108 void SetCachedSize(
int size)
const;
109 void InternalSwap(
Link* other);
111 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
112 return _internal_metadata_.arena();
114 inline void* MaybeArenaPtr()
const {
115 return _internal_metadata_.raw_arena_ptr();
119 ::google::protobuf::Metadata GetMetadata()
const;
126 bool has_header()
const;
128 static const int kHeaderFieldNumber = 1;
129 const ::ignition::msgs::Header& header()
const;
136 static const int kIdFieldNumber = 2;
137 ::google::protobuf::uint32 id()
const;
138 void set_id(::google::protobuf::uint32 value);
142 static const int kNameFieldNumber = 3;
143 const ::std::string& name()
const;
144 void set_name(const ::std::string& value);
145 void set_name(
const char* value);
146 void set_name(
const char* value,
size_t size);
152 void clear_self_collide();
153 static const int kSelfCollideFieldNumber = 4;
154 bool self_collide()
const;
155 void set_self_collide(
bool value);
158 void clear_gravity();
159 static const int kGravityFieldNumber = 5;
160 bool gravity()
const;
161 void set_gravity(
bool value);
164 void clear_kinematic();
165 static const int kKinematicFieldNumber = 6;
166 bool kinematic()
const;
167 void set_kinematic(
bool value);
170 void clear_enabled();
171 static const int kEnabledFieldNumber = 7;
172 bool enabled()
const;
173 void set_enabled(
bool value);
176 bool has_density()
const;
177 void clear_density();
178 static const int kDensityFieldNumber = 8;
179 const ::ignition::msgs::Density& density()
const;
185 bool has_inertial()
const;
186 void clear_inertial();
187 static const int kInertialFieldNumber = 9;
188 const ::ignition::msgs::Inertial& inertial()
const;
194 bool has_pose()
const;
196 static const int kPoseFieldNumber = 10;
197 const ::ignition::msgs::Pose& pose()
const;
203 int visual_size()
const;
205 static const int kVisualFieldNumber = 11;
206 const ::ignition::msgs::Visual& visual(
int index)
const;
209 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >*
211 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >&
215 int collision_size()
const;
216 void clear_collision();
217 static const int kCollisionFieldNumber = 12;
218 const ::ignition::msgs::Collision& collision(
int index)
const;
221 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision >*
223 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision >&
227 int sensor_size()
const;
229 static const int kSensorFieldNumber = 13;
230 const ::ignition::msgs::Sensor& sensor(
int index)
const;
233 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor >*
235 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor >&
239 int projector_size()
const;
240 void clear_projector();
241 static const int kProjectorFieldNumber = 14;
242 const ::ignition::msgs::Projector& projector(
int index)
const;
245 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector >*
247 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector >&
251 void clear_canonical();
252 static const int kCanonicalFieldNumber = 15;
253 bool canonical()
const;
254 void set_canonical(
bool value);
257 int battery_size()
const;
258 void clear_battery();
259 static const int kBatteryFieldNumber = 16;
260 const ::ignition::msgs::Battery& battery(
int index)
const;
263 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery >*
265 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery >&
269 int light_size()
const;
271 static const int kLightFieldNumber = 17;
272 const ::ignition::msgs::Light& light(
int index)
const;
275 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
277 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
283 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
284 bool _is_default_instance_;
286 ::google::protobuf::internal::ArenaStringPtr name_;
287 ::google::protobuf::uint32 id_;
295 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > visual_;
296 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision > collision_;
297 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor > sensor_;
298 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector > projector_;
299 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery > battery_;
300 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > light_;
302 mutable int _cached_size_;
307 void InitAsDefaultInstance();
308 static Link* default_instance_;
315 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 320 return !_is_default_instance_ && header_ != NULL;
323 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
328 return header_ != NULL ? *header_ : *default_instance_->header_;
332 if (header_ == NULL) {
333 header_ = new ::ignition::msgs::Header;
360 inline ::google::protobuf::uint32
Link::id()
const {
372 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
376 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
380 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
385 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
390 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
391 ::
std::string(reinterpret_cast<const char*>(value), size));
397 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
402 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
410 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
416 self_collide_ =
false;
420 return self_collide_;
424 self_collide_ = value;
472 return !_is_default_instance_ && density_ != NULL;
475 if (GetArenaNoVirtual() == NULL && density_ != NULL)
delete density_;
480 return density_ != NULL ? *density_ : *default_instance_->density_;
484 if (density_ == NULL) {
485 density_ = new ::ignition::msgs::Density;
510 return !_is_default_instance_ && inertial_ != NULL;
513 if (GetArenaNoVirtual() == NULL && inertial_ != NULL)
delete inertial_;
518 return inertial_ != NULL ? *inertial_ : *default_instance_->inertial_;
522 if (inertial_ == NULL) {
523 inertial_ = new ::ignition::msgs::Inertial;
537 inertial_ = inertial;
548 return !_is_default_instance_ && pose_ != NULL;
551 if (GetArenaNoVirtual() == NULL && pose_ != NULL)
delete pose_;
556 return pose_ != NULL ? *pose_ : *default_instance_->pose_;
561 pose_ = new ::ignition::msgs::Pose;
586 return visual_.size();
593 return visual_.Get(index);
597 return visual_.Mutable(index);
601 return visual_.Add();
603 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >*
608 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >&
616 return collision_.size();
623 return collision_.Get(index);
627 return collision_.Mutable(index);
631 return collision_.Add();
633 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision >*
638 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision >&
646 return sensor_.size();
653 return sensor_.Get(index);
657 return sensor_.Mutable(index);
661 return sensor_.Add();
663 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor >*
668 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor >&
676 return projector_.size();
683 return projector_.Get(index);
687 return projector_.Mutable(index);
691 return projector_.Add();
693 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector >*
698 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector >&
720 return battery_.size();
727 return battery_.Get(index);
731 return battery_.Mutable(index);
735 return battery_.Add();
737 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery >*
742 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery >&
750 return light_.size();
755 inline const ::ignition::msgs::Light&
Link::light(
int index)
const {
757 return light_.Get(index);
761 return light_.Mutable(index);
767 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
772 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
778 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 794 #endif // PROTOBUF_ignition_2fmsgs_2flink_2eproto__INCLUDED ::ignition::msgs::Inertial * mutable_inertial()
Definition: link.pb.h:520
Link & operator=(const Link &from)
Definition: link.pb.h:72
void clear_visual()
Definition: link.pb.h:588
::ignition::msgs::Pose * mutable_pose()
Definition: link.pb.h:558
::ignition::msgs::Pose * release_pose()
Definition: link.pb.h:566
::std::string * mutable_name()
Definition: link.pb.h:394
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2flink_2eproto()
void set_name(const ::std::string &value)
Definition: link.pb.h:378
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: link.pb.h:101
::ignition::msgs::Density * mutable_density()
Definition: link.pb.h:482
void set_self_collide(bool value)
Definition: link.pb.h:422
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor > & sensor() const
Definition: link.pb.h:669
bool has_pose() const
Definition: link.pb.h:547
bool kinematic() const
Definition: link.pb.h:446
::ignition::msgs::Header * mutable_header()
Definition: link.pb.h:330
::ignition::msgs::Collision * add_collision()
Definition: link.pb.h:629
void set_id(::google::protobuf::uint32 value)
Definition: link.pb.h:364
::ignition::msgs::Inertial * release_inertial()
Definition: link.pb.h:528
Definition: light.pb.h:82
std::unique_ptr< const Link > ConstLinkUniquePtr
Definition: link.pb.h:781
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision > & collision() const
Definition: link.pb.h:639
void set_allocated_inertial(::ignition::msgs::Inertial *inertial)
Definition: link.pb.h:535
void set_kinematic(bool value)
Definition: link.pb.h:450
::google::protobuf::uint32 id() const
Definition: link.pb.h:360
std::unique_ptr< Link > LinkUniquePtr
Definition: link.pb.h:780
void clear_gravity()
Definition: link.pb.h:429
::std::string * release_name()
Definition: link.pb.h:399
void protobuf_ShutdownFile_ignition_2fmsgs_2flink_2eproto()
void protobuf_AssignDesc_ignition_2fmsgs_2flink_2eproto()
int battery_size() const
Definition: link.pb.h:719
::ignition::msgs::Sensor * add_sensor()
Definition: link.pb.h:659
void set_gravity(bool value)
Definition: link.pb.h:436
void clear_canonical()
Definition: link.pb.h:705
::ignition::msgs::Projector * add_projector()
Definition: link.pb.h:689
void clear_self_collide()
Definition: link.pb.h:415
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Sensor > * mutable_sensor()
Definition: link.pb.h:664
void clear_pose()
Definition: link.pb.h:550
std::shared_ptr< Link > LinkSharedPtr
Definition: link.pb.h:782
const ::ignition::msgs::Pose & pose() const
Definition: link.pb.h:554
int visual_size() const
Definition: link.pb.h:585
void clear_id()
Definition: link.pb.h:357
int light_size() const
Definition: link.pb.h:749
Definition: density.pb.h:56
::ignition::msgs::Battery * add_battery()
Definition: link.pb.h:733
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector > & projector() const
Definition: link.pb.h:699
Definition: visual.pb.h:172
int GetCachedSize() const
Definition: link.pb.h:104
bool canonical() const
Definition: link.pb.h:708
Definition: battery.pb.h:56
void clear_sensor()
Definition: link.pb.h:648
void clear_light()
Definition: link.pb.h:752
::ignition::msgs::Header * release_header()
Definition: link.pb.h:338
void set_allocated_name(::std::string *name)
Definition: link.pb.h:404
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery > & battery() const
Definition: link.pb.h:743
const ::ignition::msgs::Density & density() const
Definition: link.pb.h:478
int collision_size() const
Definition: link.pb.h:615
void set_allocated_header(::ignition::msgs::Header *header)
Definition: link.pb.h:345
void clear_inertial()
Definition: link.pb.h:512
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > * mutable_visual()
Definition: link.pb.h:604
const ::ignition::msgs::Inertial & inertial() const
Definition: link.pb.h:516
void set_allocated_density(::ignition::msgs::Density *density)
Definition: link.pb.h:497
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Projector > * mutable_projector()
Definition: link.pb.h:694
Definition: inertial.pb.h:57
void clear_density()
Definition: link.pb.h:474
::ignition::msgs::Density * release_density()
Definition: link.pb.h:490
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > & light() const
Definition: link.pb.h:773
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Collision > * mutable_collision()
Definition: link.pb.h:634
void clear_kinematic()
Definition: link.pb.h:443
bool has_inertial() const
Definition: link.pb.h:509
void set_canonical(bool value)
Definition: link.pb.h:712
void clear_battery()
Definition: link.pb.h:722
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > * mutable_light()
Definition: link.pb.h:768
::ignition::msgs::Light * add_light()
Definition: link.pb.h:763
bool has_header() const
Definition: link.pb.h:319
Link * New() const
Definition: link.pb.h:84
Definition: projector.pb.h:57
void clear_enabled()
Definition: link.pb.h:457
Definition: sensor.pb.h:66
Definition: collision.pb.h:60
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Battery > * mutable_battery()
Definition: link.pb.h:738
void clear_name()
Definition: link.pb.h:371
void set_enabled(bool value)
Definition: link.pb.h:464
void clear_projector()
Definition: link.pb.h:678
int sensor_size() const
Definition: link.pb.h:645
const ::std::string & name() const
Definition: link.pb.h:374
::ignition::msgs::Visual * add_visual()
Definition: link.pb.h:599
int projector_size() const
Definition: link.pb.h:675
const ::ignition::msgs::Header & header() const
Definition: link.pb.h:326
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: link.pb.h:573
bool gravity() const
Definition: link.pb.h:432
bool self_collide() const
Definition: link.pb.h:418
void clear_header()
Definition: link.pb.h:322
std::shared_ptr< const Link > ConstLinkSharedPtr
Definition: link.pb.h:783
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > & visual() const
Definition: link.pb.h:609
bool has_density() const
Definition: link.pb.h:471
bool enabled() const
Definition: link.pb.h:460
void clear_collision()
Definition: link.pb.h:618