4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2ffriction_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2ffriction_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/vector3d.pb.h"
34 #include "gz/msgs/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2ffriction_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[3];
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 FrictionDefaultTypeInternal;
55 class Friction_Torsional;
56 class Friction_TorsionalDefaultTypeInternal;
58 class Friction_Torsional_ODE;
59 class Friction_Torsional_ODEDefaultTypeInternal;
65 template<> GZ_MSGS_VISIBLE ::gz::msgs::Friction* Arena::CreateMaybeMessage<::gz::msgs::Friction>(Arena*);
66 template<> GZ_MSGS_VISIBLE ::gz::msgs::Friction_Torsional* Arena::CreateMaybeMessage<::gz::msgs::Friction_Torsional>(Arena*);
67 template<> GZ_MSGS_VISIBLE ::gz::msgs::Friction_Torsional_ODE* Arena::CreateMaybeMessage<::gz::msgs::Friction_Torsional_ODE>(Arena*);
89 *
this = ::std::move(from);
92 inline Friction_Torsional_ODE& operator=(Friction_Torsional_ODE&& from) noexcept {
93 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
94 if (
this != &from) InternalSwap(&from);
101 static const ::google::protobuf::Descriptor* descriptor();
102 static const Friction_Torsional_ODE& default_instance();
104 static void InitAsDefaultInstance();
109 static constexpr
int kIndexInFileMessages =
120 return CreateMaybeMessage<Friction_Torsional_ODE>(NULL);
124 return CreateMaybeMessage<Friction_Torsional_ODE>(arena);
126 void CopyFrom(const ::google::protobuf::Message& from)
final;
127 void MergeFrom(const ::google::protobuf::Message& from)
final;
131 bool IsInitialized() const final;
133 size_t ByteSizeLong() const final;
134 bool MergePartialFromCodedStream(
135 ::
google::protobuf::io::CodedInputStream* input) final;
136 void SerializeWithCachedSizes(
137 ::
google::protobuf::io::CodedOutputStream* output) const final;
138 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
139 bool deterministic, ::
google::protobuf::uint8* target) const final;
140 int GetCachedSize() const final {
return _cached_size_.Get(); }
145 void SetCachedSize(
int size)
const final;
148 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
151 inline void* MaybeArenaPtr()
const {
156 ::google::protobuf::Metadata GetMetadata() const final;
164 static const
int kSlipFieldNumber = 1;
166 void set_slip(
double value);
171 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
173 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
192 *
this = ::std::move(from);
195 inline Friction_Torsional& operator=(Friction_Torsional&& from) noexcept {
196 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
197 if (
this != &from) InternalSwap(&from);
204 static const ::google::protobuf::Descriptor* descriptor();
205 static const Friction_Torsional& default_instance();
207 static void InitAsDefaultInstance();
212 static constexpr
int kIndexInFileMessages =
223 return CreateMaybeMessage<Friction_Torsional>(NULL);
227 return CreateMaybeMessage<Friction_Torsional>(arena);
229 void CopyFrom(const ::google::protobuf::Message& from)
final;
230 void MergeFrom(const ::google::protobuf::Message& from)
final;
234 bool IsInitialized() const final;
236 size_t ByteSizeLong() const final;
237 bool MergePartialFromCodedStream(
238 ::
google::protobuf::io::CodedInputStream* input) final;
239 void SerializeWithCachedSizes(
240 ::
google::protobuf::io::CodedOutputStream* output) const final;
241 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
242 bool deterministic, ::
google::protobuf::uint8* target) const final;
243 int GetCachedSize() const final {
return _cached_size_.Get(); }
248 void SetCachedSize(
int size)
const final;
251 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
254 inline void* MaybeArenaPtr()
const {
259 ::google::protobuf::Metadata GetMetadata() const final;
268 bool has_ode() const;
270 static const
int kOdeFieldNumber = 5;
280 void clear_coefficient();
281 static const
int kCoefficientFieldNumber = 1;
282 double coefficient() const;
283 void set_coefficient(
double value);
286 void clear_patch_radius();
287 static const
int kPatchRadiusFieldNumber = 3;
288 double patch_radius() const;
289 void set_patch_radius(
double value);
292 void clear_surface_radius();
293 static const
int kSurfaceRadiusFieldNumber = 4;
294 double surface_radius() const;
295 void set_surface_radius(
double value);
298 void clear_use_patch_radius();
299 static const
int kUsePatchRadiusFieldNumber = 2;
300 bool use_patch_radius() const;
301 void set_use_patch_radius(
bool value);
306 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
309 double patch_radius_;
310 double surface_radius_;
311 bool use_patch_radius_;
312 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
331 *
this = ::std::move(from);
334 inline Friction& operator=(Friction&& from) noexcept {
335 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
336 if (
this != &from) InternalSwap(&from);
343 static const ::google::protobuf::Descriptor* descriptor();
344 static const Friction& default_instance();
346 static void InitAsDefaultInstance();
348 return reinterpret_cast<const Friction*
>(
351 static constexpr
int kIndexInFileMessages =
362 return CreateMaybeMessage<Friction>(NULL);
366 return CreateMaybeMessage<Friction>(arena);
368 void CopyFrom(const ::google::protobuf::Message& from)
final;
369 void MergeFrom(const ::google::protobuf::Message& from)
final;
370 void CopyFrom(
const Friction& from);
371 void MergeFrom(
const Friction& from);
373 bool IsInitialized() const final;
375 size_t ByteSizeLong() const final;
376 bool MergePartialFromCodedStream(
377 ::
google::protobuf::io::CodedInputStream* input) final;
378 void SerializeWithCachedSizes(
379 ::
google::protobuf::io::CodedOutputStream* output) const final;
380 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
381 bool deterministic, ::
google::protobuf::uint8* target) const final;
382 int GetCachedSize() const final {
return _cached_size_.Get(); }
387 void SetCachedSize(
int size)
const final;
390 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
393 inline void* MaybeArenaPtr()
const {
398 ::google::protobuf::Metadata GetMetadata() const final;
407 bool has_header() const;
409 static const
int kHeaderFieldNumber = 1;
411 const ::
gz::msgs::
Header& _internal_header() const;
413 const ::
gz::msgs::
Header& header() const;
414 ::
gz::msgs::
Header* release_header();
415 ::
gz::msgs::
Header* mutable_header();
416 void set_allocated_header(::
gz::msgs::
Header* header);
419 bool has_fdir1() const;
421 static const
int kFdir1FieldNumber = 4;
423 const ::
gz::msgs::
Vector3d& _internal_fdir1() const;
428 void set_allocated_fdir1(::
gz::msgs::
Vector3d* fdir1);
431 bool has_torsional() const;
432 void clear_torsional();
433 static const
int kTorsionalFieldNumber = 7;
444 static const
int kMuFieldNumber = 2;
446 void set_mu(
double value);
450 static const
int kMu2FieldNumber = 3;
452 void set_mu2(
double value);
456 static const
int kSlip1FieldNumber = 5;
457 double slip1() const;
458 void set_slip1(
double value);
462 static const
int kSlip2FieldNumber = 6;
463 double slip2() const;
464 void set_slip2(
double value);
469 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
477 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
486 #pragma GCC diagnostic push
487 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
519 coefficient_ = value;
525 use_patch_radius_ =
false;
529 return use_patch_radius_;
533 use_patch_radius_ = value;
543 return patch_radius_;
547 patch_radius_ = value;
557 return surface_radius_;
561 surface_radius_ = value;
567 return this != internal_default_instance() && ode_ != NULL;
570 if (GetArenaNoVirtual() == NULL && ode_ != NULL) {
575 inline const ::gz::msgs::Friction_Torsional_ODE& Friction_Torsional::_internal_ode()
const {
579 const ::gz::msgs::Friction_Torsional_ODE* p = ode_;
594 auto* p = CreateMaybeMessage<::gz::msgs::Friction_Torsional_ODE>(GetArenaNoVirtual());
601 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
602 if (message_arena == NULL) {
606 ::google::protobuf::Arena* submessage_arena = NULL;
607 if (message_arena != submessage_arena) {
608 ode = ::google::protobuf::internal::GetOwnedMessage(
609 message_arena, ode, submessage_arena);
625 return this != internal_default_instance() && header_ != NULL;
627 inline const ::gz::msgs::Header& Friction::_internal_header()
const {
631 const ::gz::msgs::Header* p = header_;
645 if (header_ == NULL) {
646 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
653 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
654 if (message_arena == NULL) {
655 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
658 ::google::protobuf::Arena* submessage_arena = NULL;
659 if (message_arena != submessage_arena) {
660 header = ::google::protobuf::internal::GetOwnedMessage(
661 message_arena, header, submessage_arena);
701 return this != internal_default_instance() && fdir1_ != NULL;
703 inline const ::gz::msgs::Vector3d& Friction::_internal_fdir1()
const {
707 const ::gz::msgs::Vector3d* p = fdir1_;
721 if (fdir1_ == NULL) {
722 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
729 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
730 if (message_arena == NULL) {
731 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(fdir1_);
734 ::google::protobuf::Arena* submessage_arena = NULL;
735 if (message_arena != submessage_arena) {
736 fdir1 = ::google::protobuf::internal::GetOwnedMessage(
737 message_arena, fdir1, submessage_arena);
777 return this != internal_default_instance() && torsional_ != NULL;
780 if (GetArenaNoVirtual() == NULL && torsional_ != NULL) {
785 inline const ::gz::msgs::Friction_Torsional& Friction::_internal_torsional()
const {
789 const ::gz::msgs::Friction_Torsional* p = torsional_;
803 if (torsional_ == NULL) {
804 auto* p = CreateMaybeMessage<::gz::msgs::Friction_Torsional>(GetArenaNoVirtual());
811 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
812 if (message_arena == NULL) {
816 ::google::protobuf::Arena* submessage_arena = NULL;
817 if (message_arena != submessage_arena) {
818 torsional = ::google::protobuf::internal::GetOwnedMessage(
819 message_arena, torsional, submessage_arena);
825 torsional_ = torsional;
830 #pragma GCC diagnostic pop
844 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2ffriction_2eproto