4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fmodel_2eproto
5 #define PROTOBUF_INCLUDED_gz_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>
33 #include "gz/msgs/axis_aligned_box.pb.h"
34 #include "gz/msgs/joint.pb.h"
35 #include "gz/msgs/link.pb.h"
36 #include "gz/msgs/pose.pb.h"
37 #include "gz/msgs/visual.pb.h"
38 #include "gz/msgs/vector3d.pb.h"
39 #include "gz/msgs/header.pb.h"
41 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fmodel_2eproto GZ_MSGS_VISIBLE
46 static const ::google::protobuf::internal::ParseTableField entries[];
47 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
48 static const ::google::protobuf::internal::ParseTable schema[1];
49 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
50 static const ::google::protobuf::internal::SerializationTable serialization_table[];
51 static const ::google::protobuf::uint32 offsets[];
58 class ModelDefaultTypeInternal;
64 template<> GZ_MSGS_VISIBLE ::gz::msgs::Model* Arena::CreateMaybeMessage<::gz::msgs::Model>(Arena*);
72 class GZ_MSGS_VISIBLE
Model :
public ::google::protobuf::Message {
86 *
this = ::std::move(from);
89 inline Model& operator=(Model&& from) noexcept {
90 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
91 if (
this != &from) InternalSwap(&from);
98 static const ::google::protobuf::Descriptor* descriptor();
99 static const Model& default_instance();
101 static void InitAsDefaultInstance();
103 return reinterpret_cast<const Model*
>(
106 static constexpr
int kIndexInFileMessages =
109 void Swap(
Model* other);
117 return CreateMaybeMessage<Model>(NULL);
120 Model*
New(::google::protobuf::Arena* arena)
const final {
121 return CreateMaybeMessage<Model>(arena);
123 void CopyFrom(const ::google::protobuf::Message& from)
final;
124 void MergeFrom(const ::google::protobuf::Message& from)
final;
125 void CopyFrom(
const Model& from);
126 void MergeFrom(
const Model& from);
128 bool IsInitialized() const final;
130 size_t ByteSizeLong() const final;
131 bool MergePartialFromCodedStream(
132 ::
google::protobuf::io::CodedInputStream* input) final;
133 void SerializeWithCachedSizes(
134 ::
google::protobuf::io::CodedOutputStream* output) const final;
135 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
136 bool deterministic, ::
google::protobuf::uint8* target) const final;
137 int GetCachedSize() const final {
return _cached_size_.Get(); }
142 void SetCachedSize(
int size)
const final;
143 void InternalSwap(
Model* other);
145 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
148 inline void* MaybeArenaPtr()
const {
153 ::google::protobuf::Metadata GetMetadata() const final;
160 int joint_size() const;
162 static const
int kJointFieldNumber = 6;
163 ::
gz::msgs::
Joint* mutable_joint(
int index);
166 const ::
gz::msgs::
Joint& joint(
int index) const;
167 ::
gz::msgs::
Joint* add_joint();
168 const ::
google::protobuf::RepeatedPtrField< ::
gz::msgs::
Joint >&
172 int link_size() const;
174 static const
int kLinkFieldNumber = 7;
175 ::
gz::msgs::
Link* mutable_link(
int index);
176 ::
google::protobuf::RepeatedPtrField< ::
gz::msgs::
Link >*
178 const ::
gz::msgs::
Link& link(
int index) const;
179 ::
gz::msgs::
Link* add_link();
180 const ::
google::protobuf::RepeatedPtrField< ::
gz::msgs::
Link >&
184 int visual_size() const;
186 static const
int kVisualFieldNumber = 9;
187 ::
gz::msgs::
Visual* mutable_visual(
int index);
190 const ::
gz::msgs::
Visual& visual(
int index) const;
196 int model_size() const;
198 static const
int kModelFieldNumber = 12;
199 ::
gz::msgs::
Model* mutable_model(
int index);
202 const ::
gz::msgs::
Model& model(
int index) const;
203 ::
gz::msgs::
Model* add_model();
204 const ::
google::protobuf::RepeatedPtrField< ::
gz::msgs::
Model >&
209 static const
int kNameFieldNumber = 2;
210 const ::
std::
string& name() const;
211 void set_name(const ::
std::
string& value);
215 void set_name(
const char* value);
216 void set_name(
const char* value,
size_t size);
222 bool has_header()
const;
224 static const int kHeaderFieldNumber = 1;
226 const ::gz::msgs::Header& _internal_header()
const;
228 const ::gz::msgs::Header& header()
const;
234 bool has_pose()
const;
236 static const int kPoseFieldNumber = 5;
238 const ::gz::msgs::Pose& _internal_pose()
const;
240 const ::gz::msgs::Pose& pose()
const;
246 bool has_scale()
const;
248 static const int kScaleFieldNumber = 10;
250 const ::gz::msgs::Vector3d& _internal_scale()
const;
252 const ::gz::msgs::Vector3d& scale()
const;
258 bool has_bounding_box()
const;
259 void clear_bounding_box();
260 static const int kBoundingBoxFieldNumber = 13;
262 const ::gz::msgs::AxisAlignedBox& _internal_bounding_box()
const;
264 const ::gz::msgs::AxisAlignedBox& bounding_box()
const;
271 static const int kIdFieldNumber = 3;
272 ::google::protobuf::uint32 id()
const;
273 void set_id(::google::protobuf::uint32 value);
276 void clear_is_static();
277 static const int kIsStaticFieldNumber = 4;
278 bool is_static()
const;
279 void set_is_static(
bool value);
282 void clear_deleted();
283 static const int kDeletedFieldNumber = 8;
284 bool deleted()
const;
285 void set_deleted(
bool value);
288 void clear_self_collide();
289 static const int kSelfCollideFieldNumber = 11;
290 bool self_collide()
const;
291 void set_self_collide(
bool value);
296 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
297 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Joint > joint_;
298 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Link > link_;
299 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Visual > visual_;
300 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Model > model_;
301 ::google::protobuf::internal::ArenaStringPtr name_;
306 ::google::protobuf::uint32 id_;
310 mutable ::google::protobuf::internal::CachedSize _cached_size_;
311 friend struct ::protobuf_gz_2fmsgs_2fmodel_2eproto::TableStruct;
319 #pragma GCC diagnostic push
320 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
328 inline const ::gz::msgs::Header& Model::_internal_header()
const {
332 const ::gz::msgs::Header* p = header_;
346 if (header_ == NULL) {
347 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
354 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
355 if (message_arena == NULL) {
356 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
359 ::google::protobuf::Arena* submessage_arena = NULL;
360 if (message_arena != submessage_arena) {
361 header = ::google::protobuf::internal::GetOwnedMessage(
362 message_arena,
header, submessage_arena);
374 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
378 return name_.GetNoArena();
382 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
389 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
394 GOOGLE_DCHECK(value != NULL);
396 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
401 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
402 ::
std::string(
reinterpret_cast<const char*
>(value), size));
408 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
413 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
421 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
457 inline const ::gz::msgs::Pose& Model::_internal_pose()
const {
461 const ::gz::msgs::Pose* p = pose_;
463 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Pose*
>(
476 auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
483 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
484 if (message_arena == NULL) {
485 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
488 ::google::protobuf::Arena* submessage_arena = NULL;
489 if (message_arena != submessage_arena) {
490 pose = ::google::protobuf::internal::GetOwnedMessage(
491 message_arena,
pose, submessage_arena);
503 return joint_.size();
507 return joint_.Mutable(index);
509 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Joint >*
516 return joint_.Get(index);
522 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Joint >&
534 return link_.Mutable(index);
536 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Link >*
543 return link_.Get(index);
549 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Link >&
571 return visual_.size();
575 return visual_.Mutable(index);
577 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Visual >*
584 return visual_.Get(index);
588 return visual_.Add();
590 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Visual >&
600 inline const ::gz::msgs::Vector3d& Model::_internal_scale()
const {
604 const ::gz::msgs::Vector3d* p = scale_;
618 if (scale_ == NULL) {
619 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
626 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
627 if (message_arena == NULL) {
628 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(scale_);
631 ::google::protobuf::Arena* submessage_arena = NULL;
632 if (message_arena != submessage_arena) {
633 scale = ::google::protobuf::internal::GetOwnedMessage(
634 message_arena,
scale, submessage_arena);
646 self_collide_ =
false;
650 return self_collide_;
654 self_collide_ = value;
660 return model_.size();
667 return model_.Mutable(index);
669 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Model >*
676 return model_.Get(index);
682 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Model >&
692 inline const ::gz::msgs::AxisAlignedBox& Model::_internal_bounding_box()
const {
693 return *bounding_box_;
696 const ::gz::msgs::AxisAlignedBox* p = bounding_box_;
705 bounding_box_ = NULL;
710 if (bounding_box_ == NULL) {
711 auto* p = CreateMaybeMessage<::gz::msgs::AxisAlignedBox>(GetArenaNoVirtual());
715 return bounding_box_;
718 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
719 if (message_arena == NULL) {
720 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(bounding_box_);
723 ::google::protobuf::Arena* submessage_arena = NULL;
724 if (message_arena != submessage_arena) {
725 bounding_box = ::google::protobuf::internal::GetOwnedMessage(
737 #pragma GCC diagnostic pop
747 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fmodel_2eproto