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 < 3014000
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 3014000 < 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 ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
66 };
67 extern IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fquaternion_2eproto;
68 namespace ignition {
69 namespace msgs {
70 class Quaternion;
71 class 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 PROTOBUF_FINAL :
84  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Quaternion) */ {
85  public:
86  inline Quaternion() : Quaternion(nullptr) {}
87  virtual ~Quaternion();
88 
89  Quaternion(const Quaternion& from);
90  Quaternion(Quaternion&& from) noexcept
91  : Quaternion() {
92  *this = ::std::move(from);
93  }
94 
95  inline Quaternion& operator=(const Quaternion& from) {
96  CopyFrom(from);
97  return *this;
98  }
99  inline Quaternion& operator=(Quaternion&& from) noexcept {
100  if (GetArena() == from.GetArena()) {
101  if (this != &from) InternalSwap(&from);
102  } else {
103  CopyFrom(from);
104  }
105  return *this;
106  }
107 
108  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
109  return GetDescriptor();
110  }
111  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
112  return GetMetadataStatic().descriptor;
113  }
114  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
115  return GetMetadataStatic().reflection;
116  }
117  static const Quaternion& default_instance();
118 
119  static inline const Quaternion* internal_default_instance() {
120  return reinterpret_cast<const Quaternion*>(
122  }
123  static constexpr int kIndexInFileMessages =
124  0;
125 
126  friend void swap(Quaternion& a, Quaternion& b) {
127  a.Swap(&b);
128  }
129  inline void Swap(Quaternion* other) {
130  if (other == this) return;
131  if (GetArena() == other->GetArena()) {
132  InternalSwap(other);
133  } else {
134  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
135  }
136  }
137  void UnsafeArenaSwap(Quaternion* other) {
138  if (other == this) return;
139  GOOGLE_DCHECK(GetArena() == other->GetArena());
140  InternalSwap(other);
141  }
142 
143  // implements Message ----------------------------------------------
144 
145  inline Quaternion* New() const final {
146  return CreateMaybeMessage<Quaternion>(nullptr);
147  }
148 
149  Quaternion* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
150  return CreateMaybeMessage<Quaternion>(arena);
151  }
152  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
153  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
154  void CopyFrom(const Quaternion& from);
155  void MergeFrom(const Quaternion& from);
156  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
157  bool IsInitialized() const final;
158 
159  size_t ByteSizeLong() const final;
160  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
161  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
162  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
163  int GetCachedSize() const final { return _cached_size_.Get(); }
164 
165  private:
166  inline void SharedCtor();
167  inline void SharedDtor();
168  void SetCachedSize(int size) const final;
169  void InternalSwap(Quaternion* other);
170  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
171  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
172  return "ignition.msgs.Quaternion";
173  }
174  protected:
175  explicit Quaternion(::PROTOBUF_NAMESPACE_ID::Arena* arena);
176  private:
177  static void ArenaDtor(void* object);
178  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
179  public:
180 
181  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
182  private:
183  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
184  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ignition_2fmsgs_2fquaternion_2eproto);
185  return ::descriptor_table_ignition_2fmsgs_2fquaternion_2eproto.file_level_metadata[kIndexInFileMessages];
186  }
187 
188  public:
189 
190  // nested types ----------------------------------------------------
191 
192  // accessors -------------------------------------------------------
193 
194  enum : int {
195  kHeaderFieldNumber = 1,
196  kXFieldNumber = 2,
197  kYFieldNumber = 3,
198  kZFieldNumber = 4,
199  kWFieldNumber = 5,
200  };
201  // .ignition.msgs.Header header = 1;
202  bool has_header() const;
203  private:
204  bool _internal_has_header() const;
205  public:
206  void clear_header();
207  const ::ignition::msgs::Header& header() const;
208  ::ignition::msgs::Header* release_header();
209  ::ignition::msgs::Header* mutable_header();
210  void set_allocated_header(::ignition::msgs::Header* header);
211  private:
212  const ::ignition::msgs::Header& _internal_header() const;
213  ::ignition::msgs::Header* _internal_mutable_header();
214  public:
216  ::ignition::msgs::Header* header);
217  ::ignition::msgs::Header* unsafe_arena_release_header();
218 
219  // double x = 2;
220  void clear_x();
221  double x() const;
222  void set_x(double value);
223  private:
224  double _internal_x() const;
225  void _internal_set_x(double value);
226  public:
227 
228  // double y = 3;
229  void clear_y();
230  double y() const;
231  void set_y(double value);
232  private:
233  double _internal_y() const;
234  void _internal_set_y(double value);
235  public:
236 
237  // double z = 4;
238  void clear_z();
239  double z() const;
240  void set_z(double value);
241  private:
242  double _internal_z() const;
243  void _internal_set_z(double value);
244  public:
245 
246  // double w = 5;
247  void clear_w();
248  double w() const;
249  void set_w(double value);
250  private:
251  double _internal_w() const;
252  void _internal_set_w(double value);
253  public:
254 
255  // @@protoc_insertion_point(class_scope:ignition.msgs.Quaternion)
256  private:
257  class _Internal;
258 
259  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
260  typedef void InternalArenaConstructable_;
261  typedef void DestructorSkippable_;
262  ::ignition::msgs::Header* header_;
263  double x_;
264  double y_;
265  double z_;
266  double w_;
267  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
268  friend struct ::TableStruct_ignition_2fmsgs_2fquaternion_2eproto;
269 };
270 // ===================================================================
271 
272 
273 // ===================================================================
274 
275 #ifdef __GNUC__
276  #pragma GCC diagnostic push
277  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
278 #endif // __GNUC__
279 // Quaternion
280 
281 // .ignition.msgs.Header header = 1;
282 inline bool Quaternion::_internal_has_header() const {
283  return this != internal_default_instance() && header_ != nullptr;
284 }
285 inline bool Quaternion::has_header() const {
286  return _internal_has_header();
287 }
288 inline const ::ignition::msgs::Header& Quaternion::_internal_header() const {
289  const ::ignition::msgs::Header* p = header_;
290  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
292 }
293 inline const ::ignition::msgs::Header& Quaternion::header() const {
294  // @@protoc_insertion_point(field_get:ignition.msgs.Quaternion.header)
295  return _internal_header();
296 }
297 inline void Quaternion::unsafe_arena_set_allocated_header(
298  ::ignition::msgs::Header* header) {
299  if (GetArena() == nullptr) {
300  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
301  }
302  header_ = header;
303  if (header) {
304 
305  } else {
306 
307  }
308  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Quaternion.header)
309 }
310 inline ::ignition::msgs::Header* Quaternion::release_header() {
311 
312  ::ignition::msgs::Header* temp = header_;
313  header_ = nullptr;
314  if (GetArena() != nullptr) {
315  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
316  }
317  return temp;
318 }
319 inline ::ignition::msgs::Header* Quaternion::unsafe_arena_release_header() {
320  // @@protoc_insertion_point(field_release:ignition.msgs.Quaternion.header)
321 
322  ::ignition::msgs::Header* temp = header_;
323  header_ = nullptr;
324  return temp;
325 }
326 inline ::ignition::msgs::Header* Quaternion::_internal_mutable_header() {
327 
328  if (header_ == nullptr) {
329  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
330  header_ = p;
331  }
332  return header_;
333 }
334 inline ::ignition::msgs::Header* Quaternion::mutable_header() {
335  // @@protoc_insertion_point(field_mutable:ignition.msgs.Quaternion.header)
336  return _internal_mutable_header();
337 }
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_);
342  }
343  if (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);
349  }
350 
351  } else {
352 
353  }
354  header_ = header;
355  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Quaternion.header)
356 }
357 
358 // double x = 2;
359 inline void Quaternion::clear_x() {
360  x_ = 0;
361 }
362 inline double Quaternion::_internal_x() const {
363  return x_;
364 }
365 inline double Quaternion::x() const {
366  // @@protoc_insertion_point(field_get:ignition.msgs.Quaternion.x)
367  return _internal_x();
368 }
369 inline void Quaternion::_internal_set_x(double value) {
370 
371  x_ = value;
372 }
373 inline void Quaternion::set_x(double value) {
374  _internal_set_x(value);
375  // @@protoc_insertion_point(field_set:ignition.msgs.Quaternion.x)
376 }
377 
378 // double y = 3;
379 inline void Quaternion::clear_y() {
380  y_ = 0;
381 }
382 inline double Quaternion::_internal_y() const {
383  return y_;
384 }
385 inline double Quaternion::y() const {
386  // @@protoc_insertion_point(field_get:ignition.msgs.Quaternion.y)
387  return _internal_y();
388 }
389 inline void Quaternion::_internal_set_y(double value) {
390 
391  y_ = value;
392 }
393 inline void Quaternion::set_y(double value) {
394  _internal_set_y(value);
395  // @@protoc_insertion_point(field_set:ignition.msgs.Quaternion.y)
396 }
397 
398 // double z = 4;
399 inline void Quaternion::clear_z() {
400  z_ = 0;
401 }
402 inline double Quaternion::_internal_z() const {
403  return z_;
404 }
405 inline double Quaternion::z() const {
406  // @@protoc_insertion_point(field_get:ignition.msgs.Quaternion.z)
407  return _internal_z();
408 }
409 inline void Quaternion::_internal_set_z(double value) {
410 
411  z_ = value;
412 }
413 inline void Quaternion::set_z(double value) {
414  _internal_set_z(value);
415  // @@protoc_insertion_point(field_set:ignition.msgs.Quaternion.z)
416 }
417 
418 // double w = 5;
419 inline void Quaternion::clear_w() {
420  w_ = 0;
421 }
422 inline double Quaternion::_internal_w() const {
423  return w_;
424 }
425 inline double Quaternion::w() const {
426  // @@protoc_insertion_point(field_get:ignition.msgs.Quaternion.w)
427  return _internal_w();
428 }
429 inline void Quaternion::_internal_set_w(double value) {
430 
431  w_ = value;
432 }
433 inline void Quaternion::set_w(double value) {
434  _internal_set_w(value);
435  // @@protoc_insertion_point(field_set:ignition.msgs.Quaternion.w)
436 }
437 
438 #ifdef __GNUC__
439  #pragma GCC diagnostic pop
440 #endif // __GNUC__
441 
446 // @@protoc_insertion_point(namespace_scope)
447 
448 } // namespace msgs
449 } // namespace ignition
450 
451 #ifdef _MSC_VER
452 #pragma warning(pop)
453 #endif
454 // @@protoc_insertion_point(global_scope)
455 
456 #include <google/protobuf/port_undef.inc>
457 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fquaternion_2eproto
Quaternion(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: quaternion.pb.h:114
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
Quaternion & operator=(Quaternion &&from) noexcept
Definition: quaternion.pb.h:99
::ignition::msgs::Header * mutable_header()
friend void swap(Quaternion &a, Quaternion &b)
Definition: quaternion.pb.h:126
void UnsafeArenaSwap(Quaternion *other)
Definition: quaternion.pb.h:137
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: quaternion.pb.h:108
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const Quaternion * internal_default_instance()
Definition: quaternion.pb.h:119
void MergeFrom(const Quaternion &from)
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Quaternion(const Quaternion &from)
Quaternion()
Definition: quaternion.pb.h:86
::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: quaternion.pb.h:149
Quaternion & operator=(const Quaternion &from)
Definition: quaternion.pb.h:95
void set_allocated_header(::ignition::msgs::Header *header)
static const Quaternion & default_instance()
Quaternion(Quaternion &&from) noexcept
Definition: quaternion.pb.h:90
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: quaternion.pb.h:111
void Swap(Quaternion *other)
Definition: quaternion.pb.h:129
Quaternion * New() const final
Definition: quaternion.pb.h:145
void CopyFrom(const Quaternion &from)
const ::ignition::msgs::Header & header() const
std::unique_ptr< Quaternion > QuaternionUniquePtr
Definition: quaternion.pb.h:442
IGNITION_MSGS_VISIBLE QuaternionDefaultTypeInternal _Quaternion_default_instance_
std::shared_ptr< Quaternion > QuaternionSharedPtr
Definition: quaternion.pb.h:444
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const Quaternion > ConstQuaternionSharedPtr
Definition: quaternion.pb.h:445
std::unique_ptr< const Quaternion > ConstQuaternionUniquePtr
Definition: quaternion.pb.h:443
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)