4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2fbounds_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2fbounds_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 "dccl/option_extensions.pb.h"
34 #include <boost/units/quantity.hpp>
35 #include <boost/units/absolute.hpp>
36 #include <boost/units/dimensionless_type.hpp>
37 #include <boost/units/make_scaled_unit.hpp>
39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2fbounds_2eproto
44 static const ::google::protobuf::internal::ParseTableField
entries[];
45 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
46 static const ::google::protobuf::internal::ParseTable
schema[3];
49 static const ::google::protobuf::uint32
offsets[];
56 class BoundsDefaultTypeInternal;
59 class MotorBoundsDefaultTypeInternal;
62 class SurfaceBoundsDefaultTypeInternal;
92 *
this = ::std::move(from);
96 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
97 if (
this != &from) InternalSwap(&from);
105 return _internal_metadata_.unknown_fields();
108 return _internal_metadata_.mutable_unknown_fields();
111 static const ::google::protobuf::Descriptor*
descriptor();
130 return CreateMaybeMessage<SurfaceBounds>(NULL);
134 return CreateMaybeMessage<SurfaceBounds>(arena);
136 void CopyFrom(const ::google::protobuf::Message& from)
final;
137 void MergeFrom(const ::google::protobuf::Message& from)
final;
145 ::
google::protobuf::io::CodedInputStream* input) final;
147 ::
google::protobuf::io::CodedOutputStream* output) const final;
149 bool deterministic, ::
google::protobuf::uint8* target) const final;
155 void SetCachedSize(
int size)
const final;
158 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
161 inline void* MaybeArenaPtr()
const {
166 ::google::protobuf::Metadata
GetMetadata() const final;
195 void set_has_upper();
196 void clear_has_upper();
197 void set_has_lower();
198 void clear_has_lower();
199 void set_has_center();
200 void clear_has_center();
202 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
203 ::
google::protobuf::internal::HasBits<1> _has_bits_;
204 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
205 ::
google::protobuf::int32 center_;
206 ::
google::protobuf::int32 upper_;
207 ::
google::protobuf::int32 lower_;
226 *
this = ::std::move(from);
229 inline MotorBounds&
operator=(MotorBounds&& from) noexcept {
230 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
231 if (
this != &from) InternalSwap(&from);
239 return _internal_metadata_.unknown_fields();
242 return _internal_metadata_.mutable_unknown_fields();
245 static const ::google::protobuf::Descriptor*
descriptor();
264 return CreateMaybeMessage<MotorBounds>(NULL);
268 return CreateMaybeMessage<MotorBounds>(arena);
270 void CopyFrom(const ::google::protobuf::Message& from)
final;
271 void MergeFrom(const ::google::protobuf::Message& from)
final;
279 ::
google::protobuf::io::CodedInputStream* input) final;
281 ::
google::protobuf::io::CodedOutputStream* output) const final;
283 bool deterministic, ::
google::protobuf::uint8* target) const final;
289 void SetCachedSize(
int size)
const final;
292 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
295 inline void* MaybeArenaPtr()
const {
300 ::google::protobuf::Metadata
GetMetadata() const final;
307 bool has_forwardstart() const;
308 void clear_forwardstart();
309 static const
int kForwardStartFieldNumber = 1;
310 ::
google::protobuf::int32 forwardstart() const;
311 void set_forwardstart(::
google::protobuf::int32 value);
314 bool has_reversestart() const;
315 void clear_reversestart();
316 static const
int kReverseStartFieldNumber = 2;
317 ::
google::protobuf::int32 reversestart() const;
318 void set_reversestart(::
google::protobuf::int32 value);
321 bool has_max_reverse() const;
322 void clear_max_reverse();
323 static const
int kMaxReverseFieldNumber = 3;
324 ::
google::protobuf::int32 max_reverse() const;
325 void set_max_reverse(::
google::protobuf::int32 value);
328 bool has_throttle_zero_net_buoyancy() const;
329 void clear_throttle_zero_net_buoyancy();
330 static const
int kThrottleZeroNetBuoyancyFieldNumber = 4;
331 ::
google::protobuf::int32 throttle_zero_net_buoyancy() const;
332 void set_throttle_zero_net_buoyancy(::
google::protobuf::int32 value);
335 bool has_throttle_dive() const;
336 void clear_throttle_dive();
337 static const
int kThrottleDiveFieldNumber = 5;
338 ::
google::protobuf::int32 throttle_dive() const;
339 void set_throttle_dive(::
google::protobuf::int32 value);
342 bool has_throttle_ascent() const;
343 void clear_throttle_ascent();
344 static const
int kThrottleAscentFieldNumber = 6;
345 ::
google::protobuf::int32 throttle_ascent() const;
346 void set_throttle_ascent(::
google::protobuf::int32 value);
350 void set_has_forwardstart();
351 void clear_has_forwardstart();
352 void set_has_reversestart();
353 void clear_has_reversestart();
354 void set_has_max_reverse();
355 void clear_has_max_reverse();
356 void set_has_throttle_zero_net_buoyancy();
357 void clear_has_throttle_zero_net_buoyancy();
358 void set_has_throttle_dive();
359 void clear_has_throttle_dive();
360 void set_has_throttle_ascent();
361 void clear_has_throttle_ascent();
363 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
364 ::
google::protobuf::internal::HasBits<1> _has_bits_;
365 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
366 ::
google::protobuf::int32 forwardstart_;
367 ::
google::protobuf::int32 reversestart_;
368 ::
google::protobuf::int32 max_reverse_;
369 ::
google::protobuf::int32 throttle_zero_net_buoyancy_;
370 ::
google::protobuf::int32 throttle_dive_;
371 ::
google::protobuf::int32 throttle_ascent_;
390 *
this = ::std::move(from);
393 inline Bounds&
operator=(Bounds&& from) noexcept {
394 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
395 if (
this != &from) InternalSwap(&from);
403 return _internal_metadata_.unknown_fields();
406 return _internal_metadata_.mutable_unknown_fields();
409 static const ::google::protobuf::Descriptor*
descriptor();
414 return reinterpret_cast<const Bounds*
>(
428 return CreateMaybeMessage<Bounds>(NULL);
431 Bounds*
New(::google::protobuf::Arena* arena)
const final {
432 return CreateMaybeMessage<Bounds>(arena);
434 void CopyFrom(const ::google::protobuf::Message& from)
final;
435 void MergeFrom(const ::google::protobuf::Message& from)
final;
443 ::
google::protobuf::io::CodedInputStream* input) final;
445 ::
google::protobuf::io::CodedOutputStream* output) const final;
447 bool deterministic, ::
google::protobuf::uint8* target) const final;
453 void SetCachedSize(
int size)
const final;
454 void InternalSwap(
Bounds* other);
456 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
459 inline void* MaybeArenaPtr()
const {
464 ::google::protobuf::Metadata
GetMetadata() const final;
471 bool has_strb() const;
473 static const
int kStrbFieldNumber = 1;
483 bool has_port() const;
485 static const
int kPortFieldNumber = 2;
495 bool has_rudder() const;
497 static const
int kRudderFieldNumber = 3;
507 bool has_motor() const;
509 static const
int kMotorFieldNumber = 4;
521 void clear_has_strb();
523 void clear_has_port();
524 void set_has_rudder();
525 void clear_has_rudder();
526 void set_has_motor();
527 void clear_has_motor();
529 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
530 ::
google::protobuf::internal::HasBits<1> _has_bits_;
531 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
544 #pragma GCC diagnostic push
545 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
551 return (_has_bits_[0] & 0x00000002u) != 0;
553 inline void SurfaceBounds::set_has_upper() {
554 _has_bits_[0] |= 0x00000002u;
556 inline void SurfaceBounds::clear_has_upper() {
557 _has_bits_[0] &= ~0x00000002u;
575 return (_has_bits_[0] & 0x00000004u) != 0;
577 inline void SurfaceBounds::set_has_lower() {
578 _has_bits_[0] |= 0x00000004u;
580 inline void SurfaceBounds::clear_has_lower() {
581 _has_bits_[0] &= ~0x00000004u;
599 return (_has_bits_[0] & 0x00000001u) != 0;
601 inline void SurfaceBounds::set_has_center() {
602 _has_bits_[0] |= 0x00000001u;
604 inline void SurfaceBounds::clear_has_center() {
605 _has_bits_[0] &= ~0x00000001u;
627 return (_has_bits_[0] & 0x00000001u) != 0;
629 inline void MotorBounds::set_has_forwardstart() {
630 _has_bits_[0] |= 0x00000001u;
632 inline void MotorBounds::clear_has_forwardstart() {
633 _has_bits_[0] &= ~0x00000001u;
636 forwardstart_ = 1600;
637 clear_has_forwardstart();
641 return forwardstart_;
644 set_has_forwardstart();
645 forwardstart_ = value;
651 return (_has_bits_[0] & 0x00000002u) != 0;
653 inline void MotorBounds::set_has_reversestart() {
654 _has_bits_[0] |= 0x00000002u;
656 inline void MotorBounds::clear_has_reversestart() {
657 _has_bits_[0] &= ~0x00000002u;
660 reversestart_ = 1400;
661 clear_has_reversestart();
665 return reversestart_;
668 set_has_reversestart();
669 reversestart_ = value;
675 return (_has_bits_[0] & 0x00000004u) != 0;
677 inline void MotorBounds::set_has_max_reverse() {
678 _has_bits_[0] |= 0x00000004u;
680 inline void MotorBounds::clear_has_max_reverse() {
681 _has_bits_[0] &= ~0x00000004u;
685 clear_has_max_reverse();
692 set_has_max_reverse();
693 max_reverse_ = value;
699 return (_has_bits_[0] & 0x00000008u) != 0;
701 inline void MotorBounds::set_has_throttle_zero_net_buoyancy() {
702 _has_bits_[0] |= 0x00000008u;
704 inline void MotorBounds::clear_has_throttle_zero_net_buoyancy() {
705 _has_bits_[0] &= ~0x00000008u;
708 throttle_zero_net_buoyancy_ = -35;
709 clear_has_throttle_zero_net_buoyancy();
713 return throttle_zero_net_buoyancy_;
716 set_has_throttle_zero_net_buoyancy();
717 throttle_zero_net_buoyancy_ = value;
723 return (_has_bits_[0] & 0x00000010u) != 0;
725 inline void MotorBounds::set_has_throttle_dive() {
726 _has_bits_[0] |= 0x00000010u;
728 inline void MotorBounds::clear_has_throttle_dive() {
729 _has_bits_[0] &= ~0x00000010u;
732 throttle_dive_ = -35;
733 clear_has_throttle_dive();
737 return throttle_dive_;
740 set_has_throttle_dive();
741 throttle_dive_ = value;
747 return (_has_bits_[0] & 0x00000020u) != 0;
749 inline void MotorBounds::set_has_throttle_ascent() {
750 _has_bits_[0] |= 0x00000020u;
752 inline void MotorBounds::clear_has_throttle_ascent() {
753 _has_bits_[0] &= ~0x00000020u;
756 throttle_ascent_ = 25;
757 clear_has_throttle_ascent();
761 return throttle_ascent_;
764 set_has_throttle_ascent();
765 throttle_ascent_ = value;
775 return (_has_bits_[0] & 0x00000001u) != 0;
777 inline void Bounds::set_has_strb() {
778 _has_bits_[0] |= 0x00000001u;
780 inline void Bounds::clear_has_strb() {
781 _has_bits_[0] &= ~0x00000001u;
784 if (strb_ != NULL) strb_->Clear();
787 inline const ::jaiabot::protobuf::SurfaceBounds& Bounds::_internal_strb()
const {
790 inline const ::jaiabot::protobuf::SurfaceBounds&
Bounds::strb()
const {
791 const ::jaiabot::protobuf::SurfaceBounds* p = strb_;
806 auto* p = CreateMaybeMessage<::jaiabot::protobuf::SurfaceBounds>(GetArenaNoVirtual());
813 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
814 if (message_arena == NULL) {
818 ::google::protobuf::Arena* submessage_arena = NULL;
819 if (message_arena != submessage_arena) {
820 strb = ::google::protobuf::internal::GetOwnedMessage(
821 message_arena, strb, submessage_arena);
833 return (_has_bits_[0] & 0x00000002u) != 0;
835 inline void Bounds::set_has_port() {
836 _has_bits_[0] |= 0x00000002u;
838 inline void Bounds::clear_has_port() {
839 _has_bits_[0] &= ~0x00000002u;
842 if (port_ != NULL) port_->Clear();
845 inline const ::jaiabot::protobuf::SurfaceBounds& Bounds::_internal_port()
const {
848 inline const ::jaiabot::protobuf::SurfaceBounds&
Bounds::port()
const {
849 const ::jaiabot::protobuf::SurfaceBounds* p = port_;
864 auto* p = CreateMaybeMessage<::jaiabot::protobuf::SurfaceBounds>(GetArenaNoVirtual());
871 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
872 if (message_arena == NULL) {
876 ::google::protobuf::Arena* submessage_arena = NULL;
877 if (message_arena != submessage_arena) {
878 port = ::google::protobuf::internal::GetOwnedMessage(
879 message_arena, port, submessage_arena);
891 return (_has_bits_[0] & 0x00000004u) != 0;
893 inline void Bounds::set_has_rudder() {
894 _has_bits_[0] |= 0x00000004u;
896 inline void Bounds::clear_has_rudder() {
897 _has_bits_[0] &= ~0x00000004u;
900 if (rudder_ != NULL) rudder_->Clear();
903 inline const ::jaiabot::protobuf::SurfaceBounds& Bounds::_internal_rudder()
const {
907 const ::jaiabot::protobuf::SurfaceBounds* p = rudder_;
921 if (rudder_ == NULL) {
922 auto* p = CreateMaybeMessage<::jaiabot::protobuf::SurfaceBounds>(GetArenaNoVirtual());
929 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
930 if (message_arena == NULL) {
934 ::google::protobuf::Arena* submessage_arena = NULL;
935 if (message_arena != submessage_arena) {
936 rudder = ::google::protobuf::internal::GetOwnedMessage(
937 message_arena, rudder, submessage_arena);
949 return (_has_bits_[0] & 0x00000008u) != 0;
951 inline void Bounds::set_has_motor() {
952 _has_bits_[0] |= 0x00000008u;
954 inline void Bounds::clear_has_motor() {
955 _has_bits_[0] &= ~0x00000008u;
958 if (motor_ != NULL) motor_->Clear();
961 inline const ::jaiabot::protobuf::MotorBounds& Bounds::_internal_motor()
const {
965 const ::jaiabot::protobuf::MotorBounds* p = motor_;
979 if (motor_ == NULL) {
980 auto* p = CreateMaybeMessage<::jaiabot::protobuf::MotorBounds>(GetArenaNoVirtual());
987 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
988 if (message_arena == NULL) {
992 ::google::protobuf::Arena* submessage_arena = NULL;
993 if (message_arena != submessage_arena) {
994 motor = ::google::protobuf::internal::GetOwnedMessage(
995 message_arena, motor, submessage_arena);
1006 #pragma GCC diagnostic pop
1020 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fbounds_2eproto