4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fsurface_2eproto
5 #define PROTOBUF_INCLUDED_gz_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>
33 #include "gz/msgs/header.pb.h"
34 #include "gz/msgs/friction.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fsurface_2eproto GZ_MSGS_VISIBLE
41 static const ::google::protobuf::internal::ParseTableField entries[];
42 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43 static const ::google::protobuf::internal::ParseTable schema[1];
44 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45 static const ::google::protobuf::internal::SerializationTable serialization_table[];
46 static const ::google::protobuf::uint32 offsets[];
53 class SurfaceDefaultTypeInternal;
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Surface* Arena::CreateMaybeMessage<::gz::msgs::Surface>(Arena*);
67 class GZ_MSGS_VISIBLE
Surface :
public ::google::protobuf::Message {
81 *
this = ::std::move(from);
84 inline Surface& operator=(Surface&& from) noexcept {
85 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86 if (
this != &from) InternalSwap(&from);
93 static const ::google::protobuf::Descriptor* descriptor();
94 static const Surface& default_instance();
96 static void InitAsDefaultInstance();
98 return reinterpret_cast<const Surface*
>(
101 static constexpr
int kIndexInFileMessages =
112 return CreateMaybeMessage<Surface>(NULL);
116 return CreateMaybeMessage<Surface>(arena);
118 void CopyFrom(const ::google::protobuf::Message& from)
final;
119 void MergeFrom(const ::google::protobuf::Message& from)
final;
120 void CopyFrom(
const Surface& from);
121 void MergeFrom(
const Surface& from);
123 bool IsInitialized() const final;
125 size_t ByteSizeLong() const final;
126 bool MergePartialFromCodedStream(
127 ::
google::protobuf::io::CodedInputStream* input) final;
128 void SerializeWithCachedSizes(
129 ::
google::protobuf::io::CodedOutputStream* output) const final;
130 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131 bool deterministic, ::
google::protobuf::uint8* target) const final;
132 int GetCachedSize() const final {
return _cached_size_.Get(); }
137 void SetCachedSize(
int size)
const final;
138 void InternalSwap(
Surface* other);
140 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
143 inline void* MaybeArenaPtr()
const {
148 ::google::protobuf::Metadata GetMetadata() const final;
155 bool has_header() const;
157 static const
int kHeaderFieldNumber = 1;
159 const ::
gz::msgs::
Header& _internal_header() const;
161 const ::
gz::msgs::
Header& header() const;
162 ::
gz::msgs::
Header* release_header();
163 ::
gz::msgs::
Header* mutable_header();
164 void set_allocated_header(::
gz::msgs::
Header* header);
167 bool has_friction() const;
168 void clear_friction();
169 static const
int kFrictionFieldNumber = 2;
171 const ::
gz::msgs::
Friction& _internal_friction() const;
176 void set_allocated_friction(::
gz::msgs::
Friction* friction);
179 void clear_restitution_coefficient();
180 static const
int kRestitutionCoefficientFieldNumber = 3;
181 double restitution_coefficient() const;
182 void set_restitution_coefficient(
double value);
185 void clear_bounce_threshold();
186 static const
int kBounceThresholdFieldNumber = 4;
187 double bounce_threshold() const;
188 void set_bounce_threshold(
double value);
191 void clear_soft_cfm();
192 static const
int kSoftCfmFieldNumber = 5;
193 double soft_cfm() const;
194 void set_soft_cfm(
double value);
197 void clear_soft_erp();
198 static const
int kSoftErpFieldNumber = 6;
199 double soft_erp() const;
200 void set_soft_erp(
double value);
204 static const
int kKpFieldNumber = 7;
206 void set_kp(
double value);
210 static const
int kKdFieldNumber = 8;
212 void set_kd(
double value);
215 void clear_max_vel();
216 static const
int kMaxVelFieldNumber = 9;
217 double max_vel() const;
218 void set_max_vel(
double value);
221 void clear_min_depth();
222 static const
int kMinDepthFieldNumber = 10;
223 double min_depth() const;
224 void set_min_depth(
double value);
227 void clear_collide_without_contact();
228 static const
int kCollideWithoutContactFieldNumber = 11;
229 bool collide_without_contact() const;
230 void set_collide_without_contact(
bool value);
233 void clear_collide_without_contact_bitmask();
234 static const
int kCollideWithoutContactBitmaskFieldNumber = 12;
235 ::
google::protobuf::uint32 collide_without_contact_bitmask() const;
236 void set_collide_without_contact_bitmask(::
google::protobuf::uint32 value);
239 void clear_elastic_modulus();
240 static const
int kElasticModulusFieldNumber = 14;
241 double elastic_modulus() const;
242 void set_elastic_modulus(
double value);
245 void clear_collide_bitmask();
246 static const
int kCollideBitmaskFieldNumber = 13;
247 ::
google::protobuf::uint32 collide_bitmask() const;
248 void set_collide_bitmask(::
google::protobuf::uint32 value);
253 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
256 double restitution_coefficient_;
257 double bounce_threshold_;
264 bool collide_without_contact_;
265 ::
google::protobuf::uint32 collide_without_contact_bitmask_;
266 double elastic_modulus_;
267 ::
google::protobuf::uint32 collide_bitmask_;
268 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
277 #pragma GCC diagnostic push
278 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
284 return this != internal_default_instance() && header_ != NULL;
286 inline const ::gz::msgs::Header& Surface::_internal_header()
const {
290 const ::gz::msgs::Header* p = header_;
304 if (header_ == NULL) {
305 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
312 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
313 if (message_arena == NULL) {
314 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
317 ::google::protobuf::Arena* submessage_arena = NULL;
318 if (message_arena != submessage_arena) {
319 header = ::google::protobuf::internal::GetOwnedMessage(
320 message_arena, header, submessage_arena);
332 return this != internal_default_instance() && friction_ != NULL;
334 inline const ::gz::msgs::Friction& Surface::_internal_friction()
const {
338 const ::gz::msgs::Friction* p = friction_;
352 if (friction_ == NULL) {
353 auto* p = CreateMaybeMessage<::gz::msgs::Friction>(GetArenaNoVirtual());
360 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
361 if (message_arena == NULL) {
362 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(friction_);
365 ::google::protobuf::Arena* submessage_arena = NULL;
366 if (message_arena != submessage_arena) {
367 friction = ::google::protobuf::internal::GetOwnedMessage(
368 message_arena, friction, submessage_arena);
374 friction_ = friction;
380 restitution_coefficient_ = 0;
384 return restitution_coefficient_;
388 restitution_coefficient_ = value;
394 bounce_threshold_ = 0;
398 return bounce_threshold_;
402 bounce_threshold_ = value;
492 collide_without_contact_ =
false;
496 return collide_without_contact_;
500 collide_without_contact_ = value;
506 collide_without_contact_bitmask_ = 0u;
510 return collide_without_contact_bitmask_;
514 collide_without_contact_bitmask_ = value;
520 collide_bitmask_ = 0u;
524 return collide_bitmask_;
528 collide_bitmask_ = value;
534 elastic_modulus_ = 0;
538 return elastic_modulus_;
542 elastic_modulus_ = value;
547 #pragma GCC diagnostic pop
557 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fsurface_2eproto