4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fimu_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fimu_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>
33 #include "gz/msgs/header.pb.h"
34 #include "gz/msgs/vector3d.pb.h"
35 #include "gz/msgs/quaternion.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fimu_2eproto GZ_MSGS_VISIBLE
42 static const ::google::protobuf::internal::ParseTableField entries[];
43 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44 static const ::google::protobuf::internal::ParseTable schema[1];
45 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46 static const ::google::protobuf::internal::SerializationTable serialization_table[];
47 static const ::google::protobuf::uint32 offsets[];
54 class IMUDefaultTypeInternal;
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::IMU* Arena::CreateMaybeMessage<::gz::msgs::IMU>(Arena*);
68 class GZ_MSGS_VISIBLE
IMU :
public ::google::protobuf::Message {
82 *
this = ::std::move(from);
85 inline IMU& operator=(IMU&& from) noexcept {
86 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87 if (
this != &from) InternalSwap(&from);
94 static const ::google::protobuf::Descriptor* descriptor();
95 static const IMU& default_instance();
97 static void InitAsDefaultInstance();
99 return reinterpret_cast<const IMU*
>(
102 static constexpr
int kIndexInFileMessages =
105 void Swap(
IMU* other);
113 return CreateMaybeMessage<IMU>(NULL);
116 IMU*
New(::google::protobuf::Arena* arena)
const final {
117 return CreateMaybeMessage<IMU>(arena);
119 void CopyFrom(const ::google::protobuf::Message& from)
final;
120 void MergeFrom(const ::google::protobuf::Message& from)
final;
121 void CopyFrom(
const IMU& from);
122 void MergeFrom(
const IMU& from);
124 bool IsInitialized() const final;
126 size_t ByteSizeLong() const final;
127 bool MergePartialFromCodedStream(
128 ::
google::protobuf::io::CodedInputStream* input) final;
129 void SerializeWithCachedSizes(
130 ::
google::protobuf::io::CodedOutputStream* output) const final;
131 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132 bool deterministic, ::
google::protobuf::uint8* target) const final;
133 int GetCachedSize() const final {
return _cached_size_.Get(); }
138 void SetCachedSize(
int size)
const final;
139 void InternalSwap(
IMU* other);
141 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
144 inline void* MaybeArenaPtr()
const {
149 ::google::protobuf::Metadata GetMetadata() const final;
156 void clear_entity_name();
157 static const
int kEntityNameFieldNumber = 2;
158 const ::
std::
string& entity_name() const;
159 void set_entity_name(const ::
std::
string& value);
163 void set_entity_name(
const char* value);
164 void set_entity_name(
const char* value,
size_t size);
167 void set_allocated_entity_name(::
std::string* entity_name);
170 bool has_header()
const;
172 static const int kHeaderFieldNumber = 1;
174 const ::gz::msgs::Header& _internal_header()
const;
176 const ::gz::msgs::Header& header()
const;
182 bool has_orientation()
const;
183 void clear_orientation();
184 static const int kOrientationFieldNumber = 3;
186 const ::gz::msgs::Quaternion& _internal_orientation()
const;
188 const ::gz::msgs::Quaternion& orientation()
const;
194 bool has_angular_velocity()
const;
195 void clear_angular_velocity();
196 static const int kAngularVelocityFieldNumber = 4;
198 const ::gz::msgs::Vector3d& _internal_angular_velocity()
const;
200 const ::gz::msgs::Vector3d& angular_velocity()
const;
206 bool has_linear_acceleration()
const;
207 void clear_linear_acceleration();
208 static const int kLinearAccelerationFieldNumber = 5;
210 const ::gz::msgs::Vector3d& _internal_linear_acceleration()
const;
212 const ::gz::msgs::Vector3d& linear_acceleration()
const;
220 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
221 ::google::protobuf::internal::ArenaStringPtr entity_name_;
226 mutable ::google::protobuf::internal::CachedSize _cached_size_;
227 friend struct ::protobuf_gz_2fmsgs_2fimu_2eproto::TableStruct;
235 #pragma GCC diagnostic push
236 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
244 inline const ::gz::msgs::Header& IMU::_internal_header()
const {
248 const ::gz::msgs::Header* p = header_;
262 if (header_ == NULL) {
263 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
270 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
271 if (message_arena == NULL) {
272 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
275 ::google::protobuf::Arena* submessage_arena = NULL;
276 if (message_arena != submessage_arena) {
277 header = ::google::protobuf::internal::GetOwnedMessage(
278 message_arena,
header, submessage_arena);
290 entity_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
294 return entity_name_.GetNoArena();
298 entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
304 entity_name_.SetNoArena(
305 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
310 GOOGLE_DCHECK(value != NULL);
312 entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
317 entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
318 ::
std::string(
reinterpret_cast<const char*
>(value), size));
324 return entity_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
329 return entity_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
337 entity_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
entity_name);
345 inline const ::gz::msgs::Quaternion& IMU::_internal_orientation()
const {
346 return *orientation_;
349 const ::gz::msgs::Quaternion* p = orientation_;
363 if (orientation_ == NULL) {
364 auto* p = CreateMaybeMessage<::gz::msgs::Quaternion>(GetArenaNoVirtual());
371 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
372 if (message_arena == NULL) {
373 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(orientation_);
376 ::google::protobuf::Arena* submessage_arena = NULL;
377 if (message_arena != submessage_arena) {
378 orientation = ::google::protobuf::internal::GetOwnedMessage(
393 inline const ::gz::msgs::Vector3d& IMU::_internal_angular_velocity()
const {
394 return *angular_velocity_;
397 const ::gz::msgs::Vector3d* p = angular_velocity_;
406 angular_velocity_ = NULL;
411 if (angular_velocity_ == NULL) {
412 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
413 angular_velocity_ = p;
416 return angular_velocity_;
419 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
420 if (message_arena == NULL) {
421 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(angular_velocity_);
424 ::google::protobuf::Arena* submessage_arena = NULL;
425 if (message_arena != submessage_arena) {
441 inline const ::gz::msgs::Vector3d& IMU::_internal_linear_acceleration()
const {
442 return *linear_acceleration_;
445 const ::gz::msgs::Vector3d* p = linear_acceleration_;
454 linear_acceleration_ = NULL;
459 if (linear_acceleration_ == NULL) {
460 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
461 linear_acceleration_ = p;
464 return linear_acceleration_;
467 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
468 if (message_arena == NULL) {
469 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(linear_acceleration_);
472 ::google::protobuf::Arena* submessage_arena = NULL;
473 if (message_arena != submessage_arena) {
486 #pragma GCC diagnostic pop
496 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fimu_2eproto