4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fwrench_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fwrench_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
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 3014000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/unknown_field_set.h>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fwrench_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
54 PROTOBUF_NAMESPACE_CLOSE
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
72 class WrenchDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Wrench* Arena::CreateMaybeMessage<::ignition::msgs::Wrench>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
84 class IGNITION_MSGS_VISIBLE Wrench PROTOBUF_FINAL :
85 public ::PROTOBUF_NAMESPACE_ID::Message {
93 *
this = ::std::move(from);
101 if (GetArena() == from.GetArena()) {
102 if (
this != &from) InternalSwap(&from);
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
110 return GetDescriptor();
113 return GetMetadataStatic().descriptor;
116 return GetMetadataStatic().reflection;
121 return reinterpret_cast<const Wrench*
>(
124 static constexpr
int kIndexInFileMessages =
127 friend void swap(Wrench& a, Wrench& b) {
130 inline void Swap(Wrench* other) {
131 if (other ==
this)
return;
132 if (GetArena() == other->GetArena()) {
135 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
139 if (other ==
this)
return;
140 GOOGLE_DCHECK(GetArena() == other->GetArena());
146 inline Wrench*
New() const final {
147 return CreateMaybeMessage<Wrench>(
nullptr);
150 Wrench*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
151 return CreateMaybeMessage<Wrench>(arena);
153 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
154 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
157 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
158 bool IsInitialized() const final;
160 size_t ByteSizeLong() const final;
161 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
162 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
163 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
164 int GetCachedSize() const final {
return _cached_size_.Get(); }
167 inline void SharedCtor();
168 inline void SharedDtor();
169 void SetCachedSize(
int size)
const final;
170 void InternalSwap(Wrench* other);
171 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
172 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
173 return "ignition.msgs.Wrench";
176 explicit Wrench(::PROTOBUF_NAMESPACE_ID::Arena* arena);
178 static void ArenaDtor(
void*
object);
179 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
184 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
196 kHeaderFieldNumber = 1,
197 kForceFieldNumber = 2,
198 kTorqueFieldNumber = 3,
199 kForceOffsetFieldNumber = 4,
204 bool _internal_has_header()
const;
207 const ::ignition::msgs::Header&
header()
const;
212 const ::ignition::msgs::Header& _internal_header()
const;
213 ::ignition::msgs::Header* _internal_mutable_header();
216 ::ignition::msgs::Header* header);
222 bool _internal_has_force()
const;
225 const ::ignition::msgs::Vector3d&
force()
const;
230 const ::ignition::msgs::Vector3d& _internal_force()
const;
231 ::ignition::msgs::Vector3d* _internal_mutable_force();
234 ::ignition::msgs::Vector3d* force);
240 bool _internal_has_torque()
const;
243 const ::ignition::msgs::Vector3d&
torque()
const;
248 const ::ignition::msgs::Vector3d& _internal_torque()
const;
249 ::ignition::msgs::Vector3d* _internal_mutable_torque();
252 ::ignition::msgs::Vector3d* torque);
258 bool _internal_has_force_offset()
const;
266 const ::ignition::msgs::Vector3d& _internal_force_offset()
const;
267 ::ignition::msgs::Vector3d* _internal_mutable_force_offset();
270 ::ignition::msgs::Vector3d* force_offset);
277 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
278 typedef void InternalArenaConstructable_;
279 typedef void DestructorSkippable_;
280 ::ignition::msgs::Header* header_;
281 ::ignition::msgs::Vector3d* force_;
282 ::ignition::msgs::Vector3d* torque_;
283 ::ignition::msgs::Vector3d* force_offset_;
284 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
285 friend struct ::TableStruct_ignition_2fmsgs_2fwrench_2eproto;
293 #pragma GCC diagnostic push
294 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
299 inline bool Wrench::_internal_has_header()
const {
300 return this != internal_default_instance() && header_ !=
nullptr;
302 inline bool Wrench::has_header()
const {
303 return _internal_has_header();
305 inline const ::ignition::msgs::Header& Wrench::_internal_header()
const {
306 const ::ignition::msgs::Header* p = header_;
307 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
310 inline const ::ignition::msgs::Header& Wrench::header()
const {
312 return _internal_header();
314 inline void Wrench::unsafe_arena_set_allocated_header(
315 ::ignition::msgs::Header* header) {
316 if (GetArena() ==
nullptr) {
317 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
327 inline ::ignition::msgs::Header* Wrench::release_header() {
329 ::ignition::msgs::Header* temp = header_;
331 if (GetArena() !=
nullptr) {
332 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
336 inline ::ignition::msgs::Header* Wrench::unsafe_arena_release_header() {
339 ::ignition::msgs::Header* temp = header_;
343 inline ::ignition::msgs::Header* Wrench::_internal_mutable_header() {
345 if (header_ ==
nullptr) {
346 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
351 inline ::ignition::msgs::Header* Wrench::mutable_header() {
353 return _internal_mutable_header();
355 inline void Wrench::set_allocated_header(::ignition::msgs::Header* header) {
356 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
357 if (message_arena ==
nullptr) {
358 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
361 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
362 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
363 if (message_arena != submessage_arena) {
364 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
365 message_arena, header, submessage_arena);
376 inline bool Wrench::_internal_has_force()
const {
377 return this != internal_default_instance() && force_ !=
nullptr;
379 inline bool Wrench::has_force()
const {
380 return _internal_has_force();
382 inline const ::ignition::msgs::Vector3d& Wrench::_internal_force()
const {
383 const ::ignition::msgs::Vector3d* p = force_;
384 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Vector3d&
>(
387 inline const ::ignition::msgs::Vector3d& Wrench::force()
const {
389 return _internal_force();
391 inline void Wrench::unsafe_arena_set_allocated_force(
392 ::ignition::msgs::Vector3d* force) {
393 if (GetArena() ==
nullptr) {
394 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(force_);
404 inline ::ignition::msgs::Vector3d* Wrench::release_force() {
406 ::ignition::msgs::Vector3d* temp = force_;
408 if (GetArena() !=
nullptr) {
409 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
413 inline ::ignition::msgs::Vector3d* Wrench::unsafe_arena_release_force() {
416 ::ignition::msgs::Vector3d* temp = force_;
420 inline ::ignition::msgs::Vector3d* Wrench::_internal_mutable_force() {
422 if (force_ ==
nullptr) {
423 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArena());
428 inline ::ignition::msgs::Vector3d* Wrench::mutable_force() {
430 return _internal_mutable_force();
432 inline void Wrench::set_allocated_force(::ignition::msgs::Vector3d* force) {
433 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
434 if (message_arena ==
nullptr) {
435 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(force_);
438 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
439 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(force)->GetArena();
440 if (message_arena != submessage_arena) {
441 force = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
442 message_arena, force, submessage_arena);
453 inline bool Wrench::_internal_has_torque()
const {
454 return this != internal_default_instance() && torque_ !=
nullptr;
456 inline bool Wrench::has_torque()
const {
457 return _internal_has_torque();
459 inline const ::ignition::msgs::Vector3d& Wrench::_internal_torque()
const {
460 const ::ignition::msgs::Vector3d* p = torque_;
461 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Vector3d&
>(
464 inline const ::ignition::msgs::Vector3d& Wrench::torque()
const {
466 return _internal_torque();
468 inline void Wrench::unsafe_arena_set_allocated_torque(
469 ::ignition::msgs::Vector3d* torque) {
470 if (GetArena() ==
nullptr) {
471 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(torque_);
481 inline ::ignition::msgs::Vector3d* Wrench::release_torque() {
483 ::ignition::msgs::Vector3d* temp = torque_;
485 if (GetArena() !=
nullptr) {
486 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
490 inline ::ignition::msgs::Vector3d* Wrench::unsafe_arena_release_torque() {
493 ::ignition::msgs::Vector3d* temp = torque_;
497 inline ::ignition::msgs::Vector3d* Wrench::_internal_mutable_torque() {
499 if (torque_ ==
nullptr) {
500 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArena());
505 inline ::ignition::msgs::Vector3d* Wrench::mutable_torque() {
507 return _internal_mutable_torque();
509 inline void Wrench::set_allocated_torque(::ignition::msgs::Vector3d* torque) {
510 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
511 if (message_arena ==
nullptr) {
512 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(torque_);
515 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
516 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(torque)->GetArena();
517 if (message_arena != submessage_arena) {
518 torque = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
519 message_arena, torque, submessage_arena);
530 inline bool Wrench::_internal_has_force_offset()
const {
531 return this != internal_default_instance() && force_offset_ !=
nullptr;
533 inline bool Wrench::has_force_offset()
const {
534 return _internal_has_force_offset();
536 inline const ::ignition::msgs::Vector3d& Wrench::_internal_force_offset()
const {
537 const ::ignition::msgs::Vector3d* p = force_offset_;
538 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Vector3d&
>(
541 inline const ::ignition::msgs::Vector3d& Wrench::force_offset()
const {
543 return _internal_force_offset();
545 inline void Wrench::unsafe_arena_set_allocated_force_offset(
546 ::ignition::msgs::Vector3d* force_offset) {
547 if (GetArena() ==
nullptr) {
548 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(force_offset_);
550 force_offset_ = force_offset;
558 inline ::ignition::msgs::Vector3d* Wrench::release_force_offset() {
560 ::ignition::msgs::Vector3d* temp = force_offset_;
561 force_offset_ =
nullptr;
562 if (GetArena() !=
nullptr) {
563 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
567 inline ::ignition::msgs::Vector3d* Wrench::unsafe_arena_release_force_offset() {
570 ::ignition::msgs::Vector3d* temp = force_offset_;
571 force_offset_ =
nullptr;
574 inline ::ignition::msgs::Vector3d* Wrench::_internal_mutable_force_offset() {
576 if (force_offset_ ==
nullptr) {
577 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArena());
580 return force_offset_;
582 inline ::ignition::msgs::Vector3d* Wrench::mutable_force_offset() {
584 return _internal_mutable_force_offset();
586 inline void Wrench::set_allocated_force_offset(::ignition::msgs::Vector3d* force_offset) {
587 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
588 if (message_arena ==
nullptr) {
589 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(force_offset_);
592 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
593 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(force_offset)->GetArena();
594 if (message_arena != submessage_arena) {
595 force_offset = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
596 message_arena, force_offset, submessage_arena);
602 force_offset_ = force_offset;
607 #pragma GCC diagnostic pop
624 #include <google/protobuf/port_undef.inc>
const ::ignition::msgs::Vector3d & torque() const
void unsafe_arena_set_allocated_torque(::ignition::msgs::Vector3d *torque)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: wrench.pb.h:115
Wrench(Wrench &&from) noexcept
Definition: wrench.pb.h:91
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
void unsafe_arena_set_allocated_force(::ignition::msgs::Vector3d *force)
void clear_force_offset()
::ignition::msgs::Header * mutable_header()
::ignition::msgs::Vector3d * release_torque()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: wrench.pb.h:109
static const Wrench * internal_default_instance()
Definition: wrench.pb.h:120
Wrench(const Wrench &from)
static const Wrench & default_instance()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
::ignition::msgs::Vector3d * release_force_offset()
void Swap(Wrench *other)
Definition: wrench.pb.h:130
void set_allocated_torque(::ignition::msgs::Vector3d *torque)
::ignition::msgs::Vector3d * mutable_torque()
Wrench()
Definition: wrench.pb.h:87
bool has_force_offset() const
void set_allocated_force(::ignition::msgs::Vector3d *force)
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
const ::ignition::msgs::Vector3d & force_offset() const
void UnsafeArenaSwap(Wrench *other)
Definition: wrench.pb.h:138
friend void swap(Wrench &a, Wrench &b)
Definition: wrench.pb.h:127
Wrench & operator=(const Wrench &from)
Definition: wrench.pb.h:96
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Wrench & operator=(Wrench &&from) noexcept
Definition: wrench.pb.h:100
void set_allocated_header(::ignition::msgs::Header *header)
void unsafe_arena_set_allocated_force_offset(::ignition::msgs::Vector3d *force_offset)
::ignition::msgs::Vector3d * unsafe_arena_release_force()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::ignition::msgs::Vector3d * mutable_force_offset()
::ignition::msgs::Vector3d * mutable_force()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: wrench.pb.h:112
void CopyFrom(const Wrench &from)
::ignition::msgs::Vector3d * unsafe_arena_release_force_offset()
Wrench * New() const final
Definition: wrench.pb.h:146
const ::ignition::msgs::Vector3d & force() const
void MergeFrom(const Wrench &from)
void set_allocated_force_offset(::ignition::msgs::Vector3d *force_offset)
::ignition::msgs::Vector3d * release_force()
::ignition::msgs::Vector3d * unsafe_arena_release_torque()
const ::ignition::msgs::Header & header() const
Wrench * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: wrench.pb.h:150
Wrench(::PROTOBUF_NAMESPACE_ID::Arena *arena)
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
std::unique_ptr< Wrench > WrenchUniquePtr
Definition: wrench.pb.h:610
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< Wrench > WrenchSharedPtr
Definition: wrench.pb.h:612
IGNITION_MSGS_VISIBLE WrenchDefaultTypeInternal _Wrench_default_instance_
std::shared_ptr< const Wrench > ConstWrenchSharedPtr
Definition: wrench.pb.h:613
std::unique_ptr< const Wrench > ConstWrenchUniquePtr
Definition: wrench.pb.h:611
Definition: actor.pb.h:52
Definition: wrench.pb.h:57
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fwrench_2eproto