Gazebo Msgs

API Reference

9.5.1
joint_trajectory_point.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/joint_trajectory_point.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fjoint_5ftrajectory_5fpoint_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fjoint_5ftrajectory_5fpoint_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/duration.pb.h"
34 // @@protoc_insertion_point(includes)
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fjoint_5ftrajectory_5fpoint_2eproto GZ_MSGS_VISIBLE
36 
38 // Internal implementation detail -- do not use these members.
39 struct GZ_MSGS_VISIBLE TableStruct {
40  static const ::google::protobuf::internal::ParseTableField entries[];
41  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42  static const ::google::protobuf::internal::ParseTable schema[1];
43  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44  static const ::google::protobuf::internal::SerializationTable serialization_table[];
45  static const ::google::protobuf::uint32 offsets[];
46 };
47 void GZ_MSGS_VISIBLE AddDescriptors();
48 } // namespace protobuf_gz_2fmsgs_2fjoint_5ftrajectory_5fpoint_2eproto
49 namespace gz {
50 namespace msgs {
51 class JointTrajectoryPoint;
52 class JointTrajectoryPointDefaultTypeInternal;
53 GZ_MSGS_VISIBLE extern JointTrajectoryPointDefaultTypeInternal _JointTrajectoryPoint_default_instance_;
54 } // namespace msgs
55 } // namespace gz
56 namespace google {
57 namespace protobuf {
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::JointTrajectoryPoint* Arena::CreateMaybeMessage<::gz::msgs::JointTrajectoryPoint>(Arena*);
59 } // namespace protobuf
60 } // namespace google
61 namespace gz {
62 namespace msgs {
63 
64 // ===================================================================
65 
66 class GZ_MSGS_VISIBLE JointTrajectoryPoint : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.JointTrajectoryPoint) */ {
67  public:
69  virtual ~JointTrajectoryPoint();
70 
72 
74  CopyFrom(from);
75  return *this;
76  }
77  #if LANG_CXX11
80  *this = ::std::move(from);
81  }
82 
83  inline JointTrajectoryPoint& operator=(JointTrajectoryPoint&& from) noexcept {
84  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
85  if (this != &from) InternalSwap(&from);
86  } else {
87  CopyFrom(from);
88  }
89  return *this;
90  }
91  #endif
92  static const ::google::protobuf::Descriptor* descriptor();
93  static const JointTrajectoryPoint& default_instance();
94 
95  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  return reinterpret_cast<const JointTrajectoryPoint*>(
99  }
100  static constexpr int kIndexInFileMessages =
101  0;
102 
103  void Swap(JointTrajectoryPoint* other);
105  a.Swap(&b);
106  }
107 
108  // implements Message ----------------------------------------------
109 
110  inline JointTrajectoryPoint* New() const final {
111  return CreateMaybeMessage<JointTrajectoryPoint>(NULL);
112  }
113 
114  JointTrajectoryPoint* New(::google::protobuf::Arena* arena) const final {
115  return CreateMaybeMessage<JointTrajectoryPoint>(arena);
116  }
117  void CopyFrom(const ::google::protobuf::Message& from) final;
118  void MergeFrom(const ::google::protobuf::Message& from) final;
119  void CopyFrom(const JointTrajectoryPoint& from);
120  void MergeFrom(const JointTrajectoryPoint& from);
121  void Clear() final;
122  bool IsInitialized() const final;
123 
124  size_t ByteSizeLong() const final;
125  bool MergePartialFromCodedStream(
126  ::google::protobuf::io::CodedInputStream* input) final;
127  void SerializeWithCachedSizes(
128  ::google::protobuf::io::CodedOutputStream* output) const final;
129  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
130  bool deterministic, ::google::protobuf::uint8* target) const final;
131  int GetCachedSize() const final { return _cached_size_.Get(); }
132 
133  private:
134  void SharedCtor();
135  void SharedDtor();
136  void SetCachedSize(int size) const final;
137  void InternalSwap(JointTrajectoryPoint* other);
138  private:
139  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
140  return NULL;
141  }
142  inline void* MaybeArenaPtr() const {
143  return NULL;
144  }
145  public:
146 
147  ::google::protobuf::Metadata GetMetadata() const final;
148 
149  // nested types ----------------------------------------------------
150 
151  // accessors -------------------------------------------------------
152 
153  // repeated double positions = 1;
154  int positions_size() const;
155  void clear_positions();
156  static const int kPositionsFieldNumber = 1;
157  double positions(int index) const;
158  void set_positions(int index, double value);
159  void add_positions(double value);
160  const ::google::protobuf::RepeatedField< double >&
161  positions() const;
162  ::google::protobuf::RepeatedField< double >*
163  mutable_positions();
164 
165  // repeated double velocities = 2;
166  int velocities_size() const;
167  void clear_velocities();
168  static const int kVelocitiesFieldNumber = 2;
169  double velocities(int index) const;
170  void set_velocities(int index, double value);
171  void add_velocities(double value);
172  const ::google::protobuf::RepeatedField< double >&
173  velocities() const;
174  ::google::protobuf::RepeatedField< double >*
175  mutable_velocities();
176 
177  // repeated double accelerations = 3;
178  int accelerations_size() const;
179  void clear_accelerations();
180  static const int kAccelerationsFieldNumber = 3;
181  double accelerations(int index) const;
182  void set_accelerations(int index, double value);
183  void add_accelerations(double value);
184  const ::google::protobuf::RepeatedField< double >&
185  accelerations() const;
186  ::google::protobuf::RepeatedField< double >*
187  mutable_accelerations();
188 
189  // repeated double effort = 4;
190  int effort_size() const;
191  void clear_effort();
192  static const int kEffortFieldNumber = 4;
193  double effort(int index) const;
194  void set_effort(int index, double value);
195  void add_effort(double value);
196  const ::google::protobuf::RepeatedField< double >&
197  effort() const;
198  ::google::protobuf::RepeatedField< double >*
199  mutable_effort();
200 
201  // .gz.msgs.Duration time_from_start = 5;
202  bool has_time_from_start() const;
203  void clear_time_from_start();
204  static const int kTimeFromStartFieldNumber = 5;
205  private:
206  const ::gz::msgs::Duration& _internal_time_from_start() const;
207  public:
208  const ::gz::msgs::Duration& time_from_start() const;
209  ::gz::msgs::Duration* release_time_from_start();
210  ::gz::msgs::Duration* mutable_time_from_start();
211  void set_allocated_time_from_start(::gz::msgs::Duration* time_from_start);
212 
213  // @@protoc_insertion_point(class_scope:gz.msgs.JointTrajectoryPoint)
214  private:
215 
216  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
217  ::google::protobuf::RepeatedField< double > positions_;
218  mutable int _positions_cached_byte_size_;
219  ::google::protobuf::RepeatedField< double > velocities_;
220  mutable int _velocities_cached_byte_size_;
221  ::google::protobuf::RepeatedField< double > accelerations_;
222  mutable int _accelerations_cached_byte_size_;
223  ::google::protobuf::RepeatedField< double > effort_;
224  mutable int _effort_cached_byte_size_;
225  ::gz::msgs::Duration* time_from_start_;
226  mutable ::google::protobuf::internal::CachedSize _cached_size_;
228 };
229 // ===================================================================
230 
231 
232 // ===================================================================
233 
234 #ifdef __GNUC__
235  #pragma GCC diagnostic push
236  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
237 #endif // __GNUC__
238 // JointTrajectoryPoint
239 
240 // repeated double positions = 1;
242  return positions_.size();
243 }
245  positions_.Clear();
246 }
247 inline double JointTrajectoryPoint::positions(int index) const {
248  // @@protoc_insertion_point(field_get:gz.msgs.JointTrajectoryPoint.positions)
249  return positions_.Get(index);
250 }
251 inline void JointTrajectoryPoint::set_positions(int index, double value) {
252  positions_.Set(index, value);
253  // @@protoc_insertion_point(field_set:gz.msgs.JointTrajectoryPoint.positions)
254 }
255 inline void JointTrajectoryPoint::add_positions(double value) {
256  positions_.Add(value);
257  // @@protoc_insertion_point(field_add:gz.msgs.JointTrajectoryPoint.positions)
258 }
259 inline const ::google::protobuf::RepeatedField< double >&
261  // @@protoc_insertion_point(field_list:gz.msgs.JointTrajectoryPoint.positions)
262  return positions_;
263 }
264 inline ::google::protobuf::RepeatedField< double >*
266  // @@protoc_insertion_point(field_mutable_list:gz.msgs.JointTrajectoryPoint.positions)
267  return &positions_;
268 }
269 
270 // repeated double velocities = 2;
272  return velocities_.size();
273 }
275  velocities_.Clear();
276 }
277 inline double JointTrajectoryPoint::velocities(int index) const {
278  // @@protoc_insertion_point(field_get:gz.msgs.JointTrajectoryPoint.velocities)
279  return velocities_.Get(index);
280 }
281 inline void JointTrajectoryPoint::set_velocities(int index, double value) {
282  velocities_.Set(index, value);
283  // @@protoc_insertion_point(field_set:gz.msgs.JointTrajectoryPoint.velocities)
284 }
285 inline void JointTrajectoryPoint::add_velocities(double value) {
286  velocities_.Add(value);
287  // @@protoc_insertion_point(field_add:gz.msgs.JointTrajectoryPoint.velocities)
288 }
289 inline const ::google::protobuf::RepeatedField< double >&
291  // @@protoc_insertion_point(field_list:gz.msgs.JointTrajectoryPoint.velocities)
292  return velocities_;
293 }
294 inline ::google::protobuf::RepeatedField< double >*
296  // @@protoc_insertion_point(field_mutable_list:gz.msgs.JointTrajectoryPoint.velocities)
297  return &velocities_;
298 }
299 
300 // repeated double accelerations = 3;
302  return accelerations_.size();
303 }
305  accelerations_.Clear();
306 }
307 inline double JointTrajectoryPoint::accelerations(int index) const {
308  // @@protoc_insertion_point(field_get:gz.msgs.JointTrajectoryPoint.accelerations)
309  return accelerations_.Get(index);
310 }
311 inline void JointTrajectoryPoint::set_accelerations(int index, double value) {
312  accelerations_.Set(index, value);
313  // @@protoc_insertion_point(field_set:gz.msgs.JointTrajectoryPoint.accelerations)
314 }
315 inline void JointTrajectoryPoint::add_accelerations(double value) {
316  accelerations_.Add(value);
317  // @@protoc_insertion_point(field_add:gz.msgs.JointTrajectoryPoint.accelerations)
318 }
319 inline const ::google::protobuf::RepeatedField< double >&
321  // @@protoc_insertion_point(field_list:gz.msgs.JointTrajectoryPoint.accelerations)
322  return accelerations_;
323 }
324 inline ::google::protobuf::RepeatedField< double >*
326  // @@protoc_insertion_point(field_mutable_list:gz.msgs.JointTrajectoryPoint.accelerations)
327  return &accelerations_;
328 }
329 
330 // repeated double effort = 4;
332  return effort_.size();
333 }
335  effort_.Clear();
336 }
337 inline double JointTrajectoryPoint::effort(int index) const {
338  // @@protoc_insertion_point(field_get:gz.msgs.JointTrajectoryPoint.effort)
339  return effort_.Get(index);
340 }
341 inline void JointTrajectoryPoint::set_effort(int index, double value) {
342  effort_.Set(index, value);
343  // @@protoc_insertion_point(field_set:gz.msgs.JointTrajectoryPoint.effort)
344 }
345 inline void JointTrajectoryPoint::add_effort(double value) {
346  effort_.Add(value);
347  // @@protoc_insertion_point(field_add:gz.msgs.JointTrajectoryPoint.effort)
348 }
349 inline const ::google::protobuf::RepeatedField< double >&
351  // @@protoc_insertion_point(field_list:gz.msgs.JointTrajectoryPoint.effort)
352  return effort_;
353 }
354 inline ::google::protobuf::RepeatedField< double >*
356  // @@protoc_insertion_point(field_mutable_list:gz.msgs.JointTrajectoryPoint.effort)
357  return &effort_;
358 }
359 
360 // .gz.msgs.Duration time_from_start = 5;
362  return this != internal_default_instance() && time_from_start_ != NULL;
363 }
364 inline const ::gz::msgs::Duration& JointTrajectoryPoint::_internal_time_from_start() const {
365  return *time_from_start_;
366 }
367 inline const ::gz::msgs::Duration& JointTrajectoryPoint::time_from_start() const {
368  const ::gz::msgs::Duration* p = time_from_start_;
369  // @@protoc_insertion_point(field_get:gz.msgs.JointTrajectoryPoint.time_from_start)
370  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Duration*>(
372 }
373 inline ::gz::msgs::Duration* JointTrajectoryPoint::release_time_from_start() {
374  // @@protoc_insertion_point(field_release:gz.msgs.JointTrajectoryPoint.time_from_start)
375 
376  ::gz::msgs::Duration* temp = time_from_start_;
377  time_from_start_ = NULL;
378  return temp;
379 }
380 inline ::gz::msgs::Duration* JointTrajectoryPoint::mutable_time_from_start() {
381 
382  if (time_from_start_ == NULL) {
383  auto* p = CreateMaybeMessage<::gz::msgs::Duration>(GetArenaNoVirtual());
384  time_from_start_ = p;
385  }
386  // @@protoc_insertion_point(field_mutable:gz.msgs.JointTrajectoryPoint.time_from_start)
387  return time_from_start_;
388 }
390  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
391  if (message_arena == NULL) {
392  delete reinterpret_cast< ::google::protobuf::MessageLite*>(time_from_start_);
393  }
394  if (time_from_start) {
395  ::google::protobuf::Arena* submessage_arena = NULL;
396  if (message_arena != submessage_arena) {
397  time_from_start = ::google::protobuf::internal::GetOwnedMessage(
398  message_arena, time_from_start, submessage_arena);
399  }
400 
401  } else {
402 
403  }
404  time_from_start_ = time_from_start;
405  // @@protoc_insertion_point(field_set_allocated:gz.msgs.JointTrajectoryPoint.time_from_start)
406 }
407 
408 #ifdef __GNUC__
409  #pragma GCC diagnostic pop
410 #endif // __GNUC__
411 
412 // @@protoc_insertion_point(namespace_scope)
413 
414 } // namespace msgs
415 } // namespace gz
416 
417 // @@protoc_insertion_point(global_scope)
418 
419 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fjoint_5ftrajectory_5fpoint_2eproto