Gazebo Msgs

API Reference

9.5.1
wrench.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/wrench.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fwrench_2eproto
5 #define PROTOBUF_INCLUDED_gz_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>
33 #include "gz/msgs/vector3d.pb.h"
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fwrench_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_2fwrench_2eproto
50 namespace gz {
51 namespace msgs {
52 class Wrench;
53 class WrenchDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern WrenchDefaultTypeInternal _Wrench_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Wrench* Arena::CreateMaybeMessage<::gz::msgs::Wrench>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE Wrench : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Wrench) */ {
68  public:
69  Wrench();
70  virtual ~Wrench();
71 
72  Wrench(const Wrench& from);
73 
74  inline Wrench& operator=(const Wrench& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  Wrench(Wrench&& from) noexcept
80  : Wrench() {
81  *this = ::std::move(from);
82  }
83 
84  inline Wrench& operator=(Wrench&& 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 Wrench& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const Wrench* internal_default_instance() {
98  return reinterpret_cast<const Wrench*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(Wrench* other);
105  friend void swap(Wrench& a, Wrench& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline Wrench* New() const final {
112  return CreateMaybeMessage<Wrench>(NULL);
113  }
114 
115  Wrench* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<Wrench>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const Wrench& from);
121  void MergeFrom(const Wrench& 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(Wrench* 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  // .gz.msgs.Header header = 1;
155  bool has_header() const;
156  void clear_header();
157  static const int kHeaderFieldNumber = 1;
158  private:
159  const ::gz::msgs::Header& _internal_header() const;
160  public:
161  const ::gz::msgs::Header& header() const;
162  ::gz::msgs::Header* release_header();
163  ::gz::msgs::Header* mutable_header();
164  void set_allocated_header(::gz::msgs::Header* header);
165 
166  // .gz.msgs.Vector3d force = 2;
167  bool has_force() const;
168  void clear_force();
169  static const int kForceFieldNumber = 2;
170  private:
171  const ::gz::msgs::Vector3d& _internal_force() const;
172  public:
173  const ::gz::msgs::Vector3d& force() const;
174  ::gz::msgs::Vector3d* release_force();
175  ::gz::msgs::Vector3d* mutable_force();
176  void set_allocated_force(::gz::msgs::Vector3d* force);
177 
178  // .gz.msgs.Vector3d torque = 3;
179  bool has_torque() const;
180  void clear_torque();
181  static const int kTorqueFieldNumber = 3;
182  private:
183  const ::gz::msgs::Vector3d& _internal_torque() const;
184  public:
185  const ::gz::msgs::Vector3d& torque() const;
186  ::gz::msgs::Vector3d* release_torque();
187  ::gz::msgs::Vector3d* mutable_torque();
188  void set_allocated_torque(::gz::msgs::Vector3d* torque);
189 
190  // .gz.msgs.Vector3d force_offset = 4;
191  bool has_force_offset() const;
192  void clear_force_offset();
193  static const int kForceOffsetFieldNumber = 4;
194  private:
195  const ::gz::msgs::Vector3d& _internal_force_offset() const;
196  public:
197  const ::gz::msgs::Vector3d& force_offset() const;
198  ::gz::msgs::Vector3d* release_force_offset();
199  ::gz::msgs::Vector3d* mutable_force_offset();
200  void set_allocated_force_offset(::gz::msgs::Vector3d* force_offset);
201 
202  // @@protoc_insertion_point(class_scope:gz.msgs.Wrench)
203  private:
204 
205  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
206  ::gz::msgs::Header* header_;
207  ::gz::msgs::Vector3d* force_;
208  ::gz::msgs::Vector3d* torque_;
209  ::gz::msgs::Vector3d* force_offset_;
210  mutable ::google::protobuf::internal::CachedSize _cached_size_;
211  friend struct ::protobuf_gz_2fmsgs_2fwrench_2eproto::TableStruct;
212 };
213 // ===================================================================
214 
215 
216 // ===================================================================
217 
218 #ifdef __GNUC__
219  #pragma GCC diagnostic push
220  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
221 #endif // __GNUC__
222 // Wrench
223 
224 // .gz.msgs.Header header = 1;
225 inline bool Wrench::has_header() const {
226  return this != internal_default_instance() && header_ != NULL;
227 }
228 inline const ::gz::msgs::Header& Wrench::_internal_header() const {
229  return *header_;
230 }
231 inline const ::gz::msgs::Header& Wrench::header() const {
232  const ::gz::msgs::Header* p = header_;
233  // @@protoc_insertion_point(field_get:gz.msgs.Wrench.header)
234  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
236 }
237 inline ::gz::msgs::Header* Wrench::release_header() {
238  // @@protoc_insertion_point(field_release:gz.msgs.Wrench.header)
239 
240  ::gz::msgs::Header* temp = header_;
241  header_ = NULL;
242  return temp;
243 }
244 inline ::gz::msgs::Header* Wrench::mutable_header() {
245 
246  if (header_ == NULL) {
247  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
248  header_ = p;
249  }
250  // @@protoc_insertion_point(field_mutable:gz.msgs.Wrench.header)
251  return header_;
252 }
254  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
255  if (message_arena == NULL) {
256  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
257  }
258  if (header) {
259  ::google::protobuf::Arena* submessage_arena = NULL;
260  if (message_arena != submessage_arena) {
261  header = ::google::protobuf::internal::GetOwnedMessage(
262  message_arena, header, submessage_arena);
263  }
264 
265  } else {
266 
267  }
268  header_ = header;
269  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Wrench.header)
270 }
271 
272 // .gz.msgs.Vector3d force = 2;
273 inline bool Wrench::has_force() const {
274  return this != internal_default_instance() && force_ != NULL;
275 }
276 inline const ::gz::msgs::Vector3d& Wrench::_internal_force() const {
277  return *force_;
278 }
279 inline const ::gz::msgs::Vector3d& Wrench::force() const {
280  const ::gz::msgs::Vector3d* p = force_;
281  // @@protoc_insertion_point(field_get:gz.msgs.Wrench.force)
282  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
284 }
285 inline ::gz::msgs::Vector3d* Wrench::release_force() {
286  // @@protoc_insertion_point(field_release:gz.msgs.Wrench.force)
287 
288  ::gz::msgs::Vector3d* temp = force_;
289  force_ = NULL;
290  return temp;
291 }
292 inline ::gz::msgs::Vector3d* Wrench::mutable_force() {
293 
294  if (force_ == NULL) {
295  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
296  force_ = p;
297  }
298  // @@protoc_insertion_point(field_mutable:gz.msgs.Wrench.force)
299  return force_;
300 }
302  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
303  if (message_arena == NULL) {
304  delete reinterpret_cast< ::google::protobuf::MessageLite*>(force_);
305  }
306  if (force) {
307  ::google::protobuf::Arena* submessage_arena = NULL;
308  if (message_arena != submessage_arena) {
309  force = ::google::protobuf::internal::GetOwnedMessage(
310  message_arena, force, submessage_arena);
311  }
312 
313  } else {
314 
315  }
316  force_ = force;
317  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Wrench.force)
318 }
319 
320 // .gz.msgs.Vector3d torque = 3;
321 inline bool Wrench::has_torque() const {
322  return this != internal_default_instance() && torque_ != NULL;
323 }
324 inline const ::gz::msgs::Vector3d& Wrench::_internal_torque() const {
325  return *torque_;
326 }
327 inline const ::gz::msgs::Vector3d& Wrench::torque() const {
328  const ::gz::msgs::Vector3d* p = torque_;
329  // @@protoc_insertion_point(field_get:gz.msgs.Wrench.torque)
330  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
332 }
333 inline ::gz::msgs::Vector3d* Wrench::release_torque() {
334  // @@protoc_insertion_point(field_release:gz.msgs.Wrench.torque)
335 
336  ::gz::msgs::Vector3d* temp = torque_;
337  torque_ = NULL;
338  return temp;
339 }
340 inline ::gz::msgs::Vector3d* Wrench::mutable_torque() {
341 
342  if (torque_ == NULL) {
343  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
344  torque_ = p;
345  }
346  // @@protoc_insertion_point(field_mutable:gz.msgs.Wrench.torque)
347  return torque_;
348 }
350  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
351  if (message_arena == NULL) {
352  delete reinterpret_cast< ::google::protobuf::MessageLite*>(torque_);
353  }
354  if (torque) {
355  ::google::protobuf::Arena* submessage_arena = NULL;
356  if (message_arena != submessage_arena) {
357  torque = ::google::protobuf::internal::GetOwnedMessage(
358  message_arena, torque, submessage_arena);
359  }
360 
361  } else {
362 
363  }
364  torque_ = torque;
365  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Wrench.torque)
366 }
367 
368 // .gz.msgs.Vector3d force_offset = 4;
369 inline bool Wrench::has_force_offset() const {
370  return this != internal_default_instance() && force_offset_ != NULL;
371 }
372 inline const ::gz::msgs::Vector3d& Wrench::_internal_force_offset() const {
373  return *force_offset_;
374 }
375 inline const ::gz::msgs::Vector3d& Wrench::force_offset() const {
376  const ::gz::msgs::Vector3d* p = force_offset_;
377  // @@protoc_insertion_point(field_get:gz.msgs.Wrench.force_offset)
378  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
380 }
381 inline ::gz::msgs::Vector3d* Wrench::release_force_offset() {
382  // @@protoc_insertion_point(field_release:gz.msgs.Wrench.force_offset)
383 
384  ::gz::msgs::Vector3d* temp = force_offset_;
385  force_offset_ = NULL;
386  return temp;
387 }
388 inline ::gz::msgs::Vector3d* Wrench::mutable_force_offset() {
389 
390  if (force_offset_ == NULL) {
391  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
392  force_offset_ = p;
393  }
394  // @@protoc_insertion_point(field_mutable:gz.msgs.Wrench.force_offset)
395  return force_offset_;
396 }
398  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
399  if (message_arena == NULL) {
400  delete reinterpret_cast< ::google::protobuf::MessageLite*>(force_offset_);
401  }
402  if (force_offset) {
403  ::google::protobuf::Arena* submessage_arena = NULL;
404  if (message_arena != submessage_arena) {
405  force_offset = ::google::protobuf::internal::GetOwnedMessage(
406  message_arena, force_offset, submessage_arena);
407  }
408 
409  } else {
410 
411  }
412  force_offset_ = force_offset;
413  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Wrench.force_offset)
414 }
415 
416 #ifdef __GNUC__
417  #pragma GCC diagnostic pop
418 #endif // __GNUC__
419 
420 // @@protoc_insertion_point(namespace_scope)
421 
422 } // namespace msgs
423 } // namespace gz
424 
425 // @@protoc_insertion_point(global_scope)
426 
427 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fwrench_2eproto