Gazebo Msgs

API Reference

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