Ignition Msgs

API Reference

5.8.1
quaternion.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/quaternion.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fquaternion_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fquaternion_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3019000 < 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.
20 #endif
21 
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> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/unknown_field_set.h>
35 #ifndef _MSC_VER
36 #pragma GCC system_header
37 #else
38 #pragma warning(push)
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
40 #endif
41 #ifdef __linux__
42 #include <sys/sysmacros.h>
43 #endif
44 #include <memory>
45 #include <ignition/msgs/Export.hh>
46 // @@protoc_insertion_point(includes)
47 #include <google/protobuf/port_def.inc>
48 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fquaternion_2eproto IGNITION_MSGS_VISIBLE
49 PROTOBUF_NAMESPACE_OPEN
50 namespace internal {
51 class AnyMetadata;
52 } // namespace internal
53 PROTOBUF_NAMESPACE_CLOSE
54 
55 // Internal implementation detail -- do not use these members.
57  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
58  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
59  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
60  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
61  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
62  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
63  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
64  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
65  static const uint32_t offsets[];
66 };
67 IGNITION_MSGS_VISIBLE extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fquaternion_2eproto;
68 namespace ignition {
69 namespace msgs {
70 class Quaternion;
71 struct QuaternionDefaultTypeInternal;
72 IGNITION_MSGS_VISIBLE extern QuaternionDefaultTypeInternal _Quaternion_default_instance_;
73 } // namespace msgs
74 } // namespace ignition
75 PROTOBUF_NAMESPACE_OPEN
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Quaternion* Arena::CreateMaybeMessage<::ignition::msgs::Quaternion>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
78 namespace ignition {
79 namespace msgs {
80 
81 // ===================================================================
82 
83 class IGNITION_MSGS_VISIBLE Quaternion final :
84  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Quaternion) */ {
85  public:
86  inline Quaternion() : Quaternion(nullptr) {}
87  ~Quaternion() override;
88  explicit constexpr Quaternion(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
89 
90  Quaternion(const Quaternion& from);
91  Quaternion(Quaternion&& from) noexcept
92  : Quaternion() {
93  *this = ::std::move(from);
94  }
95 
96  inline Quaternion& operator=(const Quaternion& from) {
97  CopyFrom(from);
98  return *this;
99  }
100  inline Quaternion& operator=(Quaternion&& from) noexcept {
101  if (this == &from) return *this;
102  if (GetOwningArena() == from.GetOwningArena()
103  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
104  && GetOwningArena() != nullptr
105  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
106  ) {
107  InternalSwap(&from);
108  } else {
109  CopyFrom(from);
110  }
111  return *this;
112  }
113 
114  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
115  return GetDescriptor();
116  }
117  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
118  return default_instance().GetMetadata().descriptor;
119  }
120  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
121  return default_instance().GetMetadata().reflection;
122  }
123  static const Quaternion& default_instance() {
124  return *internal_default_instance();
125  }
126  static inline const Quaternion* internal_default_instance() {
127  return reinterpret_cast<const Quaternion*>(
129  }
130  static constexpr int kIndexInFileMessages =
131  0;
132 
133  friend void swap(Quaternion& a, Quaternion& b) {
134  a.Swap(&b);
135  }
136  inline void Swap(Quaternion* other) {
137  if (other == this) return;
138  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
139  if (GetOwningArena() != nullptr &&
140  GetOwningArena() == other->GetOwningArena()) {
141  #else // PROTOBUF_FORCE_COPY_IN_SWAP
142  if (GetOwningArena() == other->GetOwningArena()) {
143  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
144  InternalSwap(other);
145  } else {
146  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
147  }
148  }
150  if (other == this) return;
151  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
152  InternalSwap(other);
153  }
154 
155  // implements Message ----------------------------------------------
156 
157  Quaternion* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
158  return CreateMaybeMessage<Quaternion>(arena);
159  }
160  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
161  void CopyFrom(const Quaternion& from);
162  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
163  void MergeFrom(const Quaternion& from);
164  private:
165  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
166  public:
167  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
168  bool IsInitialized() const final;
169 
170  size_t ByteSizeLong() const final;
171  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
172  uint8_t* _InternalSerialize(
173  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
174  int GetCachedSize() const final { return _cached_size_.Get(); }
175 
176  private:
177  void SharedCtor();
178  void SharedDtor();
179  void SetCachedSize(int size) const final;
180  void InternalSwap(Quaternion* other);
181 
182  private:
183  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
184  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
185  return "ignition.msgs.Quaternion";
186  }
187  protected:
188  explicit Quaternion(::PROTOBUF_NAMESPACE_ID::Arena* arena,
189  bool is_message_owned = false);
190  private:
191  static void ArenaDtor(void* object);
192  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
193  public:
194 
195  static const ClassData _class_data_;
196  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
197 
198  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
199 
200  // nested types ----------------------------------------------------
201 
202  // accessors -------------------------------------------------------
203 
204  enum : int {
205  kHeaderFieldNumber = 1,
206  kXFieldNumber = 2,
207  kYFieldNumber = 3,
208  kZFieldNumber = 4,
209  kWFieldNumber = 5,
210  };
211  // .ignition.msgs.Header header = 1;
212  bool has_header() const;
213  private:
214  bool _internal_has_header() const;
215  public:
216  void clear_header();
217  const ::ignition::msgs::Header& header() const;
218  PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
219  ::ignition::msgs::Header* mutable_header();
220  void set_allocated_header(::ignition::msgs::Header* header);
221  private:
222  const ::ignition::msgs::Header& _internal_header() const;
223  ::ignition::msgs::Header* _internal_mutable_header();
224  public:
225  void unsafe_arena_set_allocated_header(
226  ::ignition::msgs::Header* header);
227  ::ignition::msgs::Header* unsafe_arena_release_header();
228 
229  // double x = 2;
230  void clear_x();
231  double x() const;
232  void set_x(double value);
233  private:
234  double _internal_x() const;
235  void _internal_set_x(double value);
236  public:
237 
238  // double y = 3;
239  void clear_y();
240  double y() const;
241  void set_y(double value);
242  private:
243  double _internal_y() const;
244  void _internal_set_y(double value);
245  public:
246 
247  // double z = 4;
248  void clear_z();
249  double z() const;
250  void set_z(double value);
251  private:
252  double _internal_z() const;
253  void _internal_set_z(double value);
254  public:
255 
256  // double w = 5;
257  void clear_w();
258  double w() const;
259  void set_w(double value);
260  private:
261  double _internal_w() const;
262  void _internal_set_w(double value);
263  public:
264 
265  // @@protoc_insertion_point(class_scope:ignition.msgs.Quaternion)
266  private:
267  class _Internal;
268 
269  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
270  typedef void InternalArenaConstructable_;
271  typedef void DestructorSkippable_;
272  ::ignition::msgs::Header* header_;
273  double x_;
274  double y_;
275  double z_;
276  double w_;
277  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
278  friend struct ::TableStruct_ignition_2fmsgs_2fquaternion_2eproto;
279 };
280 // ===================================================================
281 
282 
283 // ===================================================================
284 
285 #ifdef __GNUC__
286  #pragma GCC diagnostic push
287  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
288 #endif // __GNUC__
289 // Quaternion
290 
291 // .ignition.msgs.Header header = 1;
292 inline bool Quaternion::_internal_has_header() const {
293  return this != internal_default_instance() && header_ != nullptr;
294 }
295 inline bool Quaternion::has_header() const {
296  return _internal_has_header();
297 }
298 inline const ::ignition::msgs::Header& Quaternion::_internal_header() const {
299  const ::ignition::msgs::Header* p = header_;
300  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
302 }
303 inline const ::ignition::msgs::Header& Quaternion::header() const {
304  // @@protoc_insertion_point(field_get:ignition.msgs.Quaternion.header)
305  return _internal_header();
306 }
308  ::ignition::msgs::Header* header) {
309  if (GetArenaForAllocation() == nullptr) {
310  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
311  }
312  header_ = header;
313  if (header) {
314 
315  } else {
316 
317  }
318  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Quaternion.header)
319 }
320 inline ::ignition::msgs::Header* Quaternion::release_header() {
321 
322  ::ignition::msgs::Header* temp = header_;
323  header_ = nullptr;
324 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
325  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
326  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
327  if (GetArenaForAllocation() == nullptr) { delete old; }
328 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
329  if (GetArenaForAllocation() != nullptr) {
330  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
331  }
332 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
333  return temp;
334 }
335 inline ::ignition::msgs::Header* Quaternion::unsafe_arena_release_header() {
336  // @@protoc_insertion_point(field_release:ignition.msgs.Quaternion.header)
337 
338  ::ignition::msgs::Header* temp = header_;
339  header_ = nullptr;
340  return temp;
341 }
342 inline ::ignition::msgs::Header* Quaternion::_internal_mutable_header() {
343 
344  if (header_ == nullptr) {
345  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
346  header_ = p;
347  }
348  return header_;
349 }
350 inline ::ignition::msgs::Header* Quaternion::mutable_header() {
351  ::ignition::msgs::Header* _msg = _internal_mutable_header();
352  // @@protoc_insertion_point(field_mutable:ignition.msgs.Quaternion.header)
353  return _msg;
354 }
356  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
357  if (message_arena == nullptr) {
358  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
359  }
360  if (header) {
361  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
362  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
363  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
364  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
365  if (message_arena != submessage_arena) {
366  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
367  message_arena, header, submessage_arena);
368  }
369 
370  } else {
371 
372  }
373  header_ = header;
374  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Quaternion.header)
375 }
376 
377 // double x = 2;
378 inline void Quaternion::clear_x() {
379  x_ = 0;
380 }
381 inline double Quaternion::_internal_x() const {
382  return x_;
383 }
384 inline double Quaternion::x() const {
385  // @@protoc_insertion_point(field_get:ignition.msgs.Quaternion.x)
386  return _internal_x();
387 }
388 inline void Quaternion::_internal_set_x(double value) {
389 
390  x_ = value;
391 }
392 inline void Quaternion::set_x(double value) {
393  _internal_set_x(value);
394  // @@protoc_insertion_point(field_set:ignition.msgs.Quaternion.x)
395 }
396 
397 // double y = 3;
398 inline void Quaternion::clear_y() {
399  y_ = 0;
400 }
401 inline double Quaternion::_internal_y() const {
402  return y_;
403 }
404 inline double Quaternion::y() const {
405  // @@protoc_insertion_point(field_get:ignition.msgs.Quaternion.y)
406  return _internal_y();
407 }
408 inline void Quaternion::_internal_set_y(double value) {
409 
410  y_ = value;
411 }
412 inline void Quaternion::set_y(double value) {
413  _internal_set_y(value);
414  // @@protoc_insertion_point(field_set:ignition.msgs.Quaternion.y)
415 }
416 
417 // double z = 4;
418 inline void Quaternion::clear_z() {
419  z_ = 0;
420 }
421 inline double Quaternion::_internal_z() const {
422  return z_;
423 }
424 inline double Quaternion::z() const {
425  // @@protoc_insertion_point(field_get:ignition.msgs.Quaternion.z)
426  return _internal_z();
427 }
428 inline void Quaternion::_internal_set_z(double value) {
429 
430  z_ = value;
431 }
432 inline void Quaternion::set_z(double value) {
433  _internal_set_z(value);
434  // @@protoc_insertion_point(field_set:ignition.msgs.Quaternion.z)
435 }
436 
437 // double w = 5;
438 inline void Quaternion::clear_w() {
439  w_ = 0;
440 }
441 inline double Quaternion::_internal_w() const {
442  return w_;
443 }
444 inline double Quaternion::w() const {
445  // @@protoc_insertion_point(field_get:ignition.msgs.Quaternion.w)
446  return _internal_w();
447 }
448 inline void Quaternion::_internal_set_w(double value) {
449 
450  w_ = value;
451 }
452 inline void Quaternion::set_w(double value) {
453  _internal_set_w(value);
454  // @@protoc_insertion_point(field_set:ignition.msgs.Quaternion.w)
455 }
456 
457 #ifdef __GNUC__
458  #pragma GCC diagnostic pop
459 #endif // __GNUC__
460 
465 // @@protoc_insertion_point(namespace_scope)
466 
467 } // namespace msgs
468 } // namespace ignition
469 
470 #ifdef _MSC_VER
471 #pragma warning(pop)
472 #endif
473 // @@protoc_insertion_point(global_scope)
474 
475 #include <google/protobuf/port_undef.inc>
476 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fquaternion_2eproto
Definition: header.pb.h:265
Definition: quaternion.pb.h:84
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: quaternion.pb.h:120
bool has_header() const
Definition: quaternion.pb.h:295
::ignition::msgs::Header * mutable_header()
Definition: quaternion.pb.h:350
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Quaternion & operator=(Quaternion &&from) noexcept
Definition: quaternion.pb.h:100
friend void swap(Quaternion &a, Quaternion &b)
Definition: quaternion.pb.h:133
void UnsafeArenaSwap(Quaternion *other)
Definition: quaternion.pb.h:149
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: quaternion.pb.h:114
void clear_x()
Definition: quaternion.pb.h:378
static const Quaternion * internal_default_instance()
Definition: quaternion.pb.h:126
void MergeFrom(const Quaternion &from)
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: quaternion.pb.h:307
Quaternion(const Quaternion &from)
Quaternion()
Definition: quaternion.pb.h:86
void set_z(double value)
Definition: quaternion.pb.h:432
Quaternion * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: quaternion.pb.h:157
double w() const
Definition: quaternion.pb.h:444
Quaternion(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
double x() const
Definition: quaternion.pb.h:384
void set_w(double value)
Definition: quaternion.pb.h:452
void clear_y()
Definition: quaternion.pb.h:398
Quaternion & operator=(const Quaternion &from)
Definition: quaternion.pb.h:96
void set_allocated_header(::ignition::msgs::Header *header)
Definition: quaternion.pb.h:355
constexpr Quaternion(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: quaternion.pb.h:320
static const Quaternion & default_instance()
Definition: quaternion.pb.h:123
void set_y(double value)
Definition: quaternion.pb.h:412
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
Quaternion(Quaternion &&from) noexcept
Definition: quaternion.pb.h:91
void clear_z()
Definition: quaternion.pb.h:418
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: quaternion.pb.h:117
double y() const
Definition: quaternion.pb.h:404
const ::ignition::msgs::Header & header() const
Definition: quaternion.pb.h:303
void Swap(Quaternion *other)
Definition: quaternion.pb.h:136
static const ClassData _class_data_
Definition: quaternion.pb.h:195
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: quaternion.pb.h:335
void clear_w()
Definition: quaternion.pb.h:438
double z() const
Definition: quaternion.pb.h:424
void CopyFrom(const Quaternion &from)
void set_x(double value)
Definition: quaternion.pb.h:392
std::unique_ptr< Quaternion > QuaternionUniquePtr
Definition: quaternion.pb.h:461
IGNITION_MSGS_VISIBLE QuaternionDefaultTypeInternal _Quaternion_default_instance_
std::shared_ptr< Quaternion > QuaternionSharedPtr
Definition: quaternion.pb.h:463
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const Quaternion > ConstQuaternionSharedPtr
Definition: quaternion.pb.h:464
std::unique_ptr< const Quaternion > ConstQuaternionUniquePtr
Definition: quaternion.pb.h:462
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fquaternion_2eproto
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)