4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fodometry_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fodometry_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>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fodometry_2eproto IGNITION_MSGS_VISIBLE
53 static const ::google::protobuf::internal::ParseTableField entries[];
54 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
55 static const ::google::protobuf::internal::ParseTable schema[1];
56 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
57 static const ::google::protobuf::internal::SerializationTable serialization_table[];
58 static const ::google::protobuf::uint32 offsets[];
65 class OdometryDefaultTypeInternal;
71 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Odometry* Arena::CreateMaybeMessage<::ignition::msgs::Odometry>(Arena*);
79 class IGNITION_MSGS_VISIBLE
Odometry :
public ::google::protobuf::Message {
93 *
this = ::std::move(from);
96 inline Odometry& operator=(Odometry&& from) noexcept {
97 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
98 if (
this != &from) InternalSwap(&from);
105 static const ::google::protobuf::Descriptor* descriptor();
106 static const Odometry& default_instance();
108 static void InitAsDefaultInstance();
110 return reinterpret_cast<const Odometry*
>(
113 static constexpr
int kIndexInFileMessages =
124 return CreateMaybeMessage<Odometry>(NULL);
128 return CreateMaybeMessage<Odometry>(arena);
130 void CopyFrom(const ::google::protobuf::Message& from)
final;
131 void MergeFrom(const ::google::protobuf::Message& from)
final;
132 void CopyFrom(
const Odometry& from);
133 void MergeFrom(
const Odometry& from);
135 bool IsInitialized() const final;
137 size_t ByteSizeLong() const final;
138 bool MergePartialFromCodedStream(
139 ::
google::protobuf::io::CodedInputStream* input) final;
140 void SerializeWithCachedSizes(
141 ::
google::protobuf::io::CodedOutputStream* output) const final;
142 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
143 bool deterministic, ::
google::protobuf::uint8* target) const final;
144 int GetCachedSize() const final {
return _cached_size_.Get(); }
149 void SetCachedSize(
int size)
const final;
152 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
155 inline void* MaybeArenaPtr()
const {
160 ::google::protobuf::Metadata GetMetadata() const final;
167 bool has_header() const;
169 static const
int kHeaderFieldNumber = 1;
179 bool has_pose() const;
181 static const
int kPoseFieldNumber = 2;
191 bool has_twist() const;
193 static const
int kTwistFieldNumber = 3;
205 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
209 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
218 #pragma GCC diagnostic push
219 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
225 return this != internal_default_instance() && header_ != NULL;
227 inline const ::ignition::msgs::Header& Odometry::_internal_header()
const {
231 const ::ignition::msgs::Header* p = header_;
245 if (header_ == NULL) {
246 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
253 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
254 if (message_arena == NULL) {
255 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
258 ::google::protobuf::Arena* submessage_arena = NULL;
259 if (message_arena != submessage_arena) {
260 header = ::google::protobuf::internal::GetOwnedMessage(
261 message_arena, header, submessage_arena);
273 return this != internal_default_instance() && pose_ != NULL;
275 inline const ::ignition::msgs::Pose& Odometry::_internal_pose()
const {
279 const ::ignition::msgs::Pose* p = pose_;
294 auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaNoVirtual());
301 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
302 if (message_arena == NULL) {
303 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
306 ::google::protobuf::Arena* submessage_arena = NULL;
307 if (message_arena != submessage_arena) {
308 pose = ::google::protobuf::internal::GetOwnedMessage(
309 message_arena, pose, submessage_arena);
321 return this != internal_default_instance() && twist_ != NULL;
323 inline const ::ignition::msgs::Twist& Odometry::_internal_twist()
const {
327 const ::ignition::msgs::Twist* p = twist_;
341 if (twist_ == NULL) {
342 auto* p = CreateMaybeMessage<::ignition::msgs::Twist>(GetArenaNoVirtual());
349 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
350 if (message_arena == NULL) {
351 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(twist_);
354 ::google::protobuf::Arena* submessage_arena = NULL;
355 if (message_arena != submessage_arena) {
356 twist = ::google::protobuf::internal::GetOwnedMessage(
357 message_arena, twist, submessage_arena);
368 #pragma GCC diagnostic pop
385 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fodometry_2eproto