4 #ifndef PROTOBUF_INCLUDED_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_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>
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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto
45 static const ::google::protobuf::internal::ParseTableField
entries[];
46 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
47 static const ::google::protobuf::internal::ParseTable
schema[3];
59 class BluefinModemIdLookUpDefaultTypeInternal;
62 class ConfigDefaultTypeInternal;
65 class HardwareRatePairDefaultTypeInternal;
99 *
this = ::std::move(from);
103 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
104 if (
this != &from) InternalSwap(&from);
112 return _internal_metadata_.unknown_fields();
115 return _internal_metadata_.mutable_unknown_fields();
118 static const ::google::protobuf::Descriptor*
descriptor();
137 return CreateMaybeMessage<HardwareRatePair>(NULL);
141 return CreateMaybeMessage<HardwareRatePair>(arena);
143 void CopyFrom(const ::google::protobuf::Message& from)
final;
144 void MergeFrom(const ::google::protobuf::Message& from)
final;
152 ::
google::protobuf::io::CodedInputStream* input) final;
154 ::
google::protobuf::io::CodedOutputStream* output) const final;
156 bool deterministic, ::
google::protobuf::uint8* target) const final;
162 void SetCachedSize(
int size)
const final;
165 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
168 inline void* MaybeArenaPtr()
const {
210 void set_has_hardware_name();
211 void clear_has_hardware_name();
213 void clear_has_rate();
214 void set_has_packet_bytes();
215 void clear_has_packet_bytes();
218 size_t RequiredFieldsByteSizeFallback()
const;
220 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
221 ::google::protobuf::internal::HasBits<1> _has_bits_;
222 mutable ::google::protobuf::internal::CachedSize _cached_size_;
223 ::google::protobuf::internal::ArenaStringPtr hardware_name_;
226 friend struct ::protobuf_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto::TableStruct;
244 *
this = ::std::move(from);
248 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
249 if (
this != &from) InternalSwap(&from);
257 return _internal_metadata_.unknown_fields();
260 return _internal_metadata_.mutable_unknown_fields();
263 static const ::google::protobuf::Descriptor*
descriptor();
282 return CreateMaybeMessage<BluefinModemIdLookUp>(NULL);
286 return CreateMaybeMessage<BluefinModemIdLookUp>(arena);
288 void CopyFrom(const ::google::protobuf::Message& from)
final;
289 void MergeFrom(const ::google::protobuf::Message& from)
final;
297 ::
google::protobuf::io::CodedInputStream* input) final;
299 ::
google::protobuf::io::CodedOutputStream* output) const final;
301 bool deterministic, ::
google::protobuf::uint8* target) const final;
307 void SetCachedSize(
int size)
const final;
310 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
313 inline void* MaybeArenaPtr()
const {
340 void set_has_goby_id();
341 void clear_has_goby_id();
342 void set_has_bluefin_id();
343 void clear_has_bluefin_id();
346 size_t RequiredFieldsByteSizeFallback() const;
348 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
349 ::
google::protobuf::internal::HasBits<1> _has_bits_;
350 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
371 *
this = ::std::move(from);
374 inline Config&
operator=(Config&& from) noexcept {
375 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
376 if (
this != &from) InternalSwap(&from);
384 return _internal_metadata_.unknown_fields();
387 return _internal_metadata_.mutable_unknown_fields();
390 static const ::google::protobuf::Descriptor*
descriptor();
395 return reinterpret_cast<const Config*
>(
409 return CreateMaybeMessage<Config>(NULL);
413 return CreateMaybeMessage<Config>(arena);
415 void CopyFrom(const ::google::protobuf::Message& from)
final;
416 void MergeFrom(const ::google::protobuf::Message& from)
final;
424 ::
google::protobuf::io::CodedInputStream* input) final;
426 ::
google::protobuf::io::CodedOutputStream* output) const final;
428 bool deterministic, ::
google::protobuf::uint8* target) const final;
434 void SetCachedSize(
int size)
const final;
435 void InternalSwap(
Config* other);
437 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
440 inline void* MaybeArenaPtr()
const {
452 int hardware_to_rate_size() const;
453 void clear_hardware_to_rate();
454 static const
int kHardwareToRateFieldNumber = 5;
457 mutable_hardware_to_rate();
461 hardware_to_rate() const;
464 int modem_lookup_size() const;
465 void clear_modem_lookup();
466 static const
int kModemLookupFieldNumber = 6;
469 mutable_modem_lookup();
473 modem_lookup() const;
476 bool has_moos_server() const;
477 void clear_moos_server();
478 static const
int kMoosServerFieldNumber = 1;
479 const ::std::
string& moos_server() const;
480 void set_moos_server(const ::std::
string& value);
482 void set_moos_server(::std::string&& value);
484 void set_moos_server(
const char* value);
485 void set_moos_server(
const char* value,
size_t size);
486 ::std::string* mutable_moos_server();
487 ::std::string* release_moos_server();
488 void set_allocated_moos_server(::std::string* moos_server);
491 bool has_nmea_in_moos_var()
const;
492 void clear_nmea_in_moos_var();
493 static const int kNmeaInMoosVarFieldNumber = 3;
494 const ::std::string& nmea_in_moos_var()
const;
495 void set_nmea_in_moos_var(const ::std::string& value);
497 void set_nmea_in_moos_var(::std::string&& value);
499 void set_nmea_in_moos_var(
const char* value);
500 void set_nmea_in_moos_var(
const char* value,
size_t size);
501 ::std::string* mutable_nmea_in_moos_var();
502 ::std::string* release_nmea_in_moos_var();
503 void set_allocated_nmea_in_moos_var(::std::string* nmea_in_moos_var);
506 bool has_nmea_out_moos_var()
const;
507 void clear_nmea_out_moos_var();
508 static const int kNmeaOutMoosVarFieldNumber = 4;
509 const ::std::string& nmea_out_moos_var()
const;
510 void set_nmea_out_moos_var(const ::std::string& value);
512 void set_nmea_out_moos_var(::std::string&& value);
514 void set_nmea_out_moos_var(
const char* value);
515 void set_nmea_out_moos_var(
const char* value,
size_t size);
516 ::std::string* mutable_nmea_out_moos_var();
517 ::std::string* release_nmea_out_moos_var();
518 void set_allocated_nmea_out_moos_var(::std::string* nmea_out_moos_var);
521 bool has_moos_port()
const;
522 void clear_moos_port();
523 static const int kMoosPortFieldNumber = 2;
529 void set_has_moos_server();
530 void clear_has_moos_server();
531 void set_has_moos_port();
532 void clear_has_moos_port();
533 void set_has_nmea_in_moos_var();
534 void clear_has_nmea_in_moos_var();
535 void set_has_nmea_out_moos_var();
536 void clear_has_nmea_out_moos_var();
538 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
539 ::google::protobuf::internal::HasBits<1> _has_bits_;
540 mutable ::google::protobuf::internal::CachedSize _cached_size_;
546 ::google::protobuf::internal::ArenaStringPtr moos_server_;
550 ::google::protobuf::internal::ArenaStringPtr nmea_in_moos_var_;
554 ::google::protobuf::internal::ArenaStringPtr nmea_out_moos_var_;
556 friend struct ::protobuf_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto::TableStruct;
562 ::google::protobuf::internal::MessageTypeTraits< ::goby::moos::bluefin::protobuf::Config >, 11,
false >
568 #pragma GCC diagnostic push
569 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
575 return (_has_bits_[0] & 0x00000001u) != 0;
577 inline void HardwareRatePair::set_has_hardware_name() {
578 _has_bits_[0] |= 0x00000001u;
580 inline void HardwareRatePair::clear_has_hardware_name() {
581 _has_bits_[0] &= ~0x00000001u;
585 clear_has_hardware_name();
589 return hardware_name_.GetNoArena();
592 set_has_hardware_name();
598 set_has_hardware_name();
599 hardware_name_.SetNoArena(
605 GOOGLE_DCHECK(value != NULL);
606 set_has_hardware_name();
611 set_has_hardware_name();
613 ::std::string(
reinterpret_cast<const char*
>(value), size));
617 set_has_hardware_name();
623 if (!has_hardware_name()) {
626 clear_has_hardware_name();
630 if (hardware_name != NULL) {
631 set_has_hardware_name();
633 clear_has_hardware_name();
641 return (_has_bits_[0] & 0x00000002u) != 0;
643 inline void HardwareRatePair::set_has_rate() {
644 _has_bits_[0] |= 0x00000002u;
646 inline void HardwareRatePair::clear_has_rate() {
647 _has_bits_[0] &= ~0x00000002u;
665 return (_has_bits_[0] & 0x00000004u) != 0;
667 inline void HardwareRatePair::set_has_packet_bytes() {
668 _has_bits_[0] |= 0x00000004u;
670 inline void HardwareRatePair::clear_has_packet_bytes() {
671 _has_bits_[0] &= ~0x00000004u;
675 clear_has_packet_bytes();
679 return packet_bytes_;
682 set_has_packet_bytes();
683 packet_bytes_ = value;
693 return (_has_bits_[0] & 0x00000001u) != 0;
695 inline void BluefinModemIdLookUp::set_has_goby_id() {
696 _has_bits_[0] |= 0x00000001u;
698 inline void BluefinModemIdLookUp::clear_has_goby_id() {
699 _has_bits_[0] &= ~0x00000001u;
717 return (_has_bits_[0] & 0x00000002u) != 0;
719 inline void BluefinModemIdLookUp::set_has_bluefin_id() {
720 _has_bits_[0] |= 0x00000002u;
722 inline void BluefinModemIdLookUp::clear_has_bluefin_id() {
723 _has_bits_[0] &= ~0x00000002u;
727 clear_has_bluefin_id();
734 set_has_bluefin_id();
745 return (_has_bits_[0] & 0x00000001u) != 0;
747 inline void Config::set_has_moos_server() {
748 _has_bits_[0] |= 0x00000001u;
750 inline void Config::clear_has_moos_server() {
751 _has_bits_[0] &= ~0x00000001u;
755 clear_has_moos_server();
759 return moos_server_.GetNoArena();
762 set_has_moos_server();
768 set_has_moos_server();
769 moos_server_.SetNoArena(
775 GOOGLE_DCHECK(value != NULL);
776 set_has_moos_server();
781 set_has_moos_server();
783 ::std::string(
reinterpret_cast<const char*
>(value), size));
787 set_has_moos_server();
793 if (!has_moos_server()) {
796 clear_has_moos_server();
800 if (moos_server != NULL) {
801 set_has_moos_server();
803 clear_has_moos_server();
811 return (_has_bits_[0] & 0x00000008u) != 0;
813 inline void Config::set_has_moos_port() {
814 _has_bits_[0] |= 0x00000008u;
816 inline void Config::clear_has_moos_port() {
817 _has_bits_[0] &= ~0x00000008u;
821 clear_has_moos_port();
835 return (_has_bits_[0] & 0x00000002u) != 0;
837 inline void Config::set_has_nmea_in_moos_var() {
838 _has_bits_[0] |= 0x00000002u;
840 inline void Config::clear_has_nmea_in_moos_var() {
841 _has_bits_[0] &= ~0x00000002u;
845 clear_has_nmea_in_moos_var();
849 return nmea_in_moos_var_.GetNoArena();
852 set_has_nmea_in_moos_var();
858 set_has_nmea_in_moos_var();
859 nmea_in_moos_var_.SetNoArena(
865 GOOGLE_DCHECK(value != NULL);
866 set_has_nmea_in_moos_var();
871 set_has_nmea_in_moos_var();
873 ::std::string(
reinterpret_cast<const char*
>(value), size));
877 set_has_nmea_in_moos_var();
883 if (!has_nmea_in_moos_var()) {
886 clear_has_nmea_in_moos_var();
890 if (nmea_in_moos_var != NULL) {
891 set_has_nmea_in_moos_var();
893 clear_has_nmea_in_moos_var();
901 return (_has_bits_[0] & 0x00000004u) != 0;
903 inline void Config::set_has_nmea_out_moos_var() {
904 _has_bits_[0] |= 0x00000004u;
906 inline void Config::clear_has_nmea_out_moos_var() {
907 _has_bits_[0] &= ~0x00000004u;
911 clear_has_nmea_out_moos_var();
915 return nmea_out_moos_var_.GetNoArena();
918 set_has_nmea_out_moos_var();
924 set_has_nmea_out_moos_var();
925 nmea_out_moos_var_.SetNoArena(
931 GOOGLE_DCHECK(value != NULL);
932 set_has_nmea_out_moos_var();
937 set_has_nmea_out_moos_var();
939 ::std::string(
reinterpret_cast<const char*
>(value), size));
943 set_has_nmea_out_moos_var();
949 if (!has_nmea_out_moos_var()) {
952 clear_has_nmea_out_moos_var();
956 if (nmea_out_moos_var != NULL) {
957 set_has_nmea_out_moos_var();
959 clear_has_nmea_out_moos_var();
967 return hardware_to_rate_.size();
970 hardware_to_rate_.Clear();
974 return hardware_to_rate_.Mutable(index);
976 inline ::google::protobuf::RepeatedPtrField< ::goby::moos::bluefin::protobuf::HardwareRatePair >*
979 return &hardware_to_rate_;
983 return hardware_to_rate_.Get(index);
987 return hardware_to_rate_.Add();
989 inline const ::google::protobuf::RepeatedPtrField< ::goby::moos::bluefin::protobuf::HardwareRatePair >&
992 return hardware_to_rate_;
997 return modem_lookup_.size();
1000 modem_lookup_.Clear();
1004 return modem_lookup_.Mutable(index);
1006 inline ::google::protobuf::RepeatedPtrField< ::goby::moos::bluefin::protobuf::BluefinModemIdLookUp >*
1009 return &modem_lookup_;
1013 return modem_lookup_.Get(index);
1017 return modem_lookup_.Add();
1019 inline const ::google::protobuf::RepeatedPtrField< ::goby::moos::bluefin::protobuf::BluefinModemIdLookUp >&
1022 return modem_lookup_;
1026 #pragma GCC diagnostic pop
1042 #endif // PROTOBUF_INCLUDED_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto