4 #ifndef PROTOBUF_ignition_2fmsgs_2fmodel_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fmodel_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> 38 #pragma GCC system_header 41 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 44 #include <sys/sysmacros.h> 62 class IGNITION_MSGS_VISIBLE
Model :
public ::google::protobuf::Message {
74 static const ::google::protobuf::Descriptor* descriptor();
75 static const Model& default_instance();
77 void Swap(
Model* other);
83 Model* New(::google::protobuf::Arena* arena)
const;
84 void CopyFrom(const ::google::protobuf::Message& from);
85 void MergeFrom(const ::google::protobuf::Message& from);
86 void CopyFrom(
const Model& from);
87 void MergeFrom(
const Model& from);
89 bool IsInitialized()
const;
92 bool MergePartialFromCodedStream(
93 ::google::protobuf::io::CodedInputStream* input);
94 void SerializeWithCachedSizes(
95 ::google::protobuf::io::CodedOutputStream* output)
const;
96 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
97 bool deterministic, ::google::protobuf::uint8* output)
const;
99 return InternalSerializeWithCachedSizesToArray(
false, output);
105 void SetCachedSize(
int size)
const;
106 void InternalSwap(
Model* other);
108 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
109 return _internal_metadata_.arena();
111 inline void* MaybeArenaPtr()
const {
112 return _internal_metadata_.raw_arena_ptr();
116 ::google::protobuf::Metadata GetMetadata()
const;
123 bool has_header()
const;
125 static const int kHeaderFieldNumber = 1;
126 const ::ignition::msgs::Header& header()
const;
133 static const int kNameFieldNumber = 2;
134 const ::std::string& name()
const;
135 void set_name(const ::std::string& value);
136 void set_name(
const char* value);
137 void set_name(
const char* value,
size_t size);
144 static const int kIdFieldNumber = 3;
145 ::google::protobuf::uint32 id()
const;
146 void set_id(::google::protobuf::uint32 value);
149 void clear_is_static();
150 static const int kIsStaticFieldNumber = 4;
151 bool is_static()
const;
152 void set_is_static(
bool value);
155 bool has_pose()
const;
157 static const int kPoseFieldNumber = 5;
158 const ::ignition::msgs::Pose& pose()
const;
164 int joint_size()
const;
166 static const int kJointFieldNumber = 6;
167 const ::ignition::msgs::Joint& joint(
int index)
const;
170 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >*
172 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >&
176 int link_size()
const;
178 static const int kLinkFieldNumber = 7;
179 const ::ignition::msgs::Link& link(
int index)
const;
182 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Link >*
184 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Link >&
188 void clear_deleted();
189 static const int kDeletedFieldNumber = 8;
190 bool deleted()
const;
191 void set_deleted(
bool value);
194 int visual_size()
const;
196 static const int kVisualFieldNumber = 9;
197 const ::ignition::msgs::Visual& visual(
int index)
const;
200 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >*
202 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >&
206 bool has_scale()
const;
208 static const int kScaleFieldNumber = 10;
209 const ::ignition::msgs::Vector3d& scale()
const;
215 void clear_self_collide();
216 static const int kSelfCollideFieldNumber = 11;
217 bool self_collide()
const;
218 void set_self_collide(
bool value);
221 int model_size()
const;
223 static const int kModelFieldNumber = 12;
224 const ::ignition::msgs::Model& model(
int index)
const;
227 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >*
229 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >&
233 bool has_bounding_box()
const;
234 void clear_bounding_box();
235 static const int kBoundingBoxFieldNumber = 13;
236 const ::ignition::msgs::AxisAlignedBox& bounding_box()
const;
244 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
245 bool _is_default_instance_;
247 ::google::protobuf::internal::ArenaStringPtr name_;
249 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint > joint_;
250 ::google::protobuf::uint32 id_;
254 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Link > link_;
255 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > visual_;
257 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > model_;
259 mutable int _cached_size_;
264 void InitAsDefaultInstance();
265 static Model* default_instance_;
272 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 277 return !_is_default_instance_ && header_ != NULL;
280 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
285 return header_ != NULL ? *header_ : *default_instance_->header_;
289 if (header_ == NULL) {
290 header_ = new ::ignition::msgs::Header;
315 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
319 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
323 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
328 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
333 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
334 ::
std::string(reinterpret_cast<const char*>(value), size));
340 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
345 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
353 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
387 return !_is_default_instance_ && pose_ != NULL;
390 if (GetArenaNoVirtual() == NULL && pose_ != NULL)
delete pose_;
395 return pose_ != NULL ? *pose_ : *default_instance_->pose_;
400 pose_ = new ::ignition::msgs::Pose;
425 return joint_.size();
432 return joint_.Get(index);
436 return joint_.Mutable(index);
442 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >*
447 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >&
460 inline const ::ignition::msgs::Link&
Model::link(
int index)
const {
462 return link_.Get(index);
466 return link_.Mutable(index);
472 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Link >*
477 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Link >&
499 return visual_.size();
506 return visual_.Get(index);
510 return visual_.Mutable(index);
514 return visual_.Add();
516 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >*
521 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >&
529 return !_is_default_instance_ && scale_ != NULL;
532 if (GetArenaNoVirtual() == NULL && scale_ != NULL)
delete scale_;
537 return scale_ != NULL ? *scale_ : *default_instance_->scale_;
541 if (scale_ == NULL) {
542 scale_ = new ::ignition::msgs::Vector3d;
567 self_collide_ =
false;
571 return self_collide_;
575 self_collide_ = value;
581 return model_.size();
588 return model_.Get(index);
592 return model_.Mutable(index);
598 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >*
603 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >&
611 return !_is_default_instance_ && bounding_box_ != NULL;
614 if (GetArenaNoVirtual() == NULL && bounding_box_ != NULL)
delete bounding_box_;
615 bounding_box_ = NULL;
619 return bounding_box_ != NULL ? *bounding_box_ : *default_instance_->bounding_box_;
623 if (bounding_box_ == NULL) {
624 bounding_box_ = new ::ignition::msgs::AxisAlignedBox;
627 return bounding_box_;
633 bounding_box_ = NULL;
637 delete bounding_box_;
638 bounding_box_ = bounding_box;
647 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 663 #endif // PROTOBUF_ignition_2fmsgs_2fmodel_2eproto__INCLUDED void clear_name()
Definition: model.pb.h:314
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > * mutable_visual()
Definition: model.pb.h:517
void clear_model()
Definition: model.pb.h:583
void set_name(const ::std::string &value)
Definition: model.pb.h:321
Definition: joint.pb.h:265
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint > * mutable_joint()
Definition: model.pb.h:443
void clear_deleted()
Definition: model.pb.h:484
::std::string * release_name()
Definition: model.pb.h:342
void clear_visual()
Definition: model.pb.h:501
bool has_header() const
Definition: model.pb.h:276
int GetCachedSize() const
Definition: model.pb.h:101
std::unique_ptr< const Model > ConstModelUniquePtr
Definition: model.pb.h:650
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > * mutable_model()
Definition: model.pb.h:599
::ignition::msgs::AxisAlignedBox * release_bounding_box()
Definition: model.pb.h:629
void set_allocated_name(::std::string *name)
Definition: model.pb.h:347
bool is_static() const
Definition: model.pb.h:375
void clear_bounding_box()
Definition: model.pb.h:613
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fmodel_2eproto()
int link_size() const
Definition: model.pb.h:454
std::unique_ptr< Model > ModelUniquePtr
Definition: model.pb.h:649
bool has_scale() const
Definition: model.pb.h:528
Model & operator=(const Model &from)
Definition: model.pb.h:69
::ignition::msgs::Link * add_link()
Definition: model.pb.h:468
::ignition::msgs::Pose * release_pose()
Definition: model.pb.h:405
::std::string * mutable_name()
Definition: model.pb.h:337
void set_self_collide(bool value)
Definition: model.pb.h:573
void set_allocated_scale(::ignition::msgs::Vector3d *scale)
Definition: model.pb.h:554
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: model.pb.h:98
void clear_link()
Definition: model.pb.h:457
void clear_self_collide()
Definition: model.pb.h:566
void set_is_static(bool value)
Definition: model.pb.h:379
const ::ignition::msgs::AxisAlignedBox & bounding_box() const
Definition: model.pb.h:617
const ::ignition::msgs::Vector3d & scale() const
Definition: model.pb.h:535
void clear_id()
Definition: model.pb.h:358
const ::ignition::msgs::Header & header() const
Definition: model.pb.h:283
void clear_is_static()
Definition: model.pb.h:372
void clear_joint()
Definition: model.pb.h:427
Definition: axis_aligned_box.pb.h:57
void set_id(::google::protobuf::uint32 value)
Definition: model.pb.h:365
void set_allocated_bounding_box(::ignition::msgs::AxisAlignedBox *bounding_box)
Definition: model.pb.h:636
void clear_scale()
Definition: model.pb.h:531
bool has_pose() const
Definition: model.pb.h:386
Definition: visual.pb.h:172
std::shared_ptr< const Model > ConstModelSharedPtr
Definition: model.pb.h:652
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Link > * mutable_link()
Definition: model.pb.h:473
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > & visual() const
Definition: model.pb.h:522
::ignition::msgs::Header * release_header()
Definition: model.pb.h:295
const ::ignition::msgs::Pose & pose() const
Definition: model.pb.h:393
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint > & joint() const
Definition: model.pb.h:448
std::shared_ptr< Model > ModelSharedPtr
Definition: model.pb.h:651
bool deleted() const
Definition: model.pb.h:487
int visual_size() const
Definition: model.pb.h:498
Model * New() const
Definition: model.pb.h:81
void clear_header()
Definition: model.pb.h:279
Definition: vector3d.pb.h:56
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > & model() const
Definition: model.pb.h:604
Definition: model.pb.h:62
::ignition::msgs::Visual * add_visual()
Definition: model.pb.h:512
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: model.pb.h:412
void protobuf_AssignDesc_ignition_2fmsgs_2fmodel_2eproto()
int joint_size() const
Definition: model.pb.h:424
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Link > & link() const
Definition: model.pb.h:478
::ignition::msgs::Header * mutable_header()
Definition: model.pb.h:287
const ::std::string & name() const
Definition: model.pb.h:317
void set_allocated_header(::ignition::msgs::Header *header)
Definition: model.pb.h:302
bool self_collide() const
Definition: model.pb.h:569
bool has_bounding_box() const
Definition: model.pb.h:610
::ignition::msgs::AxisAlignedBox * mutable_bounding_box()
Definition: model.pb.h:621
::google::protobuf::uint32 id() const
Definition: model.pb.h:361
::ignition::msgs::Model * add_model()
Definition: model.pb.h:594
int model_size() const
Definition: model.pb.h:580
void protobuf_ShutdownFile_ignition_2fmsgs_2fmodel_2eproto()
void set_deleted(bool value)
Definition: model.pb.h:491
::ignition::msgs::Vector3d * release_scale()
Definition: model.pb.h:547
::ignition::msgs::Vector3d * mutable_scale()
Definition: model.pb.h:539
::ignition::msgs::Pose * mutable_pose()
Definition: model.pb.h:397
void clear_pose()
Definition: model.pb.h:389
::ignition::msgs::Joint * add_joint()
Definition: model.pb.h:438