4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fsurface_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fsurface_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_2fsurface_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 SurfaceDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Surface* Arena::CreateMaybeMessage<::ignition::msgs::Surface>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
84 class IGNITION_MSGS_VISIBLE Surface 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 Surface*
>(
124 static constexpr
int kIndexInFileMessages =
127 friend void swap(Surface& a, Surface& b) {
130 inline void Swap(Surface* 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 Surface*
New() const final {
147 return CreateMaybeMessage<Surface>(
nullptr);
150 Surface*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
151 return CreateMaybeMessage<Surface>(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(Surface* other);
171 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
172 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
173 return "ignition.msgs.Surface";
176 explicit Surface(::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 kFrictionFieldNumber = 2,
198 kRestitutionCoefficientFieldNumber = 3,
199 kBounceThresholdFieldNumber = 4,
200 kSoftCfmFieldNumber = 5,
201 kSoftErpFieldNumber = 6,
204 kMaxVelFieldNumber = 9,
205 kMinDepthFieldNumber = 10,
206 kCollideWithoutContactFieldNumber = 11,
207 kCollideWithoutContactBitmaskFieldNumber = 12,
208 kElasticModulusFieldNumber = 14,
209 kCollideBitmaskFieldNumber = 13,
214 bool _internal_has_header()
const;
217 const ::ignition::msgs::Header&
header()
const;
222 const ::ignition::msgs::Header& _internal_header()
const;
223 ::ignition::msgs::Header* _internal_mutable_header();
226 ::ignition::msgs::Header* header);
232 bool _internal_has_friction()
const;
235 const ::ignition::msgs::Friction&
friction()
const;
240 const ::ignition::msgs::Friction& _internal_friction()
const;
241 ::ignition::msgs::Friction* _internal_mutable_friction();
244 ::ignition::msgs::Friction* friction);
252 double _internal_restitution_coefficient()
const;
253 void _internal_set_restitution_coefficient(
double value);
261 double _internal_bounce_threshold()
const;
262 void _internal_set_bounce_threshold(
double value);
270 double _internal_soft_cfm()
const;
271 void _internal_set_soft_cfm(
double value);
279 double _internal_soft_erp()
const;
280 void _internal_set_soft_erp(
double value);
288 double _internal_kp()
const;
289 void _internal_set_kp(
double value);
297 double _internal_kd()
const;
298 void _internal_set_kd(
double value);
306 double _internal_max_vel()
const;
307 void _internal_set_max_vel(
double value);
315 double _internal_min_depth()
const;
316 void _internal_set_min_depth(
double value);
324 bool _internal_collide_without_contact()
const;
325 void _internal_set_collide_without_contact(
bool value);
333 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_collide_without_contact_bitmask()
const;
334 void _internal_set_collide_without_contact_bitmask(::PROTOBUF_NAMESPACE_ID::uint32 value);
342 double _internal_elastic_modulus()
const;
343 void _internal_set_elastic_modulus(
double value);
351 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_collide_bitmask()
const;
352 void _internal_set_collide_bitmask(::PROTOBUF_NAMESPACE_ID::uint32 value);
359 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
360 typedef void InternalArenaConstructable_;
361 typedef void DestructorSkippable_;
362 ::ignition::msgs::Header* header_;
363 ::ignition::msgs::Friction* friction_;
364 double restitution_coefficient_;
365 double bounce_threshold_;
372 bool collide_without_contact_;
373 ::PROTOBUF_NAMESPACE_ID::uint32 collide_without_contact_bitmask_;
374 double elastic_modulus_;
375 ::PROTOBUF_NAMESPACE_ID::uint32 collide_bitmask_;
376 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
377 friend struct ::TableStruct_ignition_2fmsgs_2fsurface_2eproto;
385 #pragma GCC diagnostic push
386 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
391 inline bool Surface::_internal_has_header()
const {
392 return this != internal_default_instance() && header_ !=
nullptr;
394 inline bool Surface::has_header()
const {
395 return _internal_has_header();
397 inline const ::ignition::msgs::Header& Surface::_internal_header()
const {
398 const ::ignition::msgs::Header* p = header_;
399 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
402 inline const ::ignition::msgs::Header& Surface::header()
const {
404 return _internal_header();
406 inline void Surface::unsafe_arena_set_allocated_header(
407 ::ignition::msgs::Header* header) {
408 if (GetArena() ==
nullptr) {
409 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
419 inline ::ignition::msgs::Header* Surface::release_header() {
421 ::ignition::msgs::Header* temp = header_;
423 if (GetArena() !=
nullptr) {
424 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
428 inline ::ignition::msgs::Header* Surface::unsafe_arena_release_header() {
431 ::ignition::msgs::Header* temp = header_;
435 inline ::ignition::msgs::Header* Surface::_internal_mutable_header() {
437 if (header_ ==
nullptr) {
438 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
443 inline ::ignition::msgs::Header* Surface::mutable_header() {
445 return _internal_mutable_header();
447 inline void Surface::set_allocated_header(::ignition::msgs::Header* header) {
448 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
449 if (message_arena ==
nullptr) {
450 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
453 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
454 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
455 if (message_arena != submessage_arena) {
456 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
457 message_arena, header, submessage_arena);
468 inline bool Surface::_internal_has_friction()
const {
469 return this != internal_default_instance() && friction_ !=
nullptr;
471 inline bool Surface::has_friction()
const {
472 return _internal_has_friction();
474 inline const ::ignition::msgs::Friction& Surface::_internal_friction()
const {
475 const ::ignition::msgs::Friction* p = friction_;
476 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Friction&
>(
479 inline const ::ignition::msgs::Friction& Surface::friction()
const {
481 return _internal_friction();
483 inline void Surface::unsafe_arena_set_allocated_friction(
484 ::ignition::msgs::Friction* friction) {
485 if (GetArena() ==
nullptr) {
486 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(friction_);
488 friction_ = friction;
496 inline ::ignition::msgs::Friction* Surface::release_friction() {
498 ::ignition::msgs::Friction* temp = friction_;
500 if (GetArena() !=
nullptr) {
501 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
505 inline ::ignition::msgs::Friction* Surface::unsafe_arena_release_friction() {
508 ::ignition::msgs::Friction* temp = friction_;
512 inline ::ignition::msgs::Friction* Surface::_internal_mutable_friction() {
514 if (friction_ ==
nullptr) {
515 auto* p = CreateMaybeMessage<::ignition::msgs::Friction>(GetArena());
520 inline ::ignition::msgs::Friction* Surface::mutable_friction() {
522 return _internal_mutable_friction();
524 inline void Surface::set_allocated_friction(::ignition::msgs::Friction* friction) {
525 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
526 if (message_arena ==
nullptr) {
527 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(friction_);
530 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
531 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(friction)->GetArena();
532 if (message_arena != submessage_arena) {
533 friction = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
534 message_arena, friction, submessage_arena);
540 friction_ = friction;
545 inline void Surface::clear_restitution_coefficient() {
546 restitution_coefficient_ = 0;
548 inline double Surface::_internal_restitution_coefficient()
const {
549 return restitution_coefficient_;
551 inline double Surface::restitution_coefficient()
const {
553 return _internal_restitution_coefficient();
555 inline void Surface::_internal_set_restitution_coefficient(
double value) {
557 restitution_coefficient_ = value;
559 inline void Surface::set_restitution_coefficient(
double value) {
560 _internal_set_restitution_coefficient(value);
565 inline void Surface::clear_bounce_threshold() {
566 bounce_threshold_ = 0;
568 inline double Surface::_internal_bounce_threshold()
const {
569 return bounce_threshold_;
571 inline double Surface::bounce_threshold()
const {
573 return _internal_bounce_threshold();
575 inline void Surface::_internal_set_bounce_threshold(
double value) {
577 bounce_threshold_ = value;
579 inline void Surface::set_bounce_threshold(
double value) {
580 _internal_set_bounce_threshold(value);
585 inline void Surface::clear_soft_cfm() {
588 inline double Surface::_internal_soft_cfm()
const {
591 inline double Surface::soft_cfm()
const {
593 return _internal_soft_cfm();
595 inline void Surface::_internal_set_soft_cfm(
double value) {
599 inline void Surface::set_soft_cfm(
double value) {
600 _internal_set_soft_cfm(value);
605 inline void Surface::clear_soft_erp() {
608 inline double Surface::_internal_soft_erp()
const {
611 inline double Surface::soft_erp()
const {
613 return _internal_soft_erp();
615 inline void Surface::_internal_set_soft_erp(
double value) {
619 inline void Surface::set_soft_erp(
double value) {
620 _internal_set_soft_erp(value);
625 inline void Surface::clear_kp() {
628 inline double Surface::_internal_kp()
const {
631 inline double Surface::kp()
const {
633 return _internal_kp();
635 inline void Surface::_internal_set_kp(
double value) {
639 inline void Surface::set_kp(
double value) {
640 _internal_set_kp(value);
645 inline void Surface::clear_kd() {
648 inline double Surface::_internal_kd()
const {
651 inline double Surface::kd()
const {
653 return _internal_kd();
655 inline void Surface::_internal_set_kd(
double value) {
659 inline void Surface::set_kd(
double value) {
660 _internal_set_kd(value);
665 inline void Surface::clear_max_vel() {
668 inline double Surface::_internal_max_vel()
const {
671 inline double Surface::max_vel()
const {
673 return _internal_max_vel();
675 inline void Surface::_internal_set_max_vel(
double value) {
679 inline void Surface::set_max_vel(
double value) {
680 _internal_set_max_vel(value);
685 inline void Surface::clear_min_depth() {
688 inline double Surface::_internal_min_depth()
const {
691 inline double Surface::min_depth()
const {
693 return _internal_min_depth();
695 inline void Surface::_internal_set_min_depth(
double value) {
699 inline void Surface::set_min_depth(
double value) {
700 _internal_set_min_depth(value);
705 inline void Surface::clear_collide_without_contact() {
706 collide_without_contact_ =
false;
708 inline bool Surface::_internal_collide_without_contact()
const {
709 return collide_without_contact_;
711 inline bool Surface::collide_without_contact()
const {
713 return _internal_collide_without_contact();
715 inline void Surface::_internal_set_collide_without_contact(
bool value) {
717 collide_without_contact_ = value;
719 inline void Surface::set_collide_without_contact(
bool value) {
720 _internal_set_collide_without_contact(value);
725 inline void Surface::clear_collide_without_contact_bitmask() {
726 collide_without_contact_bitmask_ = 0u;
728 inline ::PROTOBUF_NAMESPACE_ID::uint32 Surface::_internal_collide_without_contact_bitmask()
const {
729 return collide_without_contact_bitmask_;
731 inline ::PROTOBUF_NAMESPACE_ID::uint32 Surface::collide_without_contact_bitmask()
const {
733 return _internal_collide_without_contact_bitmask();
735 inline void Surface::_internal_set_collide_without_contact_bitmask(::PROTOBUF_NAMESPACE_ID::uint32 value) {
737 collide_without_contact_bitmask_ = value;
739 inline void Surface::set_collide_without_contact_bitmask(::PROTOBUF_NAMESPACE_ID::uint32 value) {
740 _internal_set_collide_without_contact_bitmask(value);
745 inline void Surface::clear_collide_bitmask() {
746 collide_bitmask_ = 0u;
748 inline ::PROTOBUF_NAMESPACE_ID::uint32 Surface::_internal_collide_bitmask()
const {
749 return collide_bitmask_;
751 inline ::PROTOBUF_NAMESPACE_ID::uint32 Surface::collide_bitmask()
const {
753 return _internal_collide_bitmask();
755 inline void Surface::_internal_set_collide_bitmask(::PROTOBUF_NAMESPACE_ID::uint32 value) {
757 collide_bitmask_ = value;
759 inline void Surface::set_collide_bitmask(::PROTOBUF_NAMESPACE_ID::uint32 value) {
760 _internal_set_collide_bitmask(value);
765 inline void Surface::clear_elastic_modulus() {
766 elastic_modulus_ = 0;
768 inline double Surface::_internal_elastic_modulus()
const {
769 return elastic_modulus_;
771 inline double Surface::elastic_modulus()
const {
773 return _internal_elastic_modulus();
775 inline void Surface::_internal_set_elastic_modulus(
double value) {
777 elastic_modulus_ = value;
779 inline void Surface::set_elastic_modulus(
double value) {
780 _internal_set_elastic_modulus(value);
785 #pragma GCC diagnostic pop
802 #include <google/protobuf/port_undef.inc>
double restitution_coefficient() const
const ::ignition::msgs::Friction & friction() const
bool collide_without_contact() const
void clear_collide_without_contact_bitmask()
void clear_bounce_threshold()
void set_kp(double value)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: surface.pb.h:115
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
Surface & operator=(Surface &&from) noexcept
Definition: surface.pb.h:100
void unsafe_arena_set_allocated_friction(::ignition::msgs::Friction *friction)
Surface(Surface &&from) noexcept
Definition: surface.pb.h:91
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: surface.pb.h:109
void set_collide_bitmask(::PROTOBUF_NAMESPACE_ID::uint32 value)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_restitution_coefficient(double value)
void clear_collide_without_contact()
Surface(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const Surface & default_instance()
Surface * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: surface.pb.h:150
void set_bounce_threshold(double value)
bool has_friction() const
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
void set_min_depth(double value)
friend void swap(Surface &a, Surface &b)
Definition: surface.pb.h:127
void MergeFrom(const Surface &from)
Surface()
Definition: surface.pb.h:87
void Swap(Surface *other)
Definition: surface.pb.h:130
::PROTOBUF_NAMESPACE_ID::uint32 collide_without_contact_bitmask() const
Surface & operator=(const Surface &from)
Definition: surface.pb.h:96
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_max_vel(double value)
void CopyFrom(const Surface &from)
void set_collide_without_contact_bitmask(::PROTOBUF_NAMESPACE_ID::uint32 value)
static const Surface * internal_default_instance()
Definition: surface.pb.h:120
double elastic_modulus() const
void set_kd(double value)
void clear_elastic_modulus()
void set_allocated_header(::ignition::msgs::Header *header)
::ignition::msgs::Friction * mutable_friction()
void clear_collide_bitmask()
void UnsafeArenaSwap(Surface *other)
Definition: surface.pb.h:138
void set_soft_erp(double value)
double bounce_threshold() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void clear_restitution_coefficient()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: surface.pb.h:112
void set_collide_without_contact(bool value)
Surface(const Surface &from)
::ignition::msgs::Friction * release_friction()
void set_allocated_friction(::ignition::msgs::Friction *friction)
::PROTOBUF_NAMESPACE_ID::uint32 collide_bitmask() const
void set_elastic_modulus(double value)
void set_soft_cfm(double value)
::ignition::msgs::Friction * unsafe_arena_release_friction()
const ::ignition::msgs::Header & header() const
Surface * New() const final
Definition: surface.pb.h:146
IGNITION_MSGS_VISIBLE SurfaceDefaultTypeInternal _Surface_default_instance_
std::unique_ptr< Surface > SurfaceUniquePtr
Definition: surface.pb.h:788
IGNITION_MSGS_VISIBLE FrictionDefaultTypeInternal _Friction_default_instance_
std::unique_ptr< const Surface > ConstSurfaceUniquePtr
Definition: surface.pb.h:789
std::shared_ptr< const Surface > ConstSurfaceSharedPtr
Definition: surface.pb.h:791
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< Surface > SurfaceSharedPtr
Definition: surface.pb.h:790
Definition: actor.pb.h:52
Definition: surface.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_2fsurface_2eproto