4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2flink_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2flink_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/inertial.pb.h"
34 #include "gz/msgs/collision.pb.h"
35 #include "gz/msgs/visual.pb.h"
36 #include "gz/msgs/light.pb.h"
37 #include "gz/msgs/sensor.pb.h"
38 #include "gz/msgs/particle_emitter.pb.h"
39 #include "gz/msgs/projector.pb.h"
40 #include "gz/msgs/pose.pb.h"
41 #include "gz/msgs/battery.pb.h"
42 #include "gz/msgs/density.pb.h"
43 #include "gz/msgs/header.pb.h"
45 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2flink_2eproto GZ_MSGS_VISIBLE
50 static const ::google::protobuf::internal::ParseTableField entries[];
51 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
52 static const ::google::protobuf::internal::ParseTable schema[1];
53 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
54 static const ::google::protobuf::internal::SerializationTable serialization_table[];
55 static const ::google::protobuf::uint32 offsets[];
62 class LinkDefaultTypeInternal;
68 template<> GZ_MSGS_VISIBLE ::gz::msgs::Link* Arena::CreateMaybeMessage<::gz::msgs::Link>(Arena*);
76 class GZ_MSGS_VISIBLE
Link :
public ::google::protobuf::Message {
90 *
this = ::std::move(from);
93 inline Link& operator=(Link&& from) noexcept {
94 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
95 if (
this != &from) InternalSwap(&from);
102 static const ::google::protobuf::Descriptor* descriptor();
103 static const Link& default_instance();
105 static void InitAsDefaultInstance();
107 return reinterpret_cast<const Link*
>(
110 static constexpr
int kIndexInFileMessages =
113 void Swap(
Link* other);
121 return CreateMaybeMessage<Link>(NULL);
124 Link*
New(::google::protobuf::Arena* arena)
const final {
125 return CreateMaybeMessage<Link>(arena);
127 void CopyFrom(const ::google::protobuf::Message& from)
final;
128 void MergeFrom(const ::google::protobuf::Message& from)
final;
129 void CopyFrom(
const Link& from);
130 void MergeFrom(
const Link& from);
132 bool IsInitialized() const final;
134 size_t ByteSizeLong() const final;
135 bool MergePartialFromCodedStream(
136 ::
google::protobuf::io::CodedInputStream* input) final;
137 void SerializeWithCachedSizes(
138 ::
google::protobuf::io::CodedOutputStream* output) const final;
139 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
140 bool deterministic, ::
google::protobuf::uint8* target) const final;
141 int GetCachedSize() const final {
return _cached_size_.Get(); }
146 void SetCachedSize(
int size)
const final;
147 void InternalSwap(
Link* other);
149 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
152 inline void* MaybeArenaPtr()
const {
157 ::google::protobuf::Metadata GetMetadata() const final;
164 int visual_size() const;
166 static const
int kVisualFieldNumber = 11;
167 ::
gz::msgs::
Visual* mutable_visual(
int index);
170 const ::
gz::msgs::
Visual& visual(
int index) const;
176 int collision_size() const;
177 void clear_collision();
178 static const
int kCollisionFieldNumber = 12;
179 ::
gz::msgs::
Collision* mutable_collision(
int index);
182 const ::
gz::msgs::
Collision& collision(
int index) const;
188 int sensor_size() const;
190 static const
int kSensorFieldNumber = 13;
191 ::
gz::msgs::
Sensor* mutable_sensor(
int index);
194 const ::
gz::msgs::
Sensor& sensor(
int index) const;
200 int projector_size() const;
201 void clear_projector();
202 static const
int kProjectorFieldNumber = 14;
203 ::
gz::msgs::
Projector* mutable_projector(
int index);
206 const ::
gz::msgs::
Projector& projector(
int index) const;
212 int battery_size() const;
213 void clear_battery();
214 static const
int kBatteryFieldNumber = 16;
215 ::
gz::msgs::
Battery* mutable_battery(
int index);
218 const ::
gz::msgs::
Battery& battery(
int index) const;
224 int light_size() const;
226 static const
int kLightFieldNumber = 17;
227 ::
gz::msgs::
Light* mutable_light(
int index);
230 const ::
gz::msgs::
Light& light(
int index) const;
231 ::
gz::msgs::
Light* add_light();
232 const ::
google::protobuf::RepeatedPtrField< ::
gz::msgs::
Light >&
236 int particle_emitter_size() const;
237 void clear_particle_emitter();
238 static const
int kParticleEmitterFieldNumber = 18;
241 mutable_particle_emitter();
245 particle_emitter() const;
249 static const
int kNameFieldNumber = 3;
250 const ::
std::
string& name() const;
251 void set_name(const ::
std::
string& value);
255 void set_name(
const char* value);
256 void set_name(
const char* value,
size_t size);
262 bool has_header()
const;
264 static const int kHeaderFieldNumber = 1;
266 const ::gz::msgs::Header& _internal_header()
const;
268 const ::gz::msgs::Header& header()
const;
274 bool has_density()
const;
275 void clear_density();
276 static const int kDensityFieldNumber = 8;
278 const ::gz::msgs::Density& _internal_density()
const;
280 const ::gz::msgs::Density& density()
const;
286 bool has_inertial()
const;
287 void clear_inertial();
288 static const int kInertialFieldNumber = 9;
290 const ::gz::msgs::Inertial& _internal_inertial()
const;
292 const ::gz::msgs::Inertial& inertial()
const;
298 bool has_pose()
const;
300 static const int kPoseFieldNumber = 10;
302 const ::gz::msgs::Pose& _internal_pose()
const;
304 const ::gz::msgs::Pose& pose()
const;
311 static const int kIdFieldNumber = 2;
312 ::google::protobuf::uint32 id()
const;
313 void set_id(::google::protobuf::uint32 value);
316 void clear_self_collide();
317 static const int kSelfCollideFieldNumber = 4;
318 bool self_collide()
const;
319 void set_self_collide(
bool value);
322 void clear_gravity();
323 static const int kGravityFieldNumber = 5;
324 bool gravity()
const;
325 void set_gravity(
bool value);
328 void clear_kinematic();
329 static const int kKinematicFieldNumber = 6;
330 bool kinematic()
const;
331 void set_kinematic(
bool value);
334 void clear_enabled();
335 static const int kEnabledFieldNumber = 7;
336 bool enabled()
const;
337 void set_enabled(
bool value);
340 void clear_canonical();
341 static const int kCanonicalFieldNumber = 15;
342 bool canonical()
const;
343 void set_canonical(
bool value);
348 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
349 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Visual > visual_;
350 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Collision > collision_;
351 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Sensor > sensor_;
352 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Projector > projector_;
353 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Battery > battery_;
354 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light > light_;
355 ::google::protobuf::RepeatedPtrField< ::gz::msgs::ParticleEmitter > particle_emitter_;
356 ::google::protobuf::internal::ArenaStringPtr name_;
361 ::google::protobuf::uint32 id_;
367 mutable ::google::protobuf::internal::CachedSize _cached_size_;
368 friend struct ::protobuf_gz_2fmsgs_2flink_2eproto::TableStruct;
376 #pragma GCC diagnostic push
377 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
385 inline const ::gz::msgs::Header& Link::_internal_header()
const {
389 const ::gz::msgs::Header* p = header_;
403 if (header_ == NULL) {
404 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
411 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
412 if (message_arena == NULL) {
413 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
416 ::google::protobuf::Arena* submessage_arena = NULL;
417 if (message_arena != submessage_arena) {
418 header = ::google::protobuf::internal::GetOwnedMessage(
419 message_arena,
header, submessage_arena);
433 inline ::google::protobuf::uint32
Link::id()
const {
445 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
449 return name_.GetNoArena();
453 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
460 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
465 GOOGLE_DCHECK(value != NULL);
467 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
472 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
473 ::
std::string(
reinterpret_cast<const char*
>(value), size));
479 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
484 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
492 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
498 self_collide_ =
false;
502 return self_collide_;
506 self_collide_ = value;
556 inline const ::gz::msgs::Density& Link::_internal_density()
const {
560 const ::gz::msgs::Density* p = density_;
574 if (density_ == NULL) {
575 auto* p = CreateMaybeMessage<::gz::msgs::Density>(GetArenaNoVirtual());
582 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
583 if (message_arena == NULL) {
584 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(density_);
587 ::google::protobuf::Arena* submessage_arena = NULL;
588 if (message_arena != submessage_arena) {
589 density = ::google::protobuf::internal::GetOwnedMessage(
590 message_arena,
density, submessage_arena);
604 inline const ::gz::msgs::Inertial& Link::_internal_inertial()
const {
608 const ::gz::msgs::Inertial* p = inertial_;
622 if (inertial_ == NULL) {
623 auto* p = CreateMaybeMessage<::gz::msgs::Inertial>(GetArenaNoVirtual());
630 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
631 if (message_arena == NULL) {
632 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(inertial_);
635 ::google::protobuf::Arena* submessage_arena = NULL;
636 if (message_arena != submessage_arena) {
637 inertial = ::google::protobuf::internal::GetOwnedMessage(
638 message_arena,
inertial, submessage_arena);
652 inline const ::gz::msgs::Pose& Link::_internal_pose()
const {
656 const ::gz::msgs::Pose* p = pose_;
658 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Pose*
>(
671 auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
678 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
679 if (message_arena == NULL) {
680 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
683 ::google::protobuf::Arena* submessage_arena = NULL;
684 if (message_arena != submessage_arena) {
685 pose = ::google::protobuf::internal::GetOwnedMessage(
686 message_arena,
pose, submessage_arena);
698 return visual_.size();
702 return visual_.Mutable(index);
704 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Visual >*
711 return visual_.Get(index);
715 return visual_.Add();
717 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Visual >&
725 return collision_.size();
729 return collision_.Mutable(index);
731 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Collision >*
738 return collision_.Get(index);
742 return collision_.Add();
744 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Collision >&
752 return sensor_.size();
756 return sensor_.Mutable(index);
758 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Sensor >*
765 return sensor_.Get(index);
769 return sensor_.Add();
771 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Sensor >&
779 return projector_.size();
783 return projector_.Mutable(index);
785 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Projector >*
792 return projector_.Get(index);
796 return projector_.Add();
798 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Projector >&
820 return battery_.size();
824 return battery_.Mutable(index);
826 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Battery >*
833 return battery_.Get(index);
837 return battery_.Add();
839 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Battery >&
847 return light_.size();
851 return light_.Mutable(index);
853 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light >*
860 return light_.Get(index);
866 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light >&
874 return particle_emitter_.size();
878 return particle_emitter_.Mutable(index);
880 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::ParticleEmitter >*
883 return &particle_emitter_;
887 return particle_emitter_.Get(index);
891 return particle_emitter_.Add();
893 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::ParticleEmitter >&
896 return particle_emitter_;
900 #pragma GCC diagnostic pop
910 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2flink_2eproto