Gazebo Msgs

API Reference

9.5.0
axis.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/axis.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2faxis_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2faxis_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_2faxis_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_2faxis_2eproto
50 namespace gz {
51 namespace msgs {
52 class Axis;
53 class AxisDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern AxisDefaultTypeInternal _Axis_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Axis* Arena::CreateMaybeMessage<::gz::msgs::Axis>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE Axis : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Axis) */ {
68  public:
69  Axis();
70  virtual ~Axis();
71 
72  Axis(const Axis& from);
73 
74  inline Axis& operator=(const Axis& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  Axis(Axis&& from) noexcept
80  : Axis() {
81  *this = ::std::move(from);
82  }
83 
84  inline Axis& operator=(Axis&& 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 Axis& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const Axis* internal_default_instance() {
98  return reinterpret_cast<const Axis*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(Axis* other);
105  friend void swap(Axis& a, Axis& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline Axis* New() const final {
112  return CreateMaybeMessage<Axis>(NULL);
113  }
114 
115  Axis* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<Axis>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const Axis& from);
121  void MergeFrom(const Axis& 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(Axis* 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 xyz_expressed_in = 14;
155  void clear_xyz_expressed_in();
156  static const int kXyzExpressedInFieldNumber = 14;
157  const ::std::string& xyz_expressed_in() const;
158  void set_xyz_expressed_in(const ::std::string& value);
159  #if LANG_CXX11
160  void set_xyz_expressed_in(::std::string&& value);
161  #endif
162  void set_xyz_expressed_in(const char* value);
163  void set_xyz_expressed_in(const char* value, size_t size);
164  ::std::string* mutable_xyz_expressed_in();
165  ::std::string* release_xyz_expressed_in();
166  void set_allocated_xyz_expressed_in(::std::string* xyz_expressed_in);
167 
168  // .gz.msgs.Header header = 1;
169  bool has_header() const;
170  void clear_header();
171  static const int kHeaderFieldNumber = 1;
172  private:
173  const ::gz::msgs::Header& _internal_header() const;
174  public:
175  const ::gz::msgs::Header& header() const;
176  ::gz::msgs::Header* release_header();
177  ::gz::msgs::Header* mutable_header();
178  void set_allocated_header(::gz::msgs::Header* header);
179 
180  // .gz.msgs.Vector3d xyz = 2;
181  bool has_xyz() const;
182  void clear_xyz();
183  static const int kXyzFieldNumber = 2;
184  private:
185  const ::gz::msgs::Vector3d& _internal_xyz() const;
186  public:
187  const ::gz::msgs::Vector3d& xyz() const;
188  ::gz::msgs::Vector3d* release_xyz();
189  ::gz::msgs::Vector3d* mutable_xyz();
190  void set_allocated_xyz(::gz::msgs::Vector3d* xyz);
191 
192  // double limit_lower = 3;
193  void clear_limit_lower();
194  static const int kLimitLowerFieldNumber = 3;
195  double limit_lower() const;
196  void set_limit_lower(double value);
197 
198  // double limit_upper = 4;
199  void clear_limit_upper();
200  static const int kLimitUpperFieldNumber = 4;
201  double limit_upper() const;
202  void set_limit_upper(double value);
203 
204  // double limit_effort = 5;
205  void clear_limit_effort();
206  static const int kLimitEffortFieldNumber = 5;
207  double limit_effort() const;
208  void set_limit_effort(double value);
209 
210  // double limit_velocity = 6;
211  void clear_limit_velocity();
212  static const int kLimitVelocityFieldNumber = 6;
213  double limit_velocity() const;
214  void set_limit_velocity(double value);
215 
216  // double damping = 7;
217  void clear_damping();
218  static const int kDampingFieldNumber = 7;
219  double damping() const;
220  void set_damping(double value);
221 
222  // double friction = 8;
223  void clear_friction();
224  static const int kFrictionFieldNumber = 8;
225  double friction() const;
226  void set_friction(double value);
227 
228  // double position = 10;
229  void clear_position();
230  static const int kPositionFieldNumber = 10;
231  double position() const;
232  void set_position(double value);
233 
234  // double velocity = 11;
235  void clear_velocity();
236  static const int kVelocityFieldNumber = 11;
237  double velocity() const;
238  void set_velocity(double value);
239 
240  // double force = 12;
241  void clear_force();
242  static const int kForceFieldNumber = 12;
243  double force() const;
244  void set_force(double value);
245 
246  // double acceleration = 13;
247  void clear_acceleration();
248  static const int kAccelerationFieldNumber = 13;
249  double acceleration() const;
250  void set_acceleration(double value);
251 
252  // @@protoc_insertion_point(class_scope:gz.msgs.Axis)
253  private:
254 
255  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
256  ::google::protobuf::internal::ArenaStringPtr xyz_expressed_in_;
257  ::gz::msgs::Header* header_;
258  ::gz::msgs::Vector3d* xyz_;
259  double limit_lower_;
260  double limit_upper_;
261  double limit_effort_;
262  double limit_velocity_;
263  double damping_;
264  double friction_;
265  double position_;
266  double velocity_;
267  double force_;
268  double acceleration_;
269  mutable ::google::protobuf::internal::CachedSize _cached_size_;
270  friend struct ::protobuf_gz_2fmsgs_2faxis_2eproto::TableStruct;
271 };
272 // ===================================================================
273 
274 
275 // ===================================================================
276 
277 #ifdef __GNUC__
278  #pragma GCC diagnostic push
279  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
280 #endif // __GNUC__
281 // Axis
282 
283 // .gz.msgs.Header header = 1;
284 inline bool Axis::has_header() const {
285  return this != internal_default_instance() && header_ != NULL;
286 }
287 inline const ::gz::msgs::Header& Axis::_internal_header() const {
288  return *header_;
289 }
290 inline const ::gz::msgs::Header& Axis::header() const {
291  const ::gz::msgs::Header* p = header_;
292  // @@protoc_insertion_point(field_get:gz.msgs.Axis.header)
293  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
295 }
296 inline ::gz::msgs::Header* Axis::release_header() {
297  // @@protoc_insertion_point(field_release:gz.msgs.Axis.header)
298 
299  ::gz::msgs::Header* temp = header_;
300  header_ = NULL;
301  return temp;
302 }
303 inline ::gz::msgs::Header* Axis::mutable_header() {
304 
305  if (header_ == NULL) {
306  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
307  header_ = p;
308  }
309  // @@protoc_insertion_point(field_mutable:gz.msgs.Axis.header)
310  return header_;
311 }
313  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
314  if (message_arena == NULL) {
315  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
316  }
317  if (header) {
318  ::google::protobuf::Arena* submessage_arena = NULL;
319  if (message_arena != submessage_arena) {
320  header = ::google::protobuf::internal::GetOwnedMessage(
321  message_arena, header, submessage_arena);
322  }
323 
324  } else {
325 
326  }
327  header_ = header;
328  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Axis.header)
329 }
330 
331 // .gz.msgs.Vector3d xyz = 2;
332 inline bool Axis::has_xyz() const {
333  return this != internal_default_instance() && xyz_ != NULL;
334 }
335 inline const ::gz::msgs::Vector3d& Axis::_internal_xyz() const {
336  return *xyz_;
337 }
338 inline const ::gz::msgs::Vector3d& Axis::xyz() const {
339  const ::gz::msgs::Vector3d* p = xyz_;
340  // @@protoc_insertion_point(field_get:gz.msgs.Axis.xyz)
341  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
343 }
344 inline ::gz::msgs::Vector3d* Axis::release_xyz() {
345  // @@protoc_insertion_point(field_release:gz.msgs.Axis.xyz)
346 
347  ::gz::msgs::Vector3d* temp = xyz_;
348  xyz_ = NULL;
349  return temp;
350 }
351 inline ::gz::msgs::Vector3d* Axis::mutable_xyz() {
352 
353  if (xyz_ == NULL) {
354  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
355  xyz_ = p;
356  }
357  // @@protoc_insertion_point(field_mutable:gz.msgs.Axis.xyz)
358  return xyz_;
359 }
361  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
362  if (message_arena == NULL) {
363  delete reinterpret_cast< ::google::protobuf::MessageLite*>(xyz_);
364  }
365  if (xyz) {
366  ::google::protobuf::Arena* submessage_arena = NULL;
367  if (message_arena != submessage_arena) {
368  xyz = ::google::protobuf::internal::GetOwnedMessage(
369  message_arena, xyz, submessage_arena);
370  }
371 
372  } else {
373 
374  }
375  xyz_ = xyz;
376  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Axis.xyz)
377 }
378 
379 // double limit_lower = 3;
380 inline void Axis::clear_limit_lower() {
381  limit_lower_ = 0;
382 }
383 inline double Axis::limit_lower() const {
384  // @@protoc_insertion_point(field_get:gz.msgs.Axis.limit_lower)
385  return limit_lower_;
386 }
387 inline void Axis::set_limit_lower(double value) {
388 
389  limit_lower_ = value;
390  // @@protoc_insertion_point(field_set:gz.msgs.Axis.limit_lower)
391 }
392 
393 // double limit_upper = 4;
394 inline void Axis::clear_limit_upper() {
395  limit_upper_ = 0;
396 }
397 inline double Axis::limit_upper() const {
398  // @@protoc_insertion_point(field_get:gz.msgs.Axis.limit_upper)
399  return limit_upper_;
400 }
401 inline void Axis::set_limit_upper(double value) {
402 
403  limit_upper_ = value;
404  // @@protoc_insertion_point(field_set:gz.msgs.Axis.limit_upper)
405 }
406 
407 // double limit_effort = 5;
409  limit_effort_ = 0;
410 }
411 inline double Axis::limit_effort() const {
412  // @@protoc_insertion_point(field_get:gz.msgs.Axis.limit_effort)
413  return limit_effort_;
414 }
415 inline void Axis::set_limit_effort(double value) {
416 
417  limit_effort_ = value;
418  // @@protoc_insertion_point(field_set:gz.msgs.Axis.limit_effort)
419 }
420 
421 // double limit_velocity = 6;
423  limit_velocity_ = 0;
424 }
425 inline double Axis::limit_velocity() const {
426  // @@protoc_insertion_point(field_get:gz.msgs.Axis.limit_velocity)
427  return limit_velocity_;
428 }
429 inline void Axis::set_limit_velocity(double value) {
430 
431  limit_velocity_ = value;
432  // @@protoc_insertion_point(field_set:gz.msgs.Axis.limit_velocity)
433 }
434 
435 // double damping = 7;
436 inline void Axis::clear_damping() {
437  damping_ = 0;
438 }
439 inline double Axis::damping() const {
440  // @@protoc_insertion_point(field_get:gz.msgs.Axis.damping)
441  return damping_;
442 }
443 inline void Axis::set_damping(double value) {
444 
445  damping_ = value;
446  // @@protoc_insertion_point(field_set:gz.msgs.Axis.damping)
447 }
448 
449 // double friction = 8;
450 inline void Axis::clear_friction() {
451  friction_ = 0;
452 }
453 inline double Axis::friction() const {
454  // @@protoc_insertion_point(field_get:gz.msgs.Axis.friction)
455  return friction_;
456 }
457 inline void Axis::set_friction(double value) {
458 
459  friction_ = value;
460  // @@protoc_insertion_point(field_set:gz.msgs.Axis.friction)
461 }
462 
463 // double position = 10;
464 inline void Axis::clear_position() {
465  position_ = 0;
466 }
467 inline double Axis::position() const {
468  // @@protoc_insertion_point(field_get:gz.msgs.Axis.position)
469  return position_;
470 }
471 inline void Axis::set_position(double value) {
472 
473  position_ = value;
474  // @@protoc_insertion_point(field_set:gz.msgs.Axis.position)
475 }
476 
477 // double velocity = 11;
478 inline void Axis::clear_velocity() {
479  velocity_ = 0;
480 }
481 inline double Axis::velocity() const {
482  // @@protoc_insertion_point(field_get:gz.msgs.Axis.velocity)
483  return velocity_;
484 }
485 inline void Axis::set_velocity(double value) {
486 
487  velocity_ = value;
488  // @@protoc_insertion_point(field_set:gz.msgs.Axis.velocity)
489 }
490 
491 // double force = 12;
492 inline void Axis::clear_force() {
493  force_ = 0;
494 }
495 inline double Axis::force() const {
496  // @@protoc_insertion_point(field_get:gz.msgs.Axis.force)
497  return force_;
498 }
499 inline void Axis::set_force(double value) {
500 
501  force_ = value;
502  // @@protoc_insertion_point(field_set:gz.msgs.Axis.force)
503 }
504 
505 // double acceleration = 13;
507  acceleration_ = 0;
508 }
509 inline double Axis::acceleration() const {
510  // @@protoc_insertion_point(field_get:gz.msgs.Axis.acceleration)
511  return acceleration_;
512 }
513 inline void Axis::set_acceleration(double value) {
514 
515  acceleration_ = value;
516  // @@protoc_insertion_point(field_set:gz.msgs.Axis.acceleration)
517 }
518 
519 // string xyz_expressed_in = 14;
521  xyz_expressed_in_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
522 }
523 inline const ::std::string& Axis::xyz_expressed_in() const {
524  // @@protoc_insertion_point(field_get:gz.msgs.Axis.xyz_expressed_in)
525  return xyz_expressed_in_.GetNoArena();
526 }
527 inline void Axis::set_xyz_expressed_in(const ::std::string& value) {
528 
529  xyz_expressed_in_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
530  // @@protoc_insertion_point(field_set:gz.msgs.Axis.xyz_expressed_in)
531 }
532 #if LANG_CXX11
533 inline void Axis::set_xyz_expressed_in(::std::string&& value) {
534 
535  xyz_expressed_in_.SetNoArena(
536  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
537  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Axis.xyz_expressed_in)
538 }
539 #endif
540 inline void Axis::set_xyz_expressed_in(const char* value) {
541  GOOGLE_DCHECK(value != NULL);
542 
543  xyz_expressed_in_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
544  // @@protoc_insertion_point(field_set_char:gz.msgs.Axis.xyz_expressed_in)
545 }
546 inline void Axis::set_xyz_expressed_in(const char* value, size_t size) {
547 
548  xyz_expressed_in_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
549  ::std::string(reinterpret_cast<const char*>(value), size));
550  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Axis.xyz_expressed_in)
551 }
552 inline ::std::string* Axis::mutable_xyz_expressed_in() {
553 
554  // @@protoc_insertion_point(field_mutable:gz.msgs.Axis.xyz_expressed_in)
555  return xyz_expressed_in_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
556 }
557 inline ::std::string* Axis::release_xyz_expressed_in() {
558  // @@protoc_insertion_point(field_release:gz.msgs.Axis.xyz_expressed_in)
559 
560  return xyz_expressed_in_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
561 }
562 inline void Axis::set_allocated_xyz_expressed_in(::std::string* xyz_expressed_in) {
563  if (xyz_expressed_in != NULL) {
564 
565  } else {
566 
567  }
568  xyz_expressed_in_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xyz_expressed_in);
569  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Axis.xyz_expressed_in)
570 }
571 
572 #ifdef __GNUC__
573  #pragma GCC diagnostic pop
574 #endif // __GNUC__
575 
576 // @@protoc_insertion_point(namespace_scope)
577 
578 } // namespace msgs
579 } // namespace gz
580 
581 // @@protoc_insertion_point(global_scope)
582 
583 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2faxis_2eproto