Gazebo Msgs

API Reference

9.5.0
joint_trajectory.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.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fjoint_5ftrajectory_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fjoint_5ftrajectory_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/header.pb.h"
34 #include "gz/msgs/joint_trajectory_point.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fjoint_5ftrajectory_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_2fjoint_5ftrajectory_2eproto
50 namespace gz {
51 namespace msgs {
52 class JointTrajectory;
53 class JointTrajectoryDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern JointTrajectoryDefaultTypeInternal _JointTrajectory_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::JointTrajectory* Arena::CreateMaybeMessage<::gz::msgs::JointTrajectory>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE JointTrajectory : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.JointTrajectory) */ {
68  public:
70  virtual ~JointTrajectory();
71 
72  JointTrajectory(const JointTrajectory& from);
73 
74  inline JointTrajectory& operator=(const JointTrajectory& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  JointTrajectory(JointTrajectory&& from) noexcept
80  : JointTrajectory() {
81  *this = ::std::move(from);
82  }
83 
84  inline JointTrajectory& operator=(JointTrajectory&& 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 JointTrajectory& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const JointTrajectory* internal_default_instance() {
98  return reinterpret_cast<const JointTrajectory*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(JointTrajectory* other);
105  friend void swap(JointTrajectory& a, JointTrajectory& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline JointTrajectory* New() const final {
112  return CreateMaybeMessage<JointTrajectory>(NULL);
113  }
114 
115  JointTrajectory* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<JointTrajectory>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const JointTrajectory& from);
121  void MergeFrom(const JointTrajectory& 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(JointTrajectory* 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  // repeated string joint_names = 2;
155  int joint_names_size() const;
156  void clear_joint_names();
157  static const int kJointNamesFieldNumber = 2;
158  const ::std::string& joint_names(int index) const;
159  ::std::string* mutable_joint_names(int index);
160  void set_joint_names(int index, const ::std::string& value);
161  #if LANG_CXX11
162  void set_joint_names(int index, ::std::string&& value);
163  #endif
164  void set_joint_names(int index, const char* value);
165  void set_joint_names(int index, const char* value, size_t size);
166  ::std::string* add_joint_names();
167  void add_joint_names(const ::std::string& value);
168  #if LANG_CXX11
169  void add_joint_names(::std::string&& value);
170  #endif
171  void add_joint_names(const char* value);
172  void add_joint_names(const char* value, size_t size);
173  const ::google::protobuf::RepeatedPtrField< ::std::string>& joint_names() const;
174  ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_joint_names();
175 
176  // repeated .gz.msgs.JointTrajectoryPoint points = 3;
177  int points_size() const;
178  void clear_points();
179  static const int kPointsFieldNumber = 3;
180  ::gz::msgs::JointTrajectoryPoint* mutable_points(int index);
181  ::google::protobuf::RepeatedPtrField< ::gz::msgs::JointTrajectoryPoint >*
182  mutable_points();
183  const ::gz::msgs::JointTrajectoryPoint& points(int index) const;
184  ::gz::msgs::JointTrajectoryPoint* add_points();
185  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::JointTrajectoryPoint >&
186  points() const;
187 
188  // .gz.msgs.Header header = 1;
189  bool has_header() const;
190  void clear_header();
191  static const int kHeaderFieldNumber = 1;
192  private:
193  const ::gz::msgs::Header& _internal_header() const;
194  public:
195  const ::gz::msgs::Header& header() const;
196  ::gz::msgs::Header* release_header();
197  ::gz::msgs::Header* mutable_header();
198  void set_allocated_header(::gz::msgs::Header* header);
199 
200  // @@protoc_insertion_point(class_scope:gz.msgs.JointTrajectory)
201  private:
202 
203  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
204  ::google::protobuf::RepeatedPtrField< ::std::string> joint_names_;
205  ::google::protobuf::RepeatedPtrField< ::gz::msgs::JointTrajectoryPoint > points_;
206  ::gz::msgs::Header* header_;
207  mutable ::google::protobuf::internal::CachedSize _cached_size_;
208  friend struct ::protobuf_gz_2fmsgs_2fjoint_5ftrajectory_2eproto::TableStruct;
209 };
210 // ===================================================================
211 
212 
213 // ===================================================================
214 
215 #ifdef __GNUC__
216  #pragma GCC diagnostic push
217  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
218 #endif // __GNUC__
219 // JointTrajectory
220 
221 // .gz.msgs.Header header = 1;
222 inline bool JointTrajectory::has_header() const {
223  return this != internal_default_instance() && header_ != NULL;
224 }
225 inline const ::gz::msgs::Header& JointTrajectory::_internal_header() const {
226  return *header_;
227 }
228 inline const ::gz::msgs::Header& JointTrajectory::header() const {
229  const ::gz::msgs::Header* p = header_;
230  // @@protoc_insertion_point(field_get:gz.msgs.JointTrajectory.header)
231  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
233 }
234 inline ::gz::msgs::Header* JointTrajectory::release_header() {
235  // @@protoc_insertion_point(field_release:gz.msgs.JointTrajectory.header)
236 
237  ::gz::msgs::Header* temp = header_;
238  header_ = NULL;
239  return temp;
240 }
241 inline ::gz::msgs::Header* JointTrajectory::mutable_header() {
242 
243  if (header_ == NULL) {
244  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
245  header_ = p;
246  }
247  // @@protoc_insertion_point(field_mutable:gz.msgs.JointTrajectory.header)
248  return header_;
249 }
251  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
252  if (message_arena == NULL) {
253  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
254  }
255  if (header) {
256  ::google::protobuf::Arena* submessage_arena = NULL;
257  if (message_arena != submessage_arena) {
258  header = ::google::protobuf::internal::GetOwnedMessage(
259  message_arena, header, submessage_arena);
260  }
261 
262  } else {
263 
264  }
265  header_ = header;
266  // @@protoc_insertion_point(field_set_allocated:gz.msgs.JointTrajectory.header)
267 }
268 
269 // repeated string joint_names = 2;
271  return joint_names_.size();
272 }
274  joint_names_.Clear();
275 }
276 inline const ::std::string& JointTrajectory::joint_names(int index) const {
277  // @@protoc_insertion_point(field_get:gz.msgs.JointTrajectory.joint_names)
278  return joint_names_.Get(index);
279 }
280 inline ::std::string* JointTrajectory::mutable_joint_names(int index) {
281  // @@protoc_insertion_point(field_mutable:gz.msgs.JointTrajectory.joint_names)
282  return joint_names_.Mutable(index);
283 }
284 inline void JointTrajectory::set_joint_names(int index, const ::std::string& value) {
285  // @@protoc_insertion_point(field_set:gz.msgs.JointTrajectory.joint_names)
286  joint_names_.Mutable(index)->assign(value);
287 }
288 #if LANG_CXX11
289 inline void JointTrajectory::set_joint_names(int index, ::std::string&& value) {
290  // @@protoc_insertion_point(field_set:gz.msgs.JointTrajectory.joint_names)
291  joint_names_.Mutable(index)->assign(std::move(value));
292 }
293 #endif
294 inline void JointTrajectory::set_joint_names(int index, const char* value) {
295  GOOGLE_DCHECK(value != NULL);
296  joint_names_.Mutable(index)->assign(value);
297  // @@protoc_insertion_point(field_set_char:gz.msgs.JointTrajectory.joint_names)
298 }
299 inline void JointTrajectory::set_joint_names(int index, const char* value, size_t size) {
300  joint_names_.Mutable(index)->assign(
301  reinterpret_cast<const char*>(value), size);
302  // @@protoc_insertion_point(field_set_pointer:gz.msgs.JointTrajectory.joint_names)
303 }
304 inline ::std::string* JointTrajectory::add_joint_names() {
305  // @@protoc_insertion_point(field_add_mutable:gz.msgs.JointTrajectory.joint_names)
306  return joint_names_.Add();
307 }
308 inline void JointTrajectory::add_joint_names(const ::std::string& value) {
309  joint_names_.Add()->assign(value);
310  // @@protoc_insertion_point(field_add:gz.msgs.JointTrajectory.joint_names)
311 }
312 #if LANG_CXX11
313 inline void JointTrajectory::add_joint_names(::std::string&& value) {
314  joint_names_.Add(std::move(value));
315  // @@protoc_insertion_point(field_add:gz.msgs.JointTrajectory.joint_names)
316 }
317 #endif
318 inline void JointTrajectory::add_joint_names(const char* value) {
319  GOOGLE_DCHECK(value != NULL);
320  joint_names_.Add()->assign(value);
321  // @@protoc_insertion_point(field_add_char:gz.msgs.JointTrajectory.joint_names)
322 }
323 inline void JointTrajectory::add_joint_names(const char* value, size_t size) {
324  joint_names_.Add()->assign(reinterpret_cast<const char*>(value), size);
325  // @@protoc_insertion_point(field_add_pointer:gz.msgs.JointTrajectory.joint_names)
326 }
327 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
329  // @@protoc_insertion_point(field_list:gz.msgs.JointTrajectory.joint_names)
330  return joint_names_;
331 }
332 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
334  // @@protoc_insertion_point(field_mutable_list:gz.msgs.JointTrajectory.joint_names)
335  return &joint_names_;
336 }
337 
338 // repeated .gz.msgs.JointTrajectoryPoint points = 3;
339 inline int JointTrajectory::points_size() const {
340  return points_.size();
341 }
342 inline ::gz::msgs::JointTrajectoryPoint* JointTrajectory::mutable_points(int index) {
343  // @@protoc_insertion_point(field_mutable:gz.msgs.JointTrajectory.points)
344  return points_.Mutable(index);
345 }
346 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::JointTrajectoryPoint >*
348  // @@protoc_insertion_point(field_mutable_list:gz.msgs.JointTrajectory.points)
349  return &points_;
350 }
351 inline const ::gz::msgs::JointTrajectoryPoint& JointTrajectory::points(int index) const {
352  // @@protoc_insertion_point(field_get:gz.msgs.JointTrajectory.points)
353  return points_.Get(index);
354 }
355 inline ::gz::msgs::JointTrajectoryPoint* JointTrajectory::add_points() {
356  // @@protoc_insertion_point(field_add:gz.msgs.JointTrajectory.points)
357  return points_.Add();
358 }
359 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::JointTrajectoryPoint >&
361  // @@protoc_insertion_point(field_list:gz.msgs.JointTrajectory.points)
362  return points_;
363 }
364 
365 #ifdef __GNUC__
366  #pragma GCC diagnostic pop
367 #endif // __GNUC__
368 
369 // @@protoc_insertion_point(namespace_scope)
370 
371 } // namespace msgs
372 } // namespace gz
373 
374 // @@protoc_insertion_point(global_scope)
375 
376 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fjoint_5ftrajectory_2eproto