4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fmodel_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fmodel_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>
41 #pragma GCC system_header
44 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
47 #include <sys/sysmacros.h>
52 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fmodel_2eproto IGNITION_MSGS_VISIBLE
57 static const ::google::protobuf::internal::ParseTableField entries[];
58 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
59 static const ::google::protobuf::internal::ParseTable schema[1];
60 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
61 static const ::google::protobuf::internal::SerializationTable serialization_table[];
62 static const ::google::protobuf::uint32 offsets[];
69 class ModelDefaultTypeInternal;
75 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Model* Arena::CreateMaybeMessage<::ignition::msgs::Model>(Arena*);
83 class IGNITION_MSGS_VISIBLE
Model :
public ::google::protobuf::Message {
97 *
this = ::std::move(from);
100 inline Model& operator=(Model&& from) noexcept {
101 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
102 if (
this != &from) InternalSwap(&from);
109 static const ::google::protobuf::Descriptor* descriptor();
110 static const Model& default_instance();
112 static void InitAsDefaultInstance();
114 return reinterpret_cast<const Model*
>(
117 static constexpr
int kIndexInFileMessages =
120 void Swap(
Model* other);
128 return CreateMaybeMessage<Model>(NULL);
131 Model*
New(::google::protobuf::Arena* arena)
const final {
132 return CreateMaybeMessage<Model>(arena);
134 void CopyFrom(const ::google::protobuf::Message& from)
final;
135 void MergeFrom(const ::google::protobuf::Message& from)
final;
136 void CopyFrom(
const Model& from);
137 void MergeFrom(
const Model& from);
139 bool IsInitialized() const final;
141 size_t ByteSizeLong() const final;
142 bool MergePartialFromCodedStream(
143 ::
google::protobuf::io::CodedInputStream* input) final;
144 void SerializeWithCachedSizes(
145 ::
google::protobuf::io::CodedOutputStream* output) const final;
146 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
147 bool deterministic, ::
google::protobuf::uint8* target) const final;
148 int GetCachedSize() const final {
return _cached_size_.Get(); }
153 void SetCachedSize(
int size)
const final;
154 void InternalSwap(
Model* other);
156 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
159 inline void* MaybeArenaPtr()
const {
164 ::google::protobuf::Metadata GetMetadata() const final;
171 int joint_size() const;
173 static const
int kJointFieldNumber = 6;
183 int link_size() const;
185 static const
int kLinkFieldNumber = 7;
195 int visual_size() const;
197 static const
int kVisualFieldNumber = 9;
207 int model_size() const;
209 static const
int kModelFieldNumber = 12;
220 static const
int kNameFieldNumber = 2;
221 const ::
std::
string& name() const;
222 void set_name(const ::
std::
string& value);
226 void set_name(
const char* value);
227 void set_name(
const char* value,
size_t size);
233 bool has_header()
const;
235 static const int kHeaderFieldNumber = 1;
237 const ::ignition::msgs::Header& _internal_header()
const;
239 const ::ignition::msgs::Header& header()
const;
245 bool has_pose()
const;
247 static const int kPoseFieldNumber = 5;
249 const ::ignition::msgs::Pose& _internal_pose()
const;
251 const ::ignition::msgs::Pose& pose()
const;
257 bool has_scale()
const;
259 static const int kScaleFieldNumber = 10;
261 const ::ignition::msgs::Vector3d& _internal_scale()
const;
263 const ::ignition::msgs::Vector3d& scale()
const;
269 bool has_bounding_box()
const;
270 void clear_bounding_box();
271 static const int kBoundingBoxFieldNumber = 13;
273 const ::ignition::msgs::AxisAlignedBox& _internal_bounding_box()
const;
275 const ::ignition::msgs::AxisAlignedBox& bounding_box()
const;
282 static const int kIdFieldNumber = 3;
283 ::google::protobuf::uint32 id()
const;
284 void set_id(::google::protobuf::uint32 value);
287 void clear_is_static();
288 static const int kIsStaticFieldNumber = 4;
289 bool is_static()
const;
290 void set_is_static(
bool value);
293 void clear_deleted();
294 static const int kDeletedFieldNumber = 8;
295 bool deleted()
const;
296 void set_deleted(
bool value);
299 void clear_self_collide();
300 static const int kSelfCollideFieldNumber = 11;
301 bool self_collide()
const;
302 void set_self_collide(
bool value);
307 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
308 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint > joint_;
309 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Link > link_;
310 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual > visual_;
311 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > model_;
312 ::google::protobuf::internal::ArenaStringPtr name_;
317 ::google::protobuf::uint32 id_;
321 mutable ::google::protobuf::internal::CachedSize _cached_size_;
322 friend struct ::protobuf_ignition_2fmsgs_2fmodel_2eproto::TableStruct;
330 #pragma GCC diagnostic push
331 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
339 inline const ::ignition::msgs::Header& Model::_internal_header()
const {
343 const ::ignition::msgs::Header* p = header_;
357 if (header_ == NULL) {
358 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
365 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
366 if (message_arena == NULL) {
367 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
370 ::google::protobuf::Arena* submessage_arena = NULL;
371 if (message_arena != submessage_arena) {
372 header = ::google::protobuf::internal::GetOwnedMessage(
373 message_arena,
header, submessage_arena);
385 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
389 return name_.GetNoArena();
393 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
400 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
405 GOOGLE_DCHECK(value != NULL);
407 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
412 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
413 ::
std::string(
reinterpret_cast<const char*
>(value), size));
419 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
424 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
432 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
468 inline const ::ignition::msgs::Pose& Model::_internal_pose()
const {
472 const ::ignition::msgs::Pose* p = pose_;
487 auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaNoVirtual());
494 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
495 if (message_arena == NULL) {
496 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
499 ::google::protobuf::Arena* submessage_arena = NULL;
500 if (message_arena != submessage_arena) {
501 pose = ::google::protobuf::internal::GetOwnedMessage(
502 message_arena,
pose, submessage_arena);
514 return joint_.size();
518 return joint_.Mutable(index);
520 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >*
527 return joint_.Get(index);
533 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >&
545 return link_.Mutable(index);
547 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Link >*
552 inline const ::ignition::msgs::Link&
Model::link(
int index)
const {
554 return link_.Get(index);
560 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Link >&
582 return visual_.size();
586 return visual_.Mutable(index);
588 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >*
595 return visual_.Get(index);
599 return visual_.Add();
601 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Visual >&
611 inline const ::ignition::msgs::Vector3d& Model::_internal_scale()
const {
615 const ::ignition::msgs::Vector3d* p = scale_;
629 if (scale_ == NULL) {
630 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaNoVirtual());
637 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
638 if (message_arena == NULL) {
639 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(scale_);
642 ::google::protobuf::Arena* submessage_arena = NULL;
643 if (message_arena != submessage_arena) {
644 scale = ::google::protobuf::internal::GetOwnedMessage(
645 message_arena,
scale, submessage_arena);
657 self_collide_ =
false;
661 return self_collide_;
665 self_collide_ = value;
671 return model_.size();
678 return model_.Mutable(index);
680 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >*
687 return model_.Get(index);
693 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >&
703 inline const ::ignition::msgs::AxisAlignedBox& Model::_internal_bounding_box()
const {
704 return *bounding_box_;
707 const ::ignition::msgs::AxisAlignedBox* p = bounding_box_;
716 bounding_box_ = NULL;
721 if (bounding_box_ == NULL) {
722 auto* p = CreateMaybeMessage<::ignition::msgs::AxisAlignedBox>(GetArenaNoVirtual());
726 return bounding_box_;
729 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
730 if (message_arena == NULL) {
731 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(bounding_box_);
734 ::google::protobuf::Arena* submessage_arena = NULL;
735 if (message_arena != submessage_arena) {
736 bounding_box = ::google::protobuf::internal::GetOwnedMessage(
748 #pragma GCC diagnostic pop
765 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fmodel_2eproto