Ignition Msgs

API Reference

8.4.0
wrench.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/wrench.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fwrench_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fwrench_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.
49 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fwrench_2eproto();
52 
53 class Wrench;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE Wrench : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Wrench) */ {
58  public:
59  Wrench();
60  virtual ~Wrench();
61 
62  Wrench(const Wrench& from);
63 
64  inline Wrench& operator=(const Wrench& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const Wrench& default_instance();
71 
72  void Swap(Wrench* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline Wrench* New() const { return New(NULL); }
77 
78  Wrench* 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 Wrench& from);
82  void MergeFrom(const Wrench& 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(Wrench* 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  // optional .ignition.msgs.Vector3d force = 2;
127  bool has_force() const;
128  void clear_force();
129  static const int kForceFieldNumber = 2;
130  const ::ignition::msgs::Vector3d& force() const;
131  ::ignition::msgs::Vector3d* mutable_force();
132  ::ignition::msgs::Vector3d* release_force();
133  void set_allocated_force(::ignition::msgs::Vector3d* force);
134 
135  // optional .ignition.msgs.Vector3d torque = 3;
136  bool has_torque() const;
137  void clear_torque();
138  static const int kTorqueFieldNumber = 3;
139  const ::ignition::msgs::Vector3d& torque() const;
140  ::ignition::msgs::Vector3d* mutable_torque();
141  ::ignition::msgs::Vector3d* release_torque();
142  void set_allocated_torque(::ignition::msgs::Vector3d* torque);
143 
144  // optional .ignition.msgs.Vector3d force_offset = 4;
145  bool has_force_offset() const;
146  void clear_force_offset();
147  static const int kForceOffsetFieldNumber = 4;
148  const ::ignition::msgs::Vector3d& force_offset() const;
149  ::ignition::msgs::Vector3d* mutable_force_offset();
150  ::ignition::msgs::Vector3d* release_force_offset();
151  void set_allocated_force_offset(::ignition::msgs::Vector3d* force_offset);
152 
153  // @@protoc_insertion_point(class_scope:ignition.msgs.Wrench)
154  private:
155 
156  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
157  bool _is_default_instance_;
158  ::ignition::msgs::Header* header_;
161  ::ignition::msgs::Vector3d* force_offset_;
162  mutable int _cached_size_;
163  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fwrench_2eproto();
166 
167  void InitAsDefaultInstance();
168  static Wrench* default_instance_;
169 };
170 // ===================================================================
171 
172 
173 // ===================================================================
174 
175 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
176 // Wrench
177 
178 // optional .ignition.msgs.Header header = 1;
179 inline bool Wrench::has_header() const {
180  return !_is_default_instance_ && header_ != NULL;
181 }
182 inline void Wrench::clear_header() {
183  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
184  header_ = NULL;
185 }
186 inline const ::ignition::msgs::Header& Wrench::header() const {
187  // @@protoc_insertion_point(field_get:ignition.msgs.Wrench.header)
188  return header_ != NULL ? *header_ : *default_instance_->header_;
189 }
190 inline ::ignition::msgs::Header* Wrench::mutable_header() {
191 
192  if (header_ == NULL) {
193  header_ = new ::ignition::msgs::Header;
194  }
195  // @@protoc_insertion_point(field_mutable:ignition.msgs.Wrench.header)
196  return header_;
197 }
198 inline ::ignition::msgs::Header* Wrench::release_header() {
199  // @@protoc_insertion_point(field_release:ignition.msgs.Wrench.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.Wrench.header)
214 }
215 
216 // optional .ignition.msgs.Vector3d force = 2;
217 inline bool Wrench::has_force() const {
218  return !_is_default_instance_ && force_ != NULL;
219 }
220 inline void Wrench::clear_force() {
221  if (GetArenaNoVirtual() == NULL && force_ != NULL) delete force_;
222  force_ = NULL;
223 }
224 inline const ::ignition::msgs::Vector3d& Wrench::force() const {
225  // @@protoc_insertion_point(field_get:ignition.msgs.Wrench.force)
226  return force_ != NULL ? *force_ : *default_instance_->force_;
227 }
228 inline ::ignition::msgs::Vector3d* Wrench::mutable_force() {
229 
230  if (force_ == NULL) {
231  force_ = new ::ignition::msgs::Vector3d;
232  }
233  // @@protoc_insertion_point(field_mutable:ignition.msgs.Wrench.force)
234  return force_;
235 }
236 inline ::ignition::msgs::Vector3d* Wrench::release_force() {
237  // @@protoc_insertion_point(field_release:ignition.msgs.Wrench.force)
238 
239  ::ignition::msgs::Vector3d* temp = force_;
240  force_ = NULL;
241  return temp;
242 }
244  delete force_;
245  force_ = force;
246  if (force) {
247 
248  } else {
249 
250  }
251  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Wrench.force)
252 }
253 
254 // optional .ignition.msgs.Vector3d torque = 3;
255 inline bool Wrench::has_torque() const {
256  return !_is_default_instance_ && torque_ != NULL;
257 }
258 inline void Wrench::clear_torque() {
259  if (GetArenaNoVirtual() == NULL && torque_ != NULL) delete torque_;
260  torque_ = NULL;
261 }
262 inline const ::ignition::msgs::Vector3d& Wrench::torque() const {
263  // @@protoc_insertion_point(field_get:ignition.msgs.Wrench.torque)
264  return torque_ != NULL ? *torque_ : *default_instance_->torque_;
265 }
266 inline ::ignition::msgs::Vector3d* Wrench::mutable_torque() {
267 
268  if (torque_ == NULL) {
269  torque_ = new ::ignition::msgs::Vector3d;
270  }
271  // @@protoc_insertion_point(field_mutable:ignition.msgs.Wrench.torque)
272  return torque_;
273 }
274 inline ::ignition::msgs::Vector3d* Wrench::release_torque() {
275  // @@protoc_insertion_point(field_release:ignition.msgs.Wrench.torque)
276 
277  ::ignition::msgs::Vector3d* temp = torque_;
278  torque_ = NULL;
279  return temp;
280 }
282  delete torque_;
283  torque_ = torque;
284  if (torque) {
285 
286  } else {
287 
288  }
289  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Wrench.torque)
290 }
291 
292 // optional .ignition.msgs.Vector3d force_offset = 4;
293 inline bool Wrench::has_force_offset() const {
294  return !_is_default_instance_ && force_offset_ != NULL;
295 }
297  if (GetArenaNoVirtual() == NULL && force_offset_ != NULL) delete force_offset_;
298  force_offset_ = NULL;
299 }
300 inline const ::ignition::msgs::Vector3d& Wrench::force_offset() const {
301  // @@protoc_insertion_point(field_get:ignition.msgs.Wrench.force_offset)
302  return force_offset_ != NULL ? *force_offset_ : *default_instance_->force_offset_;
303 }
304 inline ::ignition::msgs::Vector3d* Wrench::mutable_force_offset() {
305 
306  if (force_offset_ == NULL) {
307  force_offset_ = new ::ignition::msgs::Vector3d;
308  }
309  // @@protoc_insertion_point(field_mutable:ignition.msgs.Wrench.force_offset)
310  return force_offset_;
311 }
312 inline ::ignition::msgs::Vector3d* Wrench::release_force_offset() {
313  // @@protoc_insertion_point(field_release:ignition.msgs.Wrench.force_offset)
314 
315  ::ignition::msgs::Vector3d* temp = force_offset_;
316  force_offset_ = NULL;
317  return temp;
318 }
320  delete force_offset_;
321  force_offset_ = force_offset;
322  if (force_offset) {
323 
324  } else {
325 
326  }
327  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Wrench.force_offset)
328 }
329 
330 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
331 
336 // @@protoc_insertion_point(namespace_scope)
337 
338 } // namespace msgs
339 } // namespace ignition
340 
341 #ifdef _MSC_VER
342 #pragma warning(pop)
343 #endif
344 // @@protoc_insertion_point(global_scope)
345 
346 #endif // PROTOBUF_ignition_2fmsgs_2fwrench_2eproto__INCLUDED
::ignition::msgs::Vector3d * release_force()
Definition: wrench.pb.h:236
::ignition::msgs::Vector3d * release_torque()
Definition: wrench.pb.h:274
void clear_header()
Definition: wrench.pb.h:182
Wrench & operator=(const Wrench &from)
Definition: wrench.pb.h:64
::ignition::msgs::Vector3d * mutable_torque()
Definition: wrench.pb.h:266
std::shared_ptr< Wrench > WrenchSharedPtr
Definition: wrench.pb.h:334
::ignition::msgs::Vector3d * mutable_force_offset()
Definition: wrench.pb.h:304
Definition: wrench.pb.h:57
int GetCachedSize() const
Definition: wrench.pb.h:96
std::shared_ptr< const Wrench > ConstWrenchSharedPtr
Definition: wrench.pb.h:335
void clear_force()
Definition: wrench.pb.h:220
Definition: header.pb.h:161
bool has_header() const
Definition: wrench.pb.h:179
const ::ignition::msgs::Vector3d & force() const
Definition: wrench.pb.h:224
void protobuf_AssignDesc_ignition_2fmsgs_2fwrench_2eproto()
bool has_torque() const
Definition: wrench.pb.h:255
std::unique_ptr< const Wrench > ConstWrenchUniquePtr
Definition: wrench.pb.h:333
std::unique_ptr< Wrench > WrenchUniquePtr
Definition: wrench.pb.h:332
void protobuf_ShutdownFile_ignition_2fmsgs_2fwrench_2eproto()
void set_allocated_torque(::ignition::msgs::Vector3d *torque)
Definition: wrench.pb.h:281
::ignition::msgs::Header * release_header()
Definition: wrench.pb.h:198
Definition: vector3d.pb.h:56
void set_allocated_force_offset(::ignition::msgs::Vector3d *force_offset)
Definition: wrench.pb.h:319
const ::ignition::msgs::Header & header() const
Definition: wrench.pb.h:186
STL class.
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fwrench_2eproto()
Wrench * New() const
Definition: wrench.pb.h:76
::ignition::msgs::Vector3d * release_force_offset()
Definition: wrench.pb.h:312
void set_allocated_force(::ignition::msgs::Vector3d *force)
Definition: wrench.pb.h:243
void set_allocated_header(::ignition::msgs::Header *header)
Definition: wrench.pb.h:205
void clear_force_offset()
Definition: wrench.pb.h:296
const ::ignition::msgs::Vector3d & force_offset() const
Definition: wrench.pb.h:300
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: wrench.pb.h:93
::ignition::msgs::Vector3d * mutable_force()
Definition: wrench.pb.h:228
::ignition::msgs::Header * mutable_header()
Definition: wrench.pb.h:190
bool has_force_offset() const
Definition: wrench.pb.h:293
void clear_torque()
Definition: wrench.pb.h:258
const ::ignition::msgs::Vector3d & torque() const
Definition: wrench.pb.h:262
bool has_force() const
Definition: wrench.pb.h:217