4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_5fconfig_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>
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>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "dccl/option_extensions.pb.h"
37 #include <boost/units/quantity.hpp>
38 #include <boost/units/absolute.hpp>
39 #include <boost/units/dimensionless_type.hpp>
40 #include <boost/units/make_scaled_unit.hpp>
42 #include <boost/units/systems/si.hpp>
44 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_5fconfig_2eproto
49 static const ::google::protobuf::internal::ParseTableField
entries[];
50 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
51 static const ::google::protobuf::internal::ParseTable
schema[2];
59 namespace middleware {
63 class BluefinConfigDefaultTypeInternal;
65 class BluefinConfig_RPMSpeedEntry;
66 class BluefinConfig_RPMSpeedEntryDefaultTypeInternal;
79 namespace middleware {
95 return ::google::protobuf::internal::NameOfEnum(
100 return ::google::protobuf::internal::ParseNamedEnum<BluefinConfig_AcceptingCommandsHook>(
119 *
this = ::std::move(from);
123 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
124 if (
this != &from) InternalSwap(&from);
132 return _internal_metadata_.unknown_fields();
135 return _internal_metadata_.mutable_unknown_fields();
138 static const ::google::protobuf::Descriptor*
descriptor();
157 return CreateMaybeMessage<BluefinConfig_RPMSpeedEntry>(NULL);
161 return CreateMaybeMessage<BluefinConfig_RPMSpeedEntry>(arena);
163 void CopyFrom(const ::google::protobuf::Message& from)
final;
164 void MergeFrom(const ::google::protobuf::Message& from)
final;
172 ::
google::protobuf::io::CodedInputStream* input) final;
174 ::
google::protobuf::io::CodedOutputStream* output) const final;
176 bool deterministic, ::
google::protobuf::uint8* target) const final;
182 void SetCachedSize(
int size)
const final;
185 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
188 inline void* MaybeArenaPtr()
const {
203 double speed() const;
217 template<typename Quantity >
219 {
set_speed(boost::units::quantity<speed_unit,double >(value_w_units).value() ); };
221 template<
typename Quantity >
226 {
return speed_with_units<boost::units::quantity< speed_unit,double > >(); };
230 void set_has_speed();
231 void clear_has_speed();
233 void clear_has_rpm();
236 size_t RequiredFieldsByteSizeFallback()
const;
238 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
239 ::google::protobuf::internal::HasBits<1> _has_bits_;
240 mutable ::google::protobuf::internal::CachedSize _cached_size_;
243 friend struct ::protobuf_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_5fconfig_2eproto::TableStruct;
261 *
this = ::std::move(from);
265 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
266 if (
this != &from) InternalSwap(&from);
274 return _internal_metadata_.unknown_fields();
277 return _internal_metadata_.mutable_unknown_fields();
280 static const ::google::protobuf::Descriptor*
descriptor();
299 return CreateMaybeMessage<BluefinConfig>(NULL);
303 return CreateMaybeMessage<BluefinConfig>(arena);
305 void CopyFrom(const ::google::protobuf::Message& from)
final;
306 void MergeFrom(const ::google::protobuf::Message& from)
final;
314 ::
google::protobuf::io::CodedInputStream* input) final;
316 ::
google::protobuf::io::CodedOutputStream* output) const final;
318 bool deterministic, ::
google::protobuf::uint8* target) const final;
324 void SetCachedSize(
int size)
const final;
327 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
330 inline void* MaybeArenaPtr()
const {
357 static inline const ::google::protobuf::EnumDescriptor*
390 const ::google::protobuf::RepeatedPtrField< ::std::string>&
extra_bplog()
const;
400 const ::goby::middleware::frontseat::protobuf::BluefinConfig_RPMSpeedEntry&
rpm_table(
int index)
const;
402 const ::google::protobuf::RepeatedPtrField< ::goby::middleware::frontseat::protobuf::BluefinConfig_RPMSpeedEntry >&
501 template<
typename Quantity >
503 {
set_reconnect_interval(boost::units::quantity<reconnect_interval_unit,google::protobuf::uint32 >(value_w_units).value() ); };
505 template<
typename Quantity >
510 {
return reconnect_interval_with_units<boost::units::quantity< reconnect_interval_unit,google::protobuf::uint32 > >(); };
516 template<
typename Quantity >
518 {
set_nmea_resend_interval(boost::units::quantity<nmea_resend_interval_unit,google::protobuf::uint32 >(value_w_units).value() ); };
520 template<
typename Quantity >
525 {
return nmea_resend_interval_with_units<boost::units::quantity< nmea_resend_interval_unit,google::protobuf::uint32 > >(); };
531 template<
typename Quantity >
535 template<
typename Quantity >
540 {
return allow_missing_nav_interval_with_units<boost::units::quantity< allow_missing_nav_interval_unit,google::protobuf::uint32 > >(); };
546 template<
typename Quantity >
548 {
set_heartbeat_interval(boost::units::quantity<heartbeat_interval_unit,google::protobuf::uint32 >(value_w_units).value() ); };
550 template<
typename Quantity >
555 {
return heartbeat_interval_with_units<boost::units::quantity< heartbeat_interval_unit,google::protobuf::uint32 > >(); };
559 void set_has_huxley_tcp_address();
560 void clear_has_huxley_tcp_address();
561 void set_has_huxley_tcp_port();
562 void clear_has_huxley_tcp_port();
563 void set_has_reconnect_interval();
564 void clear_has_reconnect_interval();
565 void set_has_nmea_resend_attempts();
566 void clear_has_nmea_resend_attempts();
567 void set_has_nmea_resend_interval();
568 void clear_has_nmea_resend_interval();
569 void set_has_allowed_nmea_demerits();
570 void clear_has_allowed_nmea_demerits();
571 void set_has_allow_missing_nav_interval();
572 void clear_has_allow_missing_nav_interval();
573 void set_has_heartbeat_interval();
574 void clear_has_heartbeat_interval();
575 void set_has_send_tmr_messages();
576 void clear_has_send_tmr_messages();
577 void set_has_disable_ack();
578 void clear_has_disable_ack();
579 void set_has_accepting_commands_hook();
580 void clear_has_accepting_commands_hook();
581 void set_has_use_rpm_table_for_speed();
582 void clear_has_use_rpm_table_for_speed();
584 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
585 ::google::protobuf::internal::HasBits<1> _has_bits_;
586 mutable ::google::protobuf::internal::CachedSize _cached_size_;
589 ::google::protobuf::internal::ArenaStringPtr huxley_tcp_address_;
590 int accepting_commands_hook_;
592 bool use_rpm_table_for_speed_;
600 bool send_tmr_messages_;
601 friend struct ::protobuf_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_5fconfig_2eproto::TableStruct;
607 ::google::protobuf::internal::MessageTypeTraits< ::goby::middleware::frontseat::protobuf::BluefinConfig >, 11,
false >
613 #pragma GCC diagnostic push
614 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
620 return (_has_bits_[0] & 0x00000001u) != 0;
622 inline void BluefinConfig_RPMSpeedEntry::set_has_speed() {
623 _has_bits_[0] |= 0x00000001u;
625 inline void BluefinConfig_RPMSpeedEntry::clear_has_speed() {
626 _has_bits_[0] &= ~0x00000001u;
644 return (_has_bits_[0] & 0x00000002u) != 0;
646 inline void BluefinConfig_RPMSpeedEntry::set_has_rpm() {
647 _has_bits_[0] |= 0x00000002u;
649 inline void BluefinConfig_RPMSpeedEntry::clear_has_rpm() {
650 _has_bits_[0] &= ~0x00000002u;
672 return (_has_bits_[0] & 0x00000001u) != 0;
674 inline void BluefinConfig::set_has_huxley_tcp_address() {
675 _has_bits_[0] |= 0x00000001u;
677 inline void BluefinConfig::clear_has_huxley_tcp_address() {
678 _has_bits_[0] &= ~0x00000001u;
682 clear_has_huxley_tcp_address();
686 return huxley_tcp_address_.GetNoArena();
689 set_has_huxley_tcp_address();
695 set_has_huxley_tcp_address();
696 huxley_tcp_address_.SetNoArena(
702 GOOGLE_DCHECK(value != NULL);
703 set_has_huxley_tcp_address();
708 set_has_huxley_tcp_address();
710 ::std::string(
reinterpret_cast<const char*
>(value), size));
714 set_has_huxley_tcp_address();
723 clear_has_huxley_tcp_address();
728 set_has_huxley_tcp_address();
730 clear_has_huxley_tcp_address();
738 return (_has_bits_[0] & 0x00000010u) != 0;
740 inline void BluefinConfig::set_has_huxley_tcp_port() {
741 _has_bits_[0] |= 0x00000010u;
743 inline void BluefinConfig::clear_has_huxley_tcp_port() {
744 _has_bits_[0] &= ~0x00000010u;
747 huxley_tcp_port_ = 29500u;
748 clear_has_huxley_tcp_port();
752 return huxley_tcp_port_;
755 set_has_huxley_tcp_port();
756 huxley_tcp_port_ = value;
762 return (_has_bits_[0] & 0x00000020u) != 0;
764 inline void BluefinConfig::set_has_reconnect_interval() {
765 _has_bits_[0] |= 0x00000020u;
767 inline void BluefinConfig::clear_has_reconnect_interval() {
768 _has_bits_[0] &= ~0x00000020u;
771 reconnect_interval_ = 10u;
772 clear_has_reconnect_interval();
776 return reconnect_interval_;
779 set_has_reconnect_interval();
780 reconnect_interval_ = value;
786 return (_has_bits_[0] & 0x00000040u) != 0;
788 inline void BluefinConfig::set_has_nmea_resend_attempts() {
789 _has_bits_[0] |= 0x00000040u;
791 inline void BluefinConfig::clear_has_nmea_resend_attempts() {
792 _has_bits_[0] &= ~0x00000040u;
795 nmea_resend_attempts_ = 3u;
796 clear_has_nmea_resend_attempts();
800 return nmea_resend_attempts_;
803 set_has_nmea_resend_attempts();
804 nmea_resend_attempts_ = value;
810 return (_has_bits_[0] & 0x00000080u) != 0;
812 inline void BluefinConfig::set_has_nmea_resend_interval() {
813 _has_bits_[0] |= 0x00000080u;
815 inline void BluefinConfig::clear_has_nmea_resend_interval() {
816 _has_bits_[0] &= ~0x00000080u;
819 nmea_resend_interval_ = 5u;
820 clear_has_nmea_resend_interval();
824 return nmea_resend_interval_;
827 set_has_nmea_resend_interval();
828 nmea_resend_interval_ = value;
834 return (_has_bits_[0] & 0x00000100u) != 0;
836 inline void BluefinConfig::set_has_allowed_nmea_demerits() {
837 _has_bits_[0] |= 0x00000100u;
839 inline void BluefinConfig::clear_has_allowed_nmea_demerits() {
840 _has_bits_[0] &= ~0x00000100u;
843 allowed_nmea_demerits_ = 3u;
844 clear_has_allowed_nmea_demerits();
848 return allowed_nmea_demerits_;
851 set_has_allowed_nmea_demerits();
852 allowed_nmea_demerits_ = value;
858 return (_has_bits_[0] & 0x00000200u) != 0;
860 inline void BluefinConfig::set_has_allow_missing_nav_interval() {
861 _has_bits_[0] |= 0x00000200u;
863 inline void BluefinConfig::clear_has_allow_missing_nav_interval() {
864 _has_bits_[0] &= ~0x00000200u;
867 allow_missing_nav_interval_ = 5u;
868 clear_has_allow_missing_nav_interval();
872 return allow_missing_nav_interval_;
875 set_has_allow_missing_nav_interval();
876 allow_missing_nav_interval_ = value;
882 return (_has_bits_[0] & 0x00000400u) != 0;
884 inline void BluefinConfig::set_has_heartbeat_interval() {
885 _has_bits_[0] |= 0x00000400u;
887 inline void BluefinConfig::clear_has_heartbeat_interval() {
888 _has_bits_[0] &= ~0x00000400u;
891 heartbeat_interval_ = 1u;
892 clear_has_heartbeat_interval();
896 return heartbeat_interval_;
899 set_has_heartbeat_interval();
900 heartbeat_interval_ = value;
906 return extra_bplog_.size();
909 extra_bplog_.Clear();
913 return extra_bplog_.Get(index);
917 return extra_bplog_.Mutable(index);
921 extra_bplog_.Mutable(index)->assign(value);
926 extra_bplog_.Mutable(index)->assign(std::move(value));
930 GOOGLE_DCHECK(value != NULL);
931 extra_bplog_.Mutable(index)->assign(value);
935 extra_bplog_.Mutable(index)->assign(
936 reinterpret_cast<const char*
>(value), size);
941 return extra_bplog_.Add();
944 extra_bplog_.Add()->assign(value);
949 extra_bplog_.Add(std::move(value));
954 GOOGLE_DCHECK(value != NULL);
955 extra_bplog_.Add()->assign(value);
959 extra_bplog_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
962 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
967 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
970 return &extra_bplog_;
975 return (_has_bits_[0] & 0x00000800u) != 0;
977 inline void BluefinConfig::set_has_send_tmr_messages() {
978 _has_bits_[0] |= 0x00000800u;
980 inline void BluefinConfig::clear_has_send_tmr_messages() {
981 _has_bits_[0] &= ~0x00000800u;
984 send_tmr_messages_ =
true;
985 clear_has_send_tmr_messages();
989 return send_tmr_messages_;
992 set_has_send_tmr_messages();
993 send_tmr_messages_ = value;
999 return (_has_bits_[0] & 0x00000004u) != 0;
1001 inline void BluefinConfig::set_has_disable_ack() {
1002 _has_bits_[0] |= 0x00000004u;
1004 inline void BluefinConfig::clear_has_disable_ack() {
1005 _has_bits_[0] &= ~0x00000004u;
1008 disable_ack_ =
false;
1009 clear_has_disable_ack();
1013 return disable_ack_;
1016 set_has_disable_ack();
1017 disable_ack_ = value;
1023 return (_has_bits_[0] & 0x00000002u) != 0;
1025 inline void BluefinConfig::set_has_accepting_commands_hook() {
1026 _has_bits_[0] |= 0x00000002u;
1028 inline void BluefinConfig::clear_has_accepting_commands_hook() {
1029 _has_bits_[0] &= ~0x00000002u;
1032 accepting_commands_hook_ = 0;
1033 clear_has_accepting_commands_hook();
1041 set_has_accepting_commands_hook();
1042 accepting_commands_hook_ = value;
1048 return (_has_bits_[0] & 0x00000008u) != 0;
1050 inline void BluefinConfig::set_has_use_rpm_table_for_speed() {
1051 _has_bits_[0] |= 0x00000008u;
1053 inline void BluefinConfig::clear_has_use_rpm_table_for_speed() {
1054 _has_bits_[0] &= ~0x00000008u;
1057 use_rpm_table_for_speed_ =
false;
1058 clear_has_use_rpm_table_for_speed();
1062 return use_rpm_table_for_speed_;
1065 set_has_use_rpm_table_for_speed();
1066 use_rpm_table_for_speed_ = value;
1072 return rpm_table_.size();
1079 return rpm_table_.Mutable(index);
1081 inline ::google::protobuf::RepeatedPtrField< ::goby::middleware::frontseat::protobuf::BluefinConfig_RPMSpeedEntry >*
1088 return rpm_table_.Get(index);
1092 return rpm_table_.Add();
1094 inline const ::google::protobuf::RepeatedPtrField< ::goby::middleware::frontseat::protobuf::BluefinConfig_RPMSpeedEntry >&
1101 #pragma GCC diagnostic pop
1114 namespace protobuf {
1118 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::frontseat::protobuf::BluefinConfig_AcceptingCommandsHook>() {
1127 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_5fconfig_2eproto