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 < 3019000
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 3019000 < 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 uint32_t offsets[];
72 struct 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 final :
85 public ::PROTOBUF_NAMESPACE_ID::Message {
89 explicit constexpr
Surface(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
94 *
this = ::std::move(from);
102 if (
this == &from)
return *
this;
103 if (GetOwningArena() == from.GetOwningArena()
104 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
105 && GetOwningArena() !=
nullptr
115 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
116 return GetDescriptor();
119 return default_instance().GetMetadata().descriptor;
122 return default_instance().GetMetadata().reflection;
125 return *internal_default_instance();
128 return reinterpret_cast<const Surface*
>(
131 static constexpr
int kIndexInFileMessages =
138 if (other ==
this)
return;
139 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
140 if (GetOwningArena() !=
nullptr &&
141 GetOwningArena() == other->GetOwningArena()) {
143 if (GetOwningArena() == other->GetOwningArena()) {
147 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
151 if (other ==
this)
return;
152 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
158 Surface*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
159 return CreateMaybeMessage<Surface>(arena);
161 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
163 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
166 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
168 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
169 bool IsInitialized() const final;
171 size_t ByteSizeLong() const final;
172 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
173 uint8_t* _InternalSerialize(
174 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175 int GetCachedSize() const final {
return _cached_size_.Get(); }
180 void SetCachedSize(
int size)
const final;
181 void InternalSwap(
Surface* other);
184 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186 return "ignition.msgs.Surface";
189 explicit Surface(::PROTOBUF_NAMESPACE_ID::Arena* arena,
190 bool is_message_owned =
false);
192 static void ArenaDtor(
void*
object);
193 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
197 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
199 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
206 kHeaderFieldNumber = 1,
207 kFrictionFieldNumber = 2,
208 kRestitutionCoefficientFieldNumber = 3,
209 kBounceThresholdFieldNumber = 4,
210 kSoftCfmFieldNumber = 5,
211 kSoftErpFieldNumber = 6,
214 kMaxVelFieldNumber = 9,
215 kMinDepthFieldNumber = 10,
216 kCollideWithoutContactFieldNumber = 11,
217 kCollideWithoutContactBitmaskFieldNumber = 12,
218 kElasticModulusFieldNumber = 14,
219 kCollideBitmaskFieldNumber = 13,
222 bool has_header()
const;
224 bool _internal_has_header()
const;
227 const ::ignition::msgs::Header& header()
const;
228 PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
232 const ::ignition::msgs::Header& _internal_header()
const;
235 void unsafe_arena_set_allocated_header(
240 bool has_friction()
const;
242 bool _internal_has_friction()
const;
245 const ::ignition::msgs::Friction& friction()
const;
246 PROTOBUF_NODISCARD ::ignition::msgs::Friction* release_friction();
250 const ::ignition::msgs::Friction& _internal_friction()
const;
253 void unsafe_arena_set_allocated_friction(
258 void clear_restitution_coefficient();
259 double restitution_coefficient()
const;
260 void set_restitution_coefficient(
double value);
262 double _internal_restitution_coefficient()
const;
263 void _internal_set_restitution_coefficient(
double value);
267 void clear_bounce_threshold();
268 double bounce_threshold()
const;
269 void set_bounce_threshold(
double value);
271 double _internal_bounce_threshold()
const;
272 void _internal_set_bounce_threshold(
double value);
276 void clear_soft_cfm();
277 double soft_cfm()
const;
278 void set_soft_cfm(
double value);
280 double _internal_soft_cfm()
const;
281 void _internal_set_soft_cfm(
double value);
285 void clear_soft_erp();
286 double soft_erp()
const;
287 void set_soft_erp(
double value);
289 double _internal_soft_erp()
const;
290 void _internal_set_soft_erp(
double value);
296 void set_kp(
double value);
298 double _internal_kp()
const;
299 void _internal_set_kp(
double value);
305 void set_kd(
double value);
307 double _internal_kd()
const;
308 void _internal_set_kd(
double value);
312 void clear_max_vel();
313 double max_vel()
const;
314 void set_max_vel(
double value);
316 double _internal_max_vel()
const;
317 void _internal_set_max_vel(
double value);
321 void clear_min_depth();
322 double min_depth()
const;
323 void set_min_depth(
double value);
325 double _internal_min_depth()
const;
326 void _internal_set_min_depth(
double value);
330 void clear_collide_without_contact();
331 bool collide_without_contact()
const;
332 void set_collide_without_contact(
bool value);
334 bool _internal_collide_without_contact()
const;
335 void _internal_set_collide_without_contact(
bool value);
339 void clear_collide_without_contact_bitmask();
340 uint32_t collide_without_contact_bitmask()
const;
341 void set_collide_without_contact_bitmask(uint32_t value);
343 uint32_t _internal_collide_without_contact_bitmask()
const;
344 void _internal_set_collide_without_contact_bitmask(uint32_t value);
348 void clear_elastic_modulus();
349 double elastic_modulus()
const;
350 void set_elastic_modulus(
double value);
352 double _internal_elastic_modulus()
const;
353 void _internal_set_elastic_modulus(
double value);
357 void clear_collide_bitmask();
358 uint32_t collide_bitmask()
const;
359 void set_collide_bitmask(uint32_t value);
361 uint32_t _internal_collide_bitmask()
const;
362 void _internal_set_collide_bitmask(uint32_t value);
369 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
370 typedef void InternalArenaConstructable_;
371 typedef void DestructorSkippable_;
374 double restitution_coefficient_;
375 double bounce_threshold_;
382 bool collide_without_contact_;
383 uint32_t collide_without_contact_bitmask_;
384 double elastic_modulus_;
385 uint32_t collide_bitmask_;
386 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
387 friend struct ::TableStruct_ignition_2fmsgs_2fsurface_2eproto;
395 #pragma GCC diagnostic push
396 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
401 inline bool Surface::_internal_has_header()
const {
402 return this != internal_default_instance() && header_ !=
nullptr;
405 return _internal_has_header();
407 inline const ::ignition::msgs::Header& Surface::_internal_header()
const {
408 const ::ignition::msgs::Header* p = header_;
414 return _internal_header();
418 if (GetArenaForAllocation() ==
nullptr) {
419 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
433 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
434 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
435 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
436 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
438 if (GetArenaForAllocation() !=
nullptr) {
439 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
451 inline ::ignition::msgs::Header* Surface::_internal_mutable_header() {
453 if (header_ ==
nullptr) {
454 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
465 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
466 if (message_arena ==
nullptr) {
467 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
470 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
471 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
472 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
473 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header));
474 if (message_arena != submessage_arena) {
475 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
476 message_arena, header, submessage_arena);
487 inline bool Surface::_internal_has_friction()
const {
488 return this != internal_default_instance() && friction_ !=
nullptr;
491 return _internal_has_friction();
493 inline const ::ignition::msgs::Friction& Surface::_internal_friction()
const {
494 const ::ignition::msgs::Friction* p = friction_;
500 return _internal_friction();
504 if (GetArenaForAllocation() ==
nullptr) {
505 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(friction_);
507 friction_ = friction;
519 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
520 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
521 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
522 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
524 if (GetArenaForAllocation() !=
nullptr) {
525 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
537 inline ::ignition::msgs::Friction* Surface::_internal_mutable_friction() {
539 if (friction_ ==
nullptr) {
540 auto* p = CreateMaybeMessage<::ignition::msgs::Friction>(GetArenaForAllocation());
551 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
552 if (message_arena ==
nullptr) {
553 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(friction_);
556 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
557 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
558 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
559 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(friction));
560 if (message_arena != submessage_arena) {
561 friction = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
562 message_arena, friction, submessage_arena);
568 friction_ = friction;
574 restitution_coefficient_ = 0;
576 inline double Surface::_internal_restitution_coefficient()
const {
577 return restitution_coefficient_;
581 return _internal_restitution_coefficient();
583 inline void Surface::_internal_set_restitution_coefficient(
double value) {
585 restitution_coefficient_ = value;
588 _internal_set_restitution_coefficient(value);
594 bounce_threshold_ = 0;
596 inline double Surface::_internal_bounce_threshold()
const {
597 return bounce_threshold_;
601 return _internal_bounce_threshold();
603 inline void Surface::_internal_set_bounce_threshold(
double value) {
605 bounce_threshold_ = value;
608 _internal_set_bounce_threshold(value);
616 inline double Surface::_internal_soft_cfm()
const {
621 return _internal_soft_cfm();
623 inline void Surface::_internal_set_soft_cfm(
double value) {
628 _internal_set_soft_cfm(value);
636 inline double Surface::_internal_soft_erp()
const {
641 return _internal_soft_erp();
643 inline void Surface::_internal_set_soft_erp(
double value) {
648 _internal_set_soft_erp(value);
656 inline double Surface::_internal_kp()
const {
661 return _internal_kp();
663 inline void Surface::_internal_set_kp(
double value) {
668 _internal_set_kp(value);
676 inline double Surface::_internal_kd()
const {
681 return _internal_kd();
683 inline void Surface::_internal_set_kd(
double value) {
688 _internal_set_kd(value);
696 inline double Surface::_internal_max_vel()
const {
701 return _internal_max_vel();
703 inline void Surface::_internal_set_max_vel(
double value) {
708 _internal_set_max_vel(value);
716 inline double Surface::_internal_min_depth()
const {
721 return _internal_min_depth();
723 inline void Surface::_internal_set_min_depth(
double value) {
728 _internal_set_min_depth(value);
734 collide_without_contact_ =
false;
736 inline bool Surface::_internal_collide_without_contact()
const {
737 return collide_without_contact_;
741 return _internal_collide_without_contact();
743 inline void Surface::_internal_set_collide_without_contact(
bool value) {
745 collide_without_contact_ = value;
748 _internal_set_collide_without_contact(value);
754 collide_without_contact_bitmask_ = 0u;
756 inline uint32_t Surface::_internal_collide_without_contact_bitmask()
const {
757 return collide_without_contact_bitmask_;
761 return _internal_collide_without_contact_bitmask();
763 inline void Surface::_internal_set_collide_without_contact_bitmask(uint32_t value) {
765 collide_without_contact_bitmask_ = value;
768 _internal_set_collide_without_contact_bitmask(value);
774 collide_bitmask_ = 0u;
776 inline uint32_t Surface::_internal_collide_bitmask()
const {
777 return collide_bitmask_;
781 return _internal_collide_bitmask();
783 inline void Surface::_internal_set_collide_bitmask(uint32_t value) {
785 collide_bitmask_ = value;
788 _internal_set_collide_bitmask(value);
794 elastic_modulus_ = 0;
796 inline double Surface::_internal_elastic_modulus()
const {
797 return elastic_modulus_;
801 return _internal_elastic_modulus();
803 inline void Surface::_internal_set_elastic_modulus(
double value) {
805 elastic_modulus_ = value;
808 _internal_set_elastic_modulus(value);
813 #pragma GCC diagnostic pop
830 #include <google/protobuf/port_undef.inc>
Definition: friction.pb.h:440
Definition: surface.pb.h:85
double restitution_coefficient() const
Definition: surface.pb.h:579
bool collide_without_contact() const
Definition: surface.pb.h:739
void clear_collide_without_contact_bitmask()
Definition: surface.pb.h:753
void clear_bounce_threshold()
Definition: surface.pb.h:593
void set_kp(double value)
Definition: surface.pb.h:667
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: surface.pb.h:121
bool has_header() const
Definition: surface.pb.h:404
::ignition::msgs::Header * mutable_header()
Definition: surface.pb.h:459
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void clear_soft_cfm()
Definition: surface.pb.h:613
void set_collide_without_contact_bitmask(uint32_t value)
Definition: surface.pb.h:767
Surface & operator=(Surface &&from) noexcept
Definition: surface.pb.h:101
void unsafe_arena_set_allocated_friction(::ignition::msgs::Friction *friction)
Definition: surface.pb.h:502
Surface(Surface &&from) noexcept
Definition: surface.pb.h:92
void clear_kd()
Definition: surface.pb.h:673
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: surface.pb.h:115
double soft_erp() const
Definition: surface.pb.h:639
void set_restitution_coefficient(double value)
Definition: surface.pb.h:587
void clear_collide_without_contact()
Definition: surface.pb.h:733
void clear_kp()
Definition: surface.pb.h:653
void clear_min_depth()
Definition: surface.pb.h:713
static const Surface & default_instance()
Definition: surface.pb.h:124
PROTOBUF_NODISCARD ::ignition::msgs::Friction * release_friction()
Definition: surface.pb.h:515
double kp() const
Definition: surface.pb.h:659
void set_bounce_threshold(double value)
Definition: surface.pb.h:607
bool has_friction() const
Definition: surface.pb.h:490
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: surface.pb.h:416
void set_min_depth(double value)
Definition: surface.pb.h:727
friend void swap(Surface &a, Surface &b)
Definition: surface.pb.h:134
void MergeFrom(const Surface &from)
Surface()
Definition: surface.pb.h:87
::ignition::msgs::Friction * unsafe_arena_release_friction()
Definition: surface.pb.h:530
void Swap(Surface *other)
Definition: surface.pb.h:137
::ignition::msgs::Friction * mutable_friction()
Definition: surface.pb.h:545
Surface & operator=(const Surface &from)
Definition: surface.pb.h:97
void set_max_vel(double value)
Definition: surface.pb.h:707
void CopyFrom(const Surface &from)
static const Surface * internal_default_instance()
Definition: surface.pb.h:127
double min_depth() const
Definition: surface.pb.h:719
double elastic_modulus() const
Definition: surface.pb.h:799
double kd() const
Definition: surface.pb.h:679
void set_kd(double value)
Definition: surface.pb.h:687
double max_vel() const
Definition: surface.pb.h:699
void clear_elastic_modulus()
Definition: surface.pb.h:793
void set_allocated_header(::ignition::msgs::Header *header)
Definition: surface.pb.h:464
Surface(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void clear_collide_bitmask()
Definition: surface.pb.h:773
const ::ignition::msgs::Friction & friction() const
Definition: surface.pb.h:498
void set_collide_bitmask(uint32_t value)
Definition: surface.pb.h:787
constexpr Surface(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: surface.pb.h:429
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void UnsafeArenaSwap(Surface *other)
Definition: surface.pb.h:150
void set_soft_erp(double value)
Definition: surface.pb.h:647
double bounce_threshold() const
Definition: surface.pb.h:599
void clear_restitution_coefficient()
Definition: surface.pb.h:573
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: surface.pb.h:118
double soft_cfm() const
Definition: surface.pb.h:619
void set_collide_without_contact(bool value)
Definition: surface.pb.h:747
Surface(const Surface &from)
const ::ignition::msgs::Header & header() const
Definition: surface.pb.h:412
uint32_t collide_without_contact_bitmask() const
Definition: surface.pb.h:759
static const ClassData _class_data_
Definition: surface.pb.h:196
void clear_max_vel()
Definition: surface.pb.h:693
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: surface.pb.h:444
void set_allocated_friction(::ignition::msgs::Friction *friction)
Definition: surface.pb.h:550
void set_elastic_modulus(double value)
Definition: surface.pb.h:807
void clear_soft_erp()
Definition: surface.pb.h:633
void set_soft_cfm(double value)
Definition: surface.pb.h:627
uint32_t collide_bitmask() const
Definition: surface.pb.h:779
Surface * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: surface.pb.h:158
IGNITION_MSGS_VISIBLE SurfaceDefaultTypeInternal _Surface_default_instance_
std::unique_ptr< Surface > SurfaceUniquePtr
Definition: surface.pb.h:816
IGNITION_MSGS_VISIBLE FrictionDefaultTypeInternal _Friction_default_instance_
std::unique_ptr< const Surface > ConstSurfaceUniquePtr
Definition: surface.pb.h:817
std::shared_ptr< const Surface > ConstSurfaceSharedPtr
Definition: surface.pb.h:819
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< Surface > SurfaceSharedPtr
Definition: surface.pb.h:818
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