4 #ifndef PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fpopoto_5fdriver_2eproto
5 #define PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fpopoto_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/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
35 #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/base_units/si/second.hpp>
45 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2facomms_2fprotobuf_2fpopoto_5fdriver_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[3];
64 class ConfigDefaultTypeInternal;
67 class RangingReplyDefaultTypeInternal;
70 class TransmissionDefaultTypeInternal;
103 return ::google::protobuf::internal::NameOfEnum(
108 return ::google::protobuf::internal::ParseNamedEnum<TransmissionType>(
127 *
this = ::std::move(from);
131 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
132 if (
this != &from) InternalSwap(&from);
140 return _internal_metadata_.unknown_fields();
143 return _internal_metadata_.mutable_unknown_fields();
146 static const ::google::protobuf::Descriptor*
descriptor();
151 return reinterpret_cast<const Config*
>(
165 return CreateMaybeMessage<Config>(NULL);
169 return CreateMaybeMessage<Config>(arena);
171 void CopyFrom(const ::google::protobuf::Message& from)
final;
172 void MergeFrom(const ::google::protobuf::Message& from)
final;
180 ::
google::protobuf::io::CodedInputStream* input) final;
182 ::
google::protobuf::io::CodedOutputStream* output) const final;
184 bool deterministic, ::
google::protobuf::uint8* target) const final;
190 void SetCachedSize(
int size)
const final;
191 void InternalSwap(
Config* other);
193 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
196 inline void* MaybeArenaPtr()
const {
230 void set_has_start_timeout();
231 void clear_has_start_timeout();
232 void set_has_payload_mode();
233 void clear_has_payload_mode();
234 void set_has_modem_power();
235 void clear_has_modem_power();
237 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
238 ::
google::protobuf::internal::HasBits<1> _has_bits_;
239 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
261 *
this = ::std::move(from);
264 inline RangingReply&
operator=(RangingReply&& from) noexcept {
265 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
266 if (
this != &from) InternalSwap(&from);
274 return _internal_metadata_.unknown_fields();
277 return _internal_metadata_.mutable_unknown_fields();
280 static const ::google::protobuf::Descriptor*
descriptor();
299 return CreateMaybeMessage<RangingReply>(NULL);
303 return CreateMaybeMessage<RangingReply>(arena);
305 void CopyFrom(const ::google::protobuf::Message& from)
final;
306 void MergeFrom(const ::google::protobuf::Message& from)
final;
314 ::
google::protobuf::io::CodedInputStream* input) final;
316 ::
google::protobuf::io::CodedOutputStream* output) const final;
318 bool deterministic, ::
google::protobuf::uint8* target) const final;
324 void SetCachedSize(
int size)
const final;
327 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
330 inline void* MaybeArenaPtr()
const {
342 bool has_one_way_travel_time() const;
343 void clear_one_way_travel_time();
344 static const
int kOneWayTravelTimeFieldNumber = 1;
345 double one_way_travel_time() const;
346 void set_one_way_travel_time(
double value);
350 template<typename Quantity >
351 void set_one_way_travel_time_with_units(Quantity value_w_units)
352 { set_one_way_travel_time(boost::units::quantity<one_way_travel_time_unit,double >(value_w_units).value() ); };
354 template<
typename Quantity >
359 {
return one_way_travel_time_with_units<boost::units::quantity< one_way_travel_time_unit,double > >(); };
363 void set_has_one_way_travel_time();
364 void clear_has_one_way_travel_time();
366 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
367 ::google::protobuf::internal::HasBits<1> _has_bits_;
368 mutable ::google::protobuf::internal::CachedSize _cached_size_;
369 double one_way_travel_time_;
370 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fpopoto_5fdriver_2eproto::TableStruct;
388 *
this = ::std::move(from);
391 inline Transmission&
operator=(Transmission&& from) noexcept {
392 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
393 if (
this != &from) InternalSwap(&from);
401 return _internal_metadata_.unknown_fields();
404 return _internal_metadata_.mutable_unknown_fields();
407 static const ::google::protobuf::Descriptor*
descriptor();
426 return CreateMaybeMessage<Transmission>(NULL);
430 return CreateMaybeMessage<Transmission>(arena);
432 void CopyFrom(const ::google::protobuf::Message& from)
final;
433 void MergeFrom(const ::google::protobuf::Message& from)
final;
441 ::
google::protobuf::io::CodedInputStream* input) final;
443 ::
google::protobuf::io::CodedOutputStream* output) const final;
445 bool deterministic, ::
google::protobuf::uint8* target) const final;
451 void SetCachedSize(
int size)
const final;
454 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
457 inline void* MaybeArenaPtr()
const {
469 bool has_file_location() const;
470 void clear_file_location();
471 static const
int kFileLocationFieldNumber = 4;
472 const ::std::
string& file_location() const;
473 void set_file_location(const ::std::
string& value);
475 void set_file_location(::std::string&& value);
477 void set_file_location(
const char* value);
478 void set_file_location(
const char* value,
size_t size);
479 ::std::string* mutable_file_location();
480 ::std::string* release_file_location();
481 void set_allocated_file_location(::std::string* file_location);
484 bool has_ranging_reply()
const;
485 void clear_ranging_reply();
486 static const int kRangingReplyFieldNumber = 3;
488 const ::goby::acomms::popoto::protobuf::RangingReply& _internal_ranging_reply()
const;
490 const ::goby::acomms::popoto::protobuf::RangingReply& ranging_reply()
const;
496 bool has_transmit_power()
const;
497 void clear_transmit_power();
498 static const int kTransmitPowerFieldNumber = 5;
499 double transmit_power()
const;
500 void set_transmit_power(
double value);
503 bool has_type()
const;
505 static const int kTypeFieldNumber = 1;
512 void clear_has_type();
513 void set_has_ranging_reply();
514 void clear_has_ranging_reply();
515 void set_has_file_location();
516 void clear_has_file_location();
517 void set_has_transmit_power();
518 void clear_has_transmit_power();
520 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
521 ::google::protobuf::internal::HasBits<1> _has_bits_;
522 mutable ::google::protobuf::internal::CachedSize _cached_size_;
523 ::google::protobuf::internal::ArenaStringPtr file_location_;
525 double transmit_power_;
527 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fpopoto_5fdriver_2eproto::TableStruct;
533 ::google::protobuf::internal::MessageTypeTraits< ::goby::acomms::popoto::protobuf::Config >, 11,
false >
537 ::google::protobuf::internal::MessageTypeTraits< ::goby::acomms::popoto::protobuf::Transmission >, 11,
false >
543 #pragma GCC diagnostic push
544 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
550 return (_has_bits_[0] & 0x00000002u) != 0;
552 inline void Config::set_has_start_timeout() {
553 _has_bits_[0] |= 0x00000002u;
555 inline void Config::clear_has_start_timeout() {
556 _has_bits_[0] &= ~0x00000002u;
560 clear_has_start_timeout();
564 return start_timeout_;
567 set_has_start_timeout();
568 start_timeout_ = value;
574 return (_has_bits_[0] & 0x00000001u) != 0;
576 inline void Config::set_has_payload_mode() {
577 _has_bits_[0] |= 0x00000001u;
579 inline void Config::clear_has_payload_mode() {
580 _has_bits_[0] &= ~0x00000001u;
584 clear_has_payload_mode();
588 return payload_mode_;
591 set_has_payload_mode();
592 payload_mode_ = value;
598 return (_has_bits_[0] & 0x00000004u) != 0;
600 inline void Config::set_has_modem_power() {
601 _has_bits_[0] |= 0x00000004u;
603 inline void Config::clear_has_modem_power() {
604 _has_bits_[0] &= ~0x00000004u;
608 clear_has_modem_power();
615 set_has_modem_power();
616 modem_power_ = value;
626 return (_has_bits_[0] & 0x00000001u) != 0;
628 inline void RangingReply::set_has_one_way_travel_time() {
629 _has_bits_[0] |= 0x00000001u;
631 inline void RangingReply::clear_has_one_way_travel_time() {
632 _has_bits_[0] &= ~0x00000001u;
635 one_way_travel_time_ = 0;
636 clear_has_one_way_travel_time();
640 return one_way_travel_time_;
643 set_has_one_way_travel_time();
644 one_way_travel_time_ = value;
654 return (_has_bits_[0] & 0x00000008u) != 0;
656 inline void Transmission::set_has_type() {
657 _has_bits_[0] |= 0x00000008u;
659 inline void Transmission::clear_has_type() {
660 _has_bits_[0] &= ~0x00000008u;
679 return (_has_bits_[0] & 0x00000002u) != 0;
681 inline void Transmission::set_has_ranging_reply() {
682 _has_bits_[0] |= 0x00000002u;
684 inline void Transmission::clear_has_ranging_reply() {
685 _has_bits_[0] &= ~0x00000002u;
688 if (ranging_reply_ != NULL) ranging_reply_->Clear();
689 clear_has_ranging_reply();
691 inline const ::goby::acomms::popoto::protobuf::RangingReply& Transmission::_internal_ranging_reply()
const {
692 return *ranging_reply_;
695 const ::goby::acomms::popoto::protobuf::RangingReply* p = ranging_reply_;
702 clear_has_ranging_reply();
704 ranging_reply_ = NULL;
708 set_has_ranging_reply();
709 if (ranging_reply_ == NULL) {
710 auto* p = CreateMaybeMessage<::goby::acomms::popoto::protobuf::RangingReply>(GetArenaNoVirtual());
714 return ranging_reply_;
718 if (message_arena == NULL) {
719 delete ranging_reply_;
723 if (message_arena != submessage_arena) {
724 ranging_reply = ::google::protobuf::internal::GetOwnedMessage(
725 message_arena, ranging_reply, submessage_arena);
727 set_has_ranging_reply();
729 clear_has_ranging_reply();
731 ranging_reply_ = ranging_reply;
737 return (_has_bits_[0] & 0x00000001u) != 0;
739 inline void Transmission::set_has_file_location() {
740 _has_bits_[0] |= 0x00000001u;
742 inline void Transmission::clear_has_file_location() {
743 _has_bits_[0] &= ~0x00000001u;
747 clear_has_file_location();
751 return file_location_.GetNoArena();
754 set_has_file_location();
760 set_has_file_location();
761 file_location_.SetNoArena(
767 GOOGLE_DCHECK(value != NULL);
768 set_has_file_location();
773 set_has_file_location();
775 ::std::string(
reinterpret_cast<const char*
>(value), size));
779 set_has_file_location();
785 if (!has_file_location()) {
788 clear_has_file_location();
792 if (file_location != NULL) {
793 set_has_file_location();
795 clear_has_file_location();
803 return (_has_bits_[0] & 0x00000004u) != 0;
805 inline void Transmission::set_has_transmit_power() {
806 _has_bits_[0] |= 0x00000004u;
808 inline void Transmission::clear_has_transmit_power() {
809 _has_bits_[0] &= ~0x00000004u;
813 clear_has_transmit_power();
817 return transmit_power_;
820 set_has_transmit_power();
821 transmit_power_ = value;
826 #pragma GCC diagnostic pop
845 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::popoto::protobuf::TransmissionType>() {
854 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fpopoto_5fdriver_2eproto