4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2finertial_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2finertial_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
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 3012004 < 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/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #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>
49 #include <google/protobuf/port_def.inc>
50 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2finertial_2eproto IGNITION_MSGS_VISIBLE
51 PROTOBUF_NAMESPACE_OPEN
55 PROTOBUF_NAMESPACE_CLOSE
59 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
61 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
63 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
65 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
66 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
67 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
73 class InertialDefaultTypeInternal;
77 PROTOBUF_NAMESPACE_OPEN
78 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Inertial* Arena::CreateMaybeMessage<::ignition::msgs::Inertial>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
85 class IGNITION_MSGS_VISIBLE Inertial PROTOBUF_FINAL :
86 public ::PROTOBUF_NAMESPACE_ID::Message {
94 *
this = ::std::move(from);
102 if (GetArena() == from.GetArena()) {
103 if (
this != &from) InternalSwap(&from);
110 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
111 return GetDescriptor();
114 return GetMetadataStatic().descriptor;
117 return GetMetadataStatic().reflection;
123 return reinterpret_cast<const Inertial*
>(
126 static constexpr
int kIndexInFileMessages =
129 friend void swap(Inertial& a, Inertial& b) {
132 inline void Swap(Inertial* other) {
133 if (other ==
this)
return;
134 if (GetArena() == other->GetArena()) {
137 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
141 if (other ==
this)
return;
142 GOOGLE_DCHECK(GetArena() == other->GetArena());
148 inline Inertial*
New() const final {
149 return CreateMaybeMessage<Inertial>(
nullptr);
152 Inertial*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
153 return CreateMaybeMessage<Inertial>(arena);
155 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
156 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
159 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
160 bool IsInitialized() const final;
162 size_t ByteSizeLong() const final;
163 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
164 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
165 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
166 int GetCachedSize() const final {
return _cached_size_.Get(); }
169 inline void SharedCtor();
170 inline void SharedDtor();
171 void SetCachedSize(
int size)
const final;
172 void InternalSwap(Inertial* other);
173 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
174 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
175 return "ignition.msgs.Inertial";
178 explicit Inertial(::PROTOBUF_NAMESPACE_ID::Arena* arena);
180 static void ArenaDtor(
void*
object);
181 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
186 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
198 kHeaderFieldNumber = 1,
199 kPoseFieldNumber = 3,
200 kMassFieldNumber = 2,
211 bool _internal_has_header()
const;
214 const ::ignition::msgs::Header&
header()
const;
219 const ::ignition::msgs::Header& _internal_header()
const;
220 ::ignition::msgs::Header* _internal_mutable_header();
223 ::ignition::msgs::Header* header);
229 bool _internal_has_pose()
const;
232 const ::ignition::msgs::Pose&
pose()
const;
237 const ::ignition::msgs::Pose& _internal_pose()
const;
238 ::ignition::msgs::Pose* _internal_mutable_pose();
241 ::ignition::msgs::Pose* pose);
249 double _internal_mass()
const;
250 void _internal_set_mass(
double value);
258 double _internal_ixx()
const;
259 void _internal_set_ixx(
double value);
267 double _internal_ixy()
const;
268 void _internal_set_ixy(
double value);
276 double _internal_ixz()
const;
277 void _internal_set_ixz(
double value);
285 double _internal_iyy()
const;
286 void _internal_set_iyy(
double value);
294 double _internal_iyz()
const;
295 void _internal_set_iyz(
double value);
303 double _internal_izz()
const;
304 void _internal_set_izz(
double value);
311 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
312 typedef void InternalArenaConstructable_;
313 typedef void DestructorSkippable_;
314 ::ignition::msgs::Header* header_;
315 ::ignition::msgs::Pose* pose_;
323 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
324 friend struct ::TableStruct_ignition_2fmsgs_2finertial_2eproto;
332 #pragma GCC diagnostic push
333 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
338 inline bool Inertial::_internal_has_header()
const {
339 return this != internal_default_instance() && header_ !=
nullptr;
341 inline bool Inertial::has_header()
const {
342 return _internal_has_header();
344 inline const ::ignition::msgs::Header& Inertial::_internal_header()
const {
345 const ::ignition::msgs::Header* p = header_;
346 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Header*
>(
349 inline const ::ignition::msgs::Header& Inertial::header()
const {
351 return _internal_header();
353 inline void Inertial::unsafe_arena_set_allocated_header(
354 ::ignition::msgs::Header* header) {
355 if (GetArena() ==
nullptr) {
356 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
366 inline ::ignition::msgs::Header* Inertial::release_header() {
367 auto temp = unsafe_arena_release_header();
368 if (GetArena() !=
nullptr) {
369 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
373 inline ::ignition::msgs::Header* Inertial::unsafe_arena_release_header() {
376 ::ignition::msgs::Header* temp = header_;
380 inline ::ignition::msgs::Header* Inertial::_internal_mutable_header() {
382 if (header_ ==
nullptr) {
383 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
388 inline ::ignition::msgs::Header* Inertial::mutable_header() {
390 return _internal_mutable_header();
392 inline void Inertial::set_allocated_header(::ignition::msgs::Header* header) {
393 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
394 if (message_arena ==
nullptr) {
395 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
398 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
399 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
400 if (message_arena != submessage_arena) {
401 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
402 message_arena, header, submessage_arena);
413 inline void Inertial::clear_mass() {
416 inline double Inertial::_internal_mass()
const {
419 inline double Inertial::mass()
const {
421 return _internal_mass();
423 inline void Inertial::_internal_set_mass(
double value) {
427 inline void Inertial::set_mass(
double value) {
428 _internal_set_mass(value);
433 inline bool Inertial::_internal_has_pose()
const {
434 return this != internal_default_instance() && pose_ !=
nullptr;
436 inline bool Inertial::has_pose()
const {
437 return _internal_has_pose();
439 inline const ::ignition::msgs::Pose& Inertial::_internal_pose()
const {
440 const ::ignition::msgs::Pose* p = pose_;
441 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Pose*
>(
444 inline const ::ignition::msgs::Pose& Inertial::pose()
const {
446 return _internal_pose();
448 inline void Inertial::unsafe_arena_set_allocated_pose(
449 ::ignition::msgs::Pose* pose) {
450 if (GetArena() ==
nullptr) {
451 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pose_);
461 inline ::ignition::msgs::Pose* Inertial::release_pose() {
462 auto temp = unsafe_arena_release_pose();
463 if (GetArena() !=
nullptr) {
464 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
468 inline ::ignition::msgs::Pose* Inertial::unsafe_arena_release_pose() {
471 ::ignition::msgs::Pose* temp = pose_;
475 inline ::ignition::msgs::Pose* Inertial::_internal_mutable_pose() {
477 if (pose_ ==
nullptr) {
478 auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArena());
483 inline ::ignition::msgs::Pose* Inertial::mutable_pose() {
485 return _internal_mutable_pose();
487 inline void Inertial::set_allocated_pose(::ignition::msgs::Pose* pose) {
488 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
489 if (message_arena ==
nullptr) {
490 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pose_);
493 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
494 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pose)->GetArena();
495 if (message_arena != submessage_arena) {
496 pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
497 message_arena, pose, submessage_arena);
508 inline void Inertial::clear_ixx() {
511 inline double Inertial::_internal_ixx()
const {
514 inline double Inertial::ixx()
const {
516 return _internal_ixx();
518 inline void Inertial::_internal_set_ixx(
double value) {
522 inline void Inertial::set_ixx(
double value) {
523 _internal_set_ixx(value);
528 inline void Inertial::clear_ixy() {
531 inline double Inertial::_internal_ixy()
const {
534 inline double Inertial::ixy()
const {
536 return _internal_ixy();
538 inline void Inertial::_internal_set_ixy(
double value) {
542 inline void Inertial::set_ixy(
double value) {
543 _internal_set_ixy(value);
548 inline void Inertial::clear_ixz() {
551 inline double Inertial::_internal_ixz()
const {
554 inline double Inertial::ixz()
const {
556 return _internal_ixz();
558 inline void Inertial::_internal_set_ixz(
double value) {
562 inline void Inertial::set_ixz(
double value) {
563 _internal_set_ixz(value);
568 inline void Inertial::clear_iyy() {
571 inline double Inertial::_internal_iyy()
const {
574 inline double Inertial::iyy()
const {
576 return _internal_iyy();
578 inline void Inertial::_internal_set_iyy(
double value) {
582 inline void Inertial::set_iyy(
double value) {
583 _internal_set_iyy(value);
588 inline void Inertial::clear_iyz() {
591 inline double Inertial::_internal_iyz()
const {
594 inline double Inertial::iyz()
const {
596 return _internal_iyz();
598 inline void Inertial::_internal_set_iyz(
double value) {
602 inline void Inertial::set_iyz(
double value) {
603 _internal_set_iyz(value);
608 inline void Inertial::clear_izz() {
611 inline double Inertial::_internal_izz()
const {
614 inline double Inertial::izz()
const {
616 return _internal_izz();
618 inline void Inertial::_internal_set_izz(
double value) {
622 inline void Inertial::set_izz(
double value) {
623 _internal_set_izz(value);
628 #pragma GCC diagnostic pop
645 #include <google/protobuf/port_undef.inc>
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2finertial_2eproto
void CopyFrom(const Inertial &from)
static void InitAsDefaultInstance()
void set_ixy(double value)
void set_ixz(double value)
::ignition::msgs::Pose * release_pose()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:116
Inertial(const Inertial &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void unsafe_arena_set_allocated_pose(::ignition::msgs::Pose *pose)
::ignition::msgs::Header * release_header()
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:110
friend void swap(Inertial &a, Inertial &b)
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:129
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Inertial * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:148
void set_mass(double value)
Inertial()
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:88
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
static const Inertial * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:122
void set_ixx(double value)
void set_allocated_pose(::ignition::msgs::Pose *pose)
static const Inertial & default_instance()
Inertial(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Inertial & operator=(const Inertial &from)
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:97
void UnsafeArenaSwap(Inertial *other)
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:140
void MergeFrom(const Inertial &from)
void set_allocated_header(::ignition::msgs::Header *header)
const ::ignition::msgs::Pose & pose() const
void set_iyz(double value)
::ignition::msgs::Pose * unsafe_arena_release_pose()
::ignition::msgs::Pose * mutable_pose()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
Inertial(Inertial &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:92
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:113
void set_iyy(double value)
void set_izz(double value)
Inertial * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:152
Inertial & operator=(Inertial &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:101
void Swap(Inertial *other)
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:132
const ::ignition::msgs::Header & header() const
std::shared_ptr< const Inertial > ConstInertialSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:634
std::unique_ptr< Inertial > InertialUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:631
IGNITION_MSGS_VISIBLE InertialDefaultTypeInternal _Inertial_default_instance_
std::shared_ptr< Inertial > InertialSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:633
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
IGNITION_MSGS_VISIBLE PoseDefaultTypeInternal _Pose_default_instance_
std::unique_ptr< const Inertial > ConstInertialUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:632
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:53
Definition: build/ignition-msgs8/include/ignition/msgs/inertial.pb.h:58
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)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)