4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fodometry_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fodometry_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_2fodometry_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 OdometryDefaultTypeInternal;
77 PROTOBUF_NAMESPACE_OPEN
78 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Odometry* Arena::CreateMaybeMessage<::ignition::msgs::Odometry>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
85 class IGNITION_MSGS_VISIBLE Odometry 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;
122 return reinterpret_cast<const Odometry*
>(
125 static constexpr
int kIndexInFileMessages =
128 friend void swap(Odometry& a, Odometry& b) {
131 inline void Swap(Odometry* 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 Odometry*
New() const final {
148 return CreateMaybeMessage<Odometry>(
nullptr);
151 Odometry*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
152 return CreateMaybeMessage<Odometry>(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(Odometry* other);
172 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
173 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
174 return "ignition.msgs.Odometry";
177 explicit Odometry(::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 kHeaderFieldNumber = 1,
198 kPoseFieldNumber = 2,
199 kTwistFieldNumber = 3,
204 bool _internal_has_header()
const;
207 const ::ignition::msgs::Header&
header()
const;
212 const ::ignition::msgs::Header& _internal_header()
const;
213 ::ignition::msgs::Header* _internal_mutable_header();
216 ::ignition::msgs::Header* header);
222 bool _internal_has_pose()
const;
225 const ::ignition::msgs::Pose&
pose()
const;
230 const ::ignition::msgs::Pose& _internal_pose()
const;
231 ::ignition::msgs::Pose* _internal_mutable_pose();
234 ::ignition::msgs::Pose* pose);
240 bool _internal_has_twist()
const;
243 const ::ignition::msgs::Twist&
twist()
const;
248 const ::ignition::msgs::Twist& _internal_twist()
const;
249 ::ignition::msgs::Twist* _internal_mutable_twist();
252 ::ignition::msgs::Twist* twist);
259 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
260 typedef void InternalArenaConstructable_;
261 typedef void DestructorSkippable_;
262 ::ignition::msgs::Header* header_;
263 ::ignition::msgs::Pose* pose_;
264 ::ignition::msgs::Twist* twist_;
265 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
266 friend struct ::TableStruct_ignition_2fmsgs_2fodometry_2eproto;
274 #pragma GCC diagnostic push
275 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
280 inline bool Odometry::_internal_has_header()
const {
281 return this != internal_default_instance() && header_ !=
nullptr;
283 inline bool Odometry::has_header()
const {
284 return _internal_has_header();
286 inline const ::ignition::msgs::Header& Odometry::_internal_header()
const {
287 const ::ignition::msgs::Header* p = header_;
288 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
291 inline const ::ignition::msgs::Header& Odometry::header()
const {
293 return _internal_header();
295 inline void Odometry::unsafe_arena_set_allocated_header(
296 ::ignition::msgs::Header* header) {
297 if (GetArena() ==
nullptr) {
298 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
308 inline ::ignition::msgs::Header* Odometry::release_header() {
310 ::ignition::msgs::Header* temp = header_;
312 if (GetArena() !=
nullptr) {
313 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
317 inline ::ignition::msgs::Header* Odometry::unsafe_arena_release_header() {
320 ::ignition::msgs::Header* temp = header_;
324 inline ::ignition::msgs::Header* Odometry::_internal_mutable_header() {
326 if (header_ ==
nullptr) {
327 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
332 inline ::ignition::msgs::Header* Odometry::mutable_header() {
334 return _internal_mutable_header();
336 inline void Odometry::set_allocated_header(::ignition::msgs::Header* header) {
337 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
338 if (message_arena ==
nullptr) {
339 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
342 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
343 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
344 if (message_arena != submessage_arena) {
345 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
346 message_arena, header, submessage_arena);
357 inline bool Odometry::_internal_has_pose()
const {
358 return this != internal_default_instance() && pose_ !=
nullptr;
360 inline bool Odometry::has_pose()
const {
361 return _internal_has_pose();
363 inline const ::ignition::msgs::Pose& Odometry::_internal_pose()
const {
364 const ::ignition::msgs::Pose* p = pose_;
365 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Pose&
>(
368 inline const ::ignition::msgs::Pose& Odometry::pose()
const {
370 return _internal_pose();
372 inline void Odometry::unsafe_arena_set_allocated_pose(
373 ::ignition::msgs::Pose* pose) {
374 if (GetArena() ==
nullptr) {
375 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pose_);
385 inline ::ignition::msgs::Pose* Odometry::release_pose() {
387 ::ignition::msgs::Pose* temp = pose_;
389 if (GetArena() !=
nullptr) {
390 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
394 inline ::ignition::msgs::Pose* Odometry::unsafe_arena_release_pose() {
397 ::ignition::msgs::Pose* temp = pose_;
401 inline ::ignition::msgs::Pose* Odometry::_internal_mutable_pose() {
403 if (pose_ ==
nullptr) {
404 auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArena());
409 inline ::ignition::msgs::Pose* Odometry::mutable_pose() {
411 return _internal_mutable_pose();
413 inline void Odometry::set_allocated_pose(::ignition::msgs::Pose* pose) {
414 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
415 if (message_arena ==
nullptr) {
416 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pose_);
419 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
420 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pose)->GetArena();
421 if (message_arena != submessage_arena) {
422 pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
423 message_arena, pose, submessage_arena);
434 inline bool Odometry::_internal_has_twist()
const {
435 return this != internal_default_instance() && twist_ !=
nullptr;
437 inline bool Odometry::has_twist()
const {
438 return _internal_has_twist();
440 inline const ::ignition::msgs::Twist& Odometry::_internal_twist()
const {
441 const ::ignition::msgs::Twist* p = twist_;
442 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Twist&
>(
445 inline const ::ignition::msgs::Twist& Odometry::twist()
const {
447 return _internal_twist();
449 inline void Odometry::unsafe_arena_set_allocated_twist(
450 ::ignition::msgs::Twist* twist) {
451 if (GetArena() ==
nullptr) {
452 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(twist_);
462 inline ::ignition::msgs::Twist* Odometry::release_twist() {
464 ::ignition::msgs::Twist* temp = twist_;
466 if (GetArena() !=
nullptr) {
467 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
471 inline ::ignition::msgs::Twist* Odometry::unsafe_arena_release_twist() {
474 ::ignition::msgs::Twist* temp = twist_;
478 inline ::ignition::msgs::Twist* Odometry::_internal_mutable_twist() {
480 if (twist_ ==
nullptr) {
481 auto* p = CreateMaybeMessage<::ignition::msgs::Twist>(GetArena());
486 inline ::ignition::msgs::Twist* Odometry::mutable_twist() {
488 return _internal_mutable_twist();
490 inline void Odometry::set_allocated_twist(::ignition::msgs::Twist* twist) {
491 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
492 if (message_arena ==
nullptr) {
493 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(twist_);
496 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
497 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(twist)->GetArena();
498 if (message_arena != submessage_arena) {
499 twist = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
500 message_arena, twist, submessage_arena);
511 #pragma GCC diagnostic pop
528 #include <google/protobuf/port_undef.inc>
::ignition::msgs::Twist * unsafe_arena_release_twist()
::ignition::msgs::Twist * mutable_twist()
::ignition::msgs::Pose * release_pose()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: odometry.pb.h:116
void MergeFrom(const Odometry &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void unsafe_arena_set_allocated_pose(::ignition::msgs::Pose *pose)
::ignition::msgs::Header * release_header()
Odometry(const Odometry &from)
Odometry * New() const final
Definition: odometry.pb.h:147
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: odometry.pb.h:110
Odometry()
Definition: odometry.pb.h:88
Odometry * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: odometry.pb.h:151
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Odometry(Odometry &&from) noexcept
Definition: odometry.pb.h:92
void unsafe_arena_set_allocated_twist(::ignition::msgs::Twist *twist)
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
void set_allocated_twist(::ignition::msgs::Twist *twist)
void set_allocated_pose(::ignition::msgs::Pose *pose)
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Odometry & operator=(const Odometry &from)
Definition: odometry.pb.h:97
void set_allocated_header(::ignition::msgs::Header *header)
const ::ignition::msgs::Pose & pose() const
::ignition::msgs::Pose * unsafe_arena_release_pose()
const ::ignition::msgs::Twist & twist() const
void Swap(Odometry *other)
Definition: odometry.pb.h:131
::ignition::msgs::Pose * mutable_pose()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: odometry.pb.h:113
void UnsafeArenaSwap(Odometry *other)
Definition: odometry.pb.h:139
static const Odometry & default_instance()
Odometry(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::ignition::msgs::Twist * release_twist()
static const Odometry * internal_default_instance()
Definition: odometry.pb.h:121
Odometry & operator=(Odometry &&from) noexcept
Definition: odometry.pb.h:101
friend void swap(Odometry &a, Odometry &b)
Definition: odometry.pb.h:128
const ::ignition::msgs::Header & header() const
void CopyFrom(const Odometry &from)
std::unique_ptr< const Odometry > ConstOdometryUniquePtr
Definition: odometry.pb.h:515
std::shared_ptr< const Odometry > ConstOdometrySharedPtr
Definition: odometry.pb.h:517
IGNITION_MSGS_VISIBLE TwistDefaultTypeInternal _Twist_default_instance_
IGNITION_MSGS_VISIBLE OdometryDefaultTypeInternal _Odometry_default_instance_
std::shared_ptr< Odometry > OdometrySharedPtr
Definition: odometry.pb.h:516
std::unique_ptr< Odometry > OdometryUniquePtr
Definition: odometry.pb.h:514
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
IGNITION_MSGS_VISIBLE PoseDefaultTypeInternal _Pose_default_instance_
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fodometry_2eproto
Definition: odometry.pb.h:58
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)