Ignition Msgs

API Reference

8.4.0
joint_wrench.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/joint_wrench.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fjoint_5fwrench_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fjoint_5fwrench_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 JointWrench;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE JointWrench : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.JointWrench) */ {
58  public:
59  JointWrench();
60  virtual ~JointWrench();
61 
62  JointWrench(const JointWrench& from);
63 
64  inline JointWrench& operator=(const JointWrench& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const JointWrench& default_instance();
71 
72  void Swap(JointWrench* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline JointWrench* New() const { return New(NULL); }
77 
78  JointWrench* 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 JointWrench& from);
82  void MergeFrom(const JointWrench& 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(JointWrench* 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 string body_1_name = 2;
127  void clear_body_1_name();
128  static const int kBody1NameFieldNumber = 2;
129  const ::std::string& body_1_name() const;
130  void set_body_1_name(const ::std::string& value);
131  void set_body_1_name(const char* value);
132  void set_body_1_name(const char* value, size_t size);
133  ::std::string* mutable_body_1_name();
134  ::std::string* release_body_1_name();
135  void set_allocated_body_1_name(::std::string* body_1_name);
136 
137  // optional uint32 body_1_id = 3;
138  void clear_body_1_id();
139  static const int kBody1IdFieldNumber = 3;
140  ::google::protobuf::uint32 body_1_id() const;
141  void set_body_1_id(::google::protobuf::uint32 value);
142 
143  // optional string body_2_name = 4;
144  void clear_body_2_name();
145  static const int kBody2NameFieldNumber = 4;
146  const ::std::string& body_2_name() const;
147  void set_body_2_name(const ::std::string& value);
148  void set_body_2_name(const char* value);
149  void set_body_2_name(const char* value, size_t size);
150  ::std::string* mutable_body_2_name();
151  ::std::string* release_body_2_name();
152  void set_allocated_body_2_name(::std::string* body_2_name);
153 
154  // optional uint32 body_2_id = 5;
155  void clear_body_2_id();
156  static const int kBody2IdFieldNumber = 5;
157  ::google::protobuf::uint32 body_2_id() const;
158  void set_body_2_id(::google::protobuf::uint32 value);
159 
160  // optional .ignition.msgs.Wrench body_1_wrench = 6;
161  bool has_body_1_wrench() const;
162  void clear_body_1_wrench();
163  static const int kBody1WrenchFieldNumber = 6;
164  const ::ignition::msgs::Wrench& body_1_wrench() const;
165  ::ignition::msgs::Wrench* mutable_body_1_wrench();
166  ::ignition::msgs::Wrench* release_body_1_wrench();
167  void set_allocated_body_1_wrench(::ignition::msgs::Wrench* body_1_wrench);
168 
169  // optional .ignition.msgs.Wrench body_2_wrench = 7;
170  bool has_body_2_wrench() const;
171  void clear_body_2_wrench();
172  static const int kBody2WrenchFieldNumber = 7;
173  const ::ignition::msgs::Wrench& body_2_wrench() const;
174  ::ignition::msgs::Wrench* mutable_body_2_wrench();
175  ::ignition::msgs::Wrench* release_body_2_wrench();
176  void set_allocated_body_2_wrench(::ignition::msgs::Wrench* body_2_wrench);
177 
178  // @@protoc_insertion_point(class_scope:ignition.msgs.JointWrench)
179  private:
180 
181  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
182  bool _is_default_instance_;
183  ::ignition::msgs::Header* header_;
184  ::google::protobuf::internal::ArenaStringPtr body_1_name_;
185  ::google::protobuf::internal::ArenaStringPtr body_2_name_;
186  ::google::protobuf::uint32 body_1_id_;
187  ::google::protobuf::uint32 body_2_id_;
188  ::ignition::msgs::Wrench* body_1_wrench_;
189  ::ignition::msgs::Wrench* body_2_wrench_;
190  mutable int _cached_size_;
191  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fjoint_5fwrench_2eproto();
194 
195  void InitAsDefaultInstance();
196  static JointWrench* default_instance_;
197 };
198 // ===================================================================
199 
200 
201 // ===================================================================
202 
203 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
204 // JointWrench
205 
206 // optional .ignition.msgs.Header header = 1;
207 inline bool JointWrench::has_header() const {
208  return !_is_default_instance_ && header_ != NULL;
209 }
211  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
212  header_ = NULL;
213 }
214 inline const ::ignition::msgs::Header& JointWrench::header() const {
215  // @@protoc_insertion_point(field_get:ignition.msgs.JointWrench.header)
216  return header_ != NULL ? *header_ : *default_instance_->header_;
217 }
218 inline ::ignition::msgs::Header* JointWrench::mutable_header() {
219 
220  if (header_ == NULL) {
221  header_ = new ::ignition::msgs::Header;
222  }
223  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointWrench.header)
224  return header_;
225 }
226 inline ::ignition::msgs::Header* JointWrench::release_header() {
227  // @@protoc_insertion_point(field_release:ignition.msgs.JointWrench.header)
228 
229  ::ignition::msgs::Header* temp = header_;
230  header_ = NULL;
231  return temp;
232 }
234  delete header_;
235  header_ = header;
236  if (header) {
237 
238  } else {
239 
240  }
241  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointWrench.header)
242 }
243 
244 // optional string body_1_name = 2;
246  body_1_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
247 }
248 inline const ::std::string& JointWrench::body_1_name() const {
249  // @@protoc_insertion_point(field_get:ignition.msgs.JointWrench.body_1_name)
250  return body_1_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
251 }
252 inline void JointWrench::set_body_1_name(const ::std::string& value) {
253 
254  body_1_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
255  // @@protoc_insertion_point(field_set:ignition.msgs.JointWrench.body_1_name)
256 }
257 inline void JointWrench::set_body_1_name(const char* value) {
258 
259  body_1_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
260  // @@protoc_insertion_point(field_set_char:ignition.msgs.JointWrench.body_1_name)
261 }
262 inline void JointWrench::set_body_1_name(const char* value, size_t size) {
263 
264  body_1_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
265  ::std::string(reinterpret_cast<const char*>(value), size));
266  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.JointWrench.body_1_name)
267 }
268 inline ::std::string* JointWrench::mutable_body_1_name() {
269 
270  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointWrench.body_1_name)
271  return body_1_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
272 }
273 inline ::std::string* JointWrench::release_body_1_name() {
274  // @@protoc_insertion_point(field_release:ignition.msgs.JointWrench.body_1_name)
275 
276  return body_1_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
277 }
279  if (body_1_name != NULL) {
280 
281  } else {
282 
283  }
284  body_1_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body_1_name);
285  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointWrench.body_1_name)
286 }
287 
288 // optional uint32 body_1_id = 3;
290  body_1_id_ = 0u;
291 }
292 inline ::google::protobuf::uint32 JointWrench::body_1_id() const {
293  // @@protoc_insertion_point(field_get:ignition.msgs.JointWrench.body_1_id)
294  return body_1_id_;
295 }
296 inline void JointWrench::set_body_1_id(::google::protobuf::uint32 value) {
297 
298  body_1_id_ = value;
299  // @@protoc_insertion_point(field_set:ignition.msgs.JointWrench.body_1_id)
300 }
301 
302 // optional string body_2_name = 4;
304  body_2_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
305 }
306 inline const ::std::string& JointWrench::body_2_name() const {
307  // @@protoc_insertion_point(field_get:ignition.msgs.JointWrench.body_2_name)
308  return body_2_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
309 }
310 inline void JointWrench::set_body_2_name(const ::std::string& value) {
311 
312  body_2_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
313  // @@protoc_insertion_point(field_set:ignition.msgs.JointWrench.body_2_name)
314 }
315 inline void JointWrench::set_body_2_name(const char* value) {
316 
317  body_2_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
318  // @@protoc_insertion_point(field_set_char:ignition.msgs.JointWrench.body_2_name)
319 }
320 inline void JointWrench::set_body_2_name(const char* value, size_t size) {
321 
322  body_2_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
323  ::std::string(reinterpret_cast<const char*>(value), size));
324  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.JointWrench.body_2_name)
325 }
326 inline ::std::string* JointWrench::mutable_body_2_name() {
327 
328  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointWrench.body_2_name)
329  return body_2_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
330 }
331 inline ::std::string* JointWrench::release_body_2_name() {
332  // @@protoc_insertion_point(field_release:ignition.msgs.JointWrench.body_2_name)
333 
334  return body_2_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
335 }
337  if (body_2_name != NULL) {
338 
339  } else {
340 
341  }
342  body_2_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body_2_name);
343  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointWrench.body_2_name)
344 }
345 
346 // optional uint32 body_2_id = 5;
348  body_2_id_ = 0u;
349 }
350 inline ::google::protobuf::uint32 JointWrench::body_2_id() const {
351  // @@protoc_insertion_point(field_get:ignition.msgs.JointWrench.body_2_id)
352  return body_2_id_;
353 }
354 inline void JointWrench::set_body_2_id(::google::protobuf::uint32 value) {
355 
356  body_2_id_ = value;
357  // @@protoc_insertion_point(field_set:ignition.msgs.JointWrench.body_2_id)
358 }
359 
360 // optional .ignition.msgs.Wrench body_1_wrench = 6;
361 inline bool JointWrench::has_body_1_wrench() const {
362  return !_is_default_instance_ && body_1_wrench_ != NULL;
363 }
365  if (GetArenaNoVirtual() == NULL && body_1_wrench_ != NULL) delete body_1_wrench_;
366  body_1_wrench_ = NULL;
367 }
368 inline const ::ignition::msgs::Wrench& JointWrench::body_1_wrench() const {
369  // @@protoc_insertion_point(field_get:ignition.msgs.JointWrench.body_1_wrench)
370  return body_1_wrench_ != NULL ? *body_1_wrench_ : *default_instance_->body_1_wrench_;
371 }
372 inline ::ignition::msgs::Wrench* JointWrench::mutable_body_1_wrench() {
373 
374  if (body_1_wrench_ == NULL) {
375  body_1_wrench_ = new ::ignition::msgs::Wrench;
376  }
377  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointWrench.body_1_wrench)
378  return body_1_wrench_;
379 }
380 inline ::ignition::msgs::Wrench* JointWrench::release_body_1_wrench() {
381  // @@protoc_insertion_point(field_release:ignition.msgs.JointWrench.body_1_wrench)
382 
383  ::ignition::msgs::Wrench* temp = body_1_wrench_;
384  body_1_wrench_ = NULL;
385  return temp;
386 }
388  delete body_1_wrench_;
389  body_1_wrench_ = body_1_wrench;
390  if (body_1_wrench) {
391 
392  } else {
393 
394  }
395  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointWrench.body_1_wrench)
396 }
397 
398 // optional .ignition.msgs.Wrench body_2_wrench = 7;
399 inline bool JointWrench::has_body_2_wrench() const {
400  return !_is_default_instance_ && body_2_wrench_ != NULL;
401 }
403  if (GetArenaNoVirtual() == NULL && body_2_wrench_ != NULL) delete body_2_wrench_;
404  body_2_wrench_ = NULL;
405 }
406 inline const ::ignition::msgs::Wrench& JointWrench::body_2_wrench() const {
407  // @@protoc_insertion_point(field_get:ignition.msgs.JointWrench.body_2_wrench)
408  return body_2_wrench_ != NULL ? *body_2_wrench_ : *default_instance_->body_2_wrench_;
409 }
410 inline ::ignition::msgs::Wrench* JointWrench::mutable_body_2_wrench() {
411 
412  if (body_2_wrench_ == NULL) {
413  body_2_wrench_ = new ::ignition::msgs::Wrench;
414  }
415  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointWrench.body_2_wrench)
416  return body_2_wrench_;
417 }
418 inline ::ignition::msgs::Wrench* JointWrench::release_body_2_wrench() {
419  // @@protoc_insertion_point(field_release:ignition.msgs.JointWrench.body_2_wrench)
420 
421  ::ignition::msgs::Wrench* temp = body_2_wrench_;
422  body_2_wrench_ = NULL;
423  return temp;
424 }
426  delete body_2_wrench_;
427  body_2_wrench_ = body_2_wrench;
428  if (body_2_wrench) {
429 
430  } else {
431 
432  }
433  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointWrench.body_2_wrench)
434 }
435 
436 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
437 
442 // @@protoc_insertion_point(namespace_scope)
443 
444 } // namespace msgs
445 } // namespace ignition
446 
447 #ifdef _MSC_VER
448 #pragma warning(pop)
449 #endif
450 // @@protoc_insertion_point(global_scope)
451 
452 #endif // PROTOBUF_ignition_2fmsgs_2fjoint_5fwrench_2eproto__INCLUDED
void set_allocated_header(::ignition::msgs::Header *header)
Definition: joint_wrench.pb.h:233
JointWrench * New() const
Definition: joint_wrench.pb.h:76
void clear_body_2_wrench()
Definition: joint_wrench.pb.h:402
::std::string * release_body_1_name()
Definition: joint_wrench.pb.h:273
void clear_body_1_id()
Definition: joint_wrench.pb.h:289
Definition: joint_wrench.pb.h:57
bool has_body_1_wrench() const
Definition: joint_wrench.pb.h:361
::std::string * mutable_body_1_name()
Definition: joint_wrench.pb.h:268
bool has_header() const
Definition: joint_wrench.pb.h:207
std::shared_ptr< JointWrench > JointWrenchSharedPtr
Definition: joint_wrench.pb.h:440
Definition: wrench.pb.h:57
const ::std::string & body_1_name() const
Definition: joint_wrench.pb.h:248
void clear_body_2_id()
Definition: joint_wrench.pb.h:347
const ::ignition::msgs::Wrench & body_2_wrench() const
Definition: joint_wrench.pb.h:406
JointWrench & operator=(const JointWrench &from)
Definition: joint_wrench.pb.h:64
::ignition::msgs::Wrench * mutable_body_1_wrench()
Definition: joint_wrench.pb.h:372
void set_allocated_body_2_name(::std::string *body_2_name)
Definition: joint_wrench.pb.h:336
const ::std::string & body_2_name() const
Definition: joint_wrench.pb.h:306
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fjoint_5fwrench_2eproto()
Definition: header.pb.h:161
STL class.
void set_body_1_name(const ::std::string &value)
Definition: joint_wrench.pb.h:252
void protobuf_AssignDesc_ignition_2fmsgs_2fjoint_5fwrench_2eproto()
void clear_header()
Definition: joint_wrench.pb.h:210
void set_body_2_id(::google::protobuf::uint32 value)
Definition: joint_wrench.pb.h:354
void set_body_2_name(const ::std::string &value)
Definition: joint_wrench.pb.h:310
::ignition::msgs::Wrench * release_body_2_wrench()
Definition: joint_wrench.pb.h:418
void set_body_1_id(::google::protobuf::uint32 value)
Definition: joint_wrench.pb.h:296
void protobuf_ShutdownFile_ignition_2fmsgs_2fjoint_5fwrench_2eproto()
int GetCachedSize() const
Definition: joint_wrench.pb.h:96
void clear_body_1_name()
Definition: joint_wrench.pb.h:245
::google::protobuf::uint32 body_2_id() const
Definition: joint_wrench.pb.h:350
::ignition::msgs::Header * release_header()
Definition: joint_wrench.pb.h:226
std::unique_ptr< JointWrench > JointWrenchUniquePtr
Definition: joint_wrench.pb.h:438
void clear_body_2_name()
Definition: joint_wrench.pb.h:303
STL class.
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: joint_wrench.pb.h:93
void set_allocated_body_1_name(::std::string *body_1_name)
Definition: joint_wrench.pb.h:278
::google::protobuf::uint32 body_1_id() const
Definition: joint_wrench.pb.h:292
const ::ignition::msgs::Wrench & body_1_wrench() const
Definition: joint_wrench.pb.h:368
bool has_body_2_wrench() const
Definition: joint_wrench.pb.h:399
void set_allocated_body_2_wrench(::ignition::msgs::Wrench *body_2_wrench)
Definition: joint_wrench.pb.h:425
void clear_body_1_wrench()
Definition: joint_wrench.pb.h:364
::ignition::msgs::Header * mutable_header()
Definition: joint_wrench.pb.h:218
std::unique_ptr< const JointWrench > ConstJointWrenchUniquePtr
Definition: joint_wrench.pb.h:439
::std::string * release_body_2_name()
Definition: joint_wrench.pb.h:331
std::shared_ptr< const JointWrench > ConstJointWrenchSharedPtr
Definition: joint_wrench.pb.h:441
::std::string * mutable_body_2_name()
Definition: joint_wrench.pb.h:326
::ignition::msgs::Wrench * mutable_body_2_wrench()
Definition: joint_wrench.pb.h:410
void set_allocated_body_1_wrench(::ignition::msgs::Wrench *body_1_wrench)
Definition: joint_wrench.pb.h:387
const ::ignition::msgs::Header & header() const
Definition: joint_wrench.pb.h:214
::ignition::msgs::Wrench * release_body_1_wrench()
Definition: joint_wrench.pb.h:380