4 #ifndef PROTOBUF_INCLUDED_bin_2fhealth_2fconfig_2eproto
5 #define PROTOBUF_INCLUDED_bin_2fhealth_2fconfig_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 "goby/middleware/protobuf/app_config.pb.h"
34 #include "goby/zeromq/protobuf/interprocess_config.pb.h"
35 #include "goby/middleware/protobuf/udp_config.pb.h"
36 #include "dccl/option_extensions.pb.h"
38 #include <boost/units/quantity.hpp>
39 #include <boost/units/absolute.hpp>
40 #include <boost/units/dimensionless_type.hpp>
41 #include <boost/units/make_scaled_unit.hpp>
43 #include <boost/units/systems/si.hpp>
45 #define PROTOBUF_INTERNAL_EXPORT_protobuf_bin_2fhealth_2fconfig_2eproto
50 static const ::google::protobuf::internal::ParseTableField
entries[];
51 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
52 static const ::google::protobuf::internal::ParseTable
schema[5];
55 static const ::google::protobuf::uint32
offsets[];
62 class HealthDefaultTypeInternal;
64 class HelmIVPStatusConfig;
65 class HelmIVPStatusConfigDefaultTypeInternal;
67 class LinuxHardwareConfig;
68 class LinuxHardwareConfigDefaultTypeInternal;
70 class MotorStatusConfig;
71 class MotorStatusConfigDefaultTypeInternal;
73 class NTPStatusConfig;
74 class NTPStatusConfigDefaultTypeInternal;
106 *
this = ::std::move(from);
110 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
111 if (
this != &from) InternalSwap(&from);
119 return _internal_metadata_.unknown_fields();
122 return _internal_metadata_.mutable_unknown_fields();
125 static const ::google::protobuf::Descriptor*
descriptor();
144 return CreateMaybeMessage<LinuxHardwareConfig>(NULL);
148 return CreateMaybeMessage<LinuxHardwareConfig>(arena);
150 void CopyFrom(const ::google::protobuf::Message& from)
final;
151 void MergeFrom(const ::google::protobuf::Message& from)
final;
159 ::
google::protobuf::io::CodedInputStream* input) final;
161 ::
google::protobuf::io::CodedOutputStream* output) const final;
163 bool deterministic, ::
google::protobuf::uint8* target) const final;
169 void SetCachedSize(
int size)
const final;
172 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
175 inline void* MaybeArenaPtr()
const {
180 ::google::protobuf::Metadata
GetMetadata() const final;
275 void set_has_data_disk_mountpoint();
276 void clear_has_data_disk_mountpoint();
277 void set_has_disk_low_available_percentage();
278 void clear_has_disk_low_available_percentage();
279 void set_has_disk_critical_available_percentage();
280 void clear_has_disk_critical_available_percentage();
281 void set_has_ram_low_available_percentage();
282 void clear_has_ram_low_available_percentage();
283 void set_has_ram_critical_available_percentage();
284 void clear_has_ram_critical_available_percentage();
285 void set_has_high_load_factor();
286 void clear_has_high_load_factor();
287 void set_has_critical_load_factor();
288 void clear_has_critical_load_factor();
289 void set_has_wireless_file();
290 void clear_has_wireless_file();
291 void set_has_wlan_interface();
292 void clear_has_wlan_interface();
294 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
295 ::google::protobuf::internal::HasBits<1> _has_bits_;
296 mutable ::google::protobuf::internal::CachedSize _cached_size_;
300 ::google::protobuf::internal::ArenaStringPtr data_disk_mountpoint_;
304 ::google::protobuf::internal::ArenaStringPtr wireless_file_;
308 ::google::protobuf::internal::ArenaStringPtr wlan_interface_;
309 float disk_low_available_percentage_;
310 float disk_critical_available_percentage_;
311 float ram_low_available_percentage_;
312 float ram_critical_available_percentage_;
313 float high_load_factor_;
314 float critical_load_factor_;
315 friend struct ::protobuf_bin_2fhealth_2fconfig_2eproto::TableStruct;
333 *
this = ::std::move(from);
337 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
338 if (
this != &from) InternalSwap(&from);
346 return _internal_metadata_.unknown_fields();
349 return _internal_metadata_.mutable_unknown_fields();
352 static const ::google::protobuf::Descriptor*
descriptor();
371 return CreateMaybeMessage<NTPStatusConfig>(NULL);
375 return CreateMaybeMessage<NTPStatusConfig>(arena);
377 void CopyFrom(const ::google::protobuf::Message& from)
final;
378 void MergeFrom(const ::google::protobuf::Message& from)
final;
386 ::
google::protobuf::io::CodedInputStream* input) final;
388 ::
google::protobuf::io::CodedOutputStream* output) const final;
390 bool deterministic, ::
google::protobuf::uint8* target) const final;
396 void SetCachedSize(
int size)
const final;
399 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
402 inline void* MaybeArenaPtr()
const {
407 ::google::protobuf::Metadata
GetMetadata() const final;
431 template<typename Quantity >
435 template<
typename Quantity >
440 {
return high_offset_threshold_with_units<boost::units::quantity< high_offset_threshold_unit,float > >(); };
444 typedef boost::units::make_scaled_unit<boost::units::unit<high_jitter_threshold_dimension,boost::units::si::system> , boost::units::scale<10, boost::units::static_rational<-3> > >::type
high_jitter_threshold_unit;
446 template<
typename Quantity >
450 template<
typename Quantity >
455 {
return high_jitter_threshold_with_units<boost::units::quantity< high_jitter_threshold_unit,float > >(); };
459 void set_has_high_offset_threshold();
460 void clear_has_high_offset_threshold();
461 void set_has_high_jitter_threshold();
462 void clear_has_high_jitter_threshold();
464 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
465 ::google::protobuf::internal::HasBits<1> _has_bits_;
466 mutable ::google::protobuf::internal::CachedSize _cached_size_;
467 float high_offset_threshold_;
468 float high_jitter_threshold_;
469 friend struct ::protobuf_bin_2fhealth_2fconfig_2eproto::TableStruct;
487 *
this = ::std::move(from);
491 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
492 if (
this != &from) InternalSwap(&from);
500 return _internal_metadata_.unknown_fields();
503 return _internal_metadata_.mutable_unknown_fields();
506 static const ::google::protobuf::Descriptor*
descriptor();
525 return CreateMaybeMessage<HelmIVPStatusConfig>(NULL);
529 return CreateMaybeMessage<HelmIVPStatusConfig>(arena);
531 void CopyFrom(const ::google::protobuf::Message& from)
final;
532 void MergeFrom(const ::google::protobuf::Message& from)
final;
540 ::
google::protobuf::io::CodedInputStream* input) final;
542 ::
google::protobuf::io::CodedOutputStream* output) const final;
544 bool deterministic, ::
google::protobuf::uint8* target) const final;
550 void SetCachedSize(
int size)
const final;
553 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
556 inline void* MaybeArenaPtr()
const {
561 ::google::protobuf::Metadata
GetMetadata() const final;
576 void set_has_time_out_helm_status();
577 void clear_has_time_out_helm_status();
579 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
580 ::
google::protobuf::internal::HasBits<1> _has_bits_;
581 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
582 ::
google::protobuf::int32 time_out_helm_status_;
601 *
this = ::std::move(from);
604 inline MotorStatusConfig&
operator=(MotorStatusConfig&& from) noexcept {
605 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
606 if (
this != &from) InternalSwap(&from);
614 return _internal_metadata_.unknown_fields();
617 return _internal_metadata_.mutable_unknown_fields();
620 static const ::google::protobuf::Descriptor*
descriptor();
639 return CreateMaybeMessage<MotorStatusConfig>(NULL);
643 return CreateMaybeMessage<MotorStatusConfig>(arena);
645 void CopyFrom(const ::google::protobuf::Message& from)
final;
646 void MergeFrom(const ::google::protobuf::Message& from)
final;
654 ::
google::protobuf::io::CodedInputStream* input) final;
656 ::
google::protobuf::io::CodedOutputStream* output) const final;
658 bool deterministic, ::
google::protobuf::uint8* target) const final;
664 void SetCachedSize(
int size)
const final;
667 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
670 inline void* MaybeArenaPtr()
const {
675 ::google::protobuf::Metadata
GetMetadata() const final;
682 bool has_motor_harness_type() const;
683 void clear_motor_harness_type();
684 static const
int kMotorHarnessTypeFieldNumber = 12;
689 bool has_motor_rpm_report_timeout_seconds() const;
690 void clear_motor_rpm_report_timeout_seconds();
691 static const
int kMotorRpmReportTimeoutSecondsFieldNumber = 10;
692 ::
google::protobuf::int32 motor_rpm_report_timeout_seconds() const;
693 void set_motor_rpm_report_timeout_seconds(::
google::protobuf::int32 value);
696 bool has_motor_thermistor_report_timeout_seconds() const;
697 void clear_motor_thermistor_report_timeout_seconds();
698 static const
int kMotorThermistorReportTimeoutSecondsFieldNumber = 11;
699 ::
google::protobuf::int32 motor_thermistor_report_timeout_seconds() const;
700 void set_motor_thermistor_report_timeout_seconds(::
google::protobuf::int32 value);
704 void set_has_motor_rpm_report_timeout_seconds();
705 void clear_has_motor_rpm_report_timeout_seconds();
706 void set_has_motor_thermistor_report_timeout_seconds();
707 void clear_has_motor_thermistor_report_timeout_seconds();
708 void set_has_motor_harness_type();
709 void clear_has_motor_harness_type();
711 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
712 ::
google::protobuf::internal::HasBits<1> _has_bits_;
713 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
714 int motor_harness_type_;
715 ::
google::protobuf::int32 motor_rpm_report_timeout_seconds_;
716 ::
google::protobuf::int32 motor_thermistor_report_timeout_seconds_;
735 *
this = ::std::move(from);
738 inline Health&
operator=(Health&& from) noexcept {
739 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
740 if (
this != &from) InternalSwap(&from);
748 return _internal_metadata_.unknown_fields();
751 return _internal_metadata_.mutable_unknown_fields();
754 static const ::google::protobuf::Descriptor*
descriptor();
759 return reinterpret_cast<const Health*
>(
773 return CreateMaybeMessage<Health>(NULL);
776 Health*
New(::google::protobuf::Arena* arena)
const final {
777 return CreateMaybeMessage<Health>(arena);
779 void CopyFrom(const ::google::protobuf::Message& from)
final;
780 void MergeFrom(const ::google::protobuf::Message& from)
final;
788 ::
google::protobuf::io::CodedInputStream* input) final;
790 ::
google::protobuf::io::CodedOutputStream* output) const final;
792 bool deterministic, ::
google::protobuf::uint8* target) const final;
798 void SetCachedSize(
int size)
const final;
799 void InternalSwap(
Health* other);
801 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
804 inline void* MaybeArenaPtr()
const {
809 ::google::protobuf::Metadata
GetMetadata() const final;
816 bool has_app() const;
818 static const
int kAppFieldNumber = 1;
820 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
822 const ::
goby::middleware::protobuf::AppConfig& app() const;
823 ::
goby::middleware::protobuf::AppConfig* release_app();
824 ::
goby::middleware::protobuf::AppConfig* mutable_app();
825 void set_allocated_app(::
goby::middleware::protobuf::AppConfig* app);
828 bool has_interprocess() const;
829 void clear_interprocess();
830 static const
int kInterprocessFieldNumber = 2;
832 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
834 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
835 ::
goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
836 ::
goby::zeromq::protobuf::InterProcessPortalConfig* mutable_interprocess();
837 void set_allocated_interprocess(::
goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
840 bool has_udp_config() const;
841 void clear_udp_config();
842 static const
int kUdpConfigFieldNumber = 3;
844 const ::
goby::middleware::protobuf::UDPPointToPointConfig& _internal_udp_config() const;
846 const ::
goby::middleware::protobuf::UDPPointToPointConfig& udp_config() const;
847 ::
goby::middleware::protobuf::UDPPointToPointConfig* release_udp_config();
848 ::
goby::middleware::protobuf::UDPPointToPointConfig* mutable_udp_config();
849 void set_allocated_udp_config(::
goby::middleware::protobuf::UDPPointToPointConfig* udp_config);
852 bool has_linux_hw() const;
853 void clear_linux_hw();
854 static const
int kLinuxHwFieldNumber = 30;
864 bool has_ntp() const;
866 static const
int kNtpFieldNumber = 40;
876 bool has_helm() const;
878 static const
int kHelmFieldNumber = 41;
888 bool has_motor() const;
890 static const
int kMotorFieldNumber = 42;
900 bool has_ignore_powerstate_changes() const;
901 void clear_ignore_powerstate_changes();
902 static const
int kIgnorePowerstateChangesFieldNumber = 20;
903 bool ignore_powerstate_changes() const;
904 void set_ignore_powerstate_changes(
bool value);
907 bool has_is_in_sim() const;
908 void clear_is_in_sim();
909 static const
int kIsInSimFieldNumber = 23;
910 bool is_in_sim() const;
911 void set_is_in_sim(
bool value);
914 bool has_test_hardware_in_sim() const;
915 void clear_test_hardware_in_sim();
916 static const
int kTestHardwareInSimFieldNumber = 24;
917 bool test_hardware_in_sim() const;
918 void set_test_hardware_in_sim(
bool value);
921 bool has_auto_restart() const;
922 void clear_auto_restart();
923 static const
int kAutoRestartFieldNumber = 10;
924 bool auto_restart() const;
925 void set_auto_restart(
bool value);
928 bool has_check_helm_ivp_status() const;
929 void clear_check_helm_ivp_status();
930 static const
int kCheckHelmIvpStatusFieldNumber = 21;
931 bool check_helm_ivp_status() const;
932 void set_check_helm_ivp_status(
bool value);
935 bool has_auto_restart_timeout() const;
936 void clear_auto_restart_timeout();
937 static const
int kAutoRestartTimeoutFieldNumber = 11;
938 ::
google::protobuf::int32 auto_restart_timeout() const;
939 void set_auto_restart_timeout(::
google::protobuf::int32 value);
942 bool has_auto_restart_init_grace_period() const;
943 void clear_auto_restart_init_grace_period();
944 static const
int kAutoRestartInitGracePeriodFieldNumber = 12;
945 ::
google::protobuf::int32 auto_restart_init_grace_period() const;
946 void set_auto_restart_init_grace_period(::
google::protobuf::int32 value);
952 template<typename Quantity >
953 void set_auto_restart_timeout_with_units(Quantity value_w_units)
954 { set_auto_restart_timeout(boost::units::quantity<auto_restart_timeout_unit,google::protobuf::int32 >(value_w_units).value() ); };
956 template<
typename Quantity >
961 {
return auto_restart_timeout_with_units<boost::units::quantity< auto_restart_timeout_unit,google::protobuf::int32 > >(); };
963 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type auto_restart_init_grace_period_dimension;
967 template<
typename Quantity >
969 { set_auto_restart_init_grace_period(boost::units::quantity<auto_restart_init_grace_period_unit,google::protobuf::int32 >(value_w_units).value() ); };
971 template<
typename Quantity >
976 {
return auto_restart_init_grace_period_with_units<boost::units::quantity< auto_restart_init_grace_period_unit,google::protobuf::int32 > >(); };
981 void clear_has_app();
982 void set_has_interprocess();
983 void clear_has_interprocess();
984 void set_has_udp_config();
985 void clear_has_udp_config();
986 void set_has_auto_restart();
987 void clear_has_auto_restart();
988 void set_has_auto_restart_timeout();
989 void clear_has_auto_restart_timeout();
990 void set_has_auto_restart_init_grace_period();
991 void clear_has_auto_restart_init_grace_period();
992 void set_has_ignore_powerstate_changes();
993 void clear_has_ignore_powerstate_changes();
994 void set_has_check_helm_ivp_status();
995 void clear_has_check_helm_ivp_status();
996 void set_has_is_in_sim();
997 void clear_has_is_in_sim();
998 void set_has_test_hardware_in_sim();
999 void clear_has_test_hardware_in_sim();
1000 void set_has_linux_hw();
1001 void clear_has_linux_hw();
1003 void clear_has_ntp();
1004 void set_has_helm();
1005 void clear_has_helm();
1006 void set_has_motor();
1007 void clear_has_motor();
1009 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1010 ::google::protobuf::internal::HasBits<1> _has_bits_;
1011 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1012 ::goby::middleware::protobuf::AppConfig* app_;
1013 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
1014 ::goby::middleware::protobuf::UDPPointToPointConfig* udp_config_;
1019 bool ignore_powerstate_changes_;
1021 bool test_hardware_in_sim_;
1023 bool check_helm_ivp_status_;
1024 ::google::protobuf::int32 auto_restart_timeout_;
1025 ::google::protobuf::int32 auto_restart_init_grace_period_;
1026 friend struct ::protobuf_bin_2fhealth_2fconfig_2eproto::TableStruct;
1034 #pragma GCC diagnostic push
1035 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1041 return (_has_bits_[0] & 0x00000001u) != 0;
1043 inline void LinuxHardwareConfig::set_has_data_disk_mountpoint() {
1044 _has_bits_[0] |= 0x00000001u;
1046 inline void LinuxHardwareConfig::clear_has_data_disk_mountpoint() {
1047 _has_bits_[0] &= ~0x00000001u;
1051 clear_has_data_disk_mountpoint();
1055 return data_disk_mountpoint_.GetNoArena();
1058 set_has_data_disk_mountpoint();
1064 set_has_data_disk_mountpoint();
1065 data_disk_mountpoint_.SetNoArena(
1071 GOOGLE_DCHECK(value != NULL);
1072 set_has_data_disk_mountpoint();
1077 set_has_data_disk_mountpoint();
1079 ::std::string(
reinterpret_cast<const char*
>(value), size));
1083 set_has_data_disk_mountpoint();
1089 if (!has_data_disk_mountpoint()) {
1092 clear_has_data_disk_mountpoint();
1096 if (data_disk_mountpoint != NULL) {
1097 set_has_data_disk_mountpoint();
1099 clear_has_data_disk_mountpoint();
1107 return (_has_bits_[0] & 0x00000008u) != 0;
1109 inline void LinuxHardwareConfig::set_has_disk_low_available_percentage() {
1110 _has_bits_[0] |= 0x00000008u;
1112 inline void LinuxHardwareConfig::clear_has_disk_low_available_percentage() {
1113 _has_bits_[0] &= ~0x00000008u;
1116 disk_low_available_percentage_ = 10;
1117 clear_has_disk_low_available_percentage();
1121 return disk_low_available_percentage_;
1124 set_has_disk_low_available_percentage();
1125 disk_low_available_percentage_ = value;
1131 return (_has_bits_[0] & 0x00000010u) != 0;
1133 inline void LinuxHardwareConfig::set_has_disk_critical_available_percentage() {
1134 _has_bits_[0] |= 0x00000010u;
1136 inline void LinuxHardwareConfig::clear_has_disk_critical_available_percentage() {
1137 _has_bits_[0] &= ~0x00000010u;
1140 disk_critical_available_percentage_ = 2;
1141 clear_has_disk_critical_available_percentage();
1145 return disk_critical_available_percentage_;
1148 set_has_disk_critical_available_percentage();
1149 disk_critical_available_percentage_ = value;
1155 return (_has_bits_[0] & 0x00000020u) != 0;
1157 inline void LinuxHardwareConfig::set_has_ram_low_available_percentage() {
1158 _has_bits_[0] |= 0x00000020u;
1160 inline void LinuxHardwareConfig::clear_has_ram_low_available_percentage() {
1161 _has_bits_[0] &= ~0x00000020u;
1164 ram_low_available_percentage_ = 10;
1165 clear_has_ram_low_available_percentage();
1169 return ram_low_available_percentage_;
1172 set_has_ram_low_available_percentage();
1173 ram_low_available_percentage_ = value;
1179 return (_has_bits_[0] & 0x00000040u) != 0;
1181 inline void LinuxHardwareConfig::set_has_ram_critical_available_percentage() {
1182 _has_bits_[0] |= 0x00000040u;
1184 inline void LinuxHardwareConfig::clear_has_ram_critical_available_percentage() {
1185 _has_bits_[0] &= ~0x00000040u;
1188 ram_critical_available_percentage_ = 1;
1189 clear_has_ram_critical_available_percentage();
1193 return ram_critical_available_percentage_;
1196 set_has_ram_critical_available_percentage();
1197 ram_critical_available_percentage_ = value;
1203 return (_has_bits_[0] & 0x00000080u) != 0;
1205 inline void LinuxHardwareConfig::set_has_high_load_factor() {
1206 _has_bits_[0] |= 0x00000080u;
1208 inline void LinuxHardwareConfig::clear_has_high_load_factor() {
1209 _has_bits_[0] &= ~0x00000080u;
1212 high_load_factor_ = 0.9f;
1213 clear_has_high_load_factor();
1217 return high_load_factor_;
1220 set_has_high_load_factor();
1221 high_load_factor_ = value;
1227 return (_has_bits_[0] & 0x00000100u) != 0;
1229 inline void LinuxHardwareConfig::set_has_critical_load_factor() {
1230 _has_bits_[0] |= 0x00000100u;
1232 inline void LinuxHardwareConfig::clear_has_critical_load_factor() {
1233 _has_bits_[0] &= ~0x00000100u;
1236 critical_load_factor_ = 5;
1237 clear_has_critical_load_factor();
1241 return critical_load_factor_;
1244 set_has_critical_load_factor();
1245 critical_load_factor_ = value;
1251 return (_has_bits_[0] & 0x00000002u) != 0;
1253 inline void LinuxHardwareConfig::set_has_wireless_file() {
1254 _has_bits_[0] |= 0x00000002u;
1256 inline void LinuxHardwareConfig::clear_has_wireless_file() {
1257 _has_bits_[0] &= ~0x00000002u;
1261 clear_has_wireless_file();
1265 return wireless_file_.GetNoArena();
1268 set_has_wireless_file();
1274 set_has_wireless_file();
1275 wireless_file_.SetNoArena(
1281 GOOGLE_DCHECK(value != NULL);
1282 set_has_wireless_file();
1287 set_has_wireless_file();
1289 ::std::string(
reinterpret_cast<const char*
>(value), size));
1293 set_has_wireless_file();
1299 if (!has_wireless_file()) {
1302 clear_has_wireless_file();
1306 if (wireless_file != NULL) {
1307 set_has_wireless_file();
1309 clear_has_wireless_file();
1317 return (_has_bits_[0] & 0x00000004u) != 0;
1319 inline void LinuxHardwareConfig::set_has_wlan_interface() {
1320 _has_bits_[0] |= 0x00000004u;
1322 inline void LinuxHardwareConfig::clear_has_wlan_interface() {
1323 _has_bits_[0] &= ~0x00000004u;
1327 clear_has_wlan_interface();
1331 return wlan_interface_.GetNoArena();
1334 set_has_wlan_interface();
1340 set_has_wlan_interface();
1341 wlan_interface_.SetNoArena(
1347 GOOGLE_DCHECK(value != NULL);
1348 set_has_wlan_interface();
1353 set_has_wlan_interface();
1355 ::std::string(
reinterpret_cast<const char*
>(value), size));
1359 set_has_wlan_interface();
1365 if (!has_wlan_interface()) {
1368 clear_has_wlan_interface();
1372 if (wlan_interface != NULL) {
1373 set_has_wlan_interface();
1375 clear_has_wlan_interface();
1387 return (_has_bits_[0] & 0x00000001u) != 0;
1389 inline void NTPStatusConfig::set_has_high_offset_threshold() {
1390 _has_bits_[0] |= 0x00000001u;
1392 inline void NTPStatusConfig::clear_has_high_offset_threshold() {
1393 _has_bits_[0] &= ~0x00000001u;
1396 high_offset_threshold_ = 10;
1397 clear_has_high_offset_threshold();
1401 return high_offset_threshold_;
1404 set_has_high_offset_threshold();
1405 high_offset_threshold_ = value;
1411 return (_has_bits_[0] & 0x00000002u) != 0;
1413 inline void NTPStatusConfig::set_has_high_jitter_threshold() {
1414 _has_bits_[0] |= 0x00000002u;
1416 inline void NTPStatusConfig::clear_has_high_jitter_threshold() {
1417 _has_bits_[0] &= ~0x00000002u;
1420 high_jitter_threshold_ = 100;
1421 clear_has_high_jitter_threshold();
1425 return high_jitter_threshold_;
1428 set_has_high_jitter_threshold();
1429 high_jitter_threshold_ = value;
1439 return (_has_bits_[0] & 0x00000001u) != 0;
1441 inline void HelmIVPStatusConfig::set_has_time_out_helm_status() {
1442 _has_bits_[0] |= 0x00000001u;
1444 inline void HelmIVPStatusConfig::clear_has_time_out_helm_status() {
1445 _has_bits_[0] &= ~0x00000001u;
1448 time_out_helm_status_ = 20;
1449 clear_has_time_out_helm_status();
1453 return time_out_helm_status_;
1456 set_has_time_out_helm_status();
1457 time_out_helm_status_ = value;
1467 return (_has_bits_[0] & 0x00000002u) != 0;
1469 inline void MotorStatusConfig::set_has_motor_rpm_report_timeout_seconds() {
1470 _has_bits_[0] |= 0x00000002u;
1472 inline void MotorStatusConfig::clear_has_motor_rpm_report_timeout_seconds() {
1473 _has_bits_[0] &= ~0x00000002u;
1476 motor_rpm_report_timeout_seconds_ = 40;
1477 clear_has_motor_rpm_report_timeout_seconds();
1481 return motor_rpm_report_timeout_seconds_;
1484 set_has_motor_rpm_report_timeout_seconds();
1485 motor_rpm_report_timeout_seconds_ = value;
1491 return (_has_bits_[0] & 0x00000004u) != 0;
1493 inline void MotorStatusConfig::set_has_motor_thermistor_report_timeout_seconds() {
1494 _has_bits_[0] |= 0x00000004u;
1496 inline void MotorStatusConfig::clear_has_motor_thermistor_report_timeout_seconds() {
1497 _has_bits_[0] &= ~0x00000004u;
1500 motor_thermistor_report_timeout_seconds_ = 40;
1501 clear_has_motor_thermistor_report_timeout_seconds();
1505 return motor_thermistor_report_timeout_seconds_;
1508 set_has_motor_thermistor_report_timeout_seconds();
1509 motor_thermistor_report_timeout_seconds_ = value;
1515 return (_has_bits_[0] & 0x00000001u) != 0;
1517 inline void MotorStatusConfig::set_has_motor_harness_type() {
1518 _has_bits_[0] |= 0x00000001u;
1520 inline void MotorStatusConfig::clear_has_motor_harness_type() {
1521 _has_bits_[0] &= ~0x00000001u;
1524 motor_harness_type_ = 1;
1525 clear_has_motor_harness_type();
1533 set_has_motor_harness_type();
1534 motor_harness_type_ = value;
1544 return (_has_bits_[0] & 0x00000001u) != 0;
1546 inline void Health::set_has_app() {
1547 _has_bits_[0] |= 0x00000001u;
1549 inline void Health::clear_has_app() {
1550 _has_bits_[0] &= ~0x00000001u;
1552 inline const ::goby::middleware::protobuf::AppConfig& Health::_internal_app()
const {
1555 inline const ::goby::middleware::protobuf::AppConfig&
Health::app()
const {
1556 const ::goby::middleware::protobuf::AppConfig* p = app_;
1558 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
1559 &::goby::middleware::protobuf::_AppConfig_default_instance_);
1564 ::goby::middleware::protobuf::AppConfig* temp = app_;
1571 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
1578 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1579 if (message_arena == NULL) {
1580 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(app_);
1583 ::google::protobuf::Arena* submessage_arena = NULL;
1584 if (message_arena != submessage_arena) {
1585 app = ::google::protobuf::internal::GetOwnedMessage(
1586 message_arena, app, submessage_arena);
1598 return (_has_bits_[0] & 0x00000002u) != 0;
1600 inline void Health::set_has_interprocess() {
1601 _has_bits_[0] |= 0x00000002u;
1603 inline void Health::clear_has_interprocess() {
1604 _has_bits_[0] &= ~0x00000002u;
1606 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& Health::_internal_interprocess()
const {
1607 return *interprocess_;
1610 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
1612 return p != NULL ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
1613 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
1617 clear_has_interprocess();
1618 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
1619 interprocess_ = NULL;
1623 set_has_interprocess();
1624 if (interprocess_ == NULL) {
1625 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
1629 return interprocess_;
1632 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1633 if (message_arena == NULL) {
1634 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(interprocess_);
1637 ::google::protobuf::Arena* submessage_arena = NULL;
1638 if (message_arena != submessage_arena) {
1639 interprocess = ::google::protobuf::internal::GetOwnedMessage(
1640 message_arena, interprocess, submessage_arena);
1642 set_has_interprocess();
1644 clear_has_interprocess();
1646 interprocess_ = interprocess;
1652 return (_has_bits_[0] & 0x00000004u) != 0;
1654 inline void Health::set_has_udp_config() {
1655 _has_bits_[0] |= 0x00000004u;
1657 inline void Health::clear_has_udp_config() {
1658 _has_bits_[0] &= ~0x00000004u;
1660 inline const ::goby::middleware::protobuf::UDPPointToPointConfig& Health::_internal_udp_config()
const {
1661 return *udp_config_;
1664 const ::goby::middleware::protobuf::UDPPointToPointConfig* p = udp_config_;
1666 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::UDPPointToPointConfig*
>(
1667 &::goby::middleware::protobuf::_UDPPointToPointConfig_default_instance_);
1671 clear_has_udp_config();
1672 ::goby::middleware::protobuf::UDPPointToPointConfig* temp = udp_config_;
1677 set_has_udp_config();
1678 if (udp_config_ == NULL) {
1679 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::UDPPointToPointConfig>(GetArenaNoVirtual());
1686 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1687 if (message_arena == NULL) {
1688 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(udp_config_);
1691 ::google::protobuf::Arena* submessage_arena = NULL;
1692 if (message_arena != submessage_arena) {
1693 udp_config = ::google::protobuf::internal::GetOwnedMessage(
1694 message_arena, udp_config, submessage_arena);
1696 set_has_udp_config();
1698 clear_has_udp_config();
1700 udp_config_ = udp_config;
1706 return (_has_bits_[0] & 0x00000400u) != 0;
1708 inline void Health::set_has_auto_restart() {
1709 _has_bits_[0] |= 0x00000400u;
1711 inline void Health::clear_has_auto_restart() {
1712 _has_bits_[0] &= ~0x00000400u;
1715 auto_restart_ =
true;
1716 clear_has_auto_restart();
1720 return auto_restart_;
1723 set_has_auto_restart();
1724 auto_restart_ = value;
1730 return (_has_bits_[0] & 0x00001000u) != 0;
1732 inline void Health::set_has_auto_restart_timeout() {
1733 _has_bits_[0] |= 0x00001000u;
1735 inline void Health::clear_has_auto_restart_timeout() {
1736 _has_bits_[0] &= ~0x00001000u;
1739 auto_restart_timeout_ = 20;
1740 clear_has_auto_restart_timeout();
1744 return auto_restart_timeout_;
1747 set_has_auto_restart_timeout();
1748 auto_restart_timeout_ = value;
1754 return (_has_bits_[0] & 0x00002000u) != 0;
1756 inline void Health::set_has_auto_restart_init_grace_period() {
1757 _has_bits_[0] |= 0x00002000u;
1759 inline void Health::clear_has_auto_restart_init_grace_period() {
1760 _has_bits_[0] &= ~0x00002000u;
1763 auto_restart_init_grace_period_ = 60;
1764 clear_has_auto_restart_init_grace_period();
1768 return auto_restart_init_grace_period_;
1771 set_has_auto_restart_init_grace_period();
1772 auto_restart_init_grace_period_ = value;
1778 return (_has_bits_[0] & 0x00000080u) != 0;
1780 inline void Health::set_has_ignore_powerstate_changes() {
1781 _has_bits_[0] |= 0x00000080u;
1783 inline void Health::clear_has_ignore_powerstate_changes() {
1784 _has_bits_[0] &= ~0x00000080u;
1787 ignore_powerstate_changes_ =
false;
1788 clear_has_ignore_powerstate_changes();
1792 return ignore_powerstate_changes_;
1795 set_has_ignore_powerstate_changes();
1796 ignore_powerstate_changes_ = value;
1802 return (_has_bits_[0] & 0x00000800u) != 0;
1804 inline void Health::set_has_check_helm_ivp_status() {
1805 _has_bits_[0] |= 0x00000800u;
1807 inline void Health::clear_has_check_helm_ivp_status() {
1808 _has_bits_[0] &= ~0x00000800u;
1811 check_helm_ivp_status_ =
true;
1812 clear_has_check_helm_ivp_status();
1816 return check_helm_ivp_status_;
1819 set_has_check_helm_ivp_status();
1820 check_helm_ivp_status_ = value;
1826 return (_has_bits_[0] & 0x00000100u) != 0;
1828 inline void Health::set_has_is_in_sim() {
1829 _has_bits_[0] |= 0x00000100u;
1831 inline void Health::clear_has_is_in_sim() {
1832 _has_bits_[0] &= ~0x00000100u;
1836 clear_has_is_in_sim();
1843 set_has_is_in_sim();
1850 return (_has_bits_[0] & 0x00000200u) != 0;
1852 inline void Health::set_has_test_hardware_in_sim() {
1853 _has_bits_[0] |= 0x00000200u;
1855 inline void Health::clear_has_test_hardware_in_sim() {
1856 _has_bits_[0] &= ~0x00000200u;
1859 test_hardware_in_sim_ =
false;
1860 clear_has_test_hardware_in_sim();
1864 return test_hardware_in_sim_;
1867 set_has_test_hardware_in_sim();
1868 test_hardware_in_sim_ = value;
1874 return (_has_bits_[0] & 0x00000008u) != 0;
1876 inline void Health::set_has_linux_hw() {
1877 _has_bits_[0] |= 0x00000008u;
1879 inline void Health::clear_has_linux_hw() {
1880 _has_bits_[0] &= ~0x00000008u;
1883 if (linux_hw_ != NULL) linux_hw_->Clear();
1884 clear_has_linux_hw();
1886 inline const ::jaiabot::config::LinuxHardwareConfig& Health::_internal_linux_hw()
const {
1890 const ::jaiabot::config::LinuxHardwareConfig* p = linux_hw_;
1897 clear_has_linux_hw();
1904 if (linux_hw_ == NULL) {
1905 auto* p = CreateMaybeMessage<::jaiabot::config::LinuxHardwareConfig>(GetArenaNoVirtual());
1912 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1913 if (message_arena == NULL) {
1917 ::google::protobuf::Arena* submessage_arena = NULL;
1918 if (message_arena != submessage_arena) {
1919 linux_hw = ::google::protobuf::internal::GetOwnedMessage(
1920 message_arena, linux_hw, submessage_arena);
1924 clear_has_linux_hw();
1926 linux_hw_ = linux_hw;
1932 return (_has_bits_[0] & 0x00000010u) != 0;
1934 inline void Health::set_has_ntp() {
1935 _has_bits_[0] |= 0x00000010u;
1937 inline void Health::clear_has_ntp() {
1938 _has_bits_[0] &= ~0x00000010u;
1941 if (ntp_ != NULL) ntp_->Clear();
1944 inline const ::jaiabot::config::NTPStatusConfig& Health::_internal_ntp()
const {
1947 inline const ::jaiabot::config::NTPStatusConfig&
Health::ntp()
const {
1948 const ::jaiabot::config::NTPStatusConfig* p = ntp_;
1963 auto* p = CreateMaybeMessage<::jaiabot::config::NTPStatusConfig>(GetArenaNoVirtual());
1970 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1971 if (message_arena == NULL) {
1975 ::google::protobuf::Arena* submessage_arena = NULL;
1976 if (message_arena != submessage_arena) {
1977 ntp = ::google::protobuf::internal::GetOwnedMessage(
1978 message_arena, ntp, submessage_arena);
1990 return (_has_bits_[0] & 0x00000020u) != 0;
1992 inline void Health::set_has_helm() {
1993 _has_bits_[0] |= 0x00000020u;
1995 inline void Health::clear_has_helm() {
1996 _has_bits_[0] &= ~0x00000020u;
1999 if (helm_ != NULL) helm_->Clear();
2002 inline const ::jaiabot::config::HelmIVPStatusConfig& Health::_internal_helm()
const {
2005 inline const ::jaiabot::config::HelmIVPStatusConfig&
Health::helm()
const {
2006 const ::jaiabot::config::HelmIVPStatusConfig* p = helm_;
2020 if (helm_ == NULL) {
2021 auto* p = CreateMaybeMessage<::jaiabot::config::HelmIVPStatusConfig>(GetArenaNoVirtual());
2028 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2029 if (message_arena == NULL) {
2033 ::google::protobuf::Arena* submessage_arena = NULL;
2034 if (message_arena != submessage_arena) {
2035 helm = ::google::protobuf::internal::GetOwnedMessage(
2036 message_arena, helm, submessage_arena);
2048 return (_has_bits_[0] & 0x00000040u) != 0;
2050 inline void Health::set_has_motor() {
2051 _has_bits_[0] |= 0x00000040u;
2053 inline void Health::clear_has_motor() {
2054 _has_bits_[0] &= ~0x00000040u;
2057 if (motor_ != NULL) motor_->Clear();
2060 inline const ::jaiabot::config::MotorStatusConfig& Health::_internal_motor()
const {
2064 const ::jaiabot::config::MotorStatusConfig* p = motor_;
2078 if (motor_ == NULL) {
2079 auto* p = CreateMaybeMessage<::jaiabot::config::MotorStatusConfig>(GetArenaNoVirtual());
2086 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2087 if (message_arena == NULL) {
2091 ::google::protobuf::Arena* submessage_arena = NULL;
2092 if (message_arena != submessage_arena) {
2093 motor = ::google::protobuf::internal::GetOwnedMessage(
2094 message_arena, motor, submessage_arena);
2105 #pragma GCC diagnostic pop
2123 #endif // PROTOBUF_INCLUDED_bin_2fhealth_2fconfig_2eproto