Gazebo Msgs

API Reference

9.5.0
physics.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/physics.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fphysics_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fphysics_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/vector3d.pb.h"
35 #include "gz/msgs/header.pb.h"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fphysics_2eproto GZ_MSGS_VISIBLE
38 
40 // Internal implementation detail -- do not use these members.
41 struct GZ_MSGS_VISIBLE TableStruct {
42  static const ::google::protobuf::internal::ParseTableField entries[];
43  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44  static const ::google::protobuf::internal::ParseTable schema[1];
45  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46  static const ::google::protobuf::internal::SerializationTable serialization_table[];
47  static const ::google::protobuf::uint32 offsets[];
48 };
49 void GZ_MSGS_VISIBLE AddDescriptors();
50 } // namespace protobuf_gz_2fmsgs_2fphysics_2eproto
51 namespace gz {
52 namespace msgs {
53 class Physics;
54 class PhysicsDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern PhysicsDefaultTypeInternal _Physics_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::Physics* Arena::CreateMaybeMessage<::gz::msgs::Physics>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
73 };
74 GZ_MSGS_VISIBLE bool Physics_Type_IsValid(int value);
78 
79 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Physics_Type_descriptor();
80 inline const ::std::string& Physics_Type_Name(Physics_Type value) {
81  return ::google::protobuf::internal::NameOfEnum(
82  Physics_Type_descriptor(), value);
83 }
84 inline bool Physics_Type_Parse(
85  const ::std::string& name, Physics_Type* value) {
86  return ::google::protobuf::internal::ParseNamedEnum<Physics_Type>(
87  Physics_Type_descriptor(), name, value);
88 }
89 // ===================================================================
90 
91 class GZ_MSGS_VISIBLE Physics : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Physics) */ {
92  public:
93  Physics();
94  virtual ~Physics();
95 
96  Physics(const Physics& from);
97 
98  inline Physics& operator=(const Physics& from) {
99  CopyFrom(from);
100  return *this;
101  }
102  #if LANG_CXX11
103  Physics(Physics&& from) noexcept
104  : Physics() {
105  *this = ::std::move(from);
106  }
107 
108  inline Physics& operator=(Physics&& from) noexcept {
109  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
110  if (this != &from) InternalSwap(&from);
111  } else {
112  CopyFrom(from);
113  }
114  return *this;
115  }
116  #endif
117  static const ::google::protobuf::Descriptor* descriptor();
118  static const Physics& default_instance();
119 
120  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
121  static inline const Physics* internal_default_instance() {
122  return reinterpret_cast<const Physics*>(
124  }
125  static constexpr int kIndexInFileMessages =
126  0;
127 
128  void Swap(Physics* other);
129  friend void swap(Physics& a, Physics& b) {
130  a.Swap(&b);
131  }
132 
133  // implements Message ----------------------------------------------
134 
135  inline Physics* New() const final {
136  return CreateMaybeMessage<Physics>(NULL);
137  }
138 
139  Physics* New(::google::protobuf::Arena* arena) const final {
140  return CreateMaybeMessage<Physics>(arena);
141  }
142  void CopyFrom(const ::google::protobuf::Message& from) final;
143  void MergeFrom(const ::google::protobuf::Message& from) final;
144  void CopyFrom(const Physics& from);
145  void MergeFrom(const Physics& from);
146  void Clear() final;
147  bool IsInitialized() const final;
148 
149  size_t ByteSizeLong() const final;
150  bool MergePartialFromCodedStream(
151  ::google::protobuf::io::CodedInputStream* input) final;
152  void SerializeWithCachedSizes(
153  ::google::protobuf::io::CodedOutputStream* output) const final;
154  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
155  bool deterministic, ::google::protobuf::uint8* target) const final;
156  int GetCachedSize() const final { return _cached_size_.Get(); }
157 
158  private:
159  void SharedCtor();
160  void SharedDtor();
161  void SetCachedSize(int size) const final;
162  void InternalSwap(Physics* other);
163  private:
164  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
165  return NULL;
166  }
167  inline void* MaybeArenaPtr() const {
168  return NULL;
169  }
170  public:
171 
172  ::google::protobuf::Metadata GetMetadata() const final;
173 
174  // nested types ----------------------------------------------------
175 
177  static const Type ODE =
179  static const Type BULLET =
181  static const Type SIMBODY =
183  static const Type DART =
185  static inline bool Type_IsValid(int value) {
186  return Physics_Type_IsValid(value);
187  }
188  static const Type Type_MIN =
190  static const Type Type_MAX =
192  static const int Type_ARRAYSIZE =
194  static inline const ::google::protobuf::EnumDescriptor*
196  return Physics_Type_descriptor();
197  }
198  static inline const ::std::string& Type_Name(Type value) {
199  return Physics_Type_Name(value);
200  }
201  static inline bool Type_Parse(const ::std::string& name,
202  Type* value) {
203  return Physics_Type_Parse(name, value);
204  }
205 
206  // accessors -------------------------------------------------------
207 
208  // string solver_type = 3;
209  void clear_solver_type();
210  static const int kSolverTypeFieldNumber = 3;
211  const ::std::string& solver_type() const;
212  void set_solver_type(const ::std::string& value);
213  #if LANG_CXX11
214  void set_solver_type(::std::string&& value);
215  #endif
216  void set_solver_type(const char* value);
217  void set_solver_type(const char* value, size_t size);
218  ::std::string* mutable_solver_type();
219  ::std::string* release_solver_type();
220  void set_allocated_solver_type(::std::string* solver_type);
221 
222  // string profile_name = 17;
223  void clear_profile_name();
224  static const int kProfileNameFieldNumber = 17;
225  const ::std::string& profile_name() const;
226  void set_profile_name(const ::std::string& value);
227  #if LANG_CXX11
228  void set_profile_name(::std::string&& value);
229  #endif
230  void set_profile_name(const char* value);
231  void set_profile_name(const char* value, size_t size);
232  ::std::string* mutable_profile_name();
233  ::std::string* release_profile_name();
234  void set_allocated_profile_name(::std::string* profile_name);
235 
236  // .gz.msgs.Header header = 1;
237  bool has_header() const;
238  void clear_header();
239  static const int kHeaderFieldNumber = 1;
240  private:
241  const ::gz::msgs::Header& _internal_header() const;
242  public:
243  const ::gz::msgs::Header& header() const;
244  ::gz::msgs::Header* release_header();
245  ::gz::msgs::Header* mutable_header();
246  void set_allocated_header(::gz::msgs::Header* header);
247 
248  // .gz.msgs.Vector3d gravity = 12;
249  bool has_gravity() const;
250  void clear_gravity();
251  static const int kGravityFieldNumber = 12;
252  private:
253  const ::gz::msgs::Vector3d& _internal_gravity() const;
254  public:
255  const ::gz::msgs::Vector3d& gravity() const;
256  ::gz::msgs::Vector3d* release_gravity();
257  ::gz::msgs::Vector3d* mutable_gravity();
258  void set_allocated_gravity(::gz::msgs::Vector3d* gravity);
259 
260  // .gz.msgs.Vector3d magnetic_field = 18;
261  bool has_magnetic_field() const;
262  void clear_magnetic_field();
263  static const int kMagneticFieldFieldNumber = 18;
264  private:
265  const ::gz::msgs::Vector3d& _internal_magnetic_field() const;
266  public:
267  const ::gz::msgs::Vector3d& magnetic_field() const;
268  ::gz::msgs::Vector3d* release_magnetic_field();
269  ::gz::msgs::Vector3d* mutable_magnetic_field();
270  void set_allocated_magnetic_field(::gz::msgs::Vector3d* magnetic_field);
271 
272  // .gz.msgs.Physics.Type type = 2;
273  void clear_type();
274  static const int kTypeFieldNumber = 2;
275  ::gz::msgs::Physics_Type type() const;
276  void set_type(::gz::msgs::Physics_Type value);
277 
278  // int32 precon_iters = 5;
279  void clear_precon_iters();
280  static const int kPreconItersFieldNumber = 5;
281  ::google::protobuf::int32 precon_iters() const;
282  void set_precon_iters(::google::protobuf::int32 value);
283 
284  // double min_step_size = 4;
285  void clear_min_step_size();
286  static const int kMinStepSizeFieldNumber = 4;
287  double min_step_size() const;
288  void set_min_step_size(double value);
289 
290  // double sor = 7;
291  void clear_sor();
292  static const int kSorFieldNumber = 7;
293  double sor() const;
294  void set_sor(double value);
295 
296  // double cfm = 8;
297  void clear_cfm();
298  static const int kCfmFieldNumber = 8;
299  double cfm() const;
300  void set_cfm(double value);
301 
302  // double erp = 9;
303  void clear_erp();
304  static const int kErpFieldNumber = 9;
305  double erp() const;
306  void set_erp(double value);
307 
308  // int32 iters = 6;
309  void clear_iters();
310  static const int kItersFieldNumber = 6;
311  ::google::protobuf::int32 iters() const;
312  void set_iters(::google::protobuf::int32 value);
313 
314  // bool enable_physics = 13;
315  void clear_enable_physics();
316  static const int kEnablePhysicsFieldNumber = 13;
317  bool enable_physics() const;
318  void set_enable_physics(bool value);
319 
320  // double contact_max_correcting_vel = 10;
321  void clear_contact_max_correcting_vel();
322  static const int kContactMaxCorrectingVelFieldNumber = 10;
323  double contact_max_correcting_vel() const;
324  void set_contact_max_correcting_vel(double value);
325 
326  // double contact_surface_layer = 11;
327  void clear_contact_surface_layer();
328  static const int kContactSurfaceLayerFieldNumber = 11;
329  double contact_surface_layer() const;
330  void set_contact_surface_layer(double value);
331 
332  // double real_time_factor = 14;
333  void clear_real_time_factor();
334  static const int kRealTimeFactorFieldNumber = 14;
335  double real_time_factor() const;
336  void set_real_time_factor(double value);
337 
338  // double real_time_update_rate = 15;
339  void clear_real_time_update_rate();
340  static const int kRealTimeUpdateRateFieldNumber = 15;
341  double real_time_update_rate() const;
342  void set_real_time_update_rate(double value);
343 
344  // double max_step_size = 16;
345  void clear_max_step_size();
346  static const int kMaxStepSizeFieldNumber = 16;
347  double max_step_size() const;
348  void set_max_step_size(double value);
349 
350  // @@protoc_insertion_point(class_scope:gz.msgs.Physics)
351  private:
352 
353  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
354  ::google::protobuf::internal::ArenaStringPtr solver_type_;
355  ::google::protobuf::internal::ArenaStringPtr profile_name_;
356  ::gz::msgs::Header* header_;
357  ::gz::msgs::Vector3d* gravity_;
358  ::gz::msgs::Vector3d* magnetic_field_;
359  int type_;
360  ::google::protobuf::int32 precon_iters_;
361  double min_step_size_;
362  double sor_;
363  double cfm_;
364  double erp_;
365  ::google::protobuf::int32 iters_;
366  bool enable_physics_;
367  double contact_max_correcting_vel_;
368  double contact_surface_layer_;
369  double real_time_factor_;
370  double real_time_update_rate_;
371  double max_step_size_;
372  mutable ::google::protobuf::internal::CachedSize _cached_size_;
373  friend struct ::protobuf_gz_2fmsgs_2fphysics_2eproto::TableStruct;
374 };
375 // ===================================================================
376 
377 
378 // ===================================================================
379 
380 #ifdef __GNUC__
381  #pragma GCC diagnostic push
382  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
383 #endif // __GNUC__
384 // Physics
385 
386 // .gz.msgs.Header header = 1;
387 inline bool Physics::has_header() const {
388  return this != internal_default_instance() && header_ != NULL;
389 }
390 inline const ::gz::msgs::Header& Physics::_internal_header() const {
391  return *header_;
392 }
393 inline const ::gz::msgs::Header& Physics::header() const {
394  const ::gz::msgs::Header* p = header_;
395  // @@protoc_insertion_point(field_get:gz.msgs.Physics.header)
396  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
398 }
399 inline ::gz::msgs::Header* Physics::release_header() {
400  // @@protoc_insertion_point(field_release:gz.msgs.Physics.header)
401 
402  ::gz::msgs::Header* temp = header_;
403  header_ = NULL;
404  return temp;
405 }
406 inline ::gz::msgs::Header* Physics::mutable_header() {
407 
408  if (header_ == NULL) {
409  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
410  header_ = p;
411  }
412  // @@protoc_insertion_point(field_mutable:gz.msgs.Physics.header)
413  return header_;
414 }
416  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
417  if (message_arena == NULL) {
418  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
419  }
420  if (header) {
421  ::google::protobuf::Arena* submessage_arena = NULL;
422  if (message_arena != submessage_arena) {
423  header = ::google::protobuf::internal::GetOwnedMessage(
424  message_arena, header, submessage_arena);
425  }
426 
427  } else {
428 
429  }
430  header_ = header;
431  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Physics.header)
432 }
433 
434 // .gz.msgs.Physics.Type type = 2;
435 inline void Physics::clear_type() {
436  type_ = 0;
437 }
439  // @@protoc_insertion_point(field_get:gz.msgs.Physics.type)
440  return static_cast< ::gz::msgs::Physics_Type >(type_);
441 }
443 
444  type_ = value;
445  // @@protoc_insertion_point(field_set:gz.msgs.Physics.type)
446 }
447 
448 // string solver_type = 3;
450  solver_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
451 }
452 inline const ::std::string& Physics::solver_type() const {
453  // @@protoc_insertion_point(field_get:gz.msgs.Physics.solver_type)
454  return solver_type_.GetNoArena();
455 }
456 inline void Physics::set_solver_type(const ::std::string& value) {
457 
458  solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
459  // @@protoc_insertion_point(field_set:gz.msgs.Physics.solver_type)
460 }
461 #if LANG_CXX11
462 inline void Physics::set_solver_type(::std::string&& value) {
463 
464  solver_type_.SetNoArena(
465  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
466  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Physics.solver_type)
467 }
468 #endif
469 inline void Physics::set_solver_type(const char* value) {
470  GOOGLE_DCHECK(value != NULL);
471 
472  solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
473  // @@protoc_insertion_point(field_set_char:gz.msgs.Physics.solver_type)
474 }
475 inline void Physics::set_solver_type(const char* value, size_t size) {
476 
477  solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
478  ::std::string(reinterpret_cast<const char*>(value), size));
479  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Physics.solver_type)
480 }
481 inline ::std::string* Physics::mutable_solver_type() {
482 
483  // @@protoc_insertion_point(field_mutable:gz.msgs.Physics.solver_type)
484  return solver_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
485 }
486 inline ::std::string* Physics::release_solver_type() {
487  // @@protoc_insertion_point(field_release:gz.msgs.Physics.solver_type)
488 
489  return solver_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
490 }
491 inline void Physics::set_allocated_solver_type(::std::string* solver_type) {
492  if (solver_type != NULL) {
493 
494  } else {
495 
496  }
497  solver_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), solver_type);
498  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Physics.solver_type)
499 }
500 
501 // double min_step_size = 4;
503  min_step_size_ = 0;
504 }
505 inline double Physics::min_step_size() const {
506  // @@protoc_insertion_point(field_get:gz.msgs.Physics.min_step_size)
507  return min_step_size_;
508 }
509 inline void Physics::set_min_step_size(double value) {
510 
511  min_step_size_ = value;
512  // @@protoc_insertion_point(field_set:gz.msgs.Physics.min_step_size)
513 }
514 
515 // int32 precon_iters = 5;
517  precon_iters_ = 0;
518 }
519 inline ::google::protobuf::int32 Physics::precon_iters() const {
520  // @@protoc_insertion_point(field_get:gz.msgs.Physics.precon_iters)
521  return precon_iters_;
522 }
523 inline void Physics::set_precon_iters(::google::protobuf::int32 value) {
524 
525  precon_iters_ = value;
526  // @@protoc_insertion_point(field_set:gz.msgs.Physics.precon_iters)
527 }
528 
529 // int32 iters = 6;
530 inline void Physics::clear_iters() {
531  iters_ = 0;
532 }
533 inline ::google::protobuf::int32 Physics::iters() const {
534  // @@protoc_insertion_point(field_get:gz.msgs.Physics.iters)
535  return iters_;
536 }
537 inline void Physics::set_iters(::google::protobuf::int32 value) {
538 
539  iters_ = value;
540  // @@protoc_insertion_point(field_set:gz.msgs.Physics.iters)
541 }
542 
543 // double sor = 7;
544 inline void Physics::clear_sor() {
545  sor_ = 0;
546 }
547 inline double Physics::sor() const {
548  // @@protoc_insertion_point(field_get:gz.msgs.Physics.sor)
549  return sor_;
550 }
551 inline void Physics::set_sor(double value) {
552 
553  sor_ = value;
554  // @@protoc_insertion_point(field_set:gz.msgs.Physics.sor)
555 }
556 
557 // double cfm = 8;
558 inline void Physics::clear_cfm() {
559  cfm_ = 0;
560 }
561 inline double Physics::cfm() const {
562  // @@protoc_insertion_point(field_get:gz.msgs.Physics.cfm)
563  return cfm_;
564 }
565 inline void Physics::set_cfm(double value) {
566 
567  cfm_ = value;
568  // @@protoc_insertion_point(field_set:gz.msgs.Physics.cfm)
569 }
570 
571 // double erp = 9;
572 inline void Physics::clear_erp() {
573  erp_ = 0;
574 }
575 inline double Physics::erp() const {
576  // @@protoc_insertion_point(field_get:gz.msgs.Physics.erp)
577  return erp_;
578 }
579 inline void Physics::set_erp(double value) {
580 
581  erp_ = value;
582  // @@protoc_insertion_point(field_set:gz.msgs.Physics.erp)
583 }
584 
585 // double contact_max_correcting_vel = 10;
587  contact_max_correcting_vel_ = 0;
588 }
589 inline double Physics::contact_max_correcting_vel() const {
590  // @@protoc_insertion_point(field_get:gz.msgs.Physics.contact_max_correcting_vel)
591  return contact_max_correcting_vel_;
592 }
593 inline void Physics::set_contact_max_correcting_vel(double value) {
594 
595  contact_max_correcting_vel_ = value;
596  // @@protoc_insertion_point(field_set:gz.msgs.Physics.contact_max_correcting_vel)
597 }
598 
599 // double contact_surface_layer = 11;
601  contact_surface_layer_ = 0;
602 }
603 inline double Physics::contact_surface_layer() const {
604  // @@protoc_insertion_point(field_get:gz.msgs.Physics.contact_surface_layer)
605  return contact_surface_layer_;
606 }
607 inline void Physics::set_contact_surface_layer(double value) {
608 
609  contact_surface_layer_ = value;
610  // @@protoc_insertion_point(field_set:gz.msgs.Physics.contact_surface_layer)
611 }
612 
613 // .gz.msgs.Vector3d gravity = 12;
614 inline bool Physics::has_gravity() const {
615  return this != internal_default_instance() && gravity_ != NULL;
616 }
617 inline const ::gz::msgs::Vector3d& Physics::_internal_gravity() const {
618  return *gravity_;
619 }
620 inline const ::gz::msgs::Vector3d& Physics::gravity() const {
621  const ::gz::msgs::Vector3d* p = gravity_;
622  // @@protoc_insertion_point(field_get:gz.msgs.Physics.gravity)
623  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
625 }
626 inline ::gz::msgs::Vector3d* Physics::release_gravity() {
627  // @@protoc_insertion_point(field_release:gz.msgs.Physics.gravity)
628 
629  ::gz::msgs::Vector3d* temp = gravity_;
630  gravity_ = NULL;
631  return temp;
632 }
633 inline ::gz::msgs::Vector3d* Physics::mutable_gravity() {
634 
635  if (gravity_ == NULL) {
636  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
637  gravity_ = p;
638  }
639  // @@protoc_insertion_point(field_mutable:gz.msgs.Physics.gravity)
640  return gravity_;
641 }
643  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
644  if (message_arena == NULL) {
645  delete reinterpret_cast< ::google::protobuf::MessageLite*>(gravity_);
646  }
647  if (gravity) {
648  ::google::protobuf::Arena* submessage_arena = NULL;
649  if (message_arena != submessage_arena) {
650  gravity = ::google::protobuf::internal::GetOwnedMessage(
651  message_arena, gravity, submessage_arena);
652  }
653 
654  } else {
655 
656  }
657  gravity_ = gravity;
658  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Physics.gravity)
659 }
660 
661 // bool enable_physics = 13;
663  enable_physics_ = false;
664 }
665 inline bool Physics::enable_physics() const {
666  // @@protoc_insertion_point(field_get:gz.msgs.Physics.enable_physics)
667  return enable_physics_;
668 }
669 inline void Physics::set_enable_physics(bool value) {
670 
671  enable_physics_ = value;
672  // @@protoc_insertion_point(field_set:gz.msgs.Physics.enable_physics)
673 }
674 
675 // double real_time_factor = 14;
677  real_time_factor_ = 0;
678 }
679 inline double Physics::real_time_factor() const {
680  // @@protoc_insertion_point(field_get:gz.msgs.Physics.real_time_factor)
681  return real_time_factor_;
682 }
683 inline void Physics::set_real_time_factor(double value) {
684 
685  real_time_factor_ = value;
686  // @@protoc_insertion_point(field_set:gz.msgs.Physics.real_time_factor)
687 }
688 
689 // double real_time_update_rate = 15;
691  real_time_update_rate_ = 0;
692 }
693 inline double Physics::real_time_update_rate() const {
694  // @@protoc_insertion_point(field_get:gz.msgs.Physics.real_time_update_rate)
695  return real_time_update_rate_;
696 }
697 inline void Physics::set_real_time_update_rate(double value) {
698 
699  real_time_update_rate_ = value;
700  // @@protoc_insertion_point(field_set:gz.msgs.Physics.real_time_update_rate)
701 }
702 
703 // double max_step_size = 16;
705  max_step_size_ = 0;
706 }
707 inline double Physics::max_step_size() const {
708  // @@protoc_insertion_point(field_get:gz.msgs.Physics.max_step_size)
709  return max_step_size_;
710 }
711 inline void Physics::set_max_step_size(double value) {
712 
713  max_step_size_ = value;
714  // @@protoc_insertion_point(field_set:gz.msgs.Physics.max_step_size)
715 }
716 
717 // string profile_name = 17;
719  profile_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
720 }
721 inline const ::std::string& Physics::profile_name() const {
722  // @@protoc_insertion_point(field_get:gz.msgs.Physics.profile_name)
723  return profile_name_.GetNoArena();
724 }
725 inline void Physics::set_profile_name(const ::std::string& value) {
726 
727  profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
728  // @@protoc_insertion_point(field_set:gz.msgs.Physics.profile_name)
729 }
730 #if LANG_CXX11
731 inline void Physics::set_profile_name(::std::string&& value) {
732 
733  profile_name_.SetNoArena(
734  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
735  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Physics.profile_name)
736 }
737 #endif
738 inline void Physics::set_profile_name(const char* value) {
739  GOOGLE_DCHECK(value != NULL);
740 
741  profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
742  // @@protoc_insertion_point(field_set_char:gz.msgs.Physics.profile_name)
743 }
744 inline void Physics::set_profile_name(const char* value, size_t size) {
745 
746  profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
747  ::std::string(reinterpret_cast<const char*>(value), size));
748  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Physics.profile_name)
749 }
750 inline ::std::string* Physics::mutable_profile_name() {
751 
752  // @@protoc_insertion_point(field_mutable:gz.msgs.Physics.profile_name)
753  return profile_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
754 }
755 inline ::std::string* Physics::release_profile_name() {
756  // @@protoc_insertion_point(field_release:gz.msgs.Physics.profile_name)
757 
758  return profile_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
759 }
760 inline void Physics::set_allocated_profile_name(::std::string* profile_name) {
761  if (profile_name != NULL) {
762 
763  } else {
764 
765  }
766  profile_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), profile_name);
767  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Physics.profile_name)
768 }
769 
770 // .gz.msgs.Vector3d magnetic_field = 18;
771 inline bool Physics::has_magnetic_field() const {
772  return this != internal_default_instance() && magnetic_field_ != NULL;
773 }
774 inline const ::gz::msgs::Vector3d& Physics::_internal_magnetic_field() const {
775  return *magnetic_field_;
776 }
777 inline const ::gz::msgs::Vector3d& Physics::magnetic_field() const {
778  const ::gz::msgs::Vector3d* p = magnetic_field_;
779  // @@protoc_insertion_point(field_get:gz.msgs.Physics.magnetic_field)
780  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
782 }
783 inline ::gz::msgs::Vector3d* Physics::release_magnetic_field() {
784  // @@protoc_insertion_point(field_release:gz.msgs.Physics.magnetic_field)
785 
786  ::gz::msgs::Vector3d* temp = magnetic_field_;
787  magnetic_field_ = NULL;
788  return temp;
789 }
790 inline ::gz::msgs::Vector3d* Physics::mutable_magnetic_field() {
791 
792  if (magnetic_field_ == NULL) {
793  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
794  magnetic_field_ = p;
795  }
796  // @@protoc_insertion_point(field_mutable:gz.msgs.Physics.magnetic_field)
797  return magnetic_field_;
798 }
800  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
801  if (message_arena == NULL) {
802  delete reinterpret_cast< ::google::protobuf::MessageLite*>(magnetic_field_);
803  }
804  if (magnetic_field) {
805  ::google::protobuf::Arena* submessage_arena = NULL;
806  if (message_arena != submessage_arena) {
807  magnetic_field = ::google::protobuf::internal::GetOwnedMessage(
808  message_arena, magnetic_field, submessage_arena);
809  }
810 
811  } else {
812 
813  }
814  magnetic_field_ = magnetic_field;
815  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Physics.magnetic_field)
816 }
817 
818 #ifdef __GNUC__
819  #pragma GCC diagnostic pop
820 #endif // __GNUC__
821 
822 // @@protoc_insertion_point(namespace_scope)
823 
824 } // namespace msgs
825 } // namespace gz
826 
827 namespace google {
828 namespace protobuf {
829 
830 template <> struct is_proto_enum< ::gz::msgs::Physics_Type> : ::std::true_type {};
831 template <>
832 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Physics_Type>() {
834 }
835 
836 } // namespace protobuf
837 } // namespace google
838 
839 // @@protoc_insertion_point(global_scope)
840 
841 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fphysics_2eproto