4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fmodel_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fmodel_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
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 3014000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h>
32 #include <google/protobuf/extension_set.h>
33 #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>
53 #include <google/protobuf/port_def.inc>
54 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fmodel_2eproto IGNITION_MSGS_VISIBLE
55 PROTOBUF_NAMESPACE_OPEN
59 PROTOBUF_NAMESPACE_CLOSE
63 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
65 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
67 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
69 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
70 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
71 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
77 class ModelDefaultTypeInternal;
81 PROTOBUF_NAMESPACE_OPEN
82 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Model* Arena::CreateMaybeMessage<::ignition::msgs::Model>(Arena*);
83 PROTOBUF_NAMESPACE_CLOSE
89 class IGNITION_MSGS_VISIBLE Model PROTOBUF_FINAL :
90 public ::PROTOBUF_NAMESPACE_ID::Message {
98 *
this = ::std::move(from);
106 if (GetArena() == from.GetArena()) {
107 if (
this != &from) InternalSwap(&from);
114 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
115 return GetDescriptor();
118 return GetMetadataStatic().descriptor;
121 return GetMetadataStatic().reflection;
126 return reinterpret_cast<const Model*
>(
129 static constexpr
int kIndexInFileMessages =
136 if (other ==
this)
return;
137 if (GetArena() == other->GetArena()) {
140 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
144 if (other ==
this)
return;
145 GOOGLE_DCHECK(GetArena() == other->GetArena());
152 return CreateMaybeMessage<Model>(
nullptr);
155 Model*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
156 return CreateMaybeMessage<Model>(arena);
158 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
159 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
162 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
163 bool IsInitialized() const final;
165 size_t ByteSizeLong() const final;
166 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
167 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
168 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
169 int GetCachedSize() const final {
return _cached_size_.Get(); }
172 inline void SharedCtor();
173 inline void SharedDtor();
174 void SetCachedSize(
int size)
const final;
175 void InternalSwap(Model* other);
176 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
177 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
178 return "ignition.msgs.Model";
181 explicit Model(::PROTOBUF_NAMESPACE_ID::Arena* arena);
183 static void ArenaDtor(
void*
object);
184 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
189 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
201 kJointFieldNumber = 6,
202 kLinkFieldNumber = 7,
203 kVisualFieldNumber = 9,
204 kModelFieldNumber = 12,
205 kNameFieldNumber = 2,
206 kHeaderFieldNumber = 1,
207 kPoseFieldNumber = 5,
208 kScaleFieldNumber = 10,
209 kBoundingBoxFieldNumber = 13,
211 kIsStaticFieldNumber = 4,
212 kDeletedFieldNumber = 8,
213 kSelfCollideFieldNumber = 11,
218 int _internal_joint_size()
const;
222 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Joint >*
225 const ::ignition::msgs::Joint& _internal_joint(
int index)
const;
226 ::ignition::msgs::Joint* _internal_add_joint();
228 const ::ignition::msgs::Joint&
joint(
int index)
const;
230 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Joint >&
236 int _internal_link_size()
const;
240 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Link >*
243 const ::ignition::msgs::Link& _internal_link(
int index)
const;
244 ::ignition::msgs::Link* _internal_add_link();
246 const ::ignition::msgs::Link&
link(
int index)
const;
248 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Link >&
254 int _internal_visual_size()
const;
258 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Visual >*
261 const ::ignition::msgs::Visual& _internal_visual(
int index)
const;
262 ::ignition::msgs::Visual* _internal_add_visual();
264 const ::ignition::msgs::Visual&
visual(
int index)
const;
266 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Visual >&
272 int _internal_model_size()
const;
276 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model >*
279 const ::ignition::msgs::Model& _internal_model(
int index)
const;
280 ::ignition::msgs::Model* _internal_add_model();
282 const ::ignition::msgs::Model&
model(
int index)
const;
284 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model >&
306 bool _internal_has_header()
const;
309 const ::ignition::msgs::Header&
header()
const;
314 const ::ignition::msgs::Header& _internal_header()
const;
315 ::ignition::msgs::Header* _internal_mutable_header();
318 ::ignition::msgs::Header* header);
324 bool _internal_has_pose()
const;
327 const ::ignition::msgs::Pose&
pose()
const;
332 const ::ignition::msgs::Pose& _internal_pose()
const;
333 ::ignition::msgs::Pose* _internal_mutable_pose();
336 ::ignition::msgs::Pose* pose);
342 bool _internal_has_scale()
const;
345 const ::ignition::msgs::Vector3d&
scale()
const;
350 const ::ignition::msgs::Vector3d& _internal_scale()
const;
351 ::ignition::msgs::Vector3d* _internal_mutable_scale();
354 ::ignition::msgs::Vector3d* scale);
360 bool _internal_has_bounding_box()
const;
368 const ::ignition::msgs::AxisAlignedBox& _internal_bounding_box()
const;
369 ::ignition::msgs::AxisAlignedBox* _internal_mutable_bounding_box();
372 ::ignition::msgs::AxisAlignedBox* bounding_box);
377 ::PROTOBUF_NAMESPACE_ID::uint32
id()
const;
378 void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
380 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_id()
const;
381 void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
389 bool _internal_is_static()
const;
390 void _internal_set_is_static(
bool value);
398 bool _internal_deleted()
const;
399 void _internal_set_deleted(
bool value);
407 bool _internal_self_collide()
const;
408 void _internal_set_self_collide(
bool value);
415 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
416 typedef void InternalArenaConstructable_;
417 typedef void DestructorSkippable_;
418 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Joint > joint_;
419 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Link > link_;
420 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Visual > visual_;
421 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model > model_;
422 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
423 ::ignition::msgs::Header* header_;
424 ::ignition::msgs::Pose* pose_;
425 ::ignition::msgs::Vector3d* scale_;
426 ::ignition::msgs::AxisAlignedBox* bounding_box_;
427 ::PROTOBUF_NAMESPACE_ID::uint32 id_;
431 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
432 friend struct ::TableStruct_ignition_2fmsgs_2fmodel_2eproto;
440 #pragma GCC diagnostic push
441 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
446 inline bool Model::_internal_has_header()
const {
447 return this != internal_default_instance() && header_ !=
nullptr;
449 inline bool Model::has_header()
const {
450 return _internal_has_header();
452 inline const ::ignition::msgs::Header& Model::_internal_header()
const {
453 const ::ignition::msgs::Header* p = header_;
454 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
457 inline const ::ignition::msgs::Header& Model::header()
const {
459 return _internal_header();
461 inline void Model::unsafe_arena_set_allocated_header(
462 ::ignition::msgs::Header* header) {
463 if (GetArena() ==
nullptr) {
464 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
474 inline ::ignition::msgs::Header* Model::release_header() {
476 ::ignition::msgs::Header* temp = header_;
478 if (GetArena() !=
nullptr) {
479 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
483 inline ::ignition::msgs::Header* Model::unsafe_arena_release_header() {
486 ::ignition::msgs::Header* temp = header_;
490 inline ::ignition::msgs::Header* Model::_internal_mutable_header() {
492 if (header_ ==
nullptr) {
493 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
498 inline ::ignition::msgs::Header* Model::mutable_header() {
500 return _internal_mutable_header();
502 inline void Model::set_allocated_header(::ignition::msgs::Header* header) {
503 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
504 if (message_arena ==
nullptr) {
505 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
508 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
509 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
510 if (message_arena != submessage_arena) {
511 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
512 message_arena, header, submessage_arena);
523 inline void Model::clear_name() {
524 name_.ClearToEmpty();
528 return _internal_name();
530 inline void Model::set_name(
const std::string& value) {
531 _internal_set_name(value);
536 return _internal_mutable_name();
538 inline const std::string& Model::_internal_name()
const {
541 inline void Model::_internal_set_name(
const std::string& value) {
543 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
548 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
551 inline void Model::set_name(
const char* value) {
552 GOOGLE_DCHECK(value !=
nullptr);
554 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
557 inline void Model::set_name(
const char* value,
560 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
561 reinterpret_cast<const char*
>(value), size), GetArena());
564 inline std::string* Model::_internal_mutable_name() {
566 return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
570 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
572 inline void Model::set_allocated_name(
std::string* name) {
573 if (name !=
nullptr) {
578 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
584 inline void Model::clear_id() {
587 inline ::PROTOBUF_NAMESPACE_ID::uint32 Model::_internal_id()
const {
590 inline ::PROTOBUF_NAMESPACE_ID::uint32 Model::id()
const {
592 return _internal_id();
594 inline void Model::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
598 inline void Model::set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
599 _internal_set_id(value);
604 inline void Model::clear_is_static() {
607 inline bool Model::_internal_is_static()
const {
610 inline bool Model::is_static()
const {
612 return _internal_is_static();
614 inline void Model::_internal_set_is_static(
bool value) {
618 inline void Model::set_is_static(
bool value) {
619 _internal_set_is_static(value);
624 inline bool Model::_internal_has_pose()
const {
625 return this != internal_default_instance() && pose_ !=
nullptr;
627 inline bool Model::has_pose()
const {
628 return _internal_has_pose();
630 inline const ::ignition::msgs::Pose& Model::_internal_pose()
const {
631 const ::ignition::msgs::Pose* p = pose_;
632 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Pose&
>(
635 inline const ::ignition::msgs::Pose& Model::pose()
const {
637 return _internal_pose();
639 inline void Model::unsafe_arena_set_allocated_pose(
640 ::ignition::msgs::Pose* pose) {
641 if (GetArena() ==
nullptr) {
642 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pose_);
652 inline ::ignition::msgs::Pose* Model::release_pose() {
654 ::ignition::msgs::Pose* temp = pose_;
656 if (GetArena() !=
nullptr) {
657 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
661 inline ::ignition::msgs::Pose* Model::unsafe_arena_release_pose() {
664 ::ignition::msgs::Pose* temp = pose_;
668 inline ::ignition::msgs::Pose* Model::_internal_mutable_pose() {
670 if (pose_ ==
nullptr) {
671 auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArena());
676 inline ::ignition::msgs::Pose* Model::mutable_pose() {
678 return _internal_mutable_pose();
680 inline void Model::set_allocated_pose(::ignition::msgs::Pose* pose) {
681 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
682 if (message_arena ==
nullptr) {
683 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pose_);
686 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
687 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pose)->GetArena();
688 if (message_arena != submessage_arena) {
689 pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
690 message_arena, pose, submessage_arena);
701 inline int Model::_internal_joint_size()
const {
702 return joint_.size();
704 inline int Model::joint_size()
const {
705 return _internal_joint_size();
707 inline ::ignition::msgs::Joint* Model::mutable_joint(
int index) {
709 return joint_.Mutable(index);
711 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Joint >*
712 Model::mutable_joint() {
716 inline const ::ignition::msgs::Joint& Model::_internal_joint(
int index)
const {
717 return joint_.Get(index);
719 inline const ::ignition::msgs::Joint& Model::joint(
int index)
const {
721 return _internal_joint(index);
723 inline ::ignition::msgs::Joint* Model::_internal_add_joint() {
726 inline ::ignition::msgs::Joint* Model::add_joint() {
728 return _internal_add_joint();
730 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Joint >&
731 Model::joint()
const {
737 inline int Model::_internal_link_size()
const {
740 inline int Model::link_size()
const {
741 return _internal_link_size();
743 inline ::ignition::msgs::Link* Model::mutable_link(
int index) {
745 return link_.Mutable(index);
747 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Link >*
748 Model::mutable_link() {
752 inline const ::ignition::msgs::Link& Model::_internal_link(
int index)
const {
753 return link_.Get(index);
755 inline const ::ignition::msgs::Link& Model::link(
int index)
const {
757 return _internal_link(index);
759 inline ::ignition::msgs::Link* Model::_internal_add_link() {
762 inline ::ignition::msgs::Link* Model::add_link() {
764 return _internal_add_link();
766 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Link >&
767 Model::link()
const {
773 inline void Model::clear_deleted() {
776 inline bool Model::_internal_deleted()
const {
779 inline bool Model::deleted()
const {
781 return _internal_deleted();
783 inline void Model::_internal_set_deleted(
bool value) {
787 inline void Model::set_deleted(
bool value) {
788 _internal_set_deleted(value);
793 inline int Model::_internal_visual_size()
const {
794 return visual_.size();
796 inline int Model::visual_size()
const {
797 return _internal_visual_size();
799 inline ::ignition::msgs::Visual* Model::mutable_visual(
int index) {
801 return visual_.Mutable(index);
803 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Visual >*
804 Model::mutable_visual() {
808 inline const ::ignition::msgs::Visual& Model::_internal_visual(
int index)
const {
809 return visual_.Get(index);
811 inline const ::ignition::msgs::Visual& Model::visual(
int index)
const {
813 return _internal_visual(index);
815 inline ::ignition::msgs::Visual* Model::_internal_add_visual() {
816 return visual_.Add();
818 inline ::ignition::msgs::Visual* Model::add_visual() {
820 return _internal_add_visual();
822 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Visual >&
823 Model::visual()
const {
829 inline bool Model::_internal_has_scale()
const {
830 return this != internal_default_instance() && scale_ !=
nullptr;
832 inline bool Model::has_scale()
const {
833 return _internal_has_scale();
835 inline const ::ignition::msgs::Vector3d& Model::_internal_scale()
const {
836 const ::ignition::msgs::Vector3d* p = scale_;
837 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Vector3d&
>(
840 inline const ::ignition::msgs::Vector3d& Model::scale()
const {
842 return _internal_scale();
844 inline void Model::unsafe_arena_set_allocated_scale(
845 ::ignition::msgs::Vector3d* scale) {
846 if (GetArena() ==
nullptr) {
847 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(scale_);
857 inline ::ignition::msgs::Vector3d* Model::release_scale() {
859 ::ignition::msgs::Vector3d* temp = scale_;
861 if (GetArena() !=
nullptr) {
862 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
866 inline ::ignition::msgs::Vector3d* Model::unsafe_arena_release_scale() {
869 ::ignition::msgs::Vector3d* temp = scale_;
873 inline ::ignition::msgs::Vector3d* Model::_internal_mutable_scale() {
875 if (scale_ ==
nullptr) {
876 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArena());
881 inline ::ignition::msgs::Vector3d* Model::mutable_scale() {
883 return _internal_mutable_scale();
885 inline void Model::set_allocated_scale(::ignition::msgs::Vector3d* scale) {
886 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
887 if (message_arena ==
nullptr) {
888 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(scale_);
891 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
892 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(scale)->GetArena();
893 if (message_arena != submessage_arena) {
894 scale = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
895 message_arena, scale, submessage_arena);
906 inline void Model::clear_self_collide() {
907 self_collide_ =
false;
909 inline bool Model::_internal_self_collide()
const {
910 return self_collide_;
912 inline bool Model::self_collide()
const {
914 return _internal_self_collide();
916 inline void Model::_internal_set_self_collide(
bool value) {
918 self_collide_ = value;
920 inline void Model::set_self_collide(
bool value) {
921 _internal_set_self_collide(value);
926 inline int Model::_internal_model_size()
const {
927 return model_.size();
929 inline int Model::model_size()
const {
930 return _internal_model_size();
932 inline void Model::clear_model() {
935 inline ::ignition::msgs::Model* Model::mutable_model(
int index) {
937 return model_.Mutable(index);
939 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model >*
940 Model::mutable_model() {
944 inline const ::ignition::msgs::Model& Model::_internal_model(
int index)
const {
945 return model_.Get(index);
947 inline const ::ignition::msgs::Model& Model::model(
int index)
const {
949 return _internal_model(index);
951 inline ::ignition::msgs::Model* Model::_internal_add_model() {
954 inline ::ignition::msgs::Model* Model::add_model() {
956 return _internal_add_model();
958 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model >&
959 Model::model()
const {
965 inline bool Model::_internal_has_bounding_box()
const {
966 return this != internal_default_instance() && bounding_box_ !=
nullptr;
968 inline bool Model::has_bounding_box()
const {
969 return _internal_has_bounding_box();
971 inline const ::ignition::msgs::AxisAlignedBox& Model::_internal_bounding_box()
const {
972 const ::ignition::msgs::AxisAlignedBox* p = bounding_box_;
973 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::AxisAlignedBox&
>(
976 inline const ::ignition::msgs::AxisAlignedBox& Model::bounding_box()
const {
978 return _internal_bounding_box();
980 inline void Model::unsafe_arena_set_allocated_bounding_box(
981 ::ignition::msgs::AxisAlignedBox* bounding_box) {
982 if (GetArena() ==
nullptr) {
983 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(bounding_box_);
985 bounding_box_ = bounding_box;
993 inline ::ignition::msgs::AxisAlignedBox* Model::release_bounding_box() {
995 ::ignition::msgs::AxisAlignedBox* temp = bounding_box_;
996 bounding_box_ =
nullptr;
997 if (GetArena() !=
nullptr) {
998 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1002 inline ::ignition::msgs::AxisAlignedBox* Model::unsafe_arena_release_bounding_box() {
1005 ::ignition::msgs::AxisAlignedBox* temp = bounding_box_;
1006 bounding_box_ =
nullptr;
1009 inline ::ignition::msgs::AxisAlignedBox* Model::_internal_mutable_bounding_box() {
1011 if (bounding_box_ ==
nullptr) {
1012 auto* p = CreateMaybeMessage<::ignition::msgs::AxisAlignedBox>(GetArena());
1015 return bounding_box_;
1017 inline ::ignition::msgs::AxisAlignedBox* Model::mutable_bounding_box() {
1019 return _internal_mutable_bounding_box();
1021 inline void Model::set_allocated_bounding_box(::ignition::msgs::AxisAlignedBox* bounding_box) {
1022 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1023 if (message_arena ==
nullptr) {
1024 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(bounding_box_);
1027 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1028 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(bounding_box)->GetArena();
1029 if (message_arena != submessage_arena) {
1030 bounding_box = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1031 message_arena, bounding_box, submessage_arena);
1037 bounding_box_ = bounding_box;
1042 #pragma GCC diagnostic pop
1055 #pragma warning(pop)
1059 #include <google/protobuf/port_undef.inc>
const ::ignition::msgs::Model & model(int index) const
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Link > * mutable_link()
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model > & model() const
::ignition::msgs::Model * add_model()
Model & operator=(const Model &from)
Definition: model.pb.h:101
Model * New() const final
Definition: model.pb.h:151
::ignition::msgs::AxisAlignedBox * release_bounding_box()
::ignition::msgs::Pose * release_pose()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: model.pb.h:120
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void unsafe_arena_set_allocated_pose(::ignition::msgs::Pose *pose)
::ignition::msgs::Header * release_header()
const ::ignition::msgs::Link & link(int index) const
void set_name(const char *value, size_t size)
::ignition::msgs::AxisAlignedBox * mutable_bounding_box()
const ::ignition::msgs::Vector3d & scale() const
::ignition::msgs::Link * add_link()
::ignition::msgs::Header * mutable_header()
::ignition::msgs::Vector3d * mutable_scale()
Model(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: model.pb.h:114
Model()
Definition: model.pb.h:92
void set_name(const std::string &value)
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Joint > & joint() const
void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value)
::ignition::msgs::Model * mutable_model(int index)
void set_is_static(bool value)
FuelMetadata_Model Model
Definition: fuel_metadata.pb.h:1257
::ignition::msgs::Joint * mutable_joint(int index)
Model(Model &&from) noexcept
Definition: model.pb.h:96
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Joint > * mutable_joint()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void unsafe_arena_set_allocated_scale(::ignition::msgs::Vector3d *scale)
std::string * mutable_name()
void set_allocated_bounding_box(::ignition::msgs::AxisAlignedBox *bounding_box)
::ignition::msgs::Joint * add_joint()
const ::ignition::msgs::AxisAlignedBox & bounding_box() const
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Visual > & visual() const
std::string * release_name()
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
void set_self_collide(bool value)
void clear_bounding_box()
::ignition::msgs::AxisAlignedBox * unsafe_arena_release_bounding_box()
void unsafe_arena_set_allocated_bounding_box(::ignition::msgs::AxisAlignedBox *bounding_box)
::ignition::msgs::Visual * mutable_visual(int index)
void clear_self_collide()
void set_allocated_pose(::ignition::msgs::Pose *pose)
::ignition::msgs::Header * unsafe_arena_release_header()
void set_deleted(bool value)
static const Model & default_instance()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Model * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: model.pb.h:155
const ::ignition::msgs::Visual & visual(int index) const
bool has_bounding_box() const
void CopyFrom(const Model &from)
void set_allocated_header(::ignition::msgs::Header *header)
const ::ignition::msgs::Pose & pose() const
::ignition::msgs::Pose * unsafe_arena_release_pose()
void UnsafeArenaSwap(Model *other)
Definition: model.pb.h:143
void set_allocated_scale(::ignition::msgs::Vector3d *scale)
Model & operator=(Model &&from) noexcept
Definition: model.pb.h:105
::ignition::msgs::Pose * mutable_pose()
::ignition::msgs::Link * mutable_link(int index)
::ignition::msgs::Vector3d * unsafe_arena_release_scale()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::PROTOBUF_NAMESPACE_ID::uint32 id() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: model.pb.h:117
::ignition::msgs::Visual * add_visual()
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model > * mutable_model()
bool self_collide() const
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Link > & link() const
static const Model * internal_default_instance()
Definition: model.pb.h:125
const std::string & name() const
void set_name(const char *value)
void set_name(std::string &&value)
::ignition::msgs::Vector3d * release_scale()
void Swap(Model *other)
Definition: model.pb.h:135
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Visual > * mutable_visual()
friend void swap(Model &a, Model &b)
Definition: model.pb.h:132
void set_allocated_name(std::string *name)
const ::ignition::msgs::Header & header() const
const ::ignition::msgs::Joint & joint(int index) const
void MergeFrom(const Model &from)
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fmodel_2eproto
std::shared_ptr< const Model > ConstModelSharedPtr
Definition: model.pb.h:1048
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
IGNITION_MSGS_VISIBLE ModelDefaultTypeInternal _Model_default_instance_
std::shared_ptr< Model > ModelSharedPtr
Definition: model.pb.h:1047
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< const Model > ConstModelUniquePtr
Definition: model.pb.h:1046
IGNITION_MSGS_VISIBLE PoseDefaultTypeInternal _Pose_default_instance_
std::unique_ptr< Model > ModelUniquePtr
Definition: model.pb.h:1045
IGNITION_MSGS_VISIBLE AxisAlignedBoxDefaultTypeInternal _AxisAlignedBox_default_instance_
Definition: actor.pb.h:52
Definition: model.pb.h:62
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)