4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fcoroner_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fcoroner_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"
35 #include <boost/units/quantity.hpp>
36 #include <boost/units/absolute.hpp>
37 #include <boost/units/dimensionless_type.hpp>
38 #include <boost/units/make_scaled_unit.hpp>
40 #include <boost/units/systems/si.hpp>
42 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmiddleware_2fprotobuf_2fcoroner_2eproto
47 static const ::google::protobuf::internal::ParseTableField
entries[];
48 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
49 static const ::google::protobuf::internal::ParseTable
schema[4];
57 namespace middleware {
60 class HealthRequestDefaultTypeInternal;
63 class ProcessHealthDefaultTypeInternal;
66 class ThreadHealthDefaultTypeInternal;
69 class VehicleHealthDefaultTypeInternal;
83 namespace middleware {
98 return ::google::protobuf::internal::NameOfEnum(
103 return ::google::protobuf::internal::ParseNamedEnum<HealthState>(
117 return ::google::protobuf::internal::NameOfEnum(
121 const ::std::string& name,
Error* value) {
122 return ::google::protobuf::internal::ParseNamedEnum<Error>(
141 *
this = ::std::move(from);
145 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
146 if (
this != &from) InternalSwap(&from);
154 return _internal_metadata_.unknown_fields();
157 return _internal_metadata_.mutable_unknown_fields();
160 static const ::google::protobuf::Descriptor*
descriptor();
179 return CreateMaybeMessage<HealthRequest>(NULL);
183 return CreateMaybeMessage<HealthRequest>(arena);
185 void CopyFrom(const ::google::protobuf::Message& from)
final;
186 void MergeFrom(const ::google::protobuf::Message& from)
final;
194 ::
google::protobuf::io::CodedInputStream* input) final;
196 ::
google::protobuf::io::CodedOutputStream* output) const final;
198 bool deterministic, ::
google::protobuf::uint8* target) const final;
204 void SetCachedSize(
int size)
const final;
207 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
210 inline void* MaybeArenaPtr()
const {
224 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
225 ::
google::protobuf::internal::HasBits<1> _has_bits_;
226 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
245 *
this = ::std::move(from);
248 inline ThreadHealth&
operator=(ThreadHealth&& from) noexcept {
249 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
250 if (
this != &from) InternalSwap(&from);
258 return _internal_metadata_.unknown_fields();
261 return _internal_metadata_.mutable_unknown_fields();
264 static const ::google::protobuf::Descriptor*
descriptor();
289 return CreateMaybeMessage<ThreadHealth>(NULL);
293 return CreateMaybeMessage<ThreadHealth>(arena);
295 void CopyFrom(const ::google::protobuf::Message& from)
final;
296 void MergeFrom(const ::google::protobuf::Message& from)
final;
304 ::
google::protobuf::io::CodedInputStream* input) final;
306 ::
google::protobuf::io::CodedOutputStream* output) const final;
308 bool deterministic, ::
google::protobuf::uint8* target) const final;
314 void SetCachedSize(
int size)
const final;
317 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
320 inline void* MaybeArenaPtr()
const {
332 int child_size() const;
334 static const
int kChildFieldNumber = 11;
344 bool has_name() const;
346 static const
int kNameFieldNumber = 1;
347 const ::std::
string& name() const;
348 void set_name(const ::std::
string& value);
350 void set_name(::std::string&& value);
352 void set_name(
const char* value);
353 void set_name(
const char* value,
size_t size);
354 ::std::string* mutable_name();
355 ::std::string* release_name();
356 void set_allocated_name(::std::string* name);
359 bool has_error_message()
const;
360 void clear_error_message();
361 static const int kErrorMessageFieldNumber = 21;
362 const ::std::string& error_message()
const;
363 void set_error_message(const ::std::string& value);
365 void set_error_message(::std::string&& value);
367 void set_error_message(
const char* value);
368 void set_error_message(
const char* value,
size_t size);
369 ::std::string* mutable_error_message();
370 ::std::string* release_error_message();
371 void set_allocated_error_message(::std::string* error_message);
374 bool has_uid()
const;
376 static const int kUidFieldNumber = 3;
381 bool has_state()
const;
383 static const int kStateFieldNumber = 10;
388 bool has_error()
const;
390 static const int kErrorFieldNumber = 20;
395 bool has_thread_id()
const;
396 void clear_thread_id();
397 static const int kThreadIdFieldNumber = 2;
402 bool has_thread_id_apple()
const;
403 void clear_thread_id_apple();
404 static const int kThreadIdAppleFieldNumber = 4;
414 void clear_has_name();
415 void set_has_thread_id();
416 void set_has_thread_id_apple();
418 void clear_has_uid();
419 void set_has_state();
420 void clear_has_state();
421 void set_has_error();
422 void clear_has_error();
423 void set_has_error_message();
424 void clear_has_error_message();
426 inline bool has_t_id()
const;
427 inline void clear_has_t_id();
430 size_t RequiredFieldsByteSizeFallback()
const;
432 ::google::protobuf::internal::ExtensionSet _extensions_;
434 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
435 ::google::protobuf::internal::HasBits<1> _has_bits_;
436 mutable ::google::protobuf::internal::CachedSize _cached_size_;
438 ::google::protobuf::internal::ArenaStringPtr name_;
439 ::google::protobuf::internal::ArenaStringPtr error_message_;
450 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fcoroner_2eproto::TableStruct;
468 *
this = ::std::move(from);
471 inline ProcessHealth&
operator=(ProcessHealth&& from) noexcept {
472 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
473 if (
this != &from) InternalSwap(&from);
481 return _internal_metadata_.unknown_fields();
484 return _internal_metadata_.mutable_unknown_fields();
487 static const ::google::protobuf::Descriptor*
descriptor();
506 return CreateMaybeMessage<ProcessHealth>(NULL);
510 return CreateMaybeMessage<ProcessHealth>(arena);
512 void CopyFrom(const ::google::protobuf::Message& from)
final;
513 void MergeFrom(const ::google::protobuf::Message& from)
final;
521 ::
google::protobuf::io::CodedInputStream* input) final;
523 ::
google::protobuf::io::CodedOutputStream* output) const final;
525 bool deterministic, ::
google::protobuf::uint8* target) const final;
531 void SetCachedSize(
int size)
const final;
534 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
537 inline void* MaybeArenaPtr()
const {
549 bool has_name() const;
551 static const
int kNameFieldNumber = 1;
552 const ::std::
string& name() const;
553 void set_name(const ::std::
string& value);
555 void set_name(::std::string&& value);
557 void set_name(
const char* value);
558 void set_name(
const char* value,
size_t size);
559 ::std::string* mutable_name();
560 ::std::string* release_name();
561 void set_allocated_name(::std::string* name);
564 bool has_main()
const;
566 static const int kMainFieldNumber = 10;
568 const ::goby::middleware::protobuf::ThreadHealth& _internal_main()
const;
570 const ::goby::middleware::protobuf::ThreadHealth& main()
const;
576 bool has_pid()
const;
578 static const int kPidFieldNumber = 2;
586 void clear_has_name();
588 void clear_has_pid();
590 void clear_has_main();
593 size_t RequiredFieldsByteSizeFallback()
const;
595 ::google::protobuf::internal::ExtensionSet _extensions_;
597 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
598 ::google::protobuf::internal::HasBits<1> _has_bits_;
599 mutable ::google::protobuf::internal::CachedSize _cached_size_;
600 ::google::protobuf::internal::ArenaStringPtr name_;
603 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fcoroner_2eproto::TableStruct;
621 *
this = ::std::move(from);
624 inline VehicleHealth&
operator=(VehicleHealth&& from) noexcept {
625 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
626 if (
this != &from) InternalSwap(&from);
634 return _internal_metadata_.unknown_fields();
637 return _internal_metadata_.mutable_unknown_fields();
640 static const ::google::protobuf::Descriptor*
descriptor();
659 return CreateMaybeMessage<VehicleHealth>(NULL);
663 return CreateMaybeMessage<VehicleHealth>(arena);
665 void CopyFrom(const ::google::protobuf::Message& from)
final;
666 void MergeFrom(const ::google::protobuf::Message& from)
final;
674 ::
google::protobuf::io::CodedInputStream* input) final;
676 ::
google::protobuf::io::CodedOutputStream* output) const final;
678 bool deterministic, ::
google::protobuf::uint8* target) const final;
684 void SetCachedSize(
int size)
const final;
687 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
690 inline void* MaybeArenaPtr()
const {
702 int process_size() const;
703 void clear_process();
704 static const
int kProcessFieldNumber = 11;
714 bool has_platform() const;
715 void clear_platform();
716 static const
int kPlatformFieldNumber = 2;
717 const ::std::
string& platform() const;
718 void set_platform(const ::std::
string& value);
720 void set_platform(::std::string&& value);
722 void set_platform(
const char* value);
723 void set_platform(
const char* value,
size_t size);
724 ::std::string* mutable_platform();
725 ::std::string* release_platform();
726 void set_allocated_platform(::std::string* platform);
729 bool has_time()
const;
731 static const int kTimeFieldNumber = 1;
736 bool has_state()
const;
738 static const int kStateFieldNumber = 10;
747 template<typename Quantity >
748 void set_time_with_units(Quantity value_w_units)
749 { set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
751 template<
typename Quantity >
756 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
761 void clear_has_time();
762 void set_has_platform();
763 void clear_has_platform();
764 void set_has_state();
765 void clear_has_state();
768 size_t RequiredFieldsByteSizeFallback()
const;
770 ::google::protobuf::internal::ExtensionSet _extensions_;
772 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
773 ::google::protobuf::internal::HasBits<1> _has_bits_;
774 mutable ::google::protobuf::internal::CachedSize _cached_size_;
776 ::google::protobuf::internal::ArenaStringPtr platform_;
779 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fcoroner_2eproto::TableStruct;
787 #pragma GCC diagnostic push
788 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
798 return (_has_bits_[0] & 0x00000001u) != 0;
800 inline void ThreadHealth::set_has_name() {
801 _has_bits_[0] |= 0x00000001u;
803 inline void ThreadHealth::clear_has_name() {
804 _has_bits_[0] &= ~0x00000001u;
812 return name_.GetNoArena();
828 GOOGLE_DCHECK(value != NULL);
836 ::std::string(
reinterpret_cast<const char*
>(value), size));
864 return t_id_case() == kThreadId;
866 inline void ThreadHealth::set_has_thread_id() {
867 _oneof_case_[0] = kThreadId;
870 if (has_thread_id()) {
871 t_id_.thread_id_ = 0;
877 if (has_thread_id()) {
878 return t_id_.thread_id_;
883 if (!has_thread_id()) {
887 t_id_.thread_id_ = value;
893 return t_id_case() == kThreadIdApple;
895 inline void ThreadHealth::set_has_thread_id_apple() {
896 _oneof_case_[0] = kThreadIdApple;
899 if (has_thread_id_apple()) {
900 t_id_.thread_id_apple_ = GOOGLE_ULONGLONG(0);
906 if (has_thread_id_apple()) {
907 return t_id_.thread_id_apple_;
909 return GOOGLE_ULONGLONG(0);
912 if (!has_thread_id_apple()) {
914 set_has_thread_id_apple();
916 t_id_.thread_id_apple_ = value;
922 return (_has_bits_[0] & 0x00000004u) != 0;
924 inline void ThreadHealth::set_has_uid() {
925 _has_bits_[0] |= 0x00000004u;
927 inline void ThreadHealth::clear_has_uid() {
928 _has_bits_[0] &= ~0x00000004u;
946 return (_has_bits_[0] & 0x00000008u) != 0;
948 inline void ThreadHealth::set_has_state() {
949 _has_bits_[0] |= 0x00000008u;
951 inline void ThreadHealth::clear_has_state() {
952 _has_bits_[0] &= ~0x00000008u;
971 return child_.size();
978 return child_.Mutable(index);
980 inline ::google::protobuf::RepeatedPtrField< ::goby::middleware::protobuf::ThreadHealth >*
987 return child_.Get(index);
993 inline const ::google::protobuf::RepeatedPtrField< ::goby::middleware::protobuf::ThreadHealth >&
1001 return (_has_bits_[0] & 0x00000010u) != 0;
1003 inline void ThreadHealth::set_has_error() {
1004 _has_bits_[0] |= 0x00000010u;
1006 inline void ThreadHealth::clear_has_error() {
1007 _has_bits_[0] &= ~0x00000010u;
1026 return (_has_bits_[0] & 0x00000002u) != 0;
1028 inline void ThreadHealth::set_has_error_message() {
1029 _has_bits_[0] |= 0x00000002u;
1031 inline void ThreadHealth::clear_has_error_message() {
1032 _has_bits_[0] &= ~0x00000002u;
1036 clear_has_error_message();
1040 return error_message_.GetNoArena();
1043 set_has_error_message();
1049 set_has_error_message();
1050 error_message_.SetNoArena(
1056 GOOGLE_DCHECK(value != NULL);
1057 set_has_error_message();
1062 set_has_error_message();
1064 ::std::string(
reinterpret_cast<const char*
>(value), size));
1068 set_has_error_message();
1074 if (!has_error_message()) {
1077 clear_has_error_message();
1081 if (error_message != NULL) {
1082 set_has_error_message();
1084 clear_has_error_message();
1090 inline bool ThreadHealth::has_t_id()
const {
1091 return t_id_case() != T_ID_NOT_SET;
1093 inline void ThreadHealth::clear_has_t_id() {
1094 _oneof_case_[0] = T_ID_NOT_SET;
1105 return (_has_bits_[0] & 0x00000001u) != 0;
1107 inline void ProcessHealth::set_has_name() {
1108 _has_bits_[0] |= 0x00000001u;
1110 inline void ProcessHealth::clear_has_name() {
1111 _has_bits_[0] &= ~0x00000001u;
1119 return name_.GetNoArena();
1135 GOOGLE_DCHECK(value != NULL);
1143 ::std::string(
reinterpret_cast<const char*
>(value), size));
1171 return (_has_bits_[0] & 0x00000004u) != 0;
1173 inline void ProcessHealth::set_has_pid() {
1174 _has_bits_[0] |= 0x00000004u;
1176 inline void ProcessHealth::clear_has_pid() {
1177 _has_bits_[0] &= ~0x00000004u;
1195 return (_has_bits_[0] & 0x00000002u) != 0;
1197 inline void ProcessHealth::set_has_main() {
1198 _has_bits_[0] |= 0x00000002u;
1200 inline void ProcessHealth::clear_has_main() {
1201 _has_bits_[0] &= ~0x00000002u;
1204 if (main_ != NULL) main_->Clear();
1207 inline const ::goby::middleware::protobuf::ThreadHealth& ProcessHealth::_internal_main()
const {
1211 const ::goby::middleware::protobuf::ThreadHealth* p = main_;
1225 if (main_ == NULL) {
1226 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::ThreadHealth>(GetArenaNoVirtual());
1234 if (message_arena == NULL) {
1239 if (message_arena != submessage_arena) {
1240 main = ::google::protobuf::internal::GetOwnedMessage(
1241 message_arena, main, submessage_arena);
1257 return (_has_bits_[0] & 0x00000002u) != 0;
1259 inline void VehicleHealth::set_has_time() {
1260 _has_bits_[0] |= 0x00000002u;
1262 inline void VehicleHealth::clear_has_time() {
1263 _has_bits_[0] &= ~0x00000002u;
1266 time_ = GOOGLE_ULONGLONG(0);
1281 return (_has_bits_[0] & 0x00000001u) != 0;
1283 inline void VehicleHealth::set_has_platform() {
1284 _has_bits_[0] |= 0x00000001u;
1286 inline void VehicleHealth::clear_has_platform() {
1287 _has_bits_[0] &= ~0x00000001u;
1291 clear_has_platform();
1295 return platform_.GetNoArena();
1305 platform_.SetNoArena(
1311 GOOGLE_DCHECK(value != NULL);
1319 ::std::string(
reinterpret_cast<const char*
>(value), size));
1329 if (!has_platform()) {
1332 clear_has_platform();
1336 if (platform != NULL) {
1339 clear_has_platform();
1347 return (_has_bits_[0] & 0x00000004u) != 0;
1349 inline void VehicleHealth::set_has_state() {
1350 _has_bits_[0] |= 0x00000004u;
1352 inline void VehicleHealth::clear_has_state() {
1353 _has_bits_[0] &= ~0x00000004u;
1372 return process_.size();
1379 return process_.Mutable(index);
1381 inline ::google::protobuf::RepeatedPtrField< ::goby::middleware::protobuf::ProcessHealth >*
1388 return process_.Get(index);
1392 return process_.Add();
1394 inline const ::google::protobuf::RepeatedPtrField< ::goby::middleware::protobuf::ProcessHealth >&
1401 #pragma GCC diagnostic pop
1417 namespace protobuf {
1421 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::protobuf::HealthState>() {
1426 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::protobuf::Error>() {
1435 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fcoroner_2eproto