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 < 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>
39 #pragma GCC system_header
42 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
45 #include <sys/sysmacros.h>
50 #include <google/protobuf/port_def.inc>
51 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fpose_2eproto IGNITION_MSGS_VISIBLE
52 PROTOBUF_NAMESPACE_OPEN
56 PROTOBUF_NAMESPACE_CLOSE
60 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
66 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
67 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
68 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
74 class PoseDefaultTypeInternal;
78 PROTOBUF_NAMESPACE_OPEN
79 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Pose* Arena::CreateMaybeMessage<::ignition::msgs::Pose>(Arena*);
80 PROTOBUF_NAMESPACE_CLOSE
86 class IGNITION_MSGS_VISIBLE Pose PROTOBUF_FINAL :
87 public ::PROTOBUF_NAMESPACE_ID::Message {
89 inline Pose() : Pose(nullptr) {};
95 *
this = ::std::move(from);
103 if (GetArena() == from.GetArena()) {
104 if (
this != &from) InternalSwap(&from);
111 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
112 return GetDescriptor();
115 return GetMetadataStatic().descriptor;
118 return GetMetadataStatic().reflection;
124 return reinterpret_cast<const Pose*
>(
127 static constexpr
int kIndexInFileMessages =
130 friend void swap(Pose& a, Pose& b) {
133 inline void Swap(Pose* other) {
134 if (other ==
this)
return;
135 if (GetArena() == other->GetArena()) {
138 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
142 if (other ==
this)
return;
143 GOOGLE_DCHECK(GetArena() == other->GetArena());
149 inline Pose*
New() const final {
150 return CreateMaybeMessage<Pose>(
nullptr);
153 Pose*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
154 return CreateMaybeMessage<Pose>(arena);
156 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
157 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
160 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
161 bool IsInitialized() const final;
163 size_t ByteSizeLong() const final;
164 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
165 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
166 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
167 int GetCachedSize() const final {
return _cached_size_.Get(); }
170 inline void SharedCtor();
171 inline void SharedDtor();
172 void SetCachedSize(
int size)
const final;
173 void InternalSwap(Pose* other);
174 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
175 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
176 return "ignition.msgs.Pose";
179 explicit Pose(::PROTOBUF_NAMESPACE_ID::Arena* arena);
181 static void ArenaDtor(
void*
object);
182 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
187 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
199 kNameFieldNumber = 2,
200 kHeaderFieldNumber = 1,
201 kPositionFieldNumber = 4,
202 kOrientationFieldNumber = 5,
215 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
216 " string fields are deprecated and will be removed in a"
218 std::
string* unsafe_arena_release_name();
219 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
220 "
string fields are deprecated and will be removed in a"
222 void unsafe_arena_set_allocated_name(
225 const
std::
string& _internal_name() const;
226 void _internal_set_name(const
std::
string& value);
227 std::
string* _internal_mutable_name();
231 bool has_header() const;
233 bool _internal_has_header() const;
239 void set_allocated_header(::
ignition::msgs::Header* header);
241 const ::
ignition::msgs::Header& _internal_header() const;
242 ::
ignition::msgs::Header* _internal_mutable_header();
244 void unsafe_arena_set_allocated_header(
246 ::
ignition::msgs::Header* unsafe_arena_release_header();
249 bool has_position() const;
251 bool _internal_has_position() const;
253 void clear_position();
262 void unsafe_arena_set_allocated_position(
267 bool has_orientation() const;
269 bool _internal_has_orientation() const;
271 void clear_orientation();
272 const ::
ignition::msgs::Quaternion& orientation() const;
273 ::
ignition::msgs::Quaternion* release_orientation();
274 ::
ignition::msgs::Quaternion* mutable_orientation();
275 void set_allocated_orientation(::
ignition::msgs::Quaternion* orientation);
277 const ::
ignition::msgs::Quaternion& _internal_orientation() const;
278 ::
ignition::msgs::Quaternion* _internal_mutable_orientation();
280 void unsafe_arena_set_allocated_orientation(
281 ::
ignition::msgs::Quaternion* orientation);
282 ::
ignition::msgs::Quaternion* unsafe_arena_release_orientation();
286 ::PROTOBUF_NAMESPACE_ID::uint32
id() const;
287 void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
289 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_id() const;
290 void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
297 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
298 typedef
void InternalArenaConstructable_;
299 typedef
void DestructorSkippable_;
300 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr name_;
303 ::
ignition::msgs::Quaternion* orientation_;
304 ::PROTOBUF_NAMESPACE_ID::uint32 id_;
305 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
314 #pragma GCC diagnostic push
315 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
320 inline bool Pose::_internal_has_header()
const {
321 return this != internal_default_instance() && header_ !=
nullptr;
323 inline bool Pose::has_header()
const {
324 return _internal_has_header();
326 inline const ::ignition::msgs::Header& Pose::_internal_header()
const {
327 const ::ignition::msgs::Header* p = header_;
328 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Header*
>(
331 inline const ::ignition::msgs::Header& Pose::header()
const {
333 return _internal_header();
335 inline void Pose::unsafe_arena_set_allocated_header(
336 ::ignition::msgs::Header* header) {
337 if (GetArena() ==
nullptr) {
338 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
348 inline ::ignition::msgs::Header* Pose::release_header() {
349 auto temp = unsafe_arena_release_header();
350 if (GetArena() !=
nullptr) {
351 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
355 inline ::ignition::msgs::Header* Pose::unsafe_arena_release_header() {
358 ::ignition::msgs::Header* temp = header_;
362 inline ::ignition::msgs::Header* Pose::_internal_mutable_header() {
364 if (header_ ==
nullptr) {
365 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
370 inline ::ignition::msgs::Header* Pose::mutable_header() {
372 return _internal_mutable_header();
374 inline void Pose::set_allocated_header(::ignition::msgs::Header* header) {
375 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
376 if (message_arena ==
nullptr) {
377 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
380 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
381 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
382 if (message_arena != submessage_arena) {
383 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
384 message_arena, header, submessage_arena);
395 inline void Pose::clear_name() {
396 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
400 return _internal_name();
402 inline void Pose::set_name(
const std::string& value) {
403 _internal_set_name(value);
408 return _internal_mutable_name();
410 inline const std::string& Pose::_internal_name()
const {
413 inline void Pose::_internal_set_name(
const std::string& value) {
415 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
420 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
423 inline void Pose::set_name(
const char* value) {
424 GOOGLE_DCHECK(value !=
nullptr);
426 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
430 inline void Pose::set_name(
const char* value,
433 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
434 reinterpret_cast<const char*
>(value), size), GetArena());
437 inline std::string* Pose::_internal_mutable_name() {
439 return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
443 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
445 inline void Pose::set_allocated_name(
std::string* name) {
446 if (name !=
nullptr) {
451 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
455 inline std::string* Pose::unsafe_arena_release_name() {
457 GOOGLE_DCHECK(GetArena() !=
nullptr);
459 return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
462 inline void Pose::unsafe_arena_set_allocated_name(
464 GOOGLE_DCHECK(GetArena() !=
nullptr);
465 if (name !=
nullptr) {
470 name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
476 inline void Pose::clear_id() {
479 inline ::PROTOBUF_NAMESPACE_ID::uint32 Pose::_internal_id()
const {
482 inline ::PROTOBUF_NAMESPACE_ID::uint32 Pose::id()
const {
484 return _internal_id();
486 inline void Pose::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
490 inline void Pose::set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
491 _internal_set_id(value);
496 inline bool Pose::_internal_has_position()
const {
497 return this != internal_default_instance() && position_ !=
nullptr;
499 inline bool Pose::has_position()
const {
500 return _internal_has_position();
502 inline const ::ignition::msgs::Vector3d& Pose::_internal_position()
const {
503 const ::ignition::msgs::Vector3d* p = position_;
504 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Vector3d*
>(
507 inline const ::ignition::msgs::Vector3d& Pose::position()
const {
509 return _internal_position();
511 inline void Pose::unsafe_arena_set_allocated_position(
512 ::ignition::msgs::Vector3d* position) {
513 if (GetArena() ==
nullptr) {
514 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(position_);
516 position_ = position;
524 inline ::ignition::msgs::Vector3d* Pose::release_position() {
525 auto temp = unsafe_arena_release_position();
526 if (GetArena() !=
nullptr) {
527 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
531 inline ::ignition::msgs::Vector3d* Pose::unsafe_arena_release_position() {
534 ::ignition::msgs::Vector3d* temp = position_;
538 inline ::ignition::msgs::Vector3d* Pose::_internal_mutable_position() {
540 if (position_ ==
nullptr) {
541 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArena());
546 inline ::ignition::msgs::Vector3d* Pose::mutable_position() {
548 return _internal_mutable_position();
550 inline void Pose::set_allocated_position(::ignition::msgs::Vector3d* position) {
551 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
552 if (message_arena ==
nullptr) {
553 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(position_);
556 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
557 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(position)->GetArena();
558 if (message_arena != submessage_arena) {
559 position = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
560 message_arena, position, submessage_arena);
566 position_ = position;
571 inline bool Pose::_internal_has_orientation()
const {
572 return this != internal_default_instance() && orientation_ !=
nullptr;
574 inline bool Pose::has_orientation()
const {
575 return _internal_has_orientation();
577 inline const ::ignition::msgs::Quaternion& Pose::_internal_orientation()
const {
578 const ::ignition::msgs::Quaternion* p = orientation_;
579 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Quaternion*
>(
582 inline const ::ignition::msgs::Quaternion& Pose::orientation()
const {
584 return _internal_orientation();
586 inline void Pose::unsafe_arena_set_allocated_orientation(
587 ::ignition::msgs::Quaternion* orientation) {
588 if (GetArena() ==
nullptr) {
589 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(orientation_);
591 orientation_ = orientation;
599 inline ::ignition::msgs::Quaternion* Pose::release_orientation() {
600 auto temp = unsafe_arena_release_orientation();
601 if (GetArena() !=
nullptr) {
602 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
606 inline ::ignition::msgs::Quaternion* Pose::unsafe_arena_release_orientation() {
609 ::ignition::msgs::Quaternion* temp = orientation_;
610 orientation_ =
nullptr;
613 inline ::ignition::msgs::Quaternion* Pose::_internal_mutable_orientation() {
615 if (orientation_ ==
nullptr) {
616 auto* p = CreateMaybeMessage<::ignition::msgs::Quaternion>(GetArena());
621 inline ::ignition::msgs::Quaternion* Pose::mutable_orientation() {
623 return _internal_mutable_orientation();
625 inline void Pose::set_allocated_orientation(::ignition::msgs::Quaternion* orientation) {
626 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
627 if (message_arena ==
nullptr) {
628 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(orientation_);
631 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
632 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(orientation)->GetArena();
633 if (message_arena != submessage_arena) {
634 orientation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
635 message_arena, orientation, submessage_arena);
641 orientation_ = orientation;
646 #pragma GCC diagnostic pop
663 #include <google/protobuf/port_undef.inc>
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fpose_2eproto
Pose & operator=(Pose &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:102
static void InitAsDefaultInstance()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:117
Pose(Pose &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:93
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_name(const char *value, size_t size)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:111
void set_name(const std::string &value)
static const Pose * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:123
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
std::string * mutable_name()
std::string * release_name()
Pose & operator=(const Pose &from)
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:98
Pose * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:153
void UnsafeArenaSwap(Pose *other)
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:141
void MergeFrom(const Pose &from)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void Swap(Pose *other)
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:133
Pose()
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:89
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:114
Pose(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void CopyFrom(const Pose &from)
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: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:130
static const Pose & default_instance()
void set_allocated_name(std::string *name)
Pose * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:149
Vector3< double > Vector3d
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
IGNITION_MSGS_VISIBLE QuaternionDefaultTypeInternal _Quaternion_default_instance_
std::shared_ptr< Pose > PoseSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:651
std::unique_ptr< Pose > PoseUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:649
std::shared_ptr< const Pose > ConstPoseSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:652
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
IGNITION_MSGS_VISIBLE PoseDefaultTypeInternal _Pose_default_instance_
std::unique_ptr< const Pose > ConstPoseUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:650
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:53
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:59
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)