4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fjoint_5ftrajectory_5fpoint_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fjoint_5ftrajectory_5fpoint_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
33 #include "gz/msgs/duration.pb.h"
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fjoint_5ftrajectory_5fpoint_2eproto GZ_MSGS_VISIBLE
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[];
51 class JointTrajectoryPoint;
52 class JointTrajectoryPointDefaultTypeInternal;
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::JointTrajectoryPoint* Arena::CreateMaybeMessage<::gz::msgs::JointTrajectoryPoint>(Arena*);
80 *
this = ::std::move(from);
83 inline JointTrajectoryPoint& operator=(JointTrajectoryPoint&& from) noexcept {
84 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
85 if (
this != &from) InternalSwap(&from);
92 static const ::google::protobuf::Descriptor* descriptor();
93 static const JointTrajectoryPoint& default_instance();
95 static void InitAsDefaultInstance();
100 static constexpr
int kIndexInFileMessages =
111 return CreateMaybeMessage<JointTrajectoryPoint>(NULL);
115 return CreateMaybeMessage<JointTrajectoryPoint>(arena);
117 void CopyFrom(const ::google::protobuf::Message& from)
final;
118 void MergeFrom(const ::google::protobuf::Message& from)
final;
122 bool IsInitialized() const final;
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(); }
136 void SetCachedSize(
int size)
const final;
139 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
142 inline void* MaybeArenaPtr()
const {
147 ::google::protobuf::Metadata GetMetadata() const final;
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 >&
162 ::
google::protobuf::RepeatedField<
double >*
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 >&
174 ::
google::protobuf::RepeatedField<
double >*
175 mutable_velocities();
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();
190 int effort_size() const;
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 >&
198 ::
google::protobuf::RepeatedField<
double >*
202 bool has_time_from_start() const;
203 void clear_time_from_start();
204 static const
int kTimeFromStartFieldNumber = 5;
206 const ::
gz::msgs::
Duration& _internal_time_from_start() const;
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);
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_;
226 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
235 #pragma GCC diagnostic push
236 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
242 return positions_.size();
249 return positions_.Get(index);
252 positions_.Set(index, value);
256 positions_.Add(value);
259 inline const ::google::protobuf::RepeatedField< double >&
264 inline ::google::protobuf::RepeatedField< double >*
272 return velocities_.size();
279 return velocities_.Get(index);
282 velocities_.Set(index, value);
286 velocities_.Add(value);
289 inline const ::google::protobuf::RepeatedField< double >&
294 inline ::google::protobuf::RepeatedField< double >*
302 return accelerations_.size();
305 accelerations_.Clear();
309 return accelerations_.Get(index);
312 accelerations_.Set(index, value);
316 accelerations_.Add(value);
319 inline const ::google::protobuf::RepeatedField< double >&
322 return accelerations_;
324 inline ::google::protobuf::RepeatedField< double >*
327 return &accelerations_;
332 return effort_.size();
339 return effort_.Get(index);
342 effort_.Set(index, value);
349 inline const ::google::protobuf::RepeatedField< double >&
354 inline ::google::protobuf::RepeatedField< double >*
362 return this != internal_default_instance() && time_from_start_ != NULL;
364 inline const ::gz::msgs::Duration& JointTrajectoryPoint::_internal_time_from_start()
const {
365 return *time_from_start_;
368 const ::gz::msgs::Duration* p = time_from_start_;
377 time_from_start_ = NULL;
382 if (time_from_start_ == NULL) {
383 auto* p = CreateMaybeMessage<::gz::msgs::Duration>(GetArenaNoVirtual());
384 time_from_start_ = p;
387 return time_from_start_;
390 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
391 if (message_arena == NULL) {
392 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(time_from_start_);
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);
404 time_from_start_ = time_from_start;
409 #pragma GCC diagnostic pop
419 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fjoint_5ftrajectory_5fpoint_2eproto