4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fquaternion_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fquaternion_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>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fquaternion_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
54 PROTOBUF_NAMESPACE_CLOSE
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
72 class QuaternionDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Quaternion* Arena::CreateMaybeMessage<::ignition::msgs::Quaternion>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
84 class IGNITION_MSGS_VISIBLE Quaternion PROTOBUF_FINAL :
85 public ::PROTOBUF_NAMESPACE_ID::Message {
93 *
this = ::std::move(from);
96 inline Quaternion&
operator=(
const Quaternion& from) {
100 inline Quaternion&
operator=(Quaternion&& from) noexcept {
101 if (GetArena() == from.GetArena()) {
102 if (
this != &from) InternalSwap(&from);
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
110 return GetDescriptor();
113 return GetMetadataStatic().descriptor;
116 return GetMetadataStatic().reflection;
122 return reinterpret_cast<const Quaternion*
>(
125 static constexpr
int kIndexInFileMessages =
128 friend void swap(Quaternion& a, Quaternion& b) {
131 inline void Swap(Quaternion* 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 Quaternion*
New() const final {
148 return CreateMaybeMessage<Quaternion>(
nullptr);
151 Quaternion*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
152 return CreateMaybeMessage<Quaternion>(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(Quaternion* other);
172 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
173 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
174 return "ignition.msgs.Quaternion";
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,
206 bool _internal_has_header()
const;
209 const ::ignition::msgs::Header&
header()
const;
214 const ::ignition::msgs::Header& _internal_header()
const;
215 ::ignition::msgs::Header* _internal_mutable_header();
218 ::ignition::msgs::Header* header);
226 double _internal_x()
const;
227 void _internal_set_x(
double value);
235 double _internal_y()
const;
236 void _internal_set_y(
double value);
244 double _internal_z()
const;
245 void _internal_set_z(
double value);
253 double _internal_w()
const;
254 void _internal_set_w(
double value);
261 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
262 typedef void InternalArenaConstructable_;
263 typedef void DestructorSkippable_;
264 ::ignition::msgs::Header* header_;
269 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
270 friend struct ::TableStruct_ignition_2fmsgs_2fquaternion_2eproto;
278 #pragma GCC diagnostic push
279 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
284 inline bool Quaternion::_internal_has_header()
const {
285 return this != internal_default_instance() && header_ !=
nullptr;
287 inline bool Quaternion::has_header()
const {
288 return _internal_has_header();
290 inline const ::ignition::msgs::Header& Quaternion::_internal_header()
const {
291 const ::ignition::msgs::Header* p = header_;
292 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Header*
>(
295 inline const ::ignition::msgs::Header& Quaternion::header()
const {
297 return _internal_header();
299 inline void Quaternion::unsafe_arena_set_allocated_header(
300 ::ignition::msgs::Header* header) {
301 if (GetArena() ==
nullptr) {
302 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
312 inline ::ignition::msgs::Header* Quaternion::release_header() {
313 auto temp = unsafe_arena_release_header();
314 if (GetArena() !=
nullptr) {
315 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
319 inline ::ignition::msgs::Header* Quaternion::unsafe_arena_release_header() {
322 ::ignition::msgs::Header* temp = header_;
326 inline ::ignition::msgs::Header* Quaternion::_internal_mutable_header() {
328 if (header_ ==
nullptr) {
329 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
334 inline ::ignition::msgs::Header* Quaternion::mutable_header() {
336 return _internal_mutable_header();
338 inline void Quaternion::set_allocated_header(::ignition::msgs::Header* header) {
339 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
340 if (message_arena ==
nullptr) {
341 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
344 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
345 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
346 if (message_arena != submessage_arena) {
347 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
348 message_arena, header, submessage_arena);
359 inline void Quaternion::clear_x() {
362 inline double Quaternion::_internal_x()
const {
365 inline double Quaternion::x()
const {
367 return _internal_x();
369 inline void Quaternion::_internal_set_x(
double value) {
373 inline void Quaternion::set_x(
double value) {
374 _internal_set_x(value);
379 inline void Quaternion::clear_y() {
382 inline double Quaternion::_internal_y()
const {
385 inline double Quaternion::y()
const {
387 return _internal_y();
389 inline void Quaternion::_internal_set_y(
double value) {
393 inline void Quaternion::set_y(
double value) {
394 _internal_set_y(value);
399 inline void Quaternion::clear_z() {
402 inline double Quaternion::_internal_z()
const {
405 inline double Quaternion::z()
const {
407 return _internal_z();
409 inline void Quaternion::_internal_set_z(
double value) {
413 inline void Quaternion::set_z(
double value) {
414 _internal_set_z(value);
419 inline void Quaternion::clear_w() {
422 inline double Quaternion::_internal_w()
const {
425 inline double Quaternion::w()
const {
427 return _internal_w();
429 inline void Quaternion::_internal_set_w(
double value) {
433 inline void Quaternion::set_w(
double value) {
434 _internal_set_w(value);
439 #pragma GCC diagnostic pop
456 #include <google/protobuf/port_undef.inc>
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fquaternion_2eproto
static void InitAsDefaultInstance()
Quaternion(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:115
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
Quaternion & operator=(Quaternion &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:100
::ignition::msgs::Header * mutable_header()
friend void swap(Quaternion &a, Quaternion &b)
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:128
void UnsafeArenaSwap(Quaternion *other)
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:139
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:109
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const Quaternion * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:121
void MergeFrom(const Quaternion &from)
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Quaternion(const Quaternion &from)
Quaternion()
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:87
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Quaternion * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:151
Quaternion & operator=(const Quaternion &from)
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:96
void set_allocated_header(::ignition::msgs::Header *header)
static const Quaternion & default_instance()
Quaternion(Quaternion &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:91
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:112
void Swap(Quaternion *other)
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:131
Quaternion * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:147
void CopyFrom(const Quaternion &from)
const ::ignition::msgs::Header & header() const
std::unique_ptr< Quaternion > QuaternionUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:442
IGNITION_MSGS_VISIBLE QuaternionDefaultTypeInternal _Quaternion_default_instance_
std::shared_ptr< Quaternion > QuaternionSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:444
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const Quaternion > ConstQuaternionSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:445
std::unique_ptr< const Quaternion > ConstQuaternionUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:443
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:53
Definition: build/ignition-msgs8/include/ignition/msgs/quaternion.pb.h:57
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)