Ignition Msgs

API Reference

8.2.0
joint_trajectory.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/joint_trajectory.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fjoint_5ftrajectory_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fjoint_5ftrajectory_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
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 3000000 < 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/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
52 
53 class JointTrajectory;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE JointTrajectory : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.JointTrajectory) */ {
58  public:
60  virtual ~JointTrajectory();
61 
62  JointTrajectory(const JointTrajectory& from);
63 
64  inline JointTrajectory& operator=(const JointTrajectory& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const JointTrajectory& default_instance();
71 
72  void Swap(JointTrajectory* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline JointTrajectory* New() const { return New(NULL); }
77 
78  JointTrajectory* New(::google::protobuf::Arena* arena) const;
79  void CopyFrom(const ::google::protobuf::Message& from);
80  void MergeFrom(const ::google::protobuf::Message& from);
81  void CopyFrom(const JointTrajectory& from);
82  void MergeFrom(const JointTrajectory& from);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() const;
87  bool MergePartialFromCodedStream(
88  ::google::protobuf::io::CodedInputStream* input);
89  void SerializeWithCachedSizes(
90  ::google::protobuf::io::CodedOutputStream* output) const;
91  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92  bool deterministic, ::google::protobuf::uint8* output) const;
93  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
94  return InternalSerializeWithCachedSizesToArray(false, output);
95  }
96  int GetCachedSize() const { return _cached_size_; }
97  private:
98  void SharedCtor();
99  void SharedDtor();
100  void SetCachedSize(int size) const;
101  void InternalSwap(JointTrajectory* other);
102  private:
103  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
104  return _internal_metadata_.arena();
105  }
106  inline void* MaybeArenaPtr() const {
107  return _internal_metadata_.raw_arena_ptr();
108  }
109  public:
110 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .ignition.msgs.Header header = 1;
118  bool has_header() const;
119  void clear_header();
120  static const int kHeaderFieldNumber = 1;
121  const ::ignition::msgs::Header& header() const;
122  ::ignition::msgs::Header* mutable_header();
123  ::ignition::msgs::Header* release_header();
124  void set_allocated_header(::ignition::msgs::Header* header);
125 
126  // repeated string joint_names = 2;
127  int joint_names_size() const;
128  void clear_joint_names();
129  static const int kJointNamesFieldNumber = 2;
130  const ::std::string& joint_names(int index) const;
131  ::std::string* mutable_joint_names(int index);
132  void set_joint_names(int index, const ::std::string& value);
133  void set_joint_names(int index, const char* value);
134  void set_joint_names(int index, const char* value, size_t size);
135  ::std::string* add_joint_names();
136  void add_joint_names(const ::std::string& value);
137  void add_joint_names(const char* value);
138  void add_joint_names(const char* value, size_t size);
139  const ::google::protobuf::RepeatedPtrField< ::std::string>& joint_names() const;
140  ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_joint_names();
141 
142  // repeated .ignition.msgs.JointTrajectoryPoint points = 3;
143  int points_size() const;
144  void clear_points();
145  static const int kPointsFieldNumber = 3;
146  const ::ignition::msgs::JointTrajectoryPoint& points(int index) const;
147  ::ignition::msgs::JointTrajectoryPoint* mutable_points(int index);
149  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::JointTrajectoryPoint >*
150  mutable_points();
151  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::JointTrajectoryPoint >&
152  points() const;
153 
154  // @@protoc_insertion_point(class_scope:ignition.msgs.JointTrajectory)
155  private:
156 
157  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
158  bool _is_default_instance_;
159  ::ignition::msgs::Header* header_;
160  ::google::protobuf::RepeatedPtrField< ::std::string> joint_names_;
161  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::JointTrajectoryPoint > points_;
162  mutable int _cached_size_;
163  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fjoint_5ftrajectory_2eproto();
166 
167  void InitAsDefaultInstance();
168  static JointTrajectory* default_instance_;
169 };
170 // ===================================================================
171 
172 
173 // ===================================================================
174 
175 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
176 // JointTrajectory
177 
178 // optional .ignition.msgs.Header header = 1;
179 inline bool JointTrajectory::has_header() const {
180  return !_is_default_instance_ && header_ != NULL;
181 }
183  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
184  header_ = NULL;
185 }
186 inline const ::ignition::msgs::Header& JointTrajectory::header() const {
187  // @@protoc_insertion_point(field_get:ignition.msgs.JointTrajectory.header)
188  return header_ != NULL ? *header_ : *default_instance_->header_;
189 }
190 inline ::ignition::msgs::Header* JointTrajectory::mutable_header() {
191 
192  if (header_ == NULL) {
193  header_ = new ::ignition::msgs::Header;
194  }
195  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointTrajectory.header)
196  return header_;
197 }
198 inline ::ignition::msgs::Header* JointTrajectory::release_header() {
199  // @@protoc_insertion_point(field_release:ignition.msgs.JointTrajectory.header)
200 
201  ::ignition::msgs::Header* temp = header_;
202  header_ = NULL;
203  return temp;
204 }
206  delete header_;
207  header_ = header;
208  if (header) {
209 
210  } else {
211 
212  }
213  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointTrajectory.header)
214 }
215 
216 // repeated string joint_names = 2;
218  return joint_names_.size();
219 }
221  joint_names_.Clear();
222 }
223 inline const ::std::string& JointTrajectory::joint_names(int index) const {
224  // @@protoc_insertion_point(field_get:ignition.msgs.JointTrajectory.joint_names)
225  return joint_names_.Get(index);
226 }
227 inline ::std::string* JointTrajectory::mutable_joint_names(int index) {
228  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointTrajectory.joint_names)
229  return joint_names_.Mutable(index);
230 }
231 inline void JointTrajectory::set_joint_names(int index, const ::std::string& value) {
232  // @@protoc_insertion_point(field_set:ignition.msgs.JointTrajectory.joint_names)
233  joint_names_.Mutable(index)->assign(value);
234 }
235 inline void JointTrajectory::set_joint_names(int index, const char* value) {
236  joint_names_.Mutable(index)->assign(value);
237  // @@protoc_insertion_point(field_set_char:ignition.msgs.JointTrajectory.joint_names)
238 }
239 inline void JointTrajectory::set_joint_names(int index, const char* value, size_t size) {
240  joint_names_.Mutable(index)->assign(
241  reinterpret_cast<const char*>(value), size);
242  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.JointTrajectory.joint_names)
243 }
244 inline ::std::string* JointTrajectory::add_joint_names() {
245  // @@protoc_insertion_point(field_add_mutable:ignition.msgs.JointTrajectory.joint_names)
246  return joint_names_.Add();
247 }
248 inline void JointTrajectory::add_joint_names(const ::std::string& value) {
249  joint_names_.Add()->assign(value);
250  // @@protoc_insertion_point(field_add:ignition.msgs.JointTrajectory.joint_names)
251 }
252 inline void JointTrajectory::add_joint_names(const char* value) {
253  joint_names_.Add()->assign(value);
254  // @@protoc_insertion_point(field_add_char:ignition.msgs.JointTrajectory.joint_names)
255 }
256 inline void JointTrajectory::add_joint_names(const char* value, size_t size) {
257  joint_names_.Add()->assign(reinterpret_cast<const char*>(value), size);
258  // @@protoc_insertion_point(field_add_pointer:ignition.msgs.JointTrajectory.joint_names)
259 }
260 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
262  // @@protoc_insertion_point(field_list:ignition.msgs.JointTrajectory.joint_names)
263  return joint_names_;
264 }
265 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
267  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.JointTrajectory.joint_names)
268  return &joint_names_;
269 }
270 
271 // repeated .ignition.msgs.JointTrajectoryPoint points = 3;
272 inline int JointTrajectory::points_size() const {
273  return points_.size();
274 }
276  points_.Clear();
277 }
278 inline const ::ignition::msgs::JointTrajectoryPoint& JointTrajectory::points(int index) const {
279  // @@protoc_insertion_point(field_get:ignition.msgs.JointTrajectory.points)
280  return points_.Get(index);
281 }
282 inline ::ignition::msgs::JointTrajectoryPoint* JointTrajectory::mutable_points(int index) {
283  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointTrajectory.points)
284  return points_.Mutable(index);
285 }
286 inline ::ignition::msgs::JointTrajectoryPoint* JointTrajectory::add_points() {
287  // @@protoc_insertion_point(field_add:ignition.msgs.JointTrajectory.points)
288  return points_.Add();
289 }
290 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::JointTrajectoryPoint >*
292  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.JointTrajectory.points)
293  return &points_;
294 }
295 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::JointTrajectoryPoint >&
297  // @@protoc_insertion_point(field_list:ignition.msgs.JointTrajectory.points)
298  return points_;
299 }
300 
301 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
302 
307 // @@protoc_insertion_point(namespace_scope)
308 
309 } // namespace msgs
310 } // namespace ignition
311 
312 #ifdef _MSC_VER
313 #pragma warning(pop)
314 #endif
315 // @@protoc_insertion_point(global_scope)
316 
317 #endif // PROTOBUF_ignition_2fmsgs_2fjoint_5ftrajectory_2eproto__INCLUDED
const ::ignition::msgs::Header & header() const
Definition: joint_trajectory.pb.h:186
JointTrajectory & operator=(const JointTrajectory &from)
Definition: joint_trajectory.pb.h:64
void set_allocated_header(::ignition::msgs::Header *header)
Definition: joint_trajectory.pb.h:205
int joint_names_size() const
Definition: joint_trajectory.pb.h:217
::ignition::msgs::JointTrajectoryPoint * add_points()
Definition: joint_trajectory.pb.h:286
Definition: joint_trajectory.pb.h:57
void clear_points()
Definition: joint_trajectory.pb.h:275
::ignition::msgs::Header * release_header()
Definition: joint_trajectory.pb.h:198
void clear_joint_names()
Definition: joint_trajectory.pb.h:220
Definition: header.pb.h:161
STL class.
int GetCachedSize() const
Definition: joint_trajectory.pb.h:96
std::unique_ptr< JointTrajectory > JointTrajectoryUniquePtr
Definition: joint_trajectory.pb.h:303
::google::protobuf::RepeatedPtrField< ::std::string > * mutable_joint_names()
Definition: joint_trajectory.pb.h:266
const ::google::protobuf::RepeatedPtrField< ::std::string > & joint_names() const
Definition: joint_trajectory.pb.h:261
Definition: joint_trajectory_point.pb.h:56
bool has_header() const
Definition: joint_trajectory.pb.h:179
int points_size() const
Definition: joint_trajectory.pb.h:272
std::unique_ptr< const JointTrajectory > ConstJointTrajectoryUniquePtr
Definition: joint_trajectory.pb.h:304
T assign(T... args)
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::JointTrajectoryPoint > & points() const
Definition: joint_trajectory.pb.h:296
void clear_header()
Definition: joint_trajectory.pb.h:182
std::shared_ptr< JointTrajectory > JointTrajectorySharedPtr
Definition: joint_trajectory.pb.h:305
STL class.
JointTrajectory * New() const
Definition: joint_trajectory.pb.h:76
void protobuf_AssignDesc_ignition_2fmsgs_2fjoint_5ftrajectory_2eproto()
::std::string * add_joint_names()
Definition: joint_trajectory.pb.h:244
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: joint_trajectory.pb.h:93
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fjoint_5ftrajectory_2eproto()
std::shared_ptr< const JointTrajectory > ConstJointTrajectorySharedPtr
Definition: joint_trajectory.pb.h:306
void protobuf_ShutdownFile_ignition_2fmsgs_2fjoint_5ftrajectory_2eproto()
::google::protobuf::RepeatedPtrField< ::ignition::msgs::JointTrajectoryPoint > * mutable_points()
Definition: joint_trajectory.pb.h:291
::ignition::msgs::Header * mutable_header()
Definition: joint_trajectory.pb.h:190
void set_joint_names(int index, const ::std::string &value)
Definition: joint_trajectory.pb.h:231