Ignition Msgs

API Reference

8.4.0
actuators.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/actuators.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2factuators_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2factuators_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>
31 #ifndef _MSC_VER
32 #pragma GCC system_header
33 #else
34 #pragma warning(push)
35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
36 #endif
37 #ifdef __linux__
38 #include <sys/sysmacros.h>
39 #endif
40 #include <memory>
41 #include <ignition/msgs/Export.hh>
42 // @@protoc_insertion_point(includes)
43 
44 namespace ignition {
45 namespace msgs {
46 
47 // Internal implementation detail -- do not call these.
48 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2factuators_2eproto();
51 
52 class Actuators;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE Actuators : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Actuators) */ {
57  public:
58  Actuators();
59  virtual ~Actuators();
60 
61  Actuators(const Actuators& from);
62 
63  inline Actuators& operator=(const Actuators& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const Actuators& default_instance();
70 
71  void Swap(Actuators* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline Actuators* New() const { return New(NULL); }
76 
77  Actuators* New(::google::protobuf::Arena* arena) const;
78  void CopyFrom(const ::google::protobuf::Message& from);
79  void MergeFrom(const ::google::protobuf::Message& from);
80  void CopyFrom(const Actuators& from);
81  void MergeFrom(const Actuators& from);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() const;
86  bool MergePartialFromCodedStream(
87  ::google::protobuf::io::CodedInputStream* input);
88  void SerializeWithCachedSizes(
89  ::google::protobuf::io::CodedOutputStream* output) const;
90  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91  bool deterministic, ::google::protobuf::uint8* output) const;
92  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
93  return InternalSerializeWithCachedSizesToArray(false, output);
94  }
95  int GetCachedSize() const { return _cached_size_; }
96  private:
97  void SharedCtor();
98  void SharedDtor();
99  void SetCachedSize(int size) const;
100  void InternalSwap(Actuators* other);
101  private:
102  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
103  return _internal_metadata_.arena();
104  }
105  inline void* MaybeArenaPtr() const {
106  return _internal_metadata_.raw_arena_ptr();
107  }
108  public:
109 
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
114  // accessors -------------------------------------------------------
115 
116  // optional .ignition.msgs.Header header = 1;
117  bool has_header() const;
118  void clear_header();
119  static const int kHeaderFieldNumber = 1;
120  const ::ignition::msgs::Header& header() const;
121  ::ignition::msgs::Header* mutable_header();
122  ::ignition::msgs::Header* release_header();
123  void set_allocated_header(::ignition::msgs::Header* header);
124 
125  // repeated double position = 2;
126  int position_size() const;
127  void clear_position();
128  static const int kPositionFieldNumber = 2;
129  double position(int index) const;
130  void set_position(int index, double value);
131  void add_position(double value);
132  const ::google::protobuf::RepeatedField< double >&
133  position() const;
134  ::google::protobuf::RepeatedField< double >*
135  mutable_position();
136 
137  // repeated double velocity = 3;
138  int velocity_size() const;
139  void clear_velocity();
140  static const int kVelocityFieldNumber = 3;
141  double velocity(int index) const;
142  void set_velocity(int index, double value);
143  void add_velocity(double value);
144  const ::google::protobuf::RepeatedField< double >&
145  velocity() const;
146  ::google::protobuf::RepeatedField< double >*
147  mutable_velocity();
148 
149  // repeated double normalized = 4;
150  int normalized_size() const;
151  void clear_normalized();
152  static const int kNormalizedFieldNumber = 4;
153  double normalized(int index) const;
154  void set_normalized(int index, double value);
155  void add_normalized(double value);
156  const ::google::protobuf::RepeatedField< double >&
157  normalized() const;
158  ::google::protobuf::RepeatedField< double >*
159  mutable_normalized();
160 
161  // @@protoc_insertion_point(class_scope:ignition.msgs.Actuators)
162  private:
163 
164  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
165  bool _is_default_instance_;
166  ::ignition::msgs::Header* header_;
167  ::google::protobuf::RepeatedField< double > position_;
168  mutable int _position_cached_byte_size_;
169  ::google::protobuf::RepeatedField< double > velocity_;
170  mutable int _velocity_cached_byte_size_;
171  ::google::protobuf::RepeatedField< double > normalized_;
172  mutable int _normalized_cached_byte_size_;
173  mutable int _cached_size_;
174  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2factuators_2eproto();
177 
178  void InitAsDefaultInstance();
179  static Actuators* default_instance_;
180 };
181 // ===================================================================
182 
183 
184 // ===================================================================
185 
186 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
187 // Actuators
188 
189 // optional .ignition.msgs.Header header = 1;
190 inline bool Actuators::has_header() const {
191  return !_is_default_instance_ && header_ != NULL;
192 }
193 inline void Actuators::clear_header() {
194  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
195  header_ = NULL;
196 }
197 inline const ::ignition::msgs::Header& Actuators::header() const {
198  // @@protoc_insertion_point(field_get:ignition.msgs.Actuators.header)
199  return header_ != NULL ? *header_ : *default_instance_->header_;
200 }
201 inline ::ignition::msgs::Header* Actuators::mutable_header() {
202 
203  if (header_ == NULL) {
204  header_ = new ::ignition::msgs::Header;
205  }
206  // @@protoc_insertion_point(field_mutable:ignition.msgs.Actuators.header)
207  return header_;
208 }
209 inline ::ignition::msgs::Header* Actuators::release_header() {
210  // @@protoc_insertion_point(field_release:ignition.msgs.Actuators.header)
211 
212  ::ignition::msgs::Header* temp = header_;
213  header_ = NULL;
214  return temp;
215 }
217  delete header_;
218  header_ = header;
219  if (header) {
220 
221  } else {
222 
223  }
224  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Actuators.header)
225 }
226 
227 // repeated double position = 2;
228 inline int Actuators::position_size() const {
229  return position_.size();
230 }
232  position_.Clear();
233 }
234 inline double Actuators::position(int index) const {
235  // @@protoc_insertion_point(field_get:ignition.msgs.Actuators.position)
236  return position_.Get(index);
237 }
238 inline void Actuators::set_position(int index, double value) {
239  position_.Set(index, value);
240  // @@protoc_insertion_point(field_set:ignition.msgs.Actuators.position)
241 }
242 inline void Actuators::add_position(double value) {
243  position_.Add(value);
244  // @@protoc_insertion_point(field_add:ignition.msgs.Actuators.position)
245 }
246 inline const ::google::protobuf::RepeatedField< double >&
248  // @@protoc_insertion_point(field_list:ignition.msgs.Actuators.position)
249  return position_;
250 }
251 inline ::google::protobuf::RepeatedField< double >*
253  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Actuators.position)
254  return &position_;
255 }
256 
257 // repeated double velocity = 3;
258 inline int Actuators::velocity_size() const {
259  return velocity_.size();
260 }
262  velocity_.Clear();
263 }
264 inline double Actuators::velocity(int index) const {
265  // @@protoc_insertion_point(field_get:ignition.msgs.Actuators.velocity)
266  return velocity_.Get(index);
267 }
268 inline void Actuators::set_velocity(int index, double value) {
269  velocity_.Set(index, value);
270  // @@protoc_insertion_point(field_set:ignition.msgs.Actuators.velocity)
271 }
272 inline void Actuators::add_velocity(double value) {
273  velocity_.Add(value);
274  // @@protoc_insertion_point(field_add:ignition.msgs.Actuators.velocity)
275 }
276 inline const ::google::protobuf::RepeatedField< double >&
278  // @@protoc_insertion_point(field_list:ignition.msgs.Actuators.velocity)
279  return velocity_;
280 }
281 inline ::google::protobuf::RepeatedField< double >*
283  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Actuators.velocity)
284  return &velocity_;
285 }
286 
287 // repeated double normalized = 4;
288 inline int Actuators::normalized_size() const {
289  return normalized_.size();
290 }
292  normalized_.Clear();
293 }
294 inline double Actuators::normalized(int index) const {
295  // @@protoc_insertion_point(field_get:ignition.msgs.Actuators.normalized)
296  return normalized_.Get(index);
297 }
298 inline void Actuators::set_normalized(int index, double value) {
299  normalized_.Set(index, value);
300  // @@protoc_insertion_point(field_set:ignition.msgs.Actuators.normalized)
301 }
302 inline void Actuators::add_normalized(double value) {
303  normalized_.Add(value);
304  // @@protoc_insertion_point(field_add:ignition.msgs.Actuators.normalized)
305 }
306 inline const ::google::protobuf::RepeatedField< double >&
308  // @@protoc_insertion_point(field_list:ignition.msgs.Actuators.normalized)
309  return normalized_;
310 }
311 inline ::google::protobuf::RepeatedField< double >*
313  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Actuators.normalized)
314  return &normalized_;
315 }
316 
317 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
318 
323 // @@protoc_insertion_point(namespace_scope)
324 
325 } // namespace msgs
326 } // namespace ignition
327 
328 #ifdef _MSC_VER
329 #pragma warning(pop)
330 #endif
331 // @@protoc_insertion_point(global_scope)
332 
333 #endif // PROTOBUF_ignition_2fmsgs_2factuators_2eproto__INCLUDED
void set_position(int index, double value)
Definition: actuators.pb.h:238
const ::google::protobuf::RepeatedField< double > & position() const
Definition: actuators.pb.h:247
std::unique_ptr< Actuators > ActuatorsUniquePtr
Definition: actuators.pb.h:319
int position_size() const
Definition: actuators.pb.h:228
::ignition::msgs::Header * mutable_header()
Definition: actuators.pb.h:201
bool has_header() const
Definition: actuators.pb.h:190
void add_normalized(double value)
Definition: actuators.pb.h:302
const ::google::protobuf::RepeatedField< double > & velocity() const
Definition: actuators.pb.h:277
Definition: header.pb.h:161
void add_position(double value)
Definition: actuators.pb.h:242
::google::protobuf::RepeatedField< double > * mutable_normalized()
Definition: actuators.pb.h:312
Definition: actuators.pb.h:56
std::unique_ptr< const Actuators > ConstActuatorsUniquePtr
Definition: actuators.pb.h:320
void set_allocated_header(::ignition::msgs::Header *header)
Definition: actuators.pb.h:216
void set_velocity(int index, double value)
Definition: actuators.pb.h:268
const ::google::protobuf::RepeatedField< double > & normalized() const
Definition: actuators.pb.h:307
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: actuators.pb.h:92
void clear_header()
Definition: actuators.pb.h:193
STL class.
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2factuators_2eproto()
int velocity_size() const
Definition: actuators.pb.h:258
std::shared_ptr< Actuators > ActuatorsSharedPtr
Definition: actuators.pb.h:321
std::shared_ptr< const Actuators > ConstActuatorsSharedPtr
Definition: actuators.pb.h:322
void clear_velocity()
Definition: actuators.pb.h:261
const ::ignition::msgs::Header & header() const
Definition: actuators.pb.h:197
int GetCachedSize() const
Definition: actuators.pb.h:95
::google::protobuf::RepeatedField< double > * mutable_position()
Definition: actuators.pb.h:252
void clear_position()
Definition: actuators.pb.h:231
void set_normalized(int index, double value)
Definition: actuators.pb.h:298
void add_velocity(double value)
Definition: actuators.pb.h:272
::ignition::msgs::Header * release_header()
Definition: actuators.pb.h:209
void protobuf_AssignDesc_ignition_2fmsgs_2factuators_2eproto()
Actuators & operator=(const Actuators &from)
Definition: actuators.pb.h:63
::google::protobuf::RepeatedField< double > * mutable_velocity()
Definition: actuators.pb.h:282
int normalized_size() const
Definition: actuators.pb.h:288
Actuators * New() const
Definition: actuators.pb.h:75
void protobuf_ShutdownFile_ignition_2fmsgs_2factuators_2eproto()
void clear_normalized()
Definition: actuators.pb.h:291