4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2ffrontseat_2fiver_2fiver_5fdriver_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/unknown_field_set.h>
36 #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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmiddleware_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_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[2];
57 namespace middleware {
61 class IverConfigDefaultTypeInternal;
63 class IverConfig_IverModeAssignments;
64 class IverConfig_IverModeAssignmentsDefaultTypeInternal;
77 namespace middleware {
97 *
this = ::std::move(from);
101 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
102 if (
this != &from) InternalSwap(&from);
110 return _internal_metadata_.unknown_fields();
113 return _internal_metadata_.mutable_unknown_fields();
116 static const ::google::protobuf::Descriptor*
descriptor();
135 return CreateMaybeMessage<IverConfig_IverModeAssignments>(NULL);
139 return CreateMaybeMessage<IverConfig_IverModeAssignments>(arena);
141 void CopyFrom(const ::google::protobuf::Message& from)
final;
142 void MergeFrom(const ::google::protobuf::Message& from)
final;
150 ::
google::protobuf::io::CodedInputStream* input) final;
152 ::
google::protobuf::io::CodedOutputStream* output) const final;
154 bool deterministic, ::
google::protobuf::uint8* target) const final;
160 void SetCachedSize(
int size)
const final;
163 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
166 inline void* MaybeArenaPtr()
const {
235 void set_has_unknown();
236 void clear_has_unknown();
237 void set_has_normal();
238 void clear_has_normal();
239 void set_has_stopped();
240 void clear_has_stopped();
241 void set_has_parking();
242 void clear_has_parking();
243 void set_has_manual_override();
244 void clear_has_manual_override();
245 void set_has_manual_parking();
246 void clear_has_manual_parking();
247 void set_has_servo_mode();
248 void clear_has_servo_mode();
249 void set_has_mission_mode();
250 void clear_has_mission_mode();
252 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
253 ::
google::protobuf::internal::HasBits<1> _has_bits_;
254 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
259 int manual_override_;
281 *
this = ::std::move(from);
284 inline IverConfig&
operator=(IverConfig&& from) noexcept {
285 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
286 if (
this != &from) InternalSwap(&from);
294 return _internal_metadata_.unknown_fields();
297 return _internal_metadata_.mutable_unknown_fields();
300 static const ::google::protobuf::Descriptor*
descriptor();
319 return CreateMaybeMessage<IverConfig>(NULL);
323 return CreateMaybeMessage<IverConfig>(arena);
325 void CopyFrom(const ::google::protobuf::Message& from)
final;
326 void MergeFrom(const ::google::protobuf::Message& from)
final;
334 ::
google::protobuf::io::CodedInputStream* input) final;
336 ::
google::protobuf::io::CodedOutputStream* output) const final;
338 bool deterministic, ::
google::protobuf::uint8* target) const final;
344 void SetCachedSize(
int size)
const final;
347 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
350 inline void* MaybeArenaPtr()
const {
364 bool has_serial_port() const;
365 void clear_serial_port();
366 static const
int kSerialPortFieldNumber = 1;
367 const ::std::
string& serial_port() const;
368 void set_serial_port(const ::std::
string& value);
370 void set_serial_port(::std::string&& value);
372 void set_serial_port(
const char* value);
373 void set_serial_port(
const char* value,
size_t size);
374 ::std::string* mutable_serial_port();
375 ::std::string* release_serial_port();
376 void set_allocated_serial_port(::std::string* serial_port);
379 bool has_ntp_serial_port()
const;
380 void clear_ntp_serial_port();
381 static const int kNtpSerialPortFieldNumber = 3;
382 const ::std::string& ntp_serial_port()
const;
383 void set_ntp_serial_port(const ::std::string& value);
385 void set_ntp_serial_port(::std::string&& value);
387 void set_ntp_serial_port(
const char* value);
388 void set_ntp_serial_port(
const char* value,
size_t size);
389 ::std::string* mutable_ntp_serial_port();
390 ::std::string* release_ntp_serial_port();
391 void set_allocated_ntp_serial_port(::std::string* ntp_serial_port);
394 bool has_mode_assignments()
const;
395 void clear_mode_assignments();
396 static const int kModeAssignmentsFieldNumber = 7;
398 const ::goby::middleware::frontseat::protobuf::IverConfig_IverModeAssignments& _internal_mode_assignments()
const;
400 const ::goby::middleware::frontseat::protobuf::IverConfig_IverModeAssignments& mode_assignments()
const;
406 bool has_remote_helm_version_major()
const;
407 void clear_remote_helm_version_major();
408 static const int kRemoteHelmVersionMajorFieldNumber = 5;
413 bool has_oms_timeout()
const;
414 void clear_oms_timeout();
415 static const int kOmsTimeoutFieldNumber = 6;
420 bool has_serial_baud()
const;
421 void clear_serial_baud();
422 static const int kSerialBaudFieldNumber = 2;
427 bool has_max_pitch_angle_degrees()
const;
428 void clear_max_pitch_angle_degrees();
429 static const int kMaxPitchAngleDegreesFieldNumber = 4;
435 void set_has_serial_port();
436 void clear_has_serial_port();
437 void set_has_serial_baud();
438 void clear_has_serial_baud();
439 void set_has_ntp_serial_port();
440 void clear_has_ntp_serial_port();
441 void set_has_max_pitch_angle_degrees();
442 void clear_has_max_pitch_angle_degrees();
443 void set_has_remote_helm_version_major();
444 void clear_has_remote_helm_version_major();
445 void set_has_oms_timeout();
446 void clear_has_oms_timeout();
447 void set_has_mode_assignments();
448 void clear_has_mode_assignments();
451 size_t RequiredFieldsByteSizeFallback()
const;
453 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
454 ::google::protobuf::internal::HasBits<1> _has_bits_;
455 mutable ::google::protobuf::internal::CachedSize _cached_size_;
456 ::google::protobuf::internal::ArenaStringPtr serial_port_;
457 ::google::protobuf::internal::ArenaStringPtr ntp_serial_port_;
463 friend struct ::protobuf_goby_2fmiddleware_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto::TableStruct;
469 ::google::protobuf::internal::MessageTypeTraits< ::goby::middleware::frontseat::protobuf::IverConfig >, 11,
false >
475 #pragma GCC diagnostic push
476 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
482 return (_has_bits_[0] & 0x00000001u) != 0;
484 inline void IverConfig_IverModeAssignments::set_has_unknown() {
485 _has_bits_[0] |= 0x00000001u;
487 inline void IverConfig_IverModeAssignments::clear_has_unknown() {
488 _has_bits_[0] &= ~0x00000001u;
507 return (_has_bits_[0] & 0x00000002u) != 0;
509 inline void IverConfig_IverModeAssignments::set_has_normal() {
510 _has_bits_[0] |= 0x00000002u;
512 inline void IverConfig_IverModeAssignments::clear_has_normal() {
513 _has_bits_[0] &= ~0x00000002u;
532 return (_has_bits_[0] & 0x00000004u) != 0;
534 inline void IverConfig_IverModeAssignments::set_has_stopped() {
535 _has_bits_[0] |= 0x00000004u;
537 inline void IverConfig_IverModeAssignments::clear_has_stopped() {
538 _has_bits_[0] &= ~0x00000004u;
557 return (_has_bits_[0] & 0x00000008u) != 0;
559 inline void IverConfig_IverModeAssignments::set_has_parking() {
560 _has_bits_[0] |= 0x00000008u;
562 inline void IverConfig_IverModeAssignments::clear_has_parking() {
563 _has_bits_[0] &= ~0x00000008u;
582 return (_has_bits_[0] & 0x00000010u) != 0;
584 inline void IverConfig_IverModeAssignments::set_has_manual_override() {
585 _has_bits_[0] |= 0x00000010u;
587 inline void IverConfig_IverModeAssignments::clear_has_manual_override() {
588 _has_bits_[0] &= ~0x00000010u;
591 manual_override_ = 2;
592 clear_has_manual_override();
600 set_has_manual_override();
601 manual_override_ = value;
607 return (_has_bits_[0] & 0x00000020u) != 0;
609 inline void IverConfig_IverModeAssignments::set_has_manual_parking() {
610 _has_bits_[0] |= 0x00000020u;
612 inline void IverConfig_IverModeAssignments::clear_has_manual_parking() {
613 _has_bits_[0] &= ~0x00000020u;
617 clear_has_manual_parking();
625 set_has_manual_parking();
626 manual_parking_ = value;
632 return (_has_bits_[0] & 0x00000040u) != 0;
634 inline void IverConfig_IverModeAssignments::set_has_servo_mode() {
635 _has_bits_[0] |= 0x00000040u;
637 inline void IverConfig_IverModeAssignments::clear_has_servo_mode() {
638 _has_bits_[0] &= ~0x00000040u;
642 clear_has_servo_mode();
650 set_has_servo_mode();
657 return (_has_bits_[0] & 0x00000080u) != 0;
659 inline void IverConfig_IverModeAssignments::set_has_mission_mode() {
660 _has_bits_[0] |= 0x00000080u;
662 inline void IverConfig_IverModeAssignments::clear_has_mission_mode() {
663 _has_bits_[0] &= ~0x00000080u;
667 clear_has_mission_mode();
675 set_has_mission_mode();
676 mission_mode_ = value;
686 return (_has_bits_[0] & 0x00000001u) != 0;
688 inline void IverConfig::set_has_serial_port() {
689 _has_bits_[0] |= 0x00000001u;
691 inline void IverConfig::clear_has_serial_port() {
692 _has_bits_[0] &= ~0x00000001u;
696 clear_has_serial_port();
700 return serial_port_.GetNoArena();
703 set_has_serial_port();
709 set_has_serial_port();
710 serial_port_.SetNoArena(
716 GOOGLE_DCHECK(value != NULL);
717 set_has_serial_port();
722 set_has_serial_port();
724 ::std::string(
reinterpret_cast<const char*
>(value), size));
728 set_has_serial_port();
734 if (!has_serial_port()) {
737 clear_has_serial_port();
741 if (serial_port != NULL) {
742 set_has_serial_port();
744 clear_has_serial_port();
752 return (_has_bits_[0] & 0x00000020u) != 0;
754 inline void IverConfig::set_has_serial_baud() {
755 _has_bits_[0] |= 0x00000020u;
757 inline void IverConfig::clear_has_serial_baud() {
758 _has_bits_[0] &= ~0x00000020u;
761 serial_baud_ = 19200u;
762 clear_has_serial_baud();
769 set_has_serial_baud();
770 serial_baud_ = value;
776 return (_has_bits_[0] & 0x00000002u) != 0;
778 inline void IverConfig::set_has_ntp_serial_port() {
779 _has_bits_[0] |= 0x00000002u;
781 inline void IverConfig::clear_has_ntp_serial_port() {
782 _has_bits_[0] &= ~0x00000002u;
786 clear_has_ntp_serial_port();
790 return ntp_serial_port_.GetNoArena();
793 set_has_ntp_serial_port();
799 set_has_ntp_serial_port();
800 ntp_serial_port_.SetNoArena(
806 GOOGLE_DCHECK(value != NULL);
807 set_has_ntp_serial_port();
812 set_has_ntp_serial_port();
814 ::std::string(
reinterpret_cast<const char*
>(value), size));
818 set_has_ntp_serial_port();
824 if (!has_ntp_serial_port()) {
827 clear_has_ntp_serial_port();
831 if (ntp_serial_port != NULL) {
832 set_has_ntp_serial_port();
834 clear_has_ntp_serial_port();
842 return (_has_bits_[0] & 0x00000040u) != 0;
844 inline void IverConfig::set_has_max_pitch_angle_degrees() {
845 _has_bits_[0] |= 0x00000040u;
847 inline void IverConfig::clear_has_max_pitch_angle_degrees() {
848 _has_bits_[0] &= ~0x00000040u;
851 max_pitch_angle_degrees_ = 45;
852 clear_has_max_pitch_angle_degrees();
856 return max_pitch_angle_degrees_;
859 set_has_max_pitch_angle_degrees();
860 max_pitch_angle_degrees_ = value;
866 return (_has_bits_[0] & 0x00000008u) != 0;
868 inline void IverConfig::set_has_remote_helm_version_major() {
869 _has_bits_[0] |= 0x00000008u;
871 inline void IverConfig::clear_has_remote_helm_version_major() {
872 _has_bits_[0] &= ~0x00000008u;
875 remote_helm_version_major_ = 0;
876 clear_has_remote_helm_version_major();
880 return remote_helm_version_major_;
883 set_has_remote_helm_version_major();
884 remote_helm_version_major_ = value;
890 return (_has_bits_[0] & 0x00000010u) != 0;
892 inline void IverConfig::set_has_oms_timeout() {
893 _has_bits_[0] |= 0x00000010u;
895 inline void IverConfig::clear_has_oms_timeout() {
896 _has_bits_[0] &= ~0x00000010u;
900 clear_has_oms_timeout();
907 set_has_oms_timeout();
908 oms_timeout_ = value;
914 return (_has_bits_[0] & 0x00000004u) != 0;
916 inline void IverConfig::set_has_mode_assignments() {
917 _has_bits_[0] |= 0x00000004u;
919 inline void IverConfig::clear_has_mode_assignments() {
920 _has_bits_[0] &= ~0x00000004u;
923 if (mode_assignments_ != NULL) mode_assignments_->Clear();
924 clear_has_mode_assignments();
926 inline const ::goby::middleware::frontseat::protobuf::IverConfig_IverModeAssignments& IverConfig::_internal_mode_assignments()
const {
927 return *mode_assignments_;
930 const ::goby::middleware::frontseat::protobuf::IverConfig_IverModeAssignments* p = mode_assignments_;
937 clear_has_mode_assignments();
939 mode_assignments_ = NULL;
943 set_has_mode_assignments();
944 if (mode_assignments_ == NULL) {
945 auto* p = CreateMaybeMessage<::goby::middleware::frontseat::protobuf::IverConfig_IverModeAssignments>(GetArenaNoVirtual());
946 mode_assignments_ = p;
949 return mode_assignments_;
953 if (message_arena == NULL) {
954 delete mode_assignments_;
956 if (mode_assignments) {
958 if (message_arena != submessage_arena) {
959 mode_assignments = ::google::protobuf::internal::GetOwnedMessage(
960 message_arena, mode_assignments, submessage_arena);
962 set_has_mode_assignments();
964 clear_has_mode_assignments();
966 mode_assignments_ = mode_assignments;
971 #pragma GCC diagnostic pop
985 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto