4 #ifndef PROTOBUF_ignition_2fmsgs_2fwrench_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fwrench_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
Wrench :
public ::google::protobuf::Message {
69 static const ::google::protobuf::Descriptor* descriptor();
70 static const Wrench& default_instance();
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);
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;
101 void InternalSwap(
Wrench* other);
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 bool has_force()
const;
129 static const int kForceFieldNumber = 2;
130 const ::ignition::msgs::Vector3d& force()
const;
136 bool has_torque()
const;
138 static const int kTorqueFieldNumber = 3;
139 const ::ignition::msgs::Vector3d& torque()
const;
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;
156 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
157 bool _is_default_instance_;
162 mutable int _cached_size_;
167 void InitAsDefaultInstance();
168 static Wrench* default_instance_;
175 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 180 return !_is_default_instance_ && header_ != NULL;
183 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
188 return header_ != NULL ? *header_ : *default_instance_->header_;
192 if (header_ == NULL) {
193 header_ = new ::ignition::msgs::Header;
218 return !_is_default_instance_ && force_ != NULL;
221 if (GetArenaNoVirtual() == NULL && force_ != NULL)
delete force_;
226 return force_ != NULL ? *force_ : *default_instance_->force_;
230 if (force_ == NULL) {
231 force_ = new ::ignition::msgs::Vector3d;
256 return !_is_default_instance_ && torque_ != NULL;
259 if (GetArenaNoVirtual() == NULL && torque_ != NULL)
delete torque_;
264 return torque_ != NULL ? *torque_ : *default_instance_->torque_;
268 if (torque_ == NULL) {
269 torque_ = new ::ignition::msgs::Vector3d;
294 return !_is_default_instance_ && force_offset_ != NULL;
297 if (GetArenaNoVirtual() == NULL && force_offset_ != NULL)
delete force_offset_;
298 force_offset_ = NULL;
302 return force_offset_ != NULL ? *force_offset_ : *default_instance_->force_offset_;
306 if (force_offset_ == NULL) {
307 force_offset_ = new ::ignition::msgs::Vector3d;
310 return force_offset_;
316 force_offset_ = NULL;
320 delete force_offset_;
321 force_offset_ = force_offset;
330 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 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
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
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