Ignition Msgs

API Reference

5.8.1
wrench.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/wrench.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fwrench_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fwrench_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>
36 #ifndef _MSC_VER
37 #pragma GCC system_header
38 #else
39 #pragma warning(push)
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
41 #endif
42 #ifdef __linux__
43 #include <sys/sysmacros.h>
44 #endif
45 #include <memory>
46 #include <ignition/msgs/Export.hh>
47 // @@protoc_insertion_point(includes)
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fwrench_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
51 namespace internal {
52 class AnyMetadata;
53 } // namespace internal
54 PROTOBUF_NAMESPACE_CLOSE
55 
56 // Internal implementation detail -- do not use these members.
57 struct IGNITION_MSGS_VISIBLE TableStruct_ignition_2fmsgs_2fwrench_2eproto {
58  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
61  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
62  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
63  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
64  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66  static const uint32_t offsets[];
67 };
68 IGNITION_MSGS_VISIBLE extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fwrench_2eproto;
69 namespace ignition {
70 namespace msgs {
71 class Wrench;
72 struct WrenchDefaultTypeInternal;
73 IGNITION_MSGS_VISIBLE extern WrenchDefaultTypeInternal _Wrench_default_instance_;
74 } // namespace msgs
75 } // namespace ignition
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Wrench* Arena::CreateMaybeMessage<::ignition::msgs::Wrench>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
79 namespace ignition {
80 namespace msgs {
81 
82 // ===================================================================
83 
84 class IGNITION_MSGS_VISIBLE Wrench final :
85  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Wrench) */ {
86  public:
87  inline Wrench() : Wrench(nullptr) {}
88  ~Wrench() override;
89  explicit constexpr Wrench(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
90 
91  Wrench(const Wrench& from);
92  Wrench(Wrench&& from) noexcept
93  : Wrench() {
94  *this = ::std::move(from);
95  }
96 
97  inline Wrench& operator=(const Wrench& from) {
98  CopyFrom(from);
99  return *this;
100  }
101  inline Wrench& operator=(Wrench&& from) noexcept {
102  if (this == &from) return *this;
103  if (GetOwningArena() == from.GetOwningArena()
104  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
105  && GetOwningArena() != nullptr
106  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
107  ) {
108  InternalSwap(&from);
109  } else {
110  CopyFrom(from);
111  }
112  return *this;
113  }
114 
115  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
116  return GetDescriptor();
117  }
118  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
119  return default_instance().GetMetadata().descriptor;
120  }
121  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
122  return default_instance().GetMetadata().reflection;
123  }
124  static const Wrench& default_instance() {
125  return *internal_default_instance();
126  }
127  static inline const Wrench* internal_default_instance() {
128  return reinterpret_cast<const Wrench*>(
130  }
131  static constexpr int kIndexInFileMessages =
132  0;
133 
134  friend void swap(Wrench& a, Wrench& b) {
135  a.Swap(&b);
136  }
137  inline void Swap(Wrench* other) {
138  if (other == this) return;
139  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
140  if (GetOwningArena() != nullptr &&
141  GetOwningArena() == other->GetOwningArena()) {
142  #else // PROTOBUF_FORCE_COPY_IN_SWAP
143  if (GetOwningArena() == other->GetOwningArena()) {
144  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
145  InternalSwap(other);
146  } else {
147  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
148  }
149  }
150  void UnsafeArenaSwap(Wrench* other) {
151  if (other == this) return;
152  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
153  InternalSwap(other);
154  }
155 
156  // implements Message ----------------------------------------------
157 
158  Wrench* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
159  return CreateMaybeMessage<Wrench>(arena);
160  }
161  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
162  void CopyFrom(const Wrench& from);
163  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
164  void MergeFrom(const Wrench& from);
165  private:
166  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
167  public:
168  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
169  bool IsInitialized() const final;
170 
171  size_t ByteSizeLong() const final;
172  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
173  uint8_t* _InternalSerialize(
174  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175  int GetCachedSize() const final { return _cached_size_.Get(); }
176 
177  private:
178  void SharedCtor();
179  void SharedDtor();
180  void SetCachedSize(int size) const final;
181  void InternalSwap(Wrench* other);
182 
183  private:
184  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186  return "ignition.msgs.Wrench";
187  }
188  protected:
189  explicit Wrench(::PROTOBUF_NAMESPACE_ID::Arena* arena,
190  bool is_message_owned = false);
191  private:
192  static void ArenaDtor(void* object);
193  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
194  public:
195 
196  static const ClassData _class_data_;
197  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
198 
199  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
200 
201  // nested types ----------------------------------------------------
202 
203  // accessors -------------------------------------------------------
204 
205  enum : int {
206  kHeaderFieldNumber = 1,
207  kForceFieldNumber = 2,
208  kTorqueFieldNumber = 3,
209  kForceOffsetFieldNumber = 4,
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  // .ignition.msgs.Vector3d force = 2;
230  bool has_force() const;
231  private:
232  bool _internal_has_force() const;
233  public:
234  void clear_force();
235  const ::ignition::msgs::Vector3d& force() const;
236  PROTOBUF_NODISCARD ::ignition::msgs::Vector3d* release_force();
237  ::ignition::msgs::Vector3d* mutable_force();
238  void set_allocated_force(::ignition::msgs::Vector3d* force);
239  private:
240  const ::ignition::msgs::Vector3d& _internal_force() const;
241  ::ignition::msgs::Vector3d* _internal_mutable_force();
242  public:
243  void unsafe_arena_set_allocated_force(
244  ::ignition::msgs::Vector3d* force);
245  ::ignition::msgs::Vector3d* unsafe_arena_release_force();
246 
247  // .ignition.msgs.Vector3d torque = 3;
248  bool has_torque() const;
249  private:
250  bool _internal_has_torque() const;
251  public:
252  void clear_torque();
253  const ::ignition::msgs::Vector3d& torque() const;
254  PROTOBUF_NODISCARD ::ignition::msgs::Vector3d* release_torque();
255  ::ignition::msgs::Vector3d* mutable_torque();
256  void set_allocated_torque(::ignition::msgs::Vector3d* torque);
257  private:
258  const ::ignition::msgs::Vector3d& _internal_torque() const;
259  ::ignition::msgs::Vector3d* _internal_mutable_torque();
260  public:
261  void unsafe_arena_set_allocated_torque(
262  ::ignition::msgs::Vector3d* torque);
263  ::ignition::msgs::Vector3d* unsafe_arena_release_torque();
264 
265  // .ignition.msgs.Vector3d force_offset = 4;
266  bool has_force_offset() const;
267  private:
268  bool _internal_has_force_offset() const;
269  public:
271  const ::ignition::msgs::Vector3d& force_offset() const;
272  PROTOBUF_NODISCARD ::ignition::msgs::Vector3d* release_force_offset();
273  ::ignition::msgs::Vector3d* mutable_force_offset();
274  void set_allocated_force_offset(::ignition::msgs::Vector3d* force_offset);
275  private:
276  const ::ignition::msgs::Vector3d& _internal_force_offset() const;
277  ::ignition::msgs::Vector3d* _internal_mutable_force_offset();
278  public:
279  void unsafe_arena_set_allocated_force_offset(
280  ::ignition::msgs::Vector3d* force_offset);
281  ::ignition::msgs::Vector3d* unsafe_arena_release_force_offset();
282 
283  // @@protoc_insertion_point(class_scope:ignition.msgs.Wrench)
284  private:
285  class _Internal;
286 
287  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
288  typedef void InternalArenaConstructable_;
289  typedef void DestructorSkippable_;
290  ::ignition::msgs::Header* header_;
293  ::ignition::msgs::Vector3d* force_offset_;
294  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
295  friend struct ::TableStruct_ignition_2fmsgs_2fwrench_2eproto;
296 };
297 // ===================================================================
298 
299 
300 // ===================================================================
301 
302 #ifdef __GNUC__
303  #pragma GCC diagnostic push
304  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
305 #endif // __GNUC__
306 // Wrench
307 
308 // .ignition.msgs.Header header = 1;
309 inline bool Wrench::_internal_has_header() const {
310  return this != internal_default_instance() && header_ != nullptr;
311 }
312 inline bool Wrench::has_header() const {
313  return _internal_has_header();
314 }
315 inline const ::ignition::msgs::Header& Wrench::_internal_header() const {
316  const ::ignition::msgs::Header* p = header_;
317  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
319 }
320 inline const ::ignition::msgs::Header& Wrench::header() const {
321  // @@protoc_insertion_point(field_get:ignition.msgs.Wrench.header)
322  return _internal_header();
323 }
325  ::ignition::msgs::Header* header) {
326  if (GetArenaForAllocation() == nullptr) {
327  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
328  }
329  header_ = header;
330  if (header) {
331 
332  } else {
333 
334  }
335  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Wrench.header)
336 }
337 inline ::ignition::msgs::Header* Wrench::release_header() {
338 
339  ::ignition::msgs::Header* temp = header_;
340  header_ = nullptr;
341 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
342  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
343  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
344  if (GetArenaForAllocation() == nullptr) { delete old; }
345 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
346  if (GetArenaForAllocation() != nullptr) {
347  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
348  }
349 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
350  return temp;
351 }
352 inline ::ignition::msgs::Header* Wrench::unsafe_arena_release_header() {
353  // @@protoc_insertion_point(field_release:ignition.msgs.Wrench.header)
354 
355  ::ignition::msgs::Header* temp = header_;
356  header_ = nullptr;
357  return temp;
358 }
359 inline ::ignition::msgs::Header* Wrench::_internal_mutable_header() {
360 
361  if (header_ == nullptr) {
362  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
363  header_ = p;
364  }
365  return header_;
366 }
367 inline ::ignition::msgs::Header* Wrench::mutable_header() {
368  ::ignition::msgs::Header* _msg = _internal_mutable_header();
369  // @@protoc_insertion_point(field_mutable:ignition.msgs.Wrench.header)
370  return _msg;
371 }
373  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
374  if (message_arena == nullptr) {
375  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
376  }
377  if (header) {
378  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
379  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
380  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
381  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
382  if (message_arena != submessage_arena) {
383  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
384  message_arena, header, submessage_arena);
385  }
386 
387  } else {
388 
389  }
390  header_ = header;
391  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Wrench.header)
392 }
393 
394 // .ignition.msgs.Vector3d force = 2;
395 inline bool Wrench::_internal_has_force() const {
396  return this != internal_default_instance() && force_ != nullptr;
397 }
398 inline bool Wrench::has_force() const {
399  return _internal_has_force();
400 }
401 inline const ::ignition::msgs::Vector3d& Wrench::_internal_force() const {
402  const ::ignition::msgs::Vector3d* p = force_;
403  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Vector3d&>(
405 }
406 inline const ::ignition::msgs::Vector3d& Wrench::force() const {
407  // @@protoc_insertion_point(field_get:ignition.msgs.Wrench.force)
408  return _internal_force();
409 }
411  ::ignition::msgs::Vector3d* force) {
412  if (GetArenaForAllocation() == nullptr) {
413  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(force_);
414  }
415  force_ = force;
416  if (force) {
417 
418  } else {
419 
420  }
421  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Wrench.force)
422 }
423 inline ::ignition::msgs::Vector3d* Wrench::release_force() {
424 
425  ::ignition::msgs::Vector3d* temp = force_;
426  force_ = nullptr;
427 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
428  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
429  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
430  if (GetArenaForAllocation() == nullptr) { delete old; }
431 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
432  if (GetArenaForAllocation() != nullptr) {
433  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
434  }
435 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
436  return temp;
437 }
438 inline ::ignition::msgs::Vector3d* Wrench::unsafe_arena_release_force() {
439  // @@protoc_insertion_point(field_release:ignition.msgs.Wrench.force)
440 
441  ::ignition::msgs::Vector3d* temp = force_;
442  force_ = nullptr;
443  return temp;
444 }
445 inline ::ignition::msgs::Vector3d* Wrench::_internal_mutable_force() {
446 
447  if (force_ == nullptr) {
448  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaForAllocation());
449  force_ = p;
450  }
451  return force_;
452 }
453 inline ::ignition::msgs::Vector3d* Wrench::mutable_force() {
454  ::ignition::msgs::Vector3d* _msg = _internal_mutable_force();
455  // @@protoc_insertion_point(field_mutable:ignition.msgs.Wrench.force)
456  return _msg;
457 }
459  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
460  if (message_arena == nullptr) {
461  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(force_);
462  }
463  if (force) {
464  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
465  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
466  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
467  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(force));
468  if (message_arena != submessage_arena) {
469  force = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
470  message_arena, force, submessage_arena);
471  }
472 
473  } else {
474 
475  }
476  force_ = force;
477  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Wrench.force)
478 }
479 
480 // .ignition.msgs.Vector3d torque = 3;
481 inline bool Wrench::_internal_has_torque() const {
482  return this != internal_default_instance() && torque_ != nullptr;
483 }
484 inline bool Wrench::has_torque() const {
485  return _internal_has_torque();
486 }
487 inline const ::ignition::msgs::Vector3d& Wrench::_internal_torque() const {
488  const ::ignition::msgs::Vector3d* p = torque_;
489  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Vector3d&>(
491 }
492 inline const ::ignition::msgs::Vector3d& Wrench::torque() const {
493  // @@protoc_insertion_point(field_get:ignition.msgs.Wrench.torque)
494  return _internal_torque();
495 }
497  ::ignition::msgs::Vector3d* torque) {
498  if (GetArenaForAllocation() == nullptr) {
499  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(torque_);
500  }
501  torque_ = torque;
502  if (torque) {
503 
504  } else {
505 
506  }
507  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Wrench.torque)
508 }
509 inline ::ignition::msgs::Vector3d* Wrench::release_torque() {
510 
511  ::ignition::msgs::Vector3d* temp = torque_;
512  torque_ = nullptr;
513 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
514  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
515  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
516  if (GetArenaForAllocation() == nullptr) { delete old; }
517 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
518  if (GetArenaForAllocation() != nullptr) {
519  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
520  }
521 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
522  return temp;
523 }
524 inline ::ignition::msgs::Vector3d* Wrench::unsafe_arena_release_torque() {
525  // @@protoc_insertion_point(field_release:ignition.msgs.Wrench.torque)
526 
527  ::ignition::msgs::Vector3d* temp = torque_;
528  torque_ = nullptr;
529  return temp;
530 }
531 inline ::ignition::msgs::Vector3d* Wrench::_internal_mutable_torque() {
532 
533  if (torque_ == nullptr) {
534  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaForAllocation());
535  torque_ = p;
536  }
537  return torque_;
538 }
539 inline ::ignition::msgs::Vector3d* Wrench::mutable_torque() {
540  ::ignition::msgs::Vector3d* _msg = _internal_mutable_torque();
541  // @@protoc_insertion_point(field_mutable:ignition.msgs.Wrench.torque)
542  return _msg;
543 }
545  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
546  if (message_arena == nullptr) {
547  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(torque_);
548  }
549  if (torque) {
550  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
551  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
552  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
553  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(torque));
554  if (message_arena != submessage_arena) {
555  torque = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
556  message_arena, torque, submessage_arena);
557  }
558 
559  } else {
560 
561  }
562  torque_ = torque;
563  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Wrench.torque)
564 }
565 
566 // .ignition.msgs.Vector3d force_offset = 4;
567 inline bool Wrench::_internal_has_force_offset() const {
568  return this != internal_default_instance() && force_offset_ != nullptr;
569 }
570 inline bool Wrench::has_force_offset() const {
571  return _internal_has_force_offset();
572 }
573 inline const ::ignition::msgs::Vector3d& Wrench::_internal_force_offset() const {
574  const ::ignition::msgs::Vector3d* p = force_offset_;
575  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Vector3d&>(
577 }
578 inline const ::ignition::msgs::Vector3d& Wrench::force_offset() const {
579  // @@protoc_insertion_point(field_get:ignition.msgs.Wrench.force_offset)
580  return _internal_force_offset();
581 }
583  ::ignition::msgs::Vector3d* force_offset) {
584  if (GetArenaForAllocation() == nullptr) {
585  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(force_offset_);
586  }
587  force_offset_ = force_offset;
588  if (force_offset) {
589 
590  } else {
591 
592  }
593  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Wrench.force_offset)
594 }
595 inline ::ignition::msgs::Vector3d* Wrench::release_force_offset() {
596 
597  ::ignition::msgs::Vector3d* temp = force_offset_;
598  force_offset_ = nullptr;
599 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
600  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
601  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
602  if (GetArenaForAllocation() == nullptr) { delete old; }
603 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
604  if (GetArenaForAllocation() != nullptr) {
605  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
606  }
607 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
608  return temp;
609 }
610 inline ::ignition::msgs::Vector3d* Wrench::unsafe_arena_release_force_offset() {
611  // @@protoc_insertion_point(field_release:ignition.msgs.Wrench.force_offset)
612 
613  ::ignition::msgs::Vector3d* temp = force_offset_;
614  force_offset_ = nullptr;
615  return temp;
616 }
617 inline ::ignition::msgs::Vector3d* Wrench::_internal_mutable_force_offset() {
618 
619  if (force_offset_ == nullptr) {
620  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaForAllocation());
621  force_offset_ = p;
622  }
623  return force_offset_;
624 }
625 inline ::ignition::msgs::Vector3d* Wrench::mutable_force_offset() {
626  ::ignition::msgs::Vector3d* _msg = _internal_mutable_force_offset();
627  // @@protoc_insertion_point(field_mutable:ignition.msgs.Wrench.force_offset)
628  return _msg;
629 }
631  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
632  if (message_arena == nullptr) {
633  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(force_offset_);
634  }
635  if (force_offset) {
636  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
637  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
638  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
639  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(force_offset));
640  if (message_arena != submessage_arena) {
641  force_offset = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
642  message_arena, force_offset, submessage_arena);
643  }
644 
645  } else {
646 
647  }
648  force_offset_ = force_offset;
649  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Wrench.force_offset)
650 }
651 
652 #ifdef __GNUC__
653  #pragma GCC diagnostic pop
654 #endif // __GNUC__
655 
660 // @@protoc_insertion_point(namespace_scope)
661 
662 } // namespace msgs
663 } // namespace ignition
664 
665 #ifdef _MSC_VER
666 #pragma warning(pop)
667 #endif
668 // @@protoc_insertion_point(global_scope)
669 
670 #include <google/protobuf/port_undef.inc>
671 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fwrench_2eproto
Definition: header.pb.h:265
Definition: vector3d.pb.h:84
Definition: wrench.pb.h:85
void unsafe_arena_set_allocated_torque(::ignition::msgs::Vector3d *torque)
Definition: wrench.pb.h:496
::ignition::msgs::Vector3d * mutable_force()
Definition: wrench.pb.h:453
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: wrench.pb.h:121
Wrench(Wrench &&from) noexcept
Definition: wrench.pb.h:92
Wrench(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
bool has_header() const
Definition: wrench.pb.h:312
::ignition::msgs::Header * mutable_header()
Definition: wrench.pb.h:367
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void unsafe_arena_set_allocated_force(::ignition::msgs::Vector3d *force)
Definition: wrench.pb.h:410
PROTOBUF_NODISCARD ::ignition::msgs::Vector3d * release_torque()
Definition: wrench.pb.h:509
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: wrench.pb.h:115
PROTOBUF_NODISCARD ::ignition::msgs::Vector3d * release_force_offset()
Definition: wrench.pb.h:595
static const Wrench * internal_default_instance()
Definition: wrench.pb.h:127
Wrench(const Wrench &from)
static const Wrench & default_instance()
Definition: wrench.pb.h:124
const ::ignition::msgs::Vector3d & force_offset() const
Definition: wrench.pb.h:578
void Swap(Wrench *other)
Definition: wrench.pb.h:137
void set_allocated_torque(::ignition::msgs::Vector3d *torque)
Definition: wrench.pb.h:544
Wrench()
Definition: wrench.pb.h:87
bool has_force_offset() const
Definition: wrench.pb.h:570
void set_allocated_force(::ignition::msgs::Vector3d *force)
Definition: wrench.pb.h:458
::ignition::msgs::Vector3d * unsafe_arena_release_force()
Definition: wrench.pb.h:438
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: wrench.pb.h:324
void UnsafeArenaSwap(Wrench *other)
Definition: wrench.pb.h:150
friend void swap(Wrench &a, Wrench &b)
Definition: wrench.pb.h:134
Wrench & operator=(const Wrench &from)
Definition: wrench.pb.h:97
::ignition::msgs::Vector3d * mutable_force_offset()
Definition: wrench.pb.h:625
constexpr Wrench(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Wrench * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: wrench.pb.h:158
Wrench & operator=(Wrench &&from) noexcept
Definition: wrench.pb.h:101
::ignition::msgs::Vector3d * unsafe_arena_release_force_offset()
Definition: wrench.pb.h:610
::ignition::msgs::Vector3d * mutable_torque()
Definition: wrench.pb.h:539
void set_allocated_header(::ignition::msgs::Header *header)
Definition: wrench.pb.h:372
void unsafe_arena_set_allocated_force_offset(::ignition::msgs::Vector3d *force_offset)
Definition: wrench.pb.h:582
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: wrench.pb.h:337
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: wrench.pb.h:118
void CopyFrom(const Wrench &from)
const ::ignition::msgs::Header & header() const
Definition: wrench.pb.h:320
const ::ignition::msgs::Vector3d & torque() const
Definition: wrench.pb.h:492
PROTOBUF_NODISCARD ::ignition::msgs::Vector3d * release_force()
Definition: wrench.pb.h:423
static const ClassData _class_data_
Definition: wrench.pb.h:196
const ::ignition::msgs::Vector3d & force() const
Definition: wrench.pb.h:406
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: wrench.pb.h:352
bool has_force() const
Definition: wrench.pb.h:398
bool has_torque() const
Definition: wrench.pb.h:484
void MergeFrom(const Wrench &from)
void set_allocated_force_offset(::ignition::msgs::Vector3d *force_offset)
Definition: wrench.pb.h:630
::ignition::msgs::Vector3d * unsafe_arena_release_torque()
Definition: wrench.pb.h:524
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
std::unique_ptr< Wrench > WrenchUniquePtr
Definition: wrench.pb.h:656
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< Wrench > WrenchSharedPtr
Definition: wrench.pb.h:658
IGNITION_MSGS_VISIBLE WrenchDefaultTypeInternal _Wrench_default_instance_
std::shared_ptr< const Wrench > ConstWrenchSharedPtr
Definition: wrench.pb.h:659
std::unique_ptr< const Wrench > ConstWrenchUniquePtr
Definition: wrench.pb.h:657
Definition: actor.pb.h:52
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)
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fwrench_2eproto