Gazebo Msgs

API Reference

8.7.0
build/ignition-msgs8/include/ignition/msgs/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 PROTOBUF_INCLUDED_ignition_2fmsgs_2fwrench_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fwrench_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>
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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fwrench_2eproto IGNITION_MSGS_VISIBLE
48 
50 // Internal implementation detail -- do not use these members.
51 struct IGNITION_MSGS_VISIBLE TableStruct {
52  static const ::google::protobuf::internal::ParseTableField entries[];
53  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
54  static const ::google::protobuf::internal::ParseTable schema[1];
55  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
56  static const ::google::protobuf::internal::SerializationTable serialization_table[];
57  static const ::google::protobuf::uint32 offsets[];
58 };
59 void IGNITION_MSGS_VISIBLE AddDescriptors();
60 } // namespace protobuf_ignition_2fmsgs_2fwrench_2eproto
61 namespace ignition {
62 namespace msgs {
63 class Wrench;
64 class WrenchDefaultTypeInternal;
65 IGNITION_MSGS_VISIBLE extern WrenchDefaultTypeInternal _Wrench_default_instance_;
66 } // namespace msgs
67 } // namespace ignition
68 namespace google {
69 namespace protobuf {
70 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Wrench* Arena::CreateMaybeMessage<::ignition::msgs::Wrench>(Arena*);
71 } // namespace protobuf
72 } // namespace google
73 namespace ignition {
74 namespace msgs {
75 
76 // ===================================================================
77 
78 class IGNITION_MSGS_VISIBLE Wrench : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Wrench) */ {
79  public:
80  Wrench();
81  virtual ~Wrench();
82 
83  Wrench(const Wrench& from);
84 
85  inline Wrench& operator=(const Wrench& from) {
86  CopyFrom(from);
87  return *this;
88  }
89  #if LANG_CXX11
90  Wrench(Wrench&& from) noexcept
91  : Wrench() {
92  *this = ::std::move(from);
93  }
94 
95  inline Wrench& operator=(Wrench&& from) noexcept {
96  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
97  if (this != &from) InternalSwap(&from);
98  } else {
99  CopyFrom(from);
100  }
101  return *this;
102  }
103  #endif
104  static const ::google::protobuf::Descriptor* descriptor();
105  static const Wrench& default_instance();
106 
107  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
108  static inline const Wrench* internal_default_instance() {
109  return reinterpret_cast<const Wrench*>(
111  }
112  static constexpr int kIndexInFileMessages =
113  0;
114 
115  void Swap(Wrench* other);
116  friend void swap(Wrench& a, Wrench& b) {
117  a.Swap(&b);
118  }
119 
120  // implements Message ----------------------------------------------
121 
122  inline Wrench* New() const final {
123  return CreateMaybeMessage<Wrench>(NULL);
124  }
125 
126  Wrench* New(::google::protobuf::Arena* arena) const final {
127  return CreateMaybeMessage<Wrench>(arena);
128  }
129  void CopyFrom(const ::google::protobuf::Message& from) final;
130  void MergeFrom(const ::google::protobuf::Message& from) final;
131  void CopyFrom(const Wrench& from);
132  void MergeFrom(const Wrench& from);
133  void Clear() final;
134  bool IsInitialized() const final;
135 
136  size_t ByteSizeLong() const final;
137  bool MergePartialFromCodedStream(
138  ::google::protobuf::io::CodedInputStream* input) final;
139  void SerializeWithCachedSizes(
140  ::google::protobuf::io::CodedOutputStream* output) const final;
141  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
142  bool deterministic, ::google::protobuf::uint8* target) const final;
143  int GetCachedSize() const final { return _cached_size_.Get(); }
144 
145  private:
146  void SharedCtor();
147  void SharedDtor();
148  void SetCachedSize(int size) const final;
149  void InternalSwap(Wrench* other);
150  private:
151  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
152  return NULL;
153  }
154  inline void* MaybeArenaPtr() const {
155  return NULL;
156  }
157  public:
158 
159  ::google::protobuf::Metadata GetMetadata() const final;
160 
161  // nested types ----------------------------------------------------
162 
163  // accessors -------------------------------------------------------
164 
165  // .ignition.msgs.Header header = 1;
166  bool has_header() const;
167  void clear_header();
168  static const int kHeaderFieldNumber = 1;
169  private:
170  const ::ignition::msgs::Header& _internal_header() const;
171  public:
172  const ::ignition::msgs::Header& header() const;
173  ::ignition::msgs::Header* release_header();
174  ::ignition::msgs::Header* mutable_header();
175  void set_allocated_header(::ignition::msgs::Header* header);
176 
177  // .ignition.msgs.Vector3d force = 2;
178  bool has_force() const;
179  void clear_force();
180  static const int kForceFieldNumber = 2;
181  private:
182  const ::ignition::msgs::Vector3d& _internal_force() const;
183  public:
184  const ::ignition::msgs::Vector3d& force() const;
185  ::ignition::msgs::Vector3d* release_force();
186  ::ignition::msgs::Vector3d* mutable_force();
187  void set_allocated_force(::ignition::msgs::Vector3d* force);
188 
189  // .ignition.msgs.Vector3d torque = 3;
190  bool has_torque() const;
191  void clear_torque();
192  static const int kTorqueFieldNumber = 3;
193  private:
194  const ::ignition::msgs::Vector3d& _internal_torque() const;
195  public:
196  const ::ignition::msgs::Vector3d& torque() const;
197  ::ignition::msgs::Vector3d* release_torque();
198  ::ignition::msgs::Vector3d* mutable_torque();
199  void set_allocated_torque(::ignition::msgs::Vector3d* torque);
200 
201  // .ignition.msgs.Vector3d force_offset = 4;
202  bool has_force_offset() const;
203  void clear_force_offset();
204  static const int kForceOffsetFieldNumber = 4;
205  private:
206  const ::ignition::msgs::Vector3d& _internal_force_offset() const;
207  public:
208  const ::ignition::msgs::Vector3d& force_offset() const;
209  ::ignition::msgs::Vector3d* release_force_offset();
210  ::ignition::msgs::Vector3d* mutable_force_offset();
211  void set_allocated_force_offset(::ignition::msgs::Vector3d* force_offset);
212 
213  // @@protoc_insertion_point(class_scope:ignition.msgs.Wrench)
214  private:
215 
216  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
217  ::ignition::msgs::Header* header_;
218  ::ignition::msgs::Vector3d* force_;
219  ::ignition::msgs::Vector3d* torque_;
220  ::ignition::msgs::Vector3d* force_offset_;
221  mutable ::google::protobuf::internal::CachedSize _cached_size_;
222  friend struct ::protobuf_ignition_2fmsgs_2fwrench_2eproto::TableStruct;
223 };
224 // ===================================================================
225 
226 
227 // ===================================================================
228 
229 #ifdef __GNUC__
230  #pragma GCC diagnostic push
231  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
232 #endif // __GNUC__
233 // Wrench
234 
235 // .ignition.msgs.Header header = 1;
236 inline bool Wrench::has_header() const {
237  return this != internal_default_instance() && header_ != NULL;
238 }
239 inline const ::ignition::msgs::Header& Wrench::_internal_header() const {
240  return *header_;
241 }
242 inline const ::ignition::msgs::Header& Wrench::header() const {
243  const ::ignition::msgs::Header* p = header_;
244  // @@protoc_insertion_point(field_get:ignition.msgs.Wrench.header)
245  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
247 }
248 inline ::ignition::msgs::Header* Wrench::release_header() {
249  // @@protoc_insertion_point(field_release:ignition.msgs.Wrench.header)
250 
251  ::ignition::msgs::Header* temp = header_;
252  header_ = NULL;
253  return temp;
254 }
255 inline ::ignition::msgs::Header* Wrench::mutable_header() {
256 
257  if (header_ == NULL) {
258  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
259  header_ = p;
260  }
261  // @@protoc_insertion_point(field_mutable:ignition.msgs.Wrench.header)
262  return header_;
263 }
265  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
266  if (message_arena == NULL) {
267  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
268  }
269  if (header) {
270  ::google::protobuf::Arena* submessage_arena = NULL;
271  if (message_arena != submessage_arena) {
272  header = ::google::protobuf::internal::GetOwnedMessage(
273  message_arena, header, submessage_arena);
274  }
275 
276  } else {
277 
278  }
279  header_ = header;
280  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Wrench.header)
281 }
282 
283 // .ignition.msgs.Vector3d force = 2;
284 inline bool Wrench::has_force() const {
285  return this != internal_default_instance() && force_ != NULL;
286 }
287 inline const ::ignition::msgs::Vector3d& Wrench::_internal_force() const {
288  return *force_;
289 }
290 inline const ::ignition::msgs::Vector3d& Wrench::force() const {
291  const ::ignition::msgs::Vector3d* p = force_;
292  // @@protoc_insertion_point(field_get:ignition.msgs.Wrench.force)
293  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Vector3d*>(
295 }
296 inline ::ignition::msgs::Vector3d* Wrench::release_force() {
297  // @@protoc_insertion_point(field_release:ignition.msgs.Wrench.force)
298 
299  ::ignition::msgs::Vector3d* temp = force_;
300  force_ = NULL;
301  return temp;
302 }
303 inline ::ignition::msgs::Vector3d* Wrench::mutable_force() {
304 
305  if (force_ == NULL) {
306  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaNoVirtual());
307  force_ = p;
308  }
309  // @@protoc_insertion_point(field_mutable:ignition.msgs.Wrench.force)
310  return force_;
311 }
313  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
314  if (message_arena == NULL) {
315  delete reinterpret_cast< ::google::protobuf::MessageLite*>(force_);
316  }
317  if (force) {
318  ::google::protobuf::Arena* submessage_arena = NULL;
319  if (message_arena != submessage_arena) {
320  force = ::google::protobuf::internal::GetOwnedMessage(
321  message_arena, force, submessage_arena);
322  }
323 
324  } else {
325 
326  }
327  force_ = force;
328  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Wrench.force)
329 }
330 
331 // .ignition.msgs.Vector3d torque = 3;
332 inline bool Wrench::has_torque() const {
333  return this != internal_default_instance() && torque_ != NULL;
334 }
335 inline const ::ignition::msgs::Vector3d& Wrench::_internal_torque() const {
336  return *torque_;
337 }
338 inline const ::ignition::msgs::Vector3d& Wrench::torque() const {
339  const ::ignition::msgs::Vector3d* p = torque_;
340  // @@protoc_insertion_point(field_get:ignition.msgs.Wrench.torque)
341  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Vector3d*>(
343 }
344 inline ::ignition::msgs::Vector3d* Wrench::release_torque() {
345  // @@protoc_insertion_point(field_release:ignition.msgs.Wrench.torque)
346 
347  ::ignition::msgs::Vector3d* temp = torque_;
348  torque_ = NULL;
349  return temp;
350 }
351 inline ::ignition::msgs::Vector3d* Wrench::mutable_torque() {
352 
353  if (torque_ == NULL) {
354  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaNoVirtual());
355  torque_ = p;
356  }
357  // @@protoc_insertion_point(field_mutable:ignition.msgs.Wrench.torque)
358  return torque_;
359 }
361  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
362  if (message_arena == NULL) {
363  delete reinterpret_cast< ::google::protobuf::MessageLite*>(torque_);
364  }
365  if (torque) {
366  ::google::protobuf::Arena* submessage_arena = NULL;
367  if (message_arena != submessage_arena) {
368  torque = ::google::protobuf::internal::GetOwnedMessage(
369  message_arena, torque, submessage_arena);
370  }
371 
372  } else {
373 
374  }
375  torque_ = torque;
376  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Wrench.torque)
377 }
378 
379 // .ignition.msgs.Vector3d force_offset = 4;
380 inline bool Wrench::has_force_offset() const {
381  return this != internal_default_instance() && force_offset_ != NULL;
382 }
383 inline const ::ignition::msgs::Vector3d& Wrench::_internal_force_offset() const {
384  return *force_offset_;
385 }
386 inline const ::ignition::msgs::Vector3d& Wrench::force_offset() const {
387  const ::ignition::msgs::Vector3d* p = force_offset_;
388  // @@protoc_insertion_point(field_get:ignition.msgs.Wrench.force_offset)
389  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Vector3d*>(
391 }
392 inline ::ignition::msgs::Vector3d* Wrench::release_force_offset() {
393  // @@protoc_insertion_point(field_release:ignition.msgs.Wrench.force_offset)
394 
395  ::ignition::msgs::Vector3d* temp = force_offset_;
396  force_offset_ = NULL;
397  return temp;
398 }
399 inline ::ignition::msgs::Vector3d* Wrench::mutable_force_offset() {
400 
401  if (force_offset_ == NULL) {
402  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaNoVirtual());
403  force_offset_ = p;
404  }
405  // @@protoc_insertion_point(field_mutable:ignition.msgs.Wrench.force_offset)
406  return force_offset_;
407 }
409  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
410  if (message_arena == NULL) {
411  delete reinterpret_cast< ::google::protobuf::MessageLite*>(force_offset_);
412  }
413  if (force_offset) {
414  ::google::protobuf::Arena* submessage_arena = NULL;
415  if (message_arena != submessage_arena) {
416  force_offset = ::google::protobuf::internal::GetOwnedMessage(
417  message_arena, force_offset, submessage_arena);
418  }
419 
420  } else {
421 
422  }
423  force_offset_ = force_offset;
424  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Wrench.force_offset)
425 }
426 
427 #ifdef __GNUC__
428  #pragma GCC diagnostic pop
429 #endif // __GNUC__
430 
435 // @@protoc_insertion_point(namespace_scope)
436 
437 } // namespace msgs
438 } // namespace ignition
439 
440 #ifdef _MSC_VER
441 #pragma warning(pop)
442 #endif
443 // @@protoc_insertion_point(global_scope)
444 
445 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fwrench_2eproto
bool has_force() const
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:284
static const Wrench * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:108
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:255
::ignition::msgs::Vector3d * mutable_force()
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:303
STL class.
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:248
Definition: build/ignition-msgs8/include/ignition/msgs/vector3d.pb.h:77
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:242
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:49
void Swap(Wrench *other)
bool has_torque() const
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:332
void set_allocated_torque(::ignition::msgs::Vector3d *torque)
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:360
::ignition::msgs::Vector3d * release_force_offset()
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:392
::ignition::msgs::Vector3d * release_force()
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:296
friend void swap(Wrench &a, Wrench &b)
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:116
std::unique_ptr< const Wrench > ConstWrenchUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:432
void set_allocated_force(::ignition::msgs::Vector3d *force)
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:312
const ::ignition::msgs::Vector3d & force_offset() const
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:386
::ignition::msgs::Vector3d * mutable_force_offset()
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:399
std::shared_ptr< const Wrench > ConstWrenchSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:434
const ::ignition::msgs::Vector3d & torque() const
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:338
std::shared_ptr< Wrench > WrenchSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:433
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:78
void IGNITION_MSGS_VISIBLE AddDescriptors()
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
IGNITION_MSGS_VISIBLE WrenchDefaultTypeInternal _Wrench_default_instance_
bool has_force_offset() const
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:380
Definition: build/ignition-msgs8/include/ignition/msgs/header.pb.h:215
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:51
Wrench * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:122
const ::ignition::msgs::Vector3d & force() const
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:290
bool has_header() const
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:236
::ignition::msgs::Vector3d * mutable_torque()
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:351
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:264
::ignition::msgs::Vector3d * release_torque()
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:344
void set_allocated_force_offset(::ignition::msgs::Vector3d *force_offset)
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:408
STL class.
Wrench * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:126
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:78
Wrench & operator=(const Wrench &from)
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:85
std::unique_ptr< Wrench > WrenchUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:431