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 "dccl/option_extensions.pb.h"
36 #include <boost/units/quantity.hpp>
37 #include <boost/units/absolute.hpp>
38 #include <boost/units/dimensionless_type.hpp>
39 #include <boost/units/make_scaled_unit.hpp>
41 #include <boost/units/systems/si.hpp>
43 #define PROTOBUF_INTERNAL_EXPORT_protobuf_bin_2fhealth_2fconfig_2eproto
48 static const ::google::protobuf::internal::ParseTableField
entries[];
49 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
50 static const ::google::protobuf::internal::ParseTable
schema[4];
53 static const ::google::protobuf::uint32
offsets[];
60 class HealthDefaultTypeInternal;
62 class HelmIVPStatusConfig;
63 class HelmIVPStatusConfigDefaultTypeInternal;
65 class LinuxHardwareConfig;
66 class LinuxHardwareConfigDefaultTypeInternal;
68 class NTPStatusConfig;
69 class NTPStatusConfigDefaultTypeInternal;
100 *
this = ::std::move(from);
104 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
105 if (
this != &from) InternalSwap(&from);
113 return _internal_metadata_.unknown_fields();
116 return _internal_metadata_.mutable_unknown_fields();
119 static const ::google::protobuf::Descriptor*
descriptor();
138 return CreateMaybeMessage<LinuxHardwareConfig>(NULL);
142 return CreateMaybeMessage<LinuxHardwareConfig>(arena);
144 void CopyFrom(const ::google::protobuf::Message& from)
final;
145 void MergeFrom(const ::google::protobuf::Message& from)
final;
153 ::
google::protobuf::io::CodedInputStream* input) final;
155 ::
google::protobuf::io::CodedOutputStream* output) const final;
157 bool deterministic, ::
google::protobuf::uint8* target) const final;
163 void SetCachedSize(
int size)
const final;
166 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
169 inline void* MaybeArenaPtr()
const {
174 ::google::protobuf::Metadata
GetMetadata() const final;
269 void set_has_data_disk_mountpoint();
270 void clear_has_data_disk_mountpoint();
271 void set_has_disk_low_available_percentage();
272 void clear_has_disk_low_available_percentage();
273 void set_has_disk_critical_available_percentage();
274 void clear_has_disk_critical_available_percentage();
275 void set_has_ram_low_available_percentage();
276 void clear_has_ram_low_available_percentage();
277 void set_has_ram_critical_available_percentage();
278 void clear_has_ram_critical_available_percentage();
279 void set_has_high_load_factor();
280 void clear_has_high_load_factor();
281 void set_has_critical_load_factor();
282 void clear_has_critical_load_factor();
283 void set_has_wireless_file();
284 void clear_has_wireless_file();
285 void set_has_wlan_interface();
286 void clear_has_wlan_interface();
288 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
289 ::google::protobuf::internal::HasBits<1> _has_bits_;
290 mutable ::google::protobuf::internal::CachedSize _cached_size_;
294 ::google::protobuf::internal::ArenaStringPtr data_disk_mountpoint_;
298 ::google::protobuf::internal::ArenaStringPtr wireless_file_;
302 ::google::protobuf::internal::ArenaStringPtr wlan_interface_;
303 float disk_low_available_percentage_;
304 float disk_critical_available_percentage_;
305 float ram_low_available_percentage_;
306 float ram_critical_available_percentage_;
307 float high_load_factor_;
308 float critical_load_factor_;
309 friend struct ::protobuf_bin_2fhealth_2fconfig_2eproto::TableStruct;
327 *
this = ::std::move(from);
331 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
332 if (
this != &from) InternalSwap(&from);
340 return _internal_metadata_.unknown_fields();
343 return _internal_metadata_.mutable_unknown_fields();
346 static const ::google::protobuf::Descriptor*
descriptor();
365 return CreateMaybeMessage<NTPStatusConfig>(NULL);
369 return CreateMaybeMessage<NTPStatusConfig>(arena);
371 void CopyFrom(const ::google::protobuf::Message& from)
final;
372 void MergeFrom(const ::google::protobuf::Message& from)
final;
380 ::
google::protobuf::io::CodedInputStream* input) final;
382 ::
google::protobuf::io::CodedOutputStream* output) const final;
384 bool deterministic, ::
google::protobuf::uint8* target) const final;
390 void SetCachedSize(
int size)
const final;
393 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
396 inline void* MaybeArenaPtr()
const {
401 ::google::protobuf::Metadata
GetMetadata() const final;
425 template<typename Quantity >
429 template<
typename Quantity >
434 {
return high_offset_threshold_with_units<boost::units::quantity< high_offset_threshold_unit,float > >(); };
438 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;
440 template<
typename Quantity >
444 template<
typename Quantity >
449 {
return high_jitter_threshold_with_units<boost::units::quantity< high_jitter_threshold_unit,float > >(); };
453 void set_has_high_offset_threshold();
454 void clear_has_high_offset_threshold();
455 void set_has_high_jitter_threshold();
456 void clear_has_high_jitter_threshold();
458 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
459 ::google::protobuf::internal::HasBits<1> _has_bits_;
460 mutable ::google::protobuf::internal::CachedSize _cached_size_;
461 float high_offset_threshold_;
462 float high_jitter_threshold_;
463 friend struct ::protobuf_bin_2fhealth_2fconfig_2eproto::TableStruct;
481 *
this = ::std::move(from);
485 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
486 if (
this != &from) InternalSwap(&from);
494 return _internal_metadata_.unknown_fields();
497 return _internal_metadata_.mutable_unknown_fields();
500 static const ::google::protobuf::Descriptor*
descriptor();
519 return CreateMaybeMessage<HelmIVPStatusConfig>(NULL);
523 return CreateMaybeMessage<HelmIVPStatusConfig>(arena);
525 void CopyFrom(const ::google::protobuf::Message& from)
final;
526 void MergeFrom(const ::google::protobuf::Message& from)
final;
534 ::
google::protobuf::io::CodedInputStream* input) final;
536 ::
google::protobuf::io::CodedOutputStream* output) const final;
538 bool deterministic, ::
google::protobuf::uint8* target) const final;
544 void SetCachedSize(
int size)
const final;
547 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
550 inline void* MaybeArenaPtr()
const {
555 ::google::protobuf::Metadata
GetMetadata() const final;
570 void set_has_time_out_helm_status();
571 void clear_has_time_out_helm_status();
573 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
574 ::
google::protobuf::internal::HasBits<1> _has_bits_;
575 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
576 ::
google::protobuf::int32 time_out_helm_status_;
595 *
this = ::std::move(from);
598 inline Health&
operator=(Health&& from) noexcept {
599 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
600 if (
this != &from) InternalSwap(&from);
608 return _internal_metadata_.unknown_fields();
611 return _internal_metadata_.mutable_unknown_fields();
614 static const ::google::protobuf::Descriptor*
descriptor();
619 return reinterpret_cast<const Health*
>(
633 return CreateMaybeMessage<Health>(NULL);
636 Health*
New(::google::protobuf::Arena* arena)
const final {
637 return CreateMaybeMessage<Health>(arena);
639 void CopyFrom(const ::google::protobuf::Message& from)
final;
640 void MergeFrom(const ::google::protobuf::Message& from)
final;
648 ::
google::protobuf::io::CodedInputStream* input) final;
650 ::
google::protobuf::io::CodedOutputStream* output) const final;
652 bool deterministic, ::
google::protobuf::uint8* target) const final;
658 void SetCachedSize(
int size)
const final;
659 void InternalSwap(
Health* other);
661 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
664 inline void* MaybeArenaPtr()
const {
669 ::google::protobuf::Metadata
GetMetadata() const final;
676 bool has_app() const;
678 static const
int kAppFieldNumber = 1;
680 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
682 const ::
goby::middleware::protobuf::AppConfig& app() const;
683 ::
goby::middleware::protobuf::AppConfig* release_app();
684 ::
goby::middleware::protobuf::AppConfig* mutable_app();
685 void set_allocated_app(::
goby::middleware::protobuf::AppConfig* app);
688 bool has_interprocess() const;
689 void clear_interprocess();
690 static const
int kInterprocessFieldNumber = 2;
692 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
694 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
695 ::
goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
696 ::
goby::zeromq::protobuf::InterProcessPortalConfig* mutable_interprocess();
697 void set_allocated_interprocess(::
goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
700 bool has_linux_hw() const;
701 void clear_linux_hw();
702 static const
int kLinuxHwFieldNumber = 30;
712 bool has_ntp() const;
714 static const
int kNtpFieldNumber = 40;
724 bool has_helm() const;
726 static const
int kHelmFieldNumber = 41;
736 bool has_ignore_powerstate_changes() const;
737 void clear_ignore_powerstate_changes();
738 static const
int kIgnorePowerstateChangesFieldNumber = 20;
739 bool ignore_powerstate_changes() const;
740 void set_ignore_powerstate_changes(
bool value);
743 bool has_is_in_sim() const;
744 void clear_is_in_sim();
745 static const
int kIsInSimFieldNumber = 23;
746 bool is_in_sim() const;
747 void set_is_in_sim(
bool value);
750 bool has_test_hardware_in_sim() const;
751 void clear_test_hardware_in_sim();
752 static const
int kTestHardwareInSimFieldNumber = 24;
753 bool test_hardware_in_sim() const;
754 void set_test_hardware_in_sim(
bool value);
757 bool has_auto_restart() const;
758 void clear_auto_restart();
759 static const
int kAutoRestartFieldNumber = 10;
760 bool auto_restart() const;
761 void set_auto_restart(
bool value);
764 bool has_check_helm_ivp_status() const;
765 void clear_check_helm_ivp_status();
766 static const
int kCheckHelmIvpStatusFieldNumber = 21;
767 bool check_helm_ivp_status() const;
768 void set_check_helm_ivp_status(
bool value);
771 bool has_auto_restart_timeout() const;
772 void clear_auto_restart_timeout();
773 static const
int kAutoRestartTimeoutFieldNumber = 11;
774 ::
google::protobuf::int32 auto_restart_timeout() const;
775 void set_auto_restart_timeout(::
google::protobuf::int32 value);
778 bool has_auto_restart_init_grace_period() const;
779 void clear_auto_restart_init_grace_period();
780 static const
int kAutoRestartInitGracePeriodFieldNumber = 12;
781 ::
google::protobuf::int32 auto_restart_init_grace_period() const;
782 void set_auto_restart_init_grace_period(::
google::protobuf::int32 value);
788 template<typename Quantity >
789 void set_auto_restart_timeout_with_units(Quantity value_w_units)
790 { set_auto_restart_timeout(boost::units::quantity<auto_restart_timeout_unit,google::protobuf::int32 >(value_w_units).value() ); };
792 template<
typename Quantity >
797 {
return auto_restart_timeout_with_units<boost::units::quantity< auto_restart_timeout_unit,google::protobuf::int32 > >(); };
799 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type auto_restart_init_grace_period_dimension;
803 template<
typename Quantity >
805 { set_auto_restart_init_grace_period(boost::units::quantity<auto_restart_init_grace_period_unit,google::protobuf::int32 >(value_w_units).value() ); };
807 template<
typename Quantity >
812 {
return auto_restart_init_grace_period_with_units<boost::units::quantity< auto_restart_init_grace_period_unit,google::protobuf::int32 > >(); };
817 void clear_has_app();
818 void set_has_interprocess();
819 void clear_has_interprocess();
820 void set_has_auto_restart();
821 void clear_has_auto_restart();
822 void set_has_auto_restart_timeout();
823 void clear_has_auto_restart_timeout();
824 void set_has_auto_restart_init_grace_period();
825 void clear_has_auto_restart_init_grace_period();
826 void set_has_ignore_powerstate_changes();
827 void clear_has_ignore_powerstate_changes();
828 void set_has_check_helm_ivp_status();
829 void clear_has_check_helm_ivp_status();
830 void set_has_is_in_sim();
831 void clear_has_is_in_sim();
832 void set_has_test_hardware_in_sim();
833 void clear_has_test_hardware_in_sim();
834 void set_has_linux_hw();
835 void clear_has_linux_hw();
837 void clear_has_ntp();
839 void clear_has_helm();
841 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
842 ::google::protobuf::internal::HasBits<1> _has_bits_;
843 mutable ::google::protobuf::internal::CachedSize _cached_size_;
844 ::goby::middleware::protobuf::AppConfig* app_;
845 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
849 bool ignore_powerstate_changes_;
851 bool test_hardware_in_sim_;
853 bool check_helm_ivp_status_;
854 ::google::protobuf::int32 auto_restart_timeout_;
855 ::google::protobuf::int32 auto_restart_init_grace_period_;
856 friend struct ::protobuf_bin_2fhealth_2fconfig_2eproto::TableStruct;
864 #pragma GCC diagnostic push
865 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
871 return (_has_bits_[0] & 0x00000001u) != 0;
873 inline void LinuxHardwareConfig::set_has_data_disk_mountpoint() {
874 _has_bits_[0] |= 0x00000001u;
876 inline void LinuxHardwareConfig::clear_has_data_disk_mountpoint() {
877 _has_bits_[0] &= ~0x00000001u;
881 clear_has_data_disk_mountpoint();
885 return data_disk_mountpoint_.GetNoArena();
888 set_has_data_disk_mountpoint();
894 set_has_data_disk_mountpoint();
895 data_disk_mountpoint_.SetNoArena(
901 GOOGLE_DCHECK(value != NULL);
902 set_has_data_disk_mountpoint();
907 set_has_data_disk_mountpoint();
909 ::std::string(
reinterpret_cast<const char*
>(value), size));
913 set_has_data_disk_mountpoint();
919 if (!has_data_disk_mountpoint()) {
922 clear_has_data_disk_mountpoint();
926 if (data_disk_mountpoint != NULL) {
927 set_has_data_disk_mountpoint();
929 clear_has_data_disk_mountpoint();
937 return (_has_bits_[0] & 0x00000008u) != 0;
939 inline void LinuxHardwareConfig::set_has_disk_low_available_percentage() {
940 _has_bits_[0] |= 0x00000008u;
942 inline void LinuxHardwareConfig::clear_has_disk_low_available_percentage() {
943 _has_bits_[0] &= ~0x00000008u;
946 disk_low_available_percentage_ = 10;
947 clear_has_disk_low_available_percentage();
951 return disk_low_available_percentage_;
954 set_has_disk_low_available_percentage();
955 disk_low_available_percentage_ = value;
961 return (_has_bits_[0] & 0x00000010u) != 0;
963 inline void LinuxHardwareConfig::set_has_disk_critical_available_percentage() {
964 _has_bits_[0] |= 0x00000010u;
966 inline void LinuxHardwareConfig::clear_has_disk_critical_available_percentage() {
967 _has_bits_[0] &= ~0x00000010u;
970 disk_critical_available_percentage_ = 2;
971 clear_has_disk_critical_available_percentage();
975 return disk_critical_available_percentage_;
978 set_has_disk_critical_available_percentage();
979 disk_critical_available_percentage_ = value;
985 return (_has_bits_[0] & 0x00000020u) != 0;
987 inline void LinuxHardwareConfig::set_has_ram_low_available_percentage() {
988 _has_bits_[0] |= 0x00000020u;
990 inline void LinuxHardwareConfig::clear_has_ram_low_available_percentage() {
991 _has_bits_[0] &= ~0x00000020u;
994 ram_low_available_percentage_ = 10;
995 clear_has_ram_low_available_percentage();
999 return ram_low_available_percentage_;
1002 set_has_ram_low_available_percentage();
1003 ram_low_available_percentage_ = value;
1009 return (_has_bits_[0] & 0x00000040u) != 0;
1011 inline void LinuxHardwareConfig::set_has_ram_critical_available_percentage() {
1012 _has_bits_[0] |= 0x00000040u;
1014 inline void LinuxHardwareConfig::clear_has_ram_critical_available_percentage() {
1015 _has_bits_[0] &= ~0x00000040u;
1018 ram_critical_available_percentage_ = 1;
1019 clear_has_ram_critical_available_percentage();
1023 return ram_critical_available_percentage_;
1026 set_has_ram_critical_available_percentage();
1027 ram_critical_available_percentage_ = value;
1033 return (_has_bits_[0] & 0x00000080u) != 0;
1035 inline void LinuxHardwareConfig::set_has_high_load_factor() {
1036 _has_bits_[0] |= 0x00000080u;
1038 inline void LinuxHardwareConfig::clear_has_high_load_factor() {
1039 _has_bits_[0] &= ~0x00000080u;
1042 high_load_factor_ = 0.9f;
1043 clear_has_high_load_factor();
1047 return high_load_factor_;
1050 set_has_high_load_factor();
1051 high_load_factor_ = value;
1057 return (_has_bits_[0] & 0x00000100u) != 0;
1059 inline void LinuxHardwareConfig::set_has_critical_load_factor() {
1060 _has_bits_[0] |= 0x00000100u;
1062 inline void LinuxHardwareConfig::clear_has_critical_load_factor() {
1063 _has_bits_[0] &= ~0x00000100u;
1066 critical_load_factor_ = 5;
1067 clear_has_critical_load_factor();
1071 return critical_load_factor_;
1074 set_has_critical_load_factor();
1075 critical_load_factor_ = value;
1081 return (_has_bits_[0] & 0x00000002u) != 0;
1083 inline void LinuxHardwareConfig::set_has_wireless_file() {
1084 _has_bits_[0] |= 0x00000002u;
1086 inline void LinuxHardwareConfig::clear_has_wireless_file() {
1087 _has_bits_[0] &= ~0x00000002u;
1091 clear_has_wireless_file();
1095 return wireless_file_.GetNoArena();
1098 set_has_wireless_file();
1104 set_has_wireless_file();
1105 wireless_file_.SetNoArena(
1111 GOOGLE_DCHECK(value != NULL);
1112 set_has_wireless_file();
1117 set_has_wireless_file();
1119 ::std::string(
reinterpret_cast<const char*
>(value), size));
1123 set_has_wireless_file();
1129 if (!has_wireless_file()) {
1132 clear_has_wireless_file();
1136 if (wireless_file != NULL) {
1137 set_has_wireless_file();
1139 clear_has_wireless_file();
1147 return (_has_bits_[0] & 0x00000004u) != 0;
1149 inline void LinuxHardwareConfig::set_has_wlan_interface() {
1150 _has_bits_[0] |= 0x00000004u;
1152 inline void LinuxHardwareConfig::clear_has_wlan_interface() {
1153 _has_bits_[0] &= ~0x00000004u;
1157 clear_has_wlan_interface();
1161 return wlan_interface_.GetNoArena();
1164 set_has_wlan_interface();
1170 set_has_wlan_interface();
1171 wlan_interface_.SetNoArena(
1177 GOOGLE_DCHECK(value != NULL);
1178 set_has_wlan_interface();
1183 set_has_wlan_interface();
1185 ::std::string(
reinterpret_cast<const char*
>(value), size));
1189 set_has_wlan_interface();
1195 if (!has_wlan_interface()) {
1198 clear_has_wlan_interface();
1202 if (wlan_interface != NULL) {
1203 set_has_wlan_interface();
1205 clear_has_wlan_interface();
1217 return (_has_bits_[0] & 0x00000001u) != 0;
1219 inline void NTPStatusConfig::set_has_high_offset_threshold() {
1220 _has_bits_[0] |= 0x00000001u;
1222 inline void NTPStatusConfig::clear_has_high_offset_threshold() {
1223 _has_bits_[0] &= ~0x00000001u;
1226 high_offset_threshold_ = 10;
1227 clear_has_high_offset_threshold();
1231 return high_offset_threshold_;
1234 set_has_high_offset_threshold();
1235 high_offset_threshold_ = value;
1241 return (_has_bits_[0] & 0x00000002u) != 0;
1243 inline void NTPStatusConfig::set_has_high_jitter_threshold() {
1244 _has_bits_[0] |= 0x00000002u;
1246 inline void NTPStatusConfig::clear_has_high_jitter_threshold() {
1247 _has_bits_[0] &= ~0x00000002u;
1250 high_jitter_threshold_ = 100;
1251 clear_has_high_jitter_threshold();
1255 return high_jitter_threshold_;
1258 set_has_high_jitter_threshold();
1259 high_jitter_threshold_ = value;
1269 return (_has_bits_[0] & 0x00000001u) != 0;
1271 inline void HelmIVPStatusConfig::set_has_time_out_helm_status() {
1272 _has_bits_[0] |= 0x00000001u;
1274 inline void HelmIVPStatusConfig::clear_has_time_out_helm_status() {
1275 _has_bits_[0] &= ~0x00000001u;
1278 time_out_helm_status_ = 20;
1279 clear_has_time_out_helm_status();
1283 return time_out_helm_status_;
1286 set_has_time_out_helm_status();
1287 time_out_helm_status_ = value;
1297 return (_has_bits_[0] & 0x00000001u) != 0;
1299 inline void Health::set_has_app() {
1300 _has_bits_[0] |= 0x00000001u;
1302 inline void Health::clear_has_app() {
1303 _has_bits_[0] &= ~0x00000001u;
1305 inline const ::goby::middleware::protobuf::AppConfig& Health::_internal_app()
const {
1308 inline const ::goby::middleware::protobuf::AppConfig&
Health::app()
const {
1309 const ::goby::middleware::protobuf::AppConfig* p = app_;
1311 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
1312 &::goby::middleware::protobuf::_AppConfig_default_instance_);
1317 ::goby::middleware::protobuf::AppConfig* temp = app_;
1324 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
1331 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1332 if (message_arena == NULL) {
1333 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(app_);
1336 ::google::protobuf::Arena* submessage_arena = NULL;
1337 if (message_arena != submessage_arena) {
1338 app = ::google::protobuf::internal::GetOwnedMessage(
1339 message_arena, app, submessage_arena);
1351 return (_has_bits_[0] & 0x00000002u) != 0;
1353 inline void Health::set_has_interprocess() {
1354 _has_bits_[0] |= 0x00000002u;
1356 inline void Health::clear_has_interprocess() {
1357 _has_bits_[0] &= ~0x00000002u;
1359 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& Health::_internal_interprocess()
const {
1360 return *interprocess_;
1363 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
1365 return p != NULL ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
1366 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
1370 clear_has_interprocess();
1371 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
1372 interprocess_ = NULL;
1376 set_has_interprocess();
1377 if (interprocess_ == NULL) {
1378 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
1382 return interprocess_;
1385 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1386 if (message_arena == NULL) {
1387 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(interprocess_);
1390 ::google::protobuf::Arena* submessage_arena = NULL;
1391 if (message_arena != submessage_arena) {
1392 interprocess = ::google::protobuf::internal::GetOwnedMessage(
1393 message_arena, interprocess, submessage_arena);
1395 set_has_interprocess();
1397 clear_has_interprocess();
1399 interprocess_ = interprocess;
1405 return (_has_bits_[0] & 0x00000100u) != 0;
1407 inline void Health::set_has_auto_restart() {
1408 _has_bits_[0] |= 0x00000100u;
1410 inline void Health::clear_has_auto_restart() {
1411 _has_bits_[0] &= ~0x00000100u;
1414 auto_restart_ =
true;
1415 clear_has_auto_restart();
1419 return auto_restart_;
1422 set_has_auto_restart();
1423 auto_restart_ = value;
1429 return (_has_bits_[0] & 0x00000400u) != 0;
1431 inline void Health::set_has_auto_restart_timeout() {
1432 _has_bits_[0] |= 0x00000400u;
1434 inline void Health::clear_has_auto_restart_timeout() {
1435 _has_bits_[0] &= ~0x00000400u;
1438 auto_restart_timeout_ = 20;
1439 clear_has_auto_restart_timeout();
1443 return auto_restart_timeout_;
1446 set_has_auto_restart_timeout();
1447 auto_restart_timeout_ = value;
1453 return (_has_bits_[0] & 0x00000800u) != 0;
1455 inline void Health::set_has_auto_restart_init_grace_period() {
1456 _has_bits_[0] |= 0x00000800u;
1458 inline void Health::clear_has_auto_restart_init_grace_period() {
1459 _has_bits_[0] &= ~0x00000800u;
1462 auto_restart_init_grace_period_ = 60;
1463 clear_has_auto_restart_init_grace_period();
1467 return auto_restart_init_grace_period_;
1470 set_has_auto_restart_init_grace_period();
1471 auto_restart_init_grace_period_ = value;
1477 return (_has_bits_[0] & 0x00000020u) != 0;
1479 inline void Health::set_has_ignore_powerstate_changes() {
1480 _has_bits_[0] |= 0x00000020u;
1482 inline void Health::clear_has_ignore_powerstate_changes() {
1483 _has_bits_[0] &= ~0x00000020u;
1486 ignore_powerstate_changes_ =
false;
1487 clear_has_ignore_powerstate_changes();
1491 return ignore_powerstate_changes_;
1494 set_has_ignore_powerstate_changes();
1495 ignore_powerstate_changes_ = value;
1501 return (_has_bits_[0] & 0x00000200u) != 0;
1503 inline void Health::set_has_check_helm_ivp_status() {
1504 _has_bits_[0] |= 0x00000200u;
1506 inline void Health::clear_has_check_helm_ivp_status() {
1507 _has_bits_[0] &= ~0x00000200u;
1510 check_helm_ivp_status_ =
true;
1511 clear_has_check_helm_ivp_status();
1515 return check_helm_ivp_status_;
1518 set_has_check_helm_ivp_status();
1519 check_helm_ivp_status_ = value;
1525 return (_has_bits_[0] & 0x00000040u) != 0;
1527 inline void Health::set_has_is_in_sim() {
1528 _has_bits_[0] |= 0x00000040u;
1530 inline void Health::clear_has_is_in_sim() {
1531 _has_bits_[0] &= ~0x00000040u;
1535 clear_has_is_in_sim();
1542 set_has_is_in_sim();
1549 return (_has_bits_[0] & 0x00000080u) != 0;
1551 inline void Health::set_has_test_hardware_in_sim() {
1552 _has_bits_[0] |= 0x00000080u;
1554 inline void Health::clear_has_test_hardware_in_sim() {
1555 _has_bits_[0] &= ~0x00000080u;
1558 test_hardware_in_sim_ =
false;
1559 clear_has_test_hardware_in_sim();
1563 return test_hardware_in_sim_;
1566 set_has_test_hardware_in_sim();
1567 test_hardware_in_sim_ = value;
1573 return (_has_bits_[0] & 0x00000004u) != 0;
1575 inline void Health::set_has_linux_hw() {
1576 _has_bits_[0] |= 0x00000004u;
1578 inline void Health::clear_has_linux_hw() {
1579 _has_bits_[0] &= ~0x00000004u;
1582 if (linux_hw_ != NULL) linux_hw_->Clear();
1583 clear_has_linux_hw();
1585 inline const ::jaiabot::config::LinuxHardwareConfig& Health::_internal_linux_hw()
const {
1589 const ::jaiabot::config::LinuxHardwareConfig* p = linux_hw_;
1596 clear_has_linux_hw();
1603 if (linux_hw_ == NULL) {
1604 auto* p = CreateMaybeMessage<::jaiabot::config::LinuxHardwareConfig>(GetArenaNoVirtual());
1611 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1612 if (message_arena == NULL) {
1616 ::google::protobuf::Arena* submessage_arena = NULL;
1617 if (message_arena != submessage_arena) {
1618 linux_hw = ::google::protobuf::internal::GetOwnedMessage(
1619 message_arena, linux_hw, submessage_arena);
1623 clear_has_linux_hw();
1625 linux_hw_ = linux_hw;
1631 return (_has_bits_[0] & 0x00000008u) != 0;
1633 inline void Health::set_has_ntp() {
1634 _has_bits_[0] |= 0x00000008u;
1636 inline void Health::clear_has_ntp() {
1637 _has_bits_[0] &= ~0x00000008u;
1640 if (ntp_ != NULL) ntp_->Clear();
1643 inline const ::jaiabot::config::NTPStatusConfig& Health::_internal_ntp()
const {
1646 inline const ::jaiabot::config::NTPStatusConfig&
Health::ntp()
const {
1647 const ::jaiabot::config::NTPStatusConfig* p = ntp_;
1662 auto* p = CreateMaybeMessage<::jaiabot::config::NTPStatusConfig>(GetArenaNoVirtual());
1669 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1670 if (message_arena == NULL) {
1674 ::google::protobuf::Arena* submessage_arena = NULL;
1675 if (message_arena != submessage_arena) {
1676 ntp = ::google::protobuf::internal::GetOwnedMessage(
1677 message_arena, ntp, submessage_arena);
1689 return (_has_bits_[0] & 0x00000010u) != 0;
1691 inline void Health::set_has_helm() {
1692 _has_bits_[0] |= 0x00000010u;
1694 inline void Health::clear_has_helm() {
1695 _has_bits_[0] &= ~0x00000010u;
1698 if (helm_ != NULL) helm_->Clear();
1701 inline const ::jaiabot::config::HelmIVPStatusConfig& Health::_internal_helm()
const {
1704 inline const ::jaiabot::config::HelmIVPStatusConfig&
Health::helm()
const {
1705 const ::jaiabot::config::HelmIVPStatusConfig* p = helm_;
1719 if (helm_ == NULL) {
1720 auto* p = CreateMaybeMessage<::jaiabot::config::HelmIVPStatusConfig>(GetArenaNoVirtual());
1727 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1728 if (message_arena == NULL) {
1732 ::google::protobuf::Arena* submessage_arena = NULL;
1733 if (message_arena != submessage_arena) {
1734 helm = ::google::protobuf::internal::GetOwnedMessage(
1735 message_arena, helm, submessage_arena);
1746 #pragma GCC diagnostic pop
1762 #endif // PROTOBUF_INCLUDED_bin_2fhealth_2fconfig_2eproto