Go to the documentation of this file.
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fsurface_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fsurface_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
36 #pragma GCC system_header
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
42 #include <sys/sysmacros.h>
47 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fsurface_2eproto IGNITION_MSGS_VISIBLE
52 static const ::google::protobuf::internal::ParseTableField entries[];
53 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
54 static const ::google::protobuf::internal::ParseTable schema[1];
55 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
56 static const ::google::protobuf::internal::SerializationTable serialization_table[];
57 static const ::google::protobuf::uint32 offsets[];
64 class SurfaceDefaultTypeInternal;
70 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Surface* Arena::CreateMaybeMessage<::ignition::msgs::Surface>(Arena*);
78 class IGNITION_MSGS_VISIBLE
Surface :
public ::google::protobuf::Message {
92 *
this = ::std::move(from);
95 inline Surface& operator=(Surface&& from) noexcept {
96 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
97 if (
this != &from) InternalSwap(&from);
104 static const ::google::protobuf::Descriptor* descriptor();
105 static const Surface& default_instance();
107 static void InitAsDefaultInstance();
109 return reinterpret_cast<const Surface*
>(
112 static constexpr
int kIndexInFileMessages =
123 return CreateMaybeMessage<Surface>(NULL);
127 return CreateMaybeMessage<Surface>(arena);
129 void CopyFrom(const ::google::protobuf::Message& from)
final;
130 void MergeFrom(const ::google::protobuf::Message& from)
final;
131 void CopyFrom(
const Surface& from);
132 void MergeFrom(
const Surface& from);
134 bool IsInitialized() const final;
136 size_t ByteSizeLong() const final;
137 bool MergePartialFromCodedStream(
138 ::
google::protobuf::io::CodedInputStream* input) final;
139 void SerializeWithCachedSizes(
140 ::
google::protobuf::io::CodedOutputStream* output) const final;
141 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
142 bool deterministic, ::
google::protobuf::uint8* target) const final;
143 int GetCachedSize() const final {
return _cached_size_.Get(); }
148 void SetCachedSize(
int size)
const final;
149 void InternalSwap(
Surface* other);
151 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
154 inline void* MaybeArenaPtr()
const {
159 ::google::protobuf::Metadata GetMetadata() const final;
166 bool has_header() const;
168 static const
int kHeaderFieldNumber = 1;
178 bool has_friction() const;
179 void clear_friction();
180 static const
int kFrictionFieldNumber = 2;
190 void clear_restitution_coefficient();
191 static const
int kRestitutionCoefficientFieldNumber = 3;
192 double restitution_coefficient() const;
193 void set_restitution_coefficient(
double value);
196 void clear_bounce_threshold();
197 static const
int kBounceThresholdFieldNumber = 4;
198 double bounce_threshold() const;
199 void set_bounce_threshold(
double value);
202 void clear_soft_cfm();
203 static const
int kSoftCfmFieldNumber = 5;
204 double soft_cfm() const;
205 void set_soft_cfm(
double value);
208 void clear_soft_erp();
209 static const
int kSoftErpFieldNumber = 6;
210 double soft_erp() const;
211 void set_soft_erp(
double value);
215 static const
int kKpFieldNumber = 7;
217 void set_kp(
double value);
221 static const
int kKdFieldNumber = 8;
223 void set_kd(
double value);
226 void clear_max_vel();
227 static const
int kMaxVelFieldNumber = 9;
228 double max_vel() const;
229 void set_max_vel(
double value);
232 void clear_min_depth();
233 static const
int kMinDepthFieldNumber = 10;
234 double min_depth() const;
235 void set_min_depth(
double value);
238 void clear_collide_without_contact();
239 static const
int kCollideWithoutContactFieldNumber = 11;
240 bool collide_without_contact() const;
241 void set_collide_without_contact(
bool value);
244 void clear_collide_without_contact_bitmask();
245 static const
int kCollideWithoutContactBitmaskFieldNumber = 12;
246 ::
google::protobuf::uint32 collide_without_contact_bitmask() const;
247 void set_collide_without_contact_bitmask(::
google::protobuf::uint32 value);
250 void clear_elastic_modulus();
251 static const
int kElasticModulusFieldNumber = 14;
252 double elastic_modulus() const;
253 void set_elastic_modulus(
double value);
256 void clear_collide_bitmask();
257 static const
int kCollideBitmaskFieldNumber = 13;
258 ::
google::protobuf::uint32 collide_bitmask() const;
259 void set_collide_bitmask(::
google::protobuf::uint32 value);
264 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
267 double restitution_coefficient_;
268 double bounce_threshold_;
275 bool collide_without_contact_;
276 ::
google::protobuf::uint32 collide_without_contact_bitmask_;
277 double elastic_modulus_;
278 ::
google::protobuf::uint32 collide_bitmask_;
279 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
288 #pragma GCC diagnostic push
289 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
295 return this != internal_default_instance() && header_ != NULL;
297 inline const ::ignition::msgs::Header& Surface::_internal_header()
const {
301 const ::ignition::msgs::Header* p = header_;
315 if (header_ == NULL) {
316 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
323 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
324 if (message_arena == NULL) {
325 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
328 ::google::protobuf::Arena* submessage_arena = NULL;
329 if (message_arena != submessage_arena) {
330 header = ::google::protobuf::internal::GetOwnedMessage(
331 message_arena, header, submessage_arena);
343 return this != internal_default_instance() && friction_ != NULL;
345 inline const ::ignition::msgs::Friction& Surface::_internal_friction()
const {
349 const ::ignition::msgs::Friction* p = friction_;
363 if (friction_ == NULL) {
364 auto* p = CreateMaybeMessage<::ignition::msgs::Friction>(GetArenaNoVirtual());
371 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
372 if (message_arena == NULL) {
373 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(friction_);
376 ::google::protobuf::Arena* submessage_arena = NULL;
377 if (message_arena != submessage_arena) {
378 friction = ::google::protobuf::internal::GetOwnedMessage(
379 message_arena, friction, submessage_arena);
385 friction_ = friction;
391 restitution_coefficient_ = 0;
395 return restitution_coefficient_;
399 restitution_coefficient_ = value;
405 bounce_threshold_ = 0;
409 return bounce_threshold_;
413 bounce_threshold_ = value;
503 collide_without_contact_ =
false;
507 return collide_without_contact_;
511 collide_without_contact_ = value;
517 collide_without_contact_bitmask_ = 0u;
521 return collide_without_contact_bitmask_;
525 collide_without_contact_bitmask_ = value;
531 collide_bitmask_ = 0u;
535 return collide_bitmask_;
539 collide_bitmask_ = value;
545 elastic_modulus_ = 0;
549 return elastic_modulus_;
553 elastic_modulus_ = value;
558 #pragma GCC diagnostic pop
575 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fsurface_2eproto
IGNITION_MSGS_VISIBLE SurfaceDefaultTypeInternal _Surface_default_instance_
void set_collide_without_contact(bool value)
Definition: surface.pb.h:509
void set_kp(double value)
Definition: surface.pb.h:453
void clear_kd()
Definition: surface.pb.h:460
void set_collide_bitmask(::google::protobuf::uint32 value)
Definition: surface.pb.h:537
Surface & operator=(const Surface &from)
Definition: surface.pb.h:85
std::unique_ptr< Surface > SurfaceUniquePtr
Definition: surface.pb.h:561
void set_collide_without_contact_bitmask(::google::protobuf::uint32 value)
Definition: surface.pb.h:523
void set_min_depth(double value)
Definition: surface.pb.h:495
static const Surface * internal_default_instance()
Definition: surface.pb.h:108
friend void swap(Surface &a, Surface &b)
Definition: surface.pb.h:116
void Swap(Surface *other)
double max_vel() const
Definition: surface.pb.h:477
std::shared_ptr< const Surface > ConstSurfaceSharedPtr
Definition: surface.pb.h:564
double soft_cfm() const
Definition: surface.pb.h:421
double bounce_threshold() const
Definition: surface.pb.h:407
void set_kd(double value)
Definition: surface.pb.h:467
void set_soft_cfm(double value)
Definition: surface.pb.h:425
Surface * New(::google::protobuf::Arena *arena) const final
Definition: surface.pb.h:126
void set_bounce_threshold(double value)
Definition: surface.pb.h:411
IGNITION_MSGS_VISIBLE FrictionDefaultTypeInternal _Friction_default_instance_
double kd() const
Definition: surface.pb.h:463
void set_restitution_coefficient(double value)
Definition: surface.pb.h:397
::ignition::msgs::Friction * mutable_friction()
Definition: surface.pb.h:361
Definition: surface.pb.h:78
void clear_soft_erp()
Definition: surface.pb.h:432
void set_soft_erp(double value)
Definition: surface.pb.h:439
void clear_min_depth()
Definition: surface.pb.h:488
void set_allocated_friction(::ignition::msgs::Friction *friction)
Definition: surface.pb.h:370
bool has_friction() const
Definition: surface.pb.h:342
Definition: surface.pb.h:51
double kp() const
Definition: surface.pb.h:449
::google::protobuf::uint32 collide_without_contact_bitmask() const
Definition: surface.pb.h:519
Definition: surface.pb.h:49
void set_max_vel(double value)
Definition: surface.pb.h:481
void clear_max_vel()
Definition: surface.pb.h:474
double restitution_coefficient() const
Definition: surface.pb.h:393
::ignition::msgs::Header * mutable_header()
Definition: surface.pb.h:313
Surface * New() const final
Definition: surface.pb.h:122
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
void clear_elastic_modulus()
Definition: surface.pb.h:544
::ignition::msgs::Header * release_header()
Definition: surface.pb.h:306
::google::protobuf::uint32 collide_bitmask() const
Definition: surface.pb.h:533
void clear_kp()
Definition: surface.pb.h:446
std::unique_ptr< const Surface > ConstSurfaceUniquePtr
Definition: surface.pb.h:562
std::shared_ptr< Surface > SurfaceSharedPtr
Definition: surface.pb.h:563
bool has_header() const
Definition: surface.pb.h:294
double min_depth() const
Definition: surface.pb.h:491
::ignition::msgs::Friction * release_friction()
Definition: surface.pb.h:354
void clear_restitution_coefficient()
Definition: surface.pb.h:390
const ::ignition::msgs::Friction & friction() const
Definition: surface.pb.h:348
void IGNITION_MSGS_VISIBLE AddDescriptors()
void clear_collide_without_contact_bitmask()
Definition: surface.pb.h:516
bool collide_without_contact() const
Definition: surface.pb.h:505
double soft_erp() const
Definition: surface.pb.h:435
void clear_soft_cfm()
Definition: surface.pb.h:418
void clear_bounce_threshold()
Definition: surface.pb.h:404
void clear_collide_without_contact()
Definition: surface.pb.h:502
double elastic_modulus() const
Definition: surface.pb.h:547
Definition: friction.pb.h:328
Definition: actor.pb.h:78
void set_elastic_modulus(double value)
Definition: surface.pb.h:551
const ::ignition::msgs::Header & header() const
Definition: surface.pb.h:300
void clear_collide_bitmask()
Definition: surface.pb.h:530
void set_allocated_header(::ignition::msgs::Header *header)
Definition: surface.pb.h:322