4 #ifndef PROTOBUF_ignition_2fmsgs_2fjoint_5fwrench_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fjoint_5fwrench_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 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 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. 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> 33 #pragma GCC system_header 36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 39 #include <sys/sysmacros.h> 57 class IGNITION_MSGS_VISIBLE
JointWrench :
public ::google::protobuf::Message {
69 static const ::google::protobuf::Descriptor* descriptor();
78 JointWrench* New(::google::protobuf::Arena* arena)
const;
79 void CopyFrom(const ::google::protobuf::Message& from);
80 void MergeFrom(const ::google::protobuf::Message& from);
84 bool IsInitialized()
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;
94 return InternalSerializeWithCachedSizesToArray(
false, output);
100 void SetCachedSize(
int size)
const;
103 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
104 return _internal_metadata_.arena();
106 inline void* MaybeArenaPtr()
const {
107 return _internal_metadata_.raw_arena_ptr();
111 ::google::protobuf::Metadata GetMetadata()
const;
118 bool has_header()
const;
120 static const int kHeaderFieldNumber = 1;
121 const ::ignition::msgs::Header& header()
const;
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);
135 void set_allocated_body_1_name(::
std::string* body_1_name);
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);
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);
152 void set_allocated_body_2_name(::
std::string* body_2_name);
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);
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;
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;
181 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
182 bool _is_default_instance_;
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_;
190 mutable int _cached_size_;
195 void InitAsDefaultInstance();
203 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 208 return !_is_default_instance_ && header_ != NULL;
211 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
216 return header_ != NULL ? *header_ : *default_instance_->header_;
220 if (header_ == NULL) {
221 header_ = new ::ignition::msgs::Header;
246 body_1_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
250 return body_1_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
254 body_1_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
259 body_1_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
264 body_1_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
265 ::
std::string(reinterpret_cast<const char*>(value), size));
271 return body_1_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
276 return body_1_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
279 if (body_1_name != NULL) {
284 body_1_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body_1_name);
304 body_2_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
308 return body_2_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
312 body_2_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
317 body_2_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
322 body_2_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
323 ::
std::string(reinterpret_cast<const char*>(value), size));
329 return body_2_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
334 return body_2_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
337 if (body_2_name != NULL) {
342 body_2_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body_2_name);
362 return !_is_default_instance_ && body_1_wrench_ != NULL;
365 if (GetArenaNoVirtual() == NULL && body_1_wrench_ != NULL)
delete body_1_wrench_;
366 body_1_wrench_ = NULL;
370 return body_1_wrench_ != NULL ? *body_1_wrench_ : *default_instance_->body_1_wrench_;
374 if (body_1_wrench_ == NULL) {
375 body_1_wrench_ = new ::ignition::msgs::Wrench;
378 return body_1_wrench_;
384 body_1_wrench_ = NULL;
388 delete body_1_wrench_;
389 body_1_wrench_ = body_1_wrench;
400 return !_is_default_instance_ && body_2_wrench_ != NULL;
403 if (GetArenaNoVirtual() == NULL && body_2_wrench_ != NULL)
delete body_2_wrench_;
404 body_2_wrench_ = NULL;
408 return body_2_wrench_ != NULL ? *body_2_wrench_ : *default_instance_->body_2_wrench_;
412 if (body_2_wrench_ == NULL) {
413 body_2_wrench_ = new ::ignition::msgs::Wrench;
416 return body_2_wrench_;
422 body_2_wrench_ = NULL;
426 delete body_2_wrench_;
427 body_2_wrench_ = body_2_wrench;
436 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 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()
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
::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