4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fimu_2eproto
5 #define PROTOBUF_INCLUDED_ignition_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>
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_2fimu_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 IMUDefaultTypeInternal;
71 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::IMU* Arena::CreateMaybeMessage<::ignition::msgs::IMU>(Arena*);
79 class IGNITION_MSGS_VISIBLE
IMU :
public ::google::protobuf::Message {
93 *
this = ::std::move(from);
96 inline IMU& operator=(IMU&& from) noexcept {
97 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
98 if (
this != &from) InternalSwap(&from);
105 static const ::google::protobuf::Descriptor* descriptor();
106 static const IMU& default_instance();
108 static void InitAsDefaultInstance();
110 return reinterpret_cast<const IMU*
>(
113 static constexpr
int kIndexInFileMessages =
116 void Swap(
IMU* other);
124 return CreateMaybeMessage<IMU>(NULL);
127 IMU*
New(::google::protobuf::Arena* arena)
const final {
128 return CreateMaybeMessage<IMU>(arena);
130 void CopyFrom(const ::google::protobuf::Message& from)
final;
131 void MergeFrom(const ::google::protobuf::Message& from)
final;
132 void CopyFrom(
const IMU& from);
133 void MergeFrom(
const IMU& 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;
150 void InternalSwap(
IMU* other);
152 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
155 inline void* MaybeArenaPtr()
const {
160 ::google::protobuf::Metadata GetMetadata() const final;
167 void clear_entity_name();
168 static const
int kEntityNameFieldNumber = 2;
169 const ::
std::
string& entity_name() const;
170 void set_entity_name(const ::
std::
string& value);
174 void set_entity_name(
const char* value);
175 void set_entity_name(
const char* value,
size_t size);
178 void set_allocated_entity_name(::
std::string* entity_name);
181 bool has_header()
const;
183 static const int kHeaderFieldNumber = 1;
185 const ::ignition::msgs::Header& _internal_header()
const;
187 const ::ignition::msgs::Header& header()
const;
193 bool has_orientation()
const;
194 void clear_orientation();
195 static const int kOrientationFieldNumber = 3;
197 const ::ignition::msgs::Quaternion& _internal_orientation()
const;
199 const ::ignition::msgs::Quaternion& orientation()
const;
205 bool has_angular_velocity()
const;
206 void clear_angular_velocity();
207 static const int kAngularVelocityFieldNumber = 4;
209 const ::ignition::msgs::Vector3d& _internal_angular_velocity()
const;
211 const ::ignition::msgs::Vector3d& angular_velocity()
const;
217 bool has_linear_acceleration()
const;
218 void clear_linear_acceleration();
219 static const int kLinearAccelerationFieldNumber = 5;
221 const ::ignition::msgs::Vector3d& _internal_linear_acceleration()
const;
223 const ::ignition::msgs::Vector3d& linear_acceleration()
const;
231 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
232 ::google::protobuf::internal::ArenaStringPtr entity_name_;
237 mutable ::google::protobuf::internal::CachedSize _cached_size_;
238 friend struct ::protobuf_ignition_2fmsgs_2fimu_2eproto::TableStruct;
246 #pragma GCC diagnostic push
247 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
255 inline const ::ignition::msgs::Header& IMU::_internal_header()
const {
259 const ::ignition::msgs::Header* p = header_;
273 if (header_ == NULL) {
274 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
281 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
282 if (message_arena == NULL) {
283 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
286 ::google::protobuf::Arena* submessage_arena = NULL;
287 if (message_arena != submessage_arena) {
288 header = ::google::protobuf::internal::GetOwnedMessage(
289 message_arena,
header, submessage_arena);
301 entity_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
305 return entity_name_.GetNoArena();
309 entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
315 entity_name_.SetNoArena(
316 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
321 GOOGLE_DCHECK(value != NULL);
323 entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
328 entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
329 ::
std::string(
reinterpret_cast<const char*
>(value), size));
335 return entity_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
340 return entity_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
348 entity_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
entity_name);
356 inline const ::ignition::msgs::Quaternion& IMU::_internal_orientation()
const {
357 return *orientation_;
360 const ::ignition::msgs::Quaternion* p = orientation_;
374 if (orientation_ == NULL) {
375 auto* p = CreateMaybeMessage<::ignition::msgs::Quaternion>(GetArenaNoVirtual());
382 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
383 if (message_arena == NULL) {
384 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(orientation_);
387 ::google::protobuf::Arena* submessage_arena = NULL;
388 if (message_arena != submessage_arena) {
389 orientation = ::google::protobuf::internal::GetOwnedMessage(
404 inline const ::ignition::msgs::Vector3d& IMU::_internal_angular_velocity()
const {
405 return *angular_velocity_;
408 const ::ignition::msgs::Vector3d* p = angular_velocity_;
417 angular_velocity_ = NULL;
422 if (angular_velocity_ == NULL) {
423 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaNoVirtual());
424 angular_velocity_ = p;
427 return angular_velocity_;
430 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
431 if (message_arena == NULL) {
432 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(angular_velocity_);
435 ::google::protobuf::Arena* submessage_arena = NULL;
436 if (message_arena != submessage_arena) {
452 inline const ::ignition::msgs::Vector3d& IMU::_internal_linear_acceleration()
const {
453 return *linear_acceleration_;
456 const ::ignition::msgs::Vector3d* p = linear_acceleration_;
465 linear_acceleration_ = NULL;
470 if (linear_acceleration_ == NULL) {
471 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaNoVirtual());
472 linear_acceleration_ = p;
475 return linear_acceleration_;
478 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
479 if (message_arena == NULL) {
480 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(linear_acceleration_);
483 ::google::protobuf::Arena* submessage_arena = NULL;
484 if (message_arena != submessage_arena) {
497 #pragma GCC diagnostic pop
514 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fimu_2eproto