Ignition Msgs

API Reference

5.8.1
joint_wrench.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/joint_wrench.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fjoint_5fwrench_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fjoint_5fwrench_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_2fjoint_5fwrench_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.
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_2fjoint_5fwrench_2eproto;
69 namespace ignition {
70 namespace msgs {
71 class JointWrench;
72 struct JointWrenchDefaultTypeInternal;
73 IGNITION_MSGS_VISIBLE extern JointWrenchDefaultTypeInternal _JointWrench_default_instance_;
74 } // namespace msgs
75 } // namespace ignition
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::JointWrench* Arena::CreateMaybeMessage<::ignition::msgs::JointWrench>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
79 namespace ignition {
80 namespace msgs {
81 
82 // ===================================================================
83 
84 class IGNITION_MSGS_VISIBLE JointWrench final :
85  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.JointWrench) */ {
86  public:
87  inline JointWrench() : JointWrench(nullptr) {}
88  ~JointWrench() override;
89  explicit constexpr JointWrench(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
90 
91  JointWrench(const JointWrench& from);
92  JointWrench(JointWrench&& from) noexcept
93  : JointWrench() {
94  *this = ::std::move(from);
95  }
96 
97  inline JointWrench& operator=(const JointWrench& from) {
98  CopyFrom(from);
99  return *this;
100  }
101  inline JointWrench& operator=(JointWrench&& 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 JointWrench& default_instance() {
125  return *internal_default_instance();
126  }
127  static inline const JointWrench* internal_default_instance() {
128  return reinterpret_cast<const JointWrench*>(
130  }
131  static constexpr int kIndexInFileMessages =
132  0;
133 
134  friend void swap(JointWrench& a, JointWrench& b) {
135  a.Swap(&b);
136  }
137  inline void Swap(JointWrench* 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  }
151  if (other == this) return;
152  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
153  InternalSwap(other);
154  }
155 
156  // implements Message ----------------------------------------------
157 
158  JointWrench* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
159  return CreateMaybeMessage<JointWrench>(arena);
160  }
161  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
162  void CopyFrom(const JointWrench& from);
163  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
164  void MergeFrom(const JointWrench& 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(JointWrench* other);
182 
183  private:
184  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186  return "ignition.msgs.JointWrench";
187  }
188  protected:
189  explicit JointWrench(::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  kBody1NameFieldNumber = 2,
207  kBody2NameFieldNumber = 4,
208  kHeaderFieldNumber = 1,
209  kBody1WrenchFieldNumber = 6,
210  kBody2WrenchFieldNumber = 7,
211  kBody1IdFieldNumber = 3,
212  kBody2IdFieldNumber = 5,
213  };
214  // string body_1_name = 2;
215  void clear_body_1_name();
216  const std::string& body_1_name() const;
217  template <typename ArgT0 = const std::string&, typename... ArgT>
218  void set_body_1_name(ArgT0&& arg0, ArgT... args);
219  std::string* mutable_body_1_name();
220  PROTOBUF_NODISCARD std::string* release_body_1_name();
221  void set_allocated_body_1_name(std::string* body_1_name);
222  private:
223  const std::string& _internal_body_1_name() const;
224  inline PROTOBUF_ALWAYS_INLINE void _internal_set_body_1_name(const std::string& value);
225  std::string* _internal_mutable_body_1_name();
226  public:
227 
228  // string body_2_name = 4;
229  void clear_body_2_name();
230  const std::string& body_2_name() const;
231  template <typename ArgT0 = const std::string&, typename... ArgT>
232  void set_body_2_name(ArgT0&& arg0, ArgT... args);
233  std::string* mutable_body_2_name();
234  PROTOBUF_NODISCARD std::string* release_body_2_name();
235  void set_allocated_body_2_name(std::string* body_2_name);
236  private:
237  const std::string& _internal_body_2_name() const;
238  inline PROTOBUF_ALWAYS_INLINE void _internal_set_body_2_name(const std::string& value);
239  std::string* _internal_mutable_body_2_name();
240  public:
241 
242  // .ignition.msgs.Header header = 1;
243  bool has_header() const;
244  private:
245  bool _internal_has_header() const;
246  public:
247  void clear_header();
248  const ::ignition::msgs::Header& header() const;
249  PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
250  ::ignition::msgs::Header* mutable_header();
251  void set_allocated_header(::ignition::msgs::Header* header);
252  private:
253  const ::ignition::msgs::Header& _internal_header() const;
254  ::ignition::msgs::Header* _internal_mutable_header();
255  public:
256  void unsafe_arena_set_allocated_header(
257  ::ignition::msgs::Header* header);
258  ::ignition::msgs::Header* unsafe_arena_release_header();
259 
260  // .ignition.msgs.Wrench body_1_wrench = 6;
261  bool has_body_1_wrench() const;
262  private:
263  bool _internal_has_body_1_wrench() const;
264  public:
266  const ::ignition::msgs::Wrench& body_1_wrench() const;
267  PROTOBUF_NODISCARD ::ignition::msgs::Wrench* release_body_1_wrench();
268  ::ignition::msgs::Wrench* mutable_body_1_wrench();
269  void set_allocated_body_1_wrench(::ignition::msgs::Wrench* body_1_wrench);
270  private:
271  const ::ignition::msgs::Wrench& _internal_body_1_wrench() const;
272  ::ignition::msgs::Wrench* _internal_mutable_body_1_wrench();
273  public:
274  void unsafe_arena_set_allocated_body_1_wrench(
275  ::ignition::msgs::Wrench* body_1_wrench);
276  ::ignition::msgs::Wrench* unsafe_arena_release_body_1_wrench();
277 
278  // .ignition.msgs.Wrench body_2_wrench = 7;
279  bool has_body_2_wrench() const;
280  private:
281  bool _internal_has_body_2_wrench() const;
282  public:
284  const ::ignition::msgs::Wrench& body_2_wrench() const;
285  PROTOBUF_NODISCARD ::ignition::msgs::Wrench* release_body_2_wrench();
286  ::ignition::msgs::Wrench* mutable_body_2_wrench();
287  void set_allocated_body_2_wrench(::ignition::msgs::Wrench* body_2_wrench);
288  private:
289  const ::ignition::msgs::Wrench& _internal_body_2_wrench() const;
290  ::ignition::msgs::Wrench* _internal_mutable_body_2_wrench();
291  public:
292  void unsafe_arena_set_allocated_body_2_wrench(
293  ::ignition::msgs::Wrench* body_2_wrench);
294  ::ignition::msgs::Wrench* unsafe_arena_release_body_2_wrench();
295 
296  // uint32 body_1_id = 3;
297  void clear_body_1_id();
298  uint32_t body_1_id() const;
299  void set_body_1_id(uint32_t value);
300  private:
301  uint32_t _internal_body_1_id() const;
302  void _internal_set_body_1_id(uint32_t value);
303  public:
304 
305  // uint32 body_2_id = 5;
306  void clear_body_2_id();
307  uint32_t body_2_id() const;
308  void set_body_2_id(uint32_t value);
309  private:
310  uint32_t _internal_body_2_id() const;
311  void _internal_set_body_2_id(uint32_t value);
312  public:
313 
314  // @@protoc_insertion_point(class_scope:ignition.msgs.JointWrench)
315  private:
316  class _Internal;
317 
318  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
319  typedef void InternalArenaConstructable_;
320  typedef void DestructorSkippable_;
321  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr body_1_name_;
322  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr body_2_name_;
323  ::ignition::msgs::Header* header_;
324  ::ignition::msgs::Wrench* body_1_wrench_;
325  ::ignition::msgs::Wrench* body_2_wrench_;
326  uint32_t body_1_id_;
327  uint32_t body_2_id_;
328  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
329  friend struct ::TableStruct_ignition_2fmsgs_2fjoint_5fwrench_2eproto;
330 };
331 // ===================================================================
332 
333 
334 // ===================================================================
335 
336 #ifdef __GNUC__
337  #pragma GCC diagnostic push
338  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
339 #endif // __GNUC__
340 // JointWrench
341 
342 // .ignition.msgs.Header header = 1;
343 inline bool JointWrench::_internal_has_header() const {
344  return this != internal_default_instance() && header_ != nullptr;
345 }
346 inline bool JointWrench::has_header() const {
347  return _internal_has_header();
348 }
349 inline const ::ignition::msgs::Header& JointWrench::_internal_header() const {
350  const ::ignition::msgs::Header* p = header_;
351  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
353 }
354 inline const ::ignition::msgs::Header& JointWrench::header() const {
355  // @@protoc_insertion_point(field_get:ignition.msgs.JointWrench.header)
356  return _internal_header();
357 }
359  ::ignition::msgs::Header* header) {
360  if (GetArenaForAllocation() == nullptr) {
361  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
362  }
363  header_ = header;
364  if (header) {
365 
366  } else {
367 
368  }
369  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.JointWrench.header)
370 }
371 inline ::ignition::msgs::Header* JointWrench::release_header() {
372 
373  ::ignition::msgs::Header* temp = header_;
374  header_ = nullptr;
375 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
376  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
377  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
378  if (GetArenaForAllocation() == nullptr) { delete old; }
379 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
380  if (GetArenaForAllocation() != nullptr) {
381  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
382  }
383 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
384  return temp;
385 }
386 inline ::ignition::msgs::Header* JointWrench::unsafe_arena_release_header() {
387  // @@protoc_insertion_point(field_release:ignition.msgs.JointWrench.header)
388 
389  ::ignition::msgs::Header* temp = header_;
390  header_ = nullptr;
391  return temp;
392 }
393 inline ::ignition::msgs::Header* JointWrench::_internal_mutable_header() {
394 
395  if (header_ == nullptr) {
396  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
397  header_ = p;
398  }
399  return header_;
400 }
401 inline ::ignition::msgs::Header* JointWrench::mutable_header() {
402  ::ignition::msgs::Header* _msg = _internal_mutable_header();
403  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointWrench.header)
404  return _msg;
405 }
407  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
408  if (message_arena == nullptr) {
409  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
410  }
411  if (header) {
412  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
413  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
414  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
415  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
416  if (message_arena != submessage_arena) {
417  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
418  message_arena, header, submessage_arena);
419  }
420 
421  } else {
422 
423  }
424  header_ = header;
425  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointWrench.header)
426 }
427 
428 // string body_1_name = 2;
430  body_1_name_.ClearToEmpty();
431 }
432 inline const std::string& JointWrench::body_1_name() const {
433  // @@protoc_insertion_point(field_get:ignition.msgs.JointWrench.body_1_name)
434  return _internal_body_1_name();
435 }
436 template <typename ArgT0, typename... ArgT>
437 inline PROTOBUF_ALWAYS_INLINE
438 void JointWrench::set_body_1_name(ArgT0&& arg0, ArgT... args) {
439 
440  body_1_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
441  // @@protoc_insertion_point(field_set:ignition.msgs.JointWrench.body_1_name)
442 }
444  std::string* _s = _internal_mutable_body_1_name();
445  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointWrench.body_1_name)
446  return _s;
447 }
448 inline const std::string& JointWrench::_internal_body_1_name() const {
449  return body_1_name_.Get();
450 }
451 inline void JointWrench::_internal_set_body_1_name(const std::string& value) {
452 
453  body_1_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
454 }
455 inline std::string* JointWrench::_internal_mutable_body_1_name() {
456 
457  return body_1_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
458 }
460  // @@protoc_insertion_point(field_release:ignition.msgs.JointWrench.body_1_name)
461  return body_1_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
462 }
464  if (body_1_name != nullptr) {
465 
466  } else {
467 
468  }
469  body_1_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), body_1_name,
470  GetArenaForAllocation());
471 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
472  if (body_1_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
473  body_1_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
474  }
475 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
476  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointWrench.body_1_name)
477 }
478 
479 // uint32 body_1_id = 3;
481  body_1_id_ = 0u;
482 }
483 inline uint32_t JointWrench::_internal_body_1_id() const {
484  return body_1_id_;
485 }
486 inline uint32_t JointWrench::body_1_id() const {
487  // @@protoc_insertion_point(field_get:ignition.msgs.JointWrench.body_1_id)
488  return _internal_body_1_id();
489 }
490 inline void JointWrench::_internal_set_body_1_id(uint32_t value) {
491 
492  body_1_id_ = value;
493 }
494 inline void JointWrench::set_body_1_id(uint32_t value) {
495  _internal_set_body_1_id(value);
496  // @@protoc_insertion_point(field_set:ignition.msgs.JointWrench.body_1_id)
497 }
498 
499 // string body_2_name = 4;
501  body_2_name_.ClearToEmpty();
502 }
503 inline const std::string& JointWrench::body_2_name() const {
504  // @@protoc_insertion_point(field_get:ignition.msgs.JointWrench.body_2_name)
505  return _internal_body_2_name();
506 }
507 template <typename ArgT0, typename... ArgT>
508 inline PROTOBUF_ALWAYS_INLINE
509 void JointWrench::set_body_2_name(ArgT0&& arg0, ArgT... args) {
510 
511  body_2_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
512  // @@protoc_insertion_point(field_set:ignition.msgs.JointWrench.body_2_name)
513 }
515  std::string* _s = _internal_mutable_body_2_name();
516  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointWrench.body_2_name)
517  return _s;
518 }
519 inline const std::string& JointWrench::_internal_body_2_name() const {
520  return body_2_name_.Get();
521 }
522 inline void JointWrench::_internal_set_body_2_name(const std::string& value) {
523 
524  body_2_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
525 }
526 inline std::string* JointWrench::_internal_mutable_body_2_name() {
527 
528  return body_2_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
529 }
531  // @@protoc_insertion_point(field_release:ignition.msgs.JointWrench.body_2_name)
532  return body_2_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
533 }
535  if (body_2_name != nullptr) {
536 
537  } else {
538 
539  }
540  body_2_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), body_2_name,
541  GetArenaForAllocation());
542 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
543  if (body_2_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
544  body_2_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
545  }
546 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
547  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointWrench.body_2_name)
548 }
549 
550 // uint32 body_2_id = 5;
552  body_2_id_ = 0u;
553 }
554 inline uint32_t JointWrench::_internal_body_2_id() const {
555  return body_2_id_;
556 }
557 inline uint32_t JointWrench::body_2_id() const {
558  // @@protoc_insertion_point(field_get:ignition.msgs.JointWrench.body_2_id)
559  return _internal_body_2_id();
560 }
561 inline void JointWrench::_internal_set_body_2_id(uint32_t value) {
562 
563  body_2_id_ = value;
564 }
565 inline void JointWrench::set_body_2_id(uint32_t value) {
566  _internal_set_body_2_id(value);
567  // @@protoc_insertion_point(field_set:ignition.msgs.JointWrench.body_2_id)
568 }
569 
570 // .ignition.msgs.Wrench body_1_wrench = 6;
571 inline bool JointWrench::_internal_has_body_1_wrench() const {
572  return this != internal_default_instance() && body_1_wrench_ != nullptr;
573 }
574 inline bool JointWrench::has_body_1_wrench() const {
575  return _internal_has_body_1_wrench();
576 }
577 inline const ::ignition::msgs::Wrench& JointWrench::_internal_body_1_wrench() const {
578  const ::ignition::msgs::Wrench* p = body_1_wrench_;
579  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Wrench&>(
581 }
582 inline const ::ignition::msgs::Wrench& JointWrench::body_1_wrench() const {
583  // @@protoc_insertion_point(field_get:ignition.msgs.JointWrench.body_1_wrench)
584  return _internal_body_1_wrench();
585 }
587  ::ignition::msgs::Wrench* body_1_wrench) {
588  if (GetArenaForAllocation() == nullptr) {
589  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(body_1_wrench_);
590  }
591  body_1_wrench_ = body_1_wrench;
592  if (body_1_wrench) {
593 
594  } else {
595 
596  }
597  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.JointWrench.body_1_wrench)
598 }
599 inline ::ignition::msgs::Wrench* JointWrench::release_body_1_wrench() {
600 
601  ::ignition::msgs::Wrench* temp = body_1_wrench_;
602  body_1_wrench_ = nullptr;
603 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
604  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
605  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
606  if (GetArenaForAllocation() == nullptr) { delete old; }
607 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
608  if (GetArenaForAllocation() != nullptr) {
609  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
610  }
611 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
612  return temp;
613 }
614 inline ::ignition::msgs::Wrench* JointWrench::unsafe_arena_release_body_1_wrench() {
615  // @@protoc_insertion_point(field_release:ignition.msgs.JointWrench.body_1_wrench)
616 
617  ::ignition::msgs::Wrench* temp = body_1_wrench_;
618  body_1_wrench_ = nullptr;
619  return temp;
620 }
621 inline ::ignition::msgs::Wrench* JointWrench::_internal_mutable_body_1_wrench() {
622 
623  if (body_1_wrench_ == nullptr) {
624  auto* p = CreateMaybeMessage<::ignition::msgs::Wrench>(GetArenaForAllocation());
625  body_1_wrench_ = p;
626  }
627  return body_1_wrench_;
628 }
629 inline ::ignition::msgs::Wrench* JointWrench::mutable_body_1_wrench() {
630  ::ignition::msgs::Wrench* _msg = _internal_mutable_body_1_wrench();
631  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointWrench.body_1_wrench)
632  return _msg;
633 }
635  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
636  if (message_arena == nullptr) {
637  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(body_1_wrench_);
638  }
639  if (body_1_wrench) {
640  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
641  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
642  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
643  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(body_1_wrench));
644  if (message_arena != submessage_arena) {
645  body_1_wrench = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
646  message_arena, body_1_wrench, submessage_arena);
647  }
648 
649  } else {
650 
651  }
652  body_1_wrench_ = body_1_wrench;
653  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointWrench.body_1_wrench)
654 }
655 
656 // .ignition.msgs.Wrench body_2_wrench = 7;
657 inline bool JointWrench::_internal_has_body_2_wrench() const {
658  return this != internal_default_instance() && body_2_wrench_ != nullptr;
659 }
660 inline bool JointWrench::has_body_2_wrench() const {
661  return _internal_has_body_2_wrench();
662 }
663 inline const ::ignition::msgs::Wrench& JointWrench::_internal_body_2_wrench() const {
664  const ::ignition::msgs::Wrench* p = body_2_wrench_;
665  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Wrench&>(
667 }
668 inline const ::ignition::msgs::Wrench& JointWrench::body_2_wrench() const {
669  // @@protoc_insertion_point(field_get:ignition.msgs.JointWrench.body_2_wrench)
670  return _internal_body_2_wrench();
671 }
673  ::ignition::msgs::Wrench* body_2_wrench) {
674  if (GetArenaForAllocation() == nullptr) {
675  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(body_2_wrench_);
676  }
677  body_2_wrench_ = body_2_wrench;
678  if (body_2_wrench) {
679 
680  } else {
681 
682  }
683  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.JointWrench.body_2_wrench)
684 }
685 inline ::ignition::msgs::Wrench* JointWrench::release_body_2_wrench() {
686 
687  ::ignition::msgs::Wrench* temp = body_2_wrench_;
688  body_2_wrench_ = nullptr;
689 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
690  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
691  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
692  if (GetArenaForAllocation() == nullptr) { delete old; }
693 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
694  if (GetArenaForAllocation() != nullptr) {
695  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
696  }
697 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
698  return temp;
699 }
700 inline ::ignition::msgs::Wrench* JointWrench::unsafe_arena_release_body_2_wrench() {
701  // @@protoc_insertion_point(field_release:ignition.msgs.JointWrench.body_2_wrench)
702 
703  ::ignition::msgs::Wrench* temp = body_2_wrench_;
704  body_2_wrench_ = nullptr;
705  return temp;
706 }
707 inline ::ignition::msgs::Wrench* JointWrench::_internal_mutable_body_2_wrench() {
708 
709  if (body_2_wrench_ == nullptr) {
710  auto* p = CreateMaybeMessage<::ignition::msgs::Wrench>(GetArenaForAllocation());
711  body_2_wrench_ = p;
712  }
713  return body_2_wrench_;
714 }
715 inline ::ignition::msgs::Wrench* JointWrench::mutable_body_2_wrench() {
716  ::ignition::msgs::Wrench* _msg = _internal_mutable_body_2_wrench();
717  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointWrench.body_2_wrench)
718  return _msg;
719 }
721  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
722  if (message_arena == nullptr) {
723  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(body_2_wrench_);
724  }
725  if (body_2_wrench) {
726  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
727  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
728  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
729  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(body_2_wrench));
730  if (message_arena != submessage_arena) {
731  body_2_wrench = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
732  message_arena, body_2_wrench, submessage_arena);
733  }
734 
735  } else {
736 
737  }
738  body_2_wrench_ = body_2_wrench;
739  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointWrench.body_2_wrench)
740 }
741 
742 #ifdef __GNUC__
743  #pragma GCC diagnostic pop
744 #endif // __GNUC__
745 
750 // @@protoc_insertion_point(namespace_scope)
751 
752 } // namespace msgs
753 } // namespace ignition
754 
755 #ifdef _MSC_VER
756 #pragma warning(pop)
757 #endif
758 // @@protoc_insertion_point(global_scope)
759 
760 #include <google/protobuf/port_undef.inc>
761 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fjoint_5fwrench_2eproto
Definition: header.pb.h:265
Definition: joint_wrench.pb.h:85
void Swap(JointWrench *other)
Definition: joint_wrench.pb.h:137
const std::string & body_2_name() const
Definition: joint_wrench.pb.h:503
void set_body_1_name(ArgT0 &&arg0, ArgT... args)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: joint_wrench.pb.h:121
JointWrench * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: joint_wrench.pb.h:158
bool has_header() const
Definition: joint_wrench.pb.h:346
::ignition::msgs::Wrench * unsafe_arena_release_body_1_wrench()
Definition: joint_wrench.pb.h:614
::ignition::msgs::Header * mutable_header()
Definition: joint_wrench.pb.h:401
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
JointWrench & operator=(const JointWrench &from)
Definition: joint_wrench.pb.h:97
void set_allocated_body_1_name(std::string *body_1_name)
Definition: joint_wrench.pb.h:463
static const JointWrench * internal_default_instance()
Definition: joint_wrench.pb.h:127
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: joint_wrench.pb.h:115
void set_body_1_id(uint32_t value)
Definition: joint_wrench.pb.h:494
void MergeFrom(const JointWrench &from)
JointWrench()
Definition: joint_wrench.pb.h:87
bool has_body_2_wrench() const
Definition: joint_wrench.pb.h:660
PROTOBUF_NODISCARD ::ignition::msgs::Wrench * release_body_2_wrench()
Definition: joint_wrench.pb.h:685
uint32_t body_2_id() const
Definition: joint_wrench.pb.h:557
const ::ignition::msgs::Wrench & body_1_wrench() const
Definition: joint_wrench.pb.h:582
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: joint_wrench.pb.h:358
void CopyFrom(const JointWrench &from)
void UnsafeArenaSwap(JointWrench *other)
Definition: joint_wrench.pb.h:150
const ::ignition::msgs::Wrench & body_2_wrench() const
Definition: joint_wrench.pb.h:668
JointWrench & operator=(JointWrench &&from) noexcept
Definition: joint_wrench.pb.h:101
std::string * mutable_body_2_name()
Definition: joint_wrench.pb.h:514
static const JointWrench & default_instance()
Definition: joint_wrench.pb.h:124
void clear_body_1_name()
Definition: joint_wrench.pb.h:429
void unsafe_arena_set_allocated_body_2_wrench(::ignition::msgs::Wrench *body_2_wrench)
Definition: joint_wrench.pb.h:672
uint32_t body_1_id() const
Definition: joint_wrench.pb.h:486
void set_allocated_body_2_wrench(::ignition::msgs::Wrench *body_2_wrench)
Definition: joint_wrench.pb.h:720
void unsafe_arena_set_allocated_body_1_wrench(::ignition::msgs::Wrench *body_1_wrench)
Definition: joint_wrench.pb.h:586
void set_allocated_header(::ignition::msgs::Header *header)
Definition: joint_wrench.pb.h:406
void clear_body_2_name()
Definition: joint_wrench.pb.h:500
PROTOBUF_NODISCARD ::ignition::msgs::Wrench * release_body_1_wrench()
Definition: joint_wrench.pb.h:599
PROTOBUF_NODISCARD std::string * release_body_1_name()
Definition: joint_wrench.pb.h:459
bool has_body_1_wrench() const
Definition: joint_wrench.pb.h:574
void set_body_2_id(uint32_t value)
Definition: joint_wrench.pb.h:565
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: joint_wrench.pb.h:371
friend void swap(JointWrench &a, JointWrench &b)
Definition: joint_wrench.pb.h:134
PROTOBUF_NODISCARD std::string * release_body_2_name()
Definition: joint_wrench.pb.h:530
JointWrench(JointWrench &&from) noexcept
Definition: joint_wrench.pb.h:92
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: joint_wrench.pb.h:118
void clear_body_2_id()
Definition: joint_wrench.pb.h:551
const ::ignition::msgs::Header & header() const
Definition: joint_wrench.pb.h:354
void set_allocated_body_2_name(std::string *body_2_name)
Definition: joint_wrench.pb.h:534
constexpr JointWrench(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
::ignition::msgs::Wrench * mutable_body_1_wrench()
Definition: joint_wrench.pb.h:629
static const ClassData _class_data_
Definition: joint_wrench.pb.h:196
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: joint_wrench.pb.h:386
JointWrench(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const std::string & body_1_name() const
Definition: joint_wrench.pb.h:432
void clear_body_1_id()
Definition: joint_wrench.pb.h:480
JointWrench(const JointWrench &from)
std::string * mutable_body_1_name()
Definition: joint_wrench.pb.h:443
::ignition::msgs::Wrench * mutable_body_2_wrench()
Definition: joint_wrench.pb.h:715
::ignition::msgs::Wrench * unsafe_arena_release_body_2_wrench()
Definition: joint_wrench.pb.h:700
void set_allocated_body_1_wrench(::ignition::msgs::Wrench *body_1_wrench)
Definition: joint_wrench.pb.h:634
void set_body_2_name(ArgT0 &&arg0, ArgT... args)
Definition: wrench.pb.h:85
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fjoint_5fwrench_2eproto
std::shared_ptr< const JointWrench > ConstJointWrenchSharedPtr
Definition: joint_wrench.pb.h:749
std::unique_ptr< const JointWrench > ConstJointWrenchUniquePtr
Definition: joint_wrench.pb.h:747
std::unique_ptr< JointWrench > JointWrenchUniquePtr
Definition: joint_wrench.pb.h:746
IGNITION_MSGS_VISIBLE JointWrenchDefaultTypeInternal _JointWrench_default_instance_
std::shared_ptr< JointWrench > JointWrenchSharedPtr
Definition: joint_wrench.pb.h:748
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
IGNITION_MSGS_VISIBLE WrenchDefaultTypeInternal _Wrench_default_instance_
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)