Gazebo Msgs

API Reference

9.5.0
joint_wrench.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/joint_wrench.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fjoint_5fwrench_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fjoint_5fwrench_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 #include "gz/msgs/wrench.pb.h"
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fjoint_5fwrench_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[1];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fjoint_5fwrench_2eproto
50 namespace gz {
51 namespace msgs {
52 class JointWrench;
53 class JointWrenchDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern JointWrenchDefaultTypeInternal _JointWrench_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::JointWrench* Arena::CreateMaybeMessage<::gz::msgs::JointWrench>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE JointWrench : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.JointWrench) */ {
68  public:
69  JointWrench();
70  virtual ~JointWrench();
71 
72  JointWrench(const JointWrench& from);
73 
74  inline JointWrench& operator=(const JointWrench& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  JointWrench(JointWrench&& from) noexcept
80  : JointWrench() {
81  *this = ::std::move(from);
82  }
83 
84  inline JointWrench& operator=(JointWrench&& from) noexcept {
85  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86  if (this != &from) InternalSwap(&from);
87  } else {
88  CopyFrom(from);
89  }
90  return *this;
91  }
92  #endif
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const JointWrench& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const JointWrench* internal_default_instance() {
98  return reinterpret_cast<const JointWrench*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(JointWrench* other);
105  friend void swap(JointWrench& a, JointWrench& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline JointWrench* New() const final {
112  return CreateMaybeMessage<JointWrench>(NULL);
113  }
114 
115  JointWrench* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<JointWrench>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const JointWrench& from);
121  void MergeFrom(const JointWrench& from);
122  void Clear() final;
123  bool IsInitialized() const final;
124 
125  size_t ByteSizeLong() const final;
126  bool MergePartialFromCodedStream(
127  ::google::protobuf::io::CodedInputStream* input) final;
128  void SerializeWithCachedSizes(
129  ::google::protobuf::io::CodedOutputStream* output) const final;
130  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131  bool deterministic, ::google::protobuf::uint8* target) const final;
132  int GetCachedSize() const final { return _cached_size_.Get(); }
133 
134  private:
135  void SharedCtor();
136  void SharedDtor();
137  void SetCachedSize(int size) const final;
138  void InternalSwap(JointWrench* other);
139  private:
140  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
141  return NULL;
142  }
143  inline void* MaybeArenaPtr() const {
144  return NULL;
145  }
146  public:
147 
148  ::google::protobuf::Metadata GetMetadata() const final;
149 
150  // nested types ----------------------------------------------------
151 
152  // accessors -------------------------------------------------------
153 
154  // string body_1_name = 2;
155  void clear_body_1_name();
156  static const int kBody1NameFieldNumber = 2;
157  const ::std::string& body_1_name() const;
158  void set_body_1_name(const ::std::string& value);
159  #if LANG_CXX11
160  void set_body_1_name(::std::string&& value);
161  #endif
162  void set_body_1_name(const char* value);
163  void set_body_1_name(const char* value, size_t size);
164  ::std::string* mutable_body_1_name();
165  ::std::string* release_body_1_name();
166  void set_allocated_body_1_name(::std::string* body_1_name);
167 
168  // string body_2_name = 4;
169  void clear_body_2_name();
170  static const int kBody2NameFieldNumber = 4;
171  const ::std::string& body_2_name() const;
172  void set_body_2_name(const ::std::string& value);
173  #if LANG_CXX11
174  void set_body_2_name(::std::string&& value);
175  #endif
176  void set_body_2_name(const char* value);
177  void set_body_2_name(const char* value, size_t size);
178  ::std::string* mutable_body_2_name();
179  ::std::string* release_body_2_name();
180  void set_allocated_body_2_name(::std::string* body_2_name);
181 
182  // .gz.msgs.Header header = 1;
183  bool has_header() const;
184  void clear_header();
185  static const int kHeaderFieldNumber = 1;
186  private:
187  const ::gz::msgs::Header& _internal_header() const;
188  public:
189  const ::gz::msgs::Header& header() const;
190  ::gz::msgs::Header* release_header();
191  ::gz::msgs::Header* mutable_header();
192  void set_allocated_header(::gz::msgs::Header* header);
193 
194  // .gz.msgs.Wrench body_1_wrench = 6;
195  bool has_body_1_wrench() const;
196  void clear_body_1_wrench();
197  static const int kBody1WrenchFieldNumber = 6;
198  private:
199  const ::gz::msgs::Wrench& _internal_body_1_wrench() const;
200  public:
201  const ::gz::msgs::Wrench& body_1_wrench() const;
202  ::gz::msgs::Wrench* release_body_1_wrench();
203  ::gz::msgs::Wrench* mutable_body_1_wrench();
204  void set_allocated_body_1_wrench(::gz::msgs::Wrench* body_1_wrench);
205 
206  // .gz.msgs.Wrench body_2_wrench = 7;
207  bool has_body_2_wrench() const;
208  void clear_body_2_wrench();
209  static const int kBody2WrenchFieldNumber = 7;
210  private:
211  const ::gz::msgs::Wrench& _internal_body_2_wrench() const;
212  public:
213  const ::gz::msgs::Wrench& body_2_wrench() const;
214  ::gz::msgs::Wrench* release_body_2_wrench();
215  ::gz::msgs::Wrench* mutable_body_2_wrench();
216  void set_allocated_body_2_wrench(::gz::msgs::Wrench* body_2_wrench);
217 
218  // uint32 body_1_id = 3;
219  void clear_body_1_id();
220  static const int kBody1IdFieldNumber = 3;
221  ::google::protobuf::uint32 body_1_id() const;
222  void set_body_1_id(::google::protobuf::uint32 value);
223 
224  // uint32 body_2_id = 5;
225  void clear_body_2_id();
226  static const int kBody2IdFieldNumber = 5;
227  ::google::protobuf::uint32 body_2_id() const;
228  void set_body_2_id(::google::protobuf::uint32 value);
229 
230  // @@protoc_insertion_point(class_scope:gz.msgs.JointWrench)
231  private:
232 
233  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
234  ::google::protobuf::internal::ArenaStringPtr body_1_name_;
235  ::google::protobuf::internal::ArenaStringPtr body_2_name_;
236  ::gz::msgs::Header* header_;
237  ::gz::msgs::Wrench* body_1_wrench_;
238  ::gz::msgs::Wrench* body_2_wrench_;
239  ::google::protobuf::uint32 body_1_id_;
240  ::google::protobuf::uint32 body_2_id_;
241  mutable ::google::protobuf::internal::CachedSize _cached_size_;
242  friend struct ::protobuf_gz_2fmsgs_2fjoint_5fwrench_2eproto::TableStruct;
243 };
244 // ===================================================================
245 
246 
247 // ===================================================================
248 
249 #ifdef __GNUC__
250  #pragma GCC diagnostic push
251  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
252 #endif // __GNUC__
253 // JointWrench
254 
255 // .gz.msgs.Header header = 1;
256 inline bool JointWrench::has_header() const {
257  return this != internal_default_instance() && header_ != NULL;
258 }
259 inline const ::gz::msgs::Header& JointWrench::_internal_header() const {
260  return *header_;
261 }
262 inline const ::gz::msgs::Header& JointWrench::header() const {
263  const ::gz::msgs::Header* p = header_;
264  // @@protoc_insertion_point(field_get:gz.msgs.JointWrench.header)
265  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
267 }
268 inline ::gz::msgs::Header* JointWrench::release_header() {
269  // @@protoc_insertion_point(field_release:gz.msgs.JointWrench.header)
270 
271  ::gz::msgs::Header* temp = header_;
272  header_ = NULL;
273  return temp;
274 }
275 inline ::gz::msgs::Header* JointWrench::mutable_header() {
276 
277  if (header_ == NULL) {
278  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
279  header_ = p;
280  }
281  // @@protoc_insertion_point(field_mutable:gz.msgs.JointWrench.header)
282  return header_;
283 }
285  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
286  if (message_arena == NULL) {
287  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
288  }
289  if (header) {
290  ::google::protobuf::Arena* submessage_arena = NULL;
291  if (message_arena != submessage_arena) {
292  header = ::google::protobuf::internal::GetOwnedMessage(
293  message_arena, header, submessage_arena);
294  }
295 
296  } else {
297 
298  }
299  header_ = header;
300  // @@protoc_insertion_point(field_set_allocated:gz.msgs.JointWrench.header)
301 }
302 
303 // string body_1_name = 2;
305  body_1_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
306 }
307 inline const ::std::string& JointWrench::body_1_name() const {
308  // @@protoc_insertion_point(field_get:gz.msgs.JointWrench.body_1_name)
309  return body_1_name_.GetNoArena();
310 }
311 inline void JointWrench::set_body_1_name(const ::std::string& value) {
312 
313  body_1_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
314  // @@protoc_insertion_point(field_set:gz.msgs.JointWrench.body_1_name)
315 }
316 #if LANG_CXX11
317 inline void JointWrench::set_body_1_name(::std::string&& value) {
318 
319  body_1_name_.SetNoArena(
320  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
321  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.JointWrench.body_1_name)
322 }
323 #endif
324 inline void JointWrench::set_body_1_name(const char* value) {
325  GOOGLE_DCHECK(value != NULL);
326 
327  body_1_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
328  // @@protoc_insertion_point(field_set_char:gz.msgs.JointWrench.body_1_name)
329 }
330 inline void JointWrench::set_body_1_name(const char* value, size_t size) {
331 
332  body_1_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
333  ::std::string(reinterpret_cast<const char*>(value), size));
334  // @@protoc_insertion_point(field_set_pointer:gz.msgs.JointWrench.body_1_name)
335 }
336 inline ::std::string* JointWrench::mutable_body_1_name() {
337 
338  // @@protoc_insertion_point(field_mutable:gz.msgs.JointWrench.body_1_name)
339  return body_1_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
340 }
341 inline ::std::string* JointWrench::release_body_1_name() {
342  // @@protoc_insertion_point(field_release:gz.msgs.JointWrench.body_1_name)
343 
344  return body_1_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
345 }
347  if (body_1_name != NULL) {
348 
349  } else {
350 
351  }
352  body_1_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body_1_name);
353  // @@protoc_insertion_point(field_set_allocated:gz.msgs.JointWrench.body_1_name)
354 }
355 
356 // uint32 body_1_id = 3;
358  body_1_id_ = 0u;
359 }
360 inline ::google::protobuf::uint32 JointWrench::body_1_id() const {
361  // @@protoc_insertion_point(field_get:gz.msgs.JointWrench.body_1_id)
362  return body_1_id_;
363 }
364 inline void JointWrench::set_body_1_id(::google::protobuf::uint32 value) {
365 
366  body_1_id_ = value;
367  // @@protoc_insertion_point(field_set:gz.msgs.JointWrench.body_1_id)
368 }
369 
370 // string body_2_name = 4;
372  body_2_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
373 }
374 inline const ::std::string& JointWrench::body_2_name() const {
375  // @@protoc_insertion_point(field_get:gz.msgs.JointWrench.body_2_name)
376  return body_2_name_.GetNoArena();
377 }
378 inline void JointWrench::set_body_2_name(const ::std::string& value) {
379 
380  body_2_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
381  // @@protoc_insertion_point(field_set:gz.msgs.JointWrench.body_2_name)
382 }
383 #if LANG_CXX11
384 inline void JointWrench::set_body_2_name(::std::string&& value) {
385 
386  body_2_name_.SetNoArena(
387  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
388  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.JointWrench.body_2_name)
389 }
390 #endif
391 inline void JointWrench::set_body_2_name(const char* value) {
392  GOOGLE_DCHECK(value != NULL);
393 
394  body_2_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
395  // @@protoc_insertion_point(field_set_char:gz.msgs.JointWrench.body_2_name)
396 }
397 inline void JointWrench::set_body_2_name(const char* value, size_t size) {
398 
399  body_2_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
400  ::std::string(reinterpret_cast<const char*>(value), size));
401  // @@protoc_insertion_point(field_set_pointer:gz.msgs.JointWrench.body_2_name)
402 }
403 inline ::std::string* JointWrench::mutable_body_2_name() {
404 
405  // @@protoc_insertion_point(field_mutable:gz.msgs.JointWrench.body_2_name)
406  return body_2_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
407 }
408 inline ::std::string* JointWrench::release_body_2_name() {
409  // @@protoc_insertion_point(field_release:gz.msgs.JointWrench.body_2_name)
410 
411  return body_2_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
412 }
414  if (body_2_name != NULL) {
415 
416  } else {
417 
418  }
419  body_2_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body_2_name);
420  // @@protoc_insertion_point(field_set_allocated:gz.msgs.JointWrench.body_2_name)
421 }
422 
423 // uint32 body_2_id = 5;
425  body_2_id_ = 0u;
426 }
427 inline ::google::protobuf::uint32 JointWrench::body_2_id() const {
428  // @@protoc_insertion_point(field_get:gz.msgs.JointWrench.body_2_id)
429  return body_2_id_;
430 }
431 inline void JointWrench::set_body_2_id(::google::protobuf::uint32 value) {
432 
433  body_2_id_ = value;
434  // @@protoc_insertion_point(field_set:gz.msgs.JointWrench.body_2_id)
435 }
436 
437 // .gz.msgs.Wrench body_1_wrench = 6;
438 inline bool JointWrench::has_body_1_wrench() const {
439  return this != internal_default_instance() && body_1_wrench_ != NULL;
440 }
441 inline const ::gz::msgs::Wrench& JointWrench::_internal_body_1_wrench() const {
442  return *body_1_wrench_;
443 }
444 inline const ::gz::msgs::Wrench& JointWrench::body_1_wrench() const {
445  const ::gz::msgs::Wrench* p = body_1_wrench_;
446  // @@protoc_insertion_point(field_get:gz.msgs.JointWrench.body_1_wrench)
447  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Wrench*>(
449 }
450 inline ::gz::msgs::Wrench* JointWrench::release_body_1_wrench() {
451  // @@protoc_insertion_point(field_release:gz.msgs.JointWrench.body_1_wrench)
452 
453  ::gz::msgs::Wrench* temp = body_1_wrench_;
454  body_1_wrench_ = NULL;
455  return temp;
456 }
457 inline ::gz::msgs::Wrench* JointWrench::mutable_body_1_wrench() {
458 
459  if (body_1_wrench_ == NULL) {
460  auto* p = CreateMaybeMessage<::gz::msgs::Wrench>(GetArenaNoVirtual());
461  body_1_wrench_ = p;
462  }
463  // @@protoc_insertion_point(field_mutable:gz.msgs.JointWrench.body_1_wrench)
464  return body_1_wrench_;
465 }
467  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
468  if (message_arena == NULL) {
469  delete reinterpret_cast< ::google::protobuf::MessageLite*>(body_1_wrench_);
470  }
471  if (body_1_wrench) {
472  ::google::protobuf::Arena* submessage_arena = NULL;
473  if (message_arena != submessage_arena) {
474  body_1_wrench = ::google::protobuf::internal::GetOwnedMessage(
475  message_arena, body_1_wrench, submessage_arena);
476  }
477 
478  } else {
479 
480  }
481  body_1_wrench_ = body_1_wrench;
482  // @@protoc_insertion_point(field_set_allocated:gz.msgs.JointWrench.body_1_wrench)
483 }
484 
485 // .gz.msgs.Wrench body_2_wrench = 7;
486 inline bool JointWrench::has_body_2_wrench() const {
487  return this != internal_default_instance() && body_2_wrench_ != NULL;
488 }
489 inline const ::gz::msgs::Wrench& JointWrench::_internal_body_2_wrench() const {
490  return *body_2_wrench_;
491 }
492 inline const ::gz::msgs::Wrench& JointWrench::body_2_wrench() const {
493  const ::gz::msgs::Wrench* p = body_2_wrench_;
494  // @@protoc_insertion_point(field_get:gz.msgs.JointWrench.body_2_wrench)
495  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Wrench*>(
497 }
498 inline ::gz::msgs::Wrench* JointWrench::release_body_2_wrench() {
499  // @@protoc_insertion_point(field_release:gz.msgs.JointWrench.body_2_wrench)
500 
501  ::gz::msgs::Wrench* temp = body_2_wrench_;
502  body_2_wrench_ = NULL;
503  return temp;
504 }
505 inline ::gz::msgs::Wrench* JointWrench::mutable_body_2_wrench() {
506 
507  if (body_2_wrench_ == NULL) {
508  auto* p = CreateMaybeMessage<::gz::msgs::Wrench>(GetArenaNoVirtual());
509  body_2_wrench_ = p;
510  }
511  // @@protoc_insertion_point(field_mutable:gz.msgs.JointWrench.body_2_wrench)
512  return body_2_wrench_;
513 }
515  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
516  if (message_arena == NULL) {
517  delete reinterpret_cast< ::google::protobuf::MessageLite*>(body_2_wrench_);
518  }
519  if (body_2_wrench) {
520  ::google::protobuf::Arena* submessage_arena = NULL;
521  if (message_arena != submessage_arena) {
522  body_2_wrench = ::google::protobuf::internal::GetOwnedMessage(
523  message_arena, body_2_wrench, submessage_arena);
524  }
525 
526  } else {
527 
528  }
529  body_2_wrench_ = body_2_wrench;
530  // @@protoc_insertion_point(field_set_allocated:gz.msgs.JointWrench.body_2_wrench)
531 }
532 
533 #ifdef __GNUC__
534  #pragma GCC diagnostic pop
535 #endif // __GNUC__
536 
537 // @@protoc_insertion_point(namespace_scope)
538 
539 } // namespace msgs
540 } // namespace gz
541 
542 // @@protoc_insertion_point(global_scope)
543 
544 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fjoint_5fwrench_2eproto