4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fpose_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fpose_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>
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_2fpose_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::AuxiliaryParseTableField 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 PoseDefaultTypeInternal;
77 PROTOBUF_NAMESPACE_OPEN
78 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Pose* Arena::CreateMaybeMessage<::ignition::msgs::Pose>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
85 class IGNITION_MSGS_VISIBLE Pose PROTOBUF_FINAL :
86 public ::PROTOBUF_NAMESPACE_ID::Message {
88 inline Pose() : Pose(nullptr) {}
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;
122 return reinterpret_cast<const Pose*
>(
125 static constexpr
int kIndexInFileMessages =
128 friend void swap(Pose& a, Pose& b) {
131 inline void Swap(Pose* other) {
132 if (other ==
this)
return;
133 if (GetArena() == other->GetArena()) {
136 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
140 if (other ==
this)
return;
141 GOOGLE_DCHECK(GetArena() == other->GetArena());
147 inline Pose*
New() const final {
148 return CreateMaybeMessage<Pose>(
nullptr);
151 Pose*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
152 return CreateMaybeMessage<Pose>(arena);
154 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
155 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
158 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
159 bool IsInitialized() const final;
161 size_t ByteSizeLong() const final;
162 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
163 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
164 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
165 int GetCachedSize() const final {
return _cached_size_.Get(); }
168 inline void SharedCtor();
169 inline void SharedDtor();
170 void SetCachedSize(
int size)
const final;
171 void InternalSwap(Pose* other);
172 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
173 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
174 return "ignition.msgs.Pose";
177 explicit Pose(::PROTOBUF_NAMESPACE_ID::Arena* arena);
179 static void ArenaDtor(
void*
object);
180 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
185 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
197 kNameFieldNumber = 2,
198 kHeaderFieldNumber = 1,
199 kPositionFieldNumber = 4,
200 kOrientationFieldNumber = 5,
222 bool _internal_has_header()
const;
225 const ::ignition::msgs::Header&
header()
const;
230 const ::ignition::msgs::Header& _internal_header()
const;
231 ::ignition::msgs::Header* _internal_mutable_header();
234 ::ignition::msgs::Header* header);
240 bool _internal_has_position()
const;
243 const ::ignition::msgs::Vector3d&
position()
const;
248 const ::ignition::msgs::Vector3d& _internal_position()
const;
249 ::ignition::msgs::Vector3d* _internal_mutable_position();
252 ::ignition::msgs::Vector3d* position);
258 bool _internal_has_orientation()
const;
266 const ::ignition::msgs::Quaternion& _internal_orientation()
const;
267 ::ignition::msgs::Quaternion* _internal_mutable_orientation();
270 ::ignition::msgs::Quaternion* orientation);
275 ::PROTOBUF_NAMESPACE_ID::uint32
id()
const;
276 void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
278 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_id()
const;
279 void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
286 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
287 typedef void InternalArenaConstructable_;
288 typedef void DestructorSkippable_;
289 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
290 ::ignition::msgs::Header* header_;
291 ::ignition::msgs::Vector3d* position_;
292 ::ignition::msgs::Quaternion* orientation_;
293 ::PROTOBUF_NAMESPACE_ID::uint32 id_;
294 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
295 friend struct ::TableStruct_ignition_2fmsgs_2fpose_2eproto;
303 #pragma GCC diagnostic push
304 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
309 inline bool Pose::_internal_has_header()
const {
310 return this != internal_default_instance() && header_ !=
nullptr;
312 inline bool Pose::has_header()
const {
313 return _internal_has_header();
315 inline const ::ignition::msgs::Header& Pose::_internal_header()
const {
316 const ::ignition::msgs::Header* p = header_;
317 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
320 inline const ::ignition::msgs::Header& Pose::header()
const {
322 return _internal_header();
324 inline void Pose::unsafe_arena_set_allocated_header(
325 ::ignition::msgs::Header* header) {
326 if (GetArena() ==
nullptr) {
327 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
337 inline ::ignition::msgs::Header* Pose::release_header() {
339 ::ignition::msgs::Header* temp = header_;
341 if (GetArena() !=
nullptr) {
342 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
346 inline ::ignition::msgs::Header* Pose::unsafe_arena_release_header() {
349 ::ignition::msgs::Header* temp = header_;
353 inline ::ignition::msgs::Header* Pose::_internal_mutable_header() {
355 if (header_ ==
nullptr) {
356 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
361 inline ::ignition::msgs::Header* Pose::mutable_header() {
363 return _internal_mutable_header();
365 inline void Pose::set_allocated_header(::ignition::msgs::Header* header) {
366 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
367 if (message_arena ==
nullptr) {
368 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
371 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
372 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
373 if (message_arena != submessage_arena) {
374 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
375 message_arena, header, submessage_arena);
386 inline void Pose::clear_name() {
387 name_.ClearToEmpty();
391 return _internal_name();
393 inline void Pose::set_name(
const std::string& value) {
394 _internal_set_name(value);
399 return _internal_mutable_name();
401 inline const std::string& Pose::_internal_name()
const {
404 inline void Pose::_internal_set_name(
const std::string& value) {
406 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
411 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
414 inline void Pose::set_name(
const char* value) {
415 GOOGLE_DCHECK(value !=
nullptr);
417 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
420 inline void Pose::set_name(
const char* value,
423 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
424 reinterpret_cast<const char*
>(value), size), GetArena());
427 inline std::string* Pose::_internal_mutable_name() {
429 return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
433 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
435 inline void Pose::set_allocated_name(
std::string* name) {
436 if (name !=
nullptr) {
441 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
447 inline void Pose::clear_id() {
450 inline ::PROTOBUF_NAMESPACE_ID::uint32 Pose::_internal_id()
const {
453 inline ::PROTOBUF_NAMESPACE_ID::uint32 Pose::id()
const {
455 return _internal_id();
457 inline void Pose::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
461 inline void Pose::set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
462 _internal_set_id(value);
467 inline bool Pose::_internal_has_position()
const {
468 return this != internal_default_instance() && position_ !=
nullptr;
470 inline bool Pose::has_position()
const {
471 return _internal_has_position();
473 inline const ::ignition::msgs::Vector3d& Pose::_internal_position()
const {
474 const ::ignition::msgs::Vector3d* p = position_;
475 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Vector3d&
>(
478 inline const ::ignition::msgs::Vector3d& Pose::position()
const {
480 return _internal_position();
482 inline void Pose::unsafe_arena_set_allocated_position(
483 ::ignition::msgs::Vector3d* position) {
484 if (GetArena() ==
nullptr) {
485 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(position_);
487 position_ = position;
495 inline ::ignition::msgs::Vector3d* Pose::release_position() {
497 ::ignition::msgs::Vector3d* temp = position_;
499 if (GetArena() !=
nullptr) {
500 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
504 inline ::ignition::msgs::Vector3d* Pose::unsafe_arena_release_position() {
507 ::ignition::msgs::Vector3d* temp = position_;
511 inline ::ignition::msgs::Vector3d* Pose::_internal_mutable_position() {
513 if (position_ ==
nullptr) {
514 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArena());
519 inline ::ignition::msgs::Vector3d* Pose::mutable_position() {
521 return _internal_mutable_position();
523 inline void Pose::set_allocated_position(::ignition::msgs::Vector3d* position) {
524 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
525 if (message_arena ==
nullptr) {
526 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(position_);
529 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
530 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(position)->GetArena();
531 if (message_arena != submessage_arena) {
532 position = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
533 message_arena, position, submessage_arena);
539 position_ = position;
544 inline bool Pose::_internal_has_orientation()
const {
545 return this != internal_default_instance() && orientation_ !=
nullptr;
547 inline bool Pose::has_orientation()
const {
548 return _internal_has_orientation();
550 inline const ::ignition::msgs::Quaternion& Pose::_internal_orientation()
const {
551 const ::ignition::msgs::Quaternion* p = orientation_;
552 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Quaternion&
>(
555 inline const ::ignition::msgs::Quaternion& Pose::orientation()
const {
557 return _internal_orientation();
559 inline void Pose::unsafe_arena_set_allocated_orientation(
560 ::ignition::msgs::Quaternion* orientation) {
561 if (GetArena() ==
nullptr) {
562 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(orientation_);
564 orientation_ = orientation;
572 inline ::ignition::msgs::Quaternion* Pose::release_orientation() {
574 ::ignition::msgs::Quaternion* temp = orientation_;
575 orientation_ =
nullptr;
576 if (GetArena() !=
nullptr) {
577 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
581 inline ::ignition::msgs::Quaternion* Pose::unsafe_arena_release_orientation() {
584 ::ignition::msgs::Quaternion* temp = orientation_;
585 orientation_ =
nullptr;
588 inline ::ignition::msgs::Quaternion* Pose::_internal_mutable_orientation() {
590 if (orientation_ ==
nullptr) {
591 auto* p = CreateMaybeMessage<::ignition::msgs::Quaternion>(GetArena());
596 inline ::ignition::msgs::Quaternion* Pose::mutable_orientation() {
598 return _internal_mutable_orientation();
600 inline void Pose::set_allocated_orientation(::ignition::msgs::Quaternion* orientation) {
601 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
602 if (message_arena ==
nullptr) {
603 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(orientation_);
606 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
607 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(orientation)->GetArena();
608 if (message_arena != submessage_arena) {
609 orientation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
610 message_arena, orientation, submessage_arena);
616 orientation_ = orientation;
621 #pragma GCC diagnostic pop
638 #include <google/protobuf/port_undef.inc>
Pose & operator=(Pose &&from) noexcept
Definition: pose.pb.h:101
void unsafe_arena_set_allocated_position(::ignition::msgs::Vector3d *position)
void set_allocated_orientation(::ignition::msgs::Quaternion *orientation)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: pose.pb.h:116
Pose(Pose &&from) noexcept
Definition: pose.pb.h:92
void unsafe_arena_set_allocated_orientation(::ignition::msgs::Quaternion *orientation)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
void set_name(const char *value, size_t size)
::ignition::msgs::Header * mutable_header()
bool has_position() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: pose.pb.h:110
void set_name(const std::string &value)
::ignition::msgs::Quaternion * unsafe_arena_release_orientation()
void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value)
static const Pose * internal_default_instance()
Definition: pose.pb.h:121
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
std::string * mutable_name()
std::string * release_name()
Pose & operator=(const Pose &from)
Definition: pose.pb.h:97
::ignition::msgs::Quaternion * release_orientation()
const ::ignition::msgs::Quaternion & orientation() const
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Pose * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: pose.pb.h:151
void UnsafeArenaSwap(Pose *other)
Definition: pose.pb.h:139
void MergeFrom(const Pose &from)
::ignition::msgs::Vector3d * unsafe_arena_release_position()
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
bool has_orientation() const
void Swap(Pose *other)
Definition: pose.pb.h:131
Pose()
Definition: pose.pb.h:88
::ignition::msgs::Vector3d * release_position()
void set_allocated_position(::ignition::msgs::Vector3d *position)
::ignition::msgs::Quaternion * mutable_orientation()
void set_allocated_header(::ignition::msgs::Header *header)
::ignition::msgs::Vector3d * mutable_position()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::PROTOBUF_NAMESPACE_ID::uint32 id() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: pose.pb.h:113
Pose(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void CopyFrom(const Pose &from)
const ::ignition::msgs::Vector3d & position() const
const std::string & name() const
void set_name(const char *value)
void set_name(std::string &&value)
friend void swap(Pose &a, Pose &b)
Definition: pose.pb.h:128
static const Pose & default_instance()
void set_allocated_name(std::string *name)
Pose * New() const final
Definition: pose.pb.h:147
const ::ignition::msgs::Header & header() const
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
IGNITION_MSGS_VISIBLE QuaternionDefaultTypeInternal _Quaternion_default_instance_
std::shared_ptr< Pose > PoseSharedPtr
Definition: pose.pb.h:626
std::unique_ptr< Pose > PoseUniquePtr
Definition: pose.pb.h:624
std::shared_ptr< const Pose > ConstPoseSharedPtr
Definition: pose.pb.h:627
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
IGNITION_MSGS_VISIBLE PoseDefaultTypeInternal _Pose_default_instance_
std::unique_ptr< const Pose > ConstPoseUniquePtr
Definition: pose.pb.h:625
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fpose_2eproto
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)