4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
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 3012004 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
39 #include "dccl/option_extensions.pb.h"
40 #include <boost/units/quantity.hpp>
41 #include <boost/units/absolute.hpp>
42 #include <boost/units/dimensionless_type.hpp>
43 #include <boost/units/make_scaled_unit.hpp>
45 #include <boost/units/systems/si.hpp>
47 #include <boost/units/base_units/si/second.hpp>
49 #include <google/protobuf/port_def.inc>
50 #define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto
51 PROTOBUF_NAMESPACE_OPEN
55 PROTOBUF_NAMESPACE_CLOSE
59 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
61 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
63 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5]
65 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
75 class BenthosHeaderDefaultTypeInternal;
78 class ConfigDefaultTypeInternal;
81 class RangingReplyDefaultTypeInternal;
83 class ReceiveStatistics;
84 class ReceiveStatisticsDefaultTypeInternal;
87 class TransmissionDefaultTypeInternal;
93 PROTOBUF_NAMESPACE_OPEN
94 template<> ::goby::acomms::benthos::protobuf::BenthosHeader* Arena::CreateMaybeMessage<::goby::acomms::benthos::protobuf::BenthosHeader>(Arena*);
95 template<> ::goby::acomms::benthos::protobuf::Config* Arena::CreateMaybeMessage<::goby::acomms::benthos::protobuf::Config>(Arena*);
96 template<> ::goby::acomms::benthos::protobuf::RangingReply* Arena::CreateMaybeMessage<::goby::acomms::benthos::protobuf::RangingReply>(Arena*);
97 template<> ::goby::acomms::benthos::protobuf::ReceiveStatistics* Arena::CreateMaybeMessage<::goby::acomms::benthos::protobuf::ReceiveStatistics>(Arena*);
98 template<> ::goby::acomms::benthos::protobuf::Transmission* Arena::CreateMaybeMessage<::goby::acomms::benthos::protobuf::Transmission>(Arena*);
99 PROTOBUF_NAMESPACE_CLOSE
117 static_assert(::std::is_same<T, ReceiveStatistics_CRCState>::value ||
118 ::std::is_integral<T>::value,
119 "Incorrect type passed to function ReceiveStatistics_CRCState_Name.");
120 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
125 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ReceiveStatistics_CRCState>(
140 static_assert(::std::is_same<T, TransmissionType>::value ||
141 ::std::is_integral<T>::value,
142 "Incorrect type passed to function TransmissionType_Name.");
143 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
148 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TransmissionType>(
154 public ::PROTOBUF_NAMESPACE_ID::Message {
162 *
this = ::std::move(from);
170 if (GetArena() == from.GetArena()) {
171 if (
this != &from) InternalSwap(&from);
179 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
182 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
185 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
186 return GetDescriptor();
189 return GetMetadataStatic().descriptor;
192 return GetMetadataStatic().reflection;
198 return reinterpret_cast<const Config*
>(
201 static constexpr
int kIndexInFileMessages =
204 friend void swap(Config& a, Config& b) {
207 inline void Swap(Config* other) {
208 if (other ==
this)
return;
209 if (GetArena() == other->GetArena()) {
212 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
216 if (other ==
this)
return;
217 GOOGLE_DCHECK(GetArena() == other->GetArena());
223 inline Config*
New() const final {
224 return CreateMaybeMessage<Config>(
nullptr);
227 Config*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
228 return CreateMaybeMessage<Config>(arena);
230 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
231 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
234 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
235 bool IsInitialized() const final;
238 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
239 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
240 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
241 int GetCachedSize() const final {
return _cached_size_.Get(); }
244 inline void SharedCtor();
245 inline void SharedDtor();
246 void SetCachedSize(
int size)
const final;
247 void InternalSwap(Config* other);
248 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
249 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
250 return "goby.acomms.benthos.protobuf.Config";
253 explicit Config(::PROTOBUF_NAMESPACE_ID::Arena* arena);
255 static void ArenaDtor(
void*
object);
256 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
261 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
274 kConfigLoadFieldNumber = 2,
275 kFactoryResetFieldNumber = 1,
276 kStartTimeoutFieldNumber = 5,
277 kMaxFrameSizeFieldNumber = 6,
282 int _internal_config_size()
const;
285 const std::string&
config(
int index)
const;
296 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
config()
const;
299 const std::string& _internal_config(
int index)
const;
300 std::string* _internal_add_config();
306 bool _internal_has_config_load()
const;
317 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
318 " string fields are deprecated and will be removed in a"
320 std::
string* unsafe_arena_release_config_load();
321 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
322 "
string fields are deprecated and will be removed in a"
324 void unsafe_arena_set_allocated_config_load(
325 std::
string* config_load);
327 const std::
string& _internal_config_load() const;
328 void _internal_set_config_load(const std::
string& value);
329 std::
string* _internal_mutable_config_load();
333 bool has_factory_reset() const;
335 bool _internal_has_factory_reset() const;
337 void clear_factory_reset();
338 bool factory_reset() const;
339 void set_factory_reset(
bool value);
341 bool _internal_factory_reset() const;
342 void _internal_set_factory_reset(
bool value);
346 bool has_start_timeout() const;
348 bool _internal_has_start_timeout() const;
350 void clear_start_timeout();
351 ::PROTOBUF_NAMESPACE_ID::
int32 start_timeout() const;
352 void set_start_timeout(::PROTOBUF_NAMESPACE_ID::
int32 value);
354 ::PROTOBUF_NAMESPACE_ID::
int32 _internal_start_timeout() const;
355 void _internal_set_start_timeout(::PROTOBUF_NAMESPACE_ID::
int32 value);
359 bool has_max_frame_size() const;
361 bool _internal_has_max_frame_size() const;
363 void clear_max_frame_size();
364 ::PROTOBUF_NAMESPACE_ID::
uint32 max_frame_size() const;
365 void set_max_frame_size(::PROTOBUF_NAMESPACE_ID::
uint32 value);
367 ::PROTOBUF_NAMESPACE_ID::
uint32 _internal_max_frame_size() const;
368 void _internal_set_max_frame_size(::PROTOBUF_NAMESPACE_ID::
uint32 value);
375 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
376 typedef
void InternalArenaConstructable_;
377 typedef
void DestructorSkippable_;
378 ::PROTOBUF_NAMESPACE_ID::
internal::HasBits<1> _has_bits_;
379 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
380 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::
string> config_;
381 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr config_load_;
383 ::PROTOBUF_NAMESPACE_ID::
int32 start_timeout_;
384 ::PROTOBUF_NAMESPACE_ID::
uint32 max_frame_size_;
390 public ::PROTOBUF_NAMESPACE_ID::Message {
398 *
this = ::std::move(from);
401 inline BenthosHeader&
operator=(
const BenthosHeader& from) {
405 inline BenthosHeader&
operator=(BenthosHeader&& from) noexcept {
406 if (GetArena() == from.GetArena()) {
407 if (
this != &from) InternalSwap(&from);
415 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
418 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
421 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
422 return GetDescriptor();
425 return GetMetadataStatic().descriptor;
428 return GetMetadataStatic().reflection;
434 return reinterpret_cast<const BenthosHeader*
>(
437 static constexpr
int kIndexInFileMessages =
440 friend void swap(BenthosHeader& a, BenthosHeader& b) {
443 inline void Swap(BenthosHeader* other) {
444 if (other ==
this)
return;
445 if (GetArena() == other->GetArena()) {
448 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
452 if (other ==
this)
return;
453 GOOGLE_DCHECK(GetArena() == other->GetArena());
459 inline BenthosHeader*
New() const final {
460 return CreateMaybeMessage<BenthosHeader>(
nullptr);
463 BenthosHeader*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
464 return CreateMaybeMessage<BenthosHeader>(arena);
466 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
467 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
470 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
471 bool IsInitialized() const final;
474 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
475 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
476 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
477 int GetCachedSize() const final {
return _cached_size_.Get(); }
480 inline void SharedCtor();
481 inline void SharedDtor();
482 void SetCachedSize(
int size)
const final;
483 void InternalSwap(BenthosHeader* other);
484 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
485 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
486 return "goby.acomms.benthos.protobuf.BenthosHeader";
491 static void ArenaDtor(
void*
object);
492 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
497 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
509 kAckedFrameFieldNumber = 4,
510 kAckRequestedFieldNumber = 3,
511 kTypeFieldNumber = 1,
516 int _internal_acked_frame_size()
const;
521 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
522 _internal_acked_frame()
const;
524 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
525 _internal_mutable_acked_frame();
530 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
532 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
538 bool _internal_has_ack_requested()
const;
544 bool _internal_ack_requested()
const;
545 void _internal_set_ack_requested(
bool value);
551 bool _internal_has_type()
const;
565 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
566 typedef void InternalArenaConstructable_;
567 typedef void DestructorSkippable_;
568 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
569 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
570 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > acked_frame_;
573 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto;
578 public ::PROTOBUF_NAMESPACE_ID::Message {
585 : ReceiveStatistics() {
586 *
this = ::std::move(from);
589 inline ReceiveStatistics&
operator=(
const ReceiveStatistics& from) {
593 inline ReceiveStatistics&
operator=(ReceiveStatistics&& from) noexcept {
594 if (GetArena() == from.GetArena()) {
595 if (
this != &from) InternalSwap(&from);
603 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
606 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
609 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
610 return GetDescriptor();
613 return GetMetadataStatic().descriptor;
616 return GetMetadataStatic().reflection;
622 return reinterpret_cast<const ReceiveStatistics*
>(
625 static constexpr
int kIndexInFileMessages =
628 friend void swap(ReceiveStatistics& a, ReceiveStatistics& b) {
631 inline void Swap(ReceiveStatistics* other) {
632 if (other ==
this)
return;
633 if (GetArena() == other->GetArena()) {
636 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
640 if (other ==
this)
return;
641 GOOGLE_DCHECK(GetArena() == other->GetArena());
647 inline ReceiveStatistics*
New() const final {
648 return CreateMaybeMessage<ReceiveStatistics>(
nullptr);
651 ReceiveStatistics*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
652 return CreateMaybeMessage<ReceiveStatistics>(arena);
654 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
655 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
658 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
659 bool IsInitialized() const final;
662 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
663 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
664 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
665 int GetCachedSize() const final {
return _cached_size_.Get(); }
668 inline void SharedCtor();
669 inline void SharedDtor();
670 void SetCachedSize(
int size)
const final;
671 void InternalSwap(ReceiveStatistics* other);
672 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
673 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
674 return "goby.acomms.benthos.protobuf.ReceiveStatistics";
679 static void ArenaDtor(
void*
object);
680 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
685 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
706 static constexpr
int CRCState_ARRAYSIZE =
708 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
714 static_assert(::std::is_same<T, CRCState>::value ||
715 ::std::is_integral<T>::value,
716 "Incorrect type passed to function CRCState_Name.");
727 kMultipathDelayFieldNumber = 2,
729 kRelativeSpeedFieldNumber = 4,
730 kAutoGainControlFieldNumber = 5,
731 kCorrectedChannelErrorFieldNumber = 6,
737 bool _internal_has_multipath_delay()
const;
743 float _internal_multipath_delay()
const;
744 void _internal_set_multipath_delay(
float value);
750 bool _internal_has_snr()
const;
756 float _internal_snr()
const;
757 void _internal_set_snr(
float value);
763 bool _internal_has_relative_speed()
const;
769 float _internal_relative_speed()
const;
770 void _internal_set_relative_speed(
float value);
776 bool _internal_has_auto_gain_control()
const;
782 float _internal_auto_gain_control()
const;
783 void _internal_set_auto_gain_control(
float value);
789 bool _internal_has_corrected_channel_error()
const;
802 bool _internal_has_crc()
const;
816 template<
typename Quantity >
818 { set_multipath_delay(boost::units::quantity<multipath_delay_unit,float >(value_w_units).value() ); };
820 template<
typename Quantity >
825 {
return multipath_delay_with_units<boost::units::quantity< multipath_delay_unit,float > >(); };
831 template<
typename Quantity >
833 { set_relative_speed(boost::units::quantity<relative_speed_unit,float >(value_w_units).value() ); };
835 template<
typename Quantity >
840 {
return relative_speed_with_units<boost::units::quantity< relative_speed_unit,float > >(); };
846 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
847 typedef void InternalArenaConstructable_;
848 typedef void DestructorSkippable_;
849 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
850 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
851 float multipath_delay_;
853 float relative_speed_;
854 float auto_gain_control_;
857 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto;
862 public ::PROTOBUF_NAMESPACE_ID::Message {
870 *
this = ::std::move(from);
873 inline RangingReply&
operator=(
const RangingReply& from) {
877 inline RangingReply&
operator=(RangingReply&& from) noexcept {
878 if (GetArena() == from.GetArena()) {
879 if (
this != &from) InternalSwap(&from);
887 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
890 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
893 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
894 return GetDescriptor();
897 return GetMetadataStatic().descriptor;
900 return GetMetadataStatic().reflection;
906 return reinterpret_cast<const RangingReply*
>(
909 static constexpr
int kIndexInFileMessages =
912 friend void swap(RangingReply& a, RangingReply& b) {
915 inline void Swap(RangingReply* other) {
916 if (other ==
this)
return;
917 if (GetArena() == other->GetArena()) {
920 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
924 if (other ==
this)
return;
925 GOOGLE_DCHECK(GetArena() == other->GetArena());
931 inline RangingReply*
New() const final {
932 return CreateMaybeMessage<RangingReply>(
nullptr);
935 RangingReply*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
936 return CreateMaybeMessage<RangingReply>(arena);
938 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
939 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
942 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
943 bool IsInitialized() const final;
946 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
947 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
948 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
949 int GetCachedSize() const final {
return _cached_size_.Get(); }
952 inline void SharedCtor();
953 inline void SharedDtor();
954 void SetCachedSize(
int size)
const final;
955 void InternalSwap(RangingReply* other);
956 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
957 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
958 return "goby.acomms.benthos.protobuf.RangingReply";
963 static void ArenaDtor(
void*
object);
964 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
969 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
981 kOneWayTravelTimeFieldNumber = 1,
986 bool _internal_has_one_way_travel_time()
const;
992 double _internal_one_way_travel_time()
const;
993 void _internal_set_one_way_travel_time(
double value);
998 template<
typename Quantity >
1000 { set_one_way_travel_time(boost::units::quantity<one_way_travel_time_unit,double >(value_w_units).value() ); };
1002 template<
typename Quantity >
1007 {
return one_way_travel_time_with_units<boost::units::quantity< one_way_travel_time_unit,double > >(); };
1013 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1014 typedef void InternalArenaConstructable_;
1015 typedef void DestructorSkippable_;
1016 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1017 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1018 double one_way_travel_time_;
1019 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto;
1024 public ::PROTOBUF_NAMESPACE_ID::Message {
1032 *
this = ::std::move(from);
1039 inline Transmission&
operator=(Transmission&& from) noexcept {
1040 if (GetArena() == from.GetArena()) {
1041 if (
this != &from) InternalSwap(&from);
1049 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
1052 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1056 return GetDescriptor();
1059 return GetMetadataStatic().descriptor;
1062 return GetMetadataStatic().reflection;
1068 return reinterpret_cast<const Transmission*
>(
1071 static constexpr
int kIndexInFileMessages =
1074 friend void swap(Transmission& a, Transmission& b) {
1077 inline void Swap(Transmission* other) {
1078 if (other ==
this)
return;
1079 if (GetArena() == other->GetArena()) {
1080 InternalSwap(other);
1082 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
1086 if (other ==
this)
return;
1087 GOOGLE_DCHECK(GetArena() == other->GetArena());
1088 InternalSwap(other);
1093 inline Transmission*
New() const final {
1094 return CreateMaybeMessage<Transmission>(
nullptr);
1097 Transmission*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
1098 return CreateMaybeMessage<Transmission>(arena);
1100 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
1101 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
1104 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
1105 bool IsInitialized() const final;
1108 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
1109 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
1110 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1111 int GetCachedSize() const final {
return _cached_size_.Get(); }
1114 inline void SharedCtor();
1115 inline void SharedDtor();
1116 void SetCachedSize(
int size)
const final;
1117 void InternalSwap(Transmission* other);
1118 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1119 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1120 return "goby.acomms.benthos.protobuf.Transmission";
1125 static void ArenaDtor(
void*
object);
1126 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1131 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
1143 kReceiveStatFieldNumber = 2,
1144 kRangingReplyFieldNumber = 3,
1145 kTypeFieldNumber = 1,
1150 bool _internal_has_receive_stat()
const;
1153 const ::goby::acomms::benthos::protobuf::ReceiveStatistics&
receive_stat()
const;
1158 const ::goby::acomms::benthos::protobuf::ReceiveStatistics& _internal_receive_stat()
const;
1159 ::goby::acomms::benthos::protobuf::ReceiveStatistics* _internal_mutable_receive_stat();
1162 ::goby::acomms::benthos::protobuf::ReceiveStatistics* receive_stat);
1168 bool _internal_has_ranging_reply()
const;
1176 const ::goby::acomms::benthos::protobuf::RangingReply& _internal_ranging_reply()
const;
1177 ::goby::acomms::benthos::protobuf::RangingReply* _internal_mutable_ranging_reply();
1180 ::goby::acomms::benthos::protobuf::RangingReply* ranging_reply);
1186 bool _internal_has_type()
const;
1200 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1201 typedef void InternalArenaConstructable_;
1202 typedef void DestructorSkippable_;
1203 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1204 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1205 ::goby::acomms::benthos::protobuf::ReceiveStatistics* receive_stat_;
1206 ::goby::acomms::benthos::protobuf::RangingReply* ranging_reply_;
1208 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto;
1213 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
1214 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::benthos::protobuf::Config >, 11,
false >
1217 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::ModemTransmission,
1218 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::benthos::protobuf::Transmission >, 11,
false >
1224 #pragma GCC diagnostic push
1225 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1230 inline bool Config::_internal_has_factory_reset()
const {
1231 bool value = (_has_bits_[0] & 0x00000002u) != 0;
1234 inline bool Config::has_factory_reset()
const {
1235 return _internal_has_factory_reset();
1237 inline void Config::clear_factory_reset() {
1238 factory_reset_ =
false;
1239 _has_bits_[0] &= ~0x00000002u;
1241 inline bool Config::_internal_factory_reset()
const {
1242 return factory_reset_;
1244 inline bool Config::factory_reset()
const {
1246 return _internal_factory_reset();
1248 inline void Config::_internal_set_factory_reset(
bool value) {
1249 _has_bits_[0] |= 0x00000002u;
1250 factory_reset_ =
value;
1252 inline void Config::set_factory_reset(
bool value) {
1253 _internal_set_factory_reset(value);
1258 inline bool Config::_internal_has_config_load()
const {
1259 bool value = (_has_bits_[0] & 0x00000001u) != 0;
1262 inline bool Config::has_config_load()
const {
1263 return _internal_has_config_load();
1265 inline void Config::clear_config_load() {
1267 _has_bits_[0] &= ~0x00000001u;
1269 inline const std::string& Config::config_load()
const {
1271 return _internal_config_load();
1273 inline void Config::set_config_load(
const std::string& value) {
1274 _internal_set_config_load(value);
1277 inline std::string* Config::mutable_config_load() {
1279 return _internal_mutable_config_load();
1281 inline const std::string& Config::_internal_config_load()
const {
1282 return config_load_.Get();
1284 inline void Config::_internal_set_config_load(
const std::string& value) {
1285 _has_bits_[0] |= 0x00000001u;
1288 inline void Config::set_config_load(std::string&& value) {
1289 _has_bits_[0] |= 0x00000001u;
1294 inline void Config::set_config_load(
const char* value) {
1295 GOOGLE_DCHECK(value !=
nullptr);
1296 _has_bits_[0] |= 0x00000001u;
1301 inline void Config::set_config_load(
const char* value,
1303 _has_bits_[0] |= 0x00000001u;
1305 reinterpret_cast<const char*
>(value), size), GetArena());
1308 inline std::string* Config::_internal_mutable_config_load() {
1309 _has_bits_[0] |= 0x00000001u;
1312 inline std::string* Config::release_config_load() {
1314 if (!_internal_has_config_load()) {
1317 _has_bits_[0] &= ~0x00000001u;
1320 inline void Config::set_allocated_config_load(std::string* config_load) {
1321 if (config_load !=
nullptr) {
1322 _has_bits_[0] |= 0x00000001u;
1324 _has_bits_[0] &= ~0x00000001u;
1330 inline std::string* Config::unsafe_arena_release_config_load() {
1332 GOOGLE_DCHECK(GetArena() !=
nullptr);
1333 _has_bits_[0] &= ~0x00000001u;
1337 inline void Config::unsafe_arena_set_allocated_config_load(
1338 std::string* config_load) {
1339 GOOGLE_DCHECK(GetArena() !=
nullptr);
1340 if (config_load !=
nullptr) {
1341 _has_bits_[0] |= 0x00000001u;
1343 _has_bits_[0] &= ~0x00000001u;
1346 config_load, GetArena());
1351 inline int Config::_internal_config_size()
const {
1352 return config_.size();
1354 inline int Config::config_size()
const {
1355 return _internal_config_size();
1357 inline void Config::clear_config() {
1360 inline std::string* Config::add_config() {
1362 return _internal_add_config();
1364 inline const std::string& Config::_internal_config(
int index)
const {
1365 return config_.Get(index);
1369 return _internal_config(index);
1371 inline std::string* Config::mutable_config(
int index) {
1373 return config_.Mutable(index);
1375 inline void Config::set_config(
int index,
const std::string& value) {
1377 config_.Mutable(index)->assign(value);
1379 inline void Config::set_config(
int index, std::string&& value) {
1381 config_.Mutable(index)->assign(std::move(value));
1383 inline void Config::set_config(
int index,
const char* value) {
1384 GOOGLE_DCHECK(value !=
nullptr);
1385 config_.Mutable(index)->assign(value);
1388 inline void Config::set_config(
int index,
const char* value,
size_t size) {
1389 config_.Mutable(index)->assign(
1390 reinterpret_cast<const char*
>(value), size);
1393 inline std::string* Config::_internal_add_config() {
1394 return config_.Add();
1396 inline void Config::add_config(
const std::string& value) {
1397 config_.Add()->assign(value);
1400 inline void Config::add_config(std::string&& value) {
1401 config_.Add(std::move(value));
1404 inline void Config::add_config(
const char* value) {
1405 GOOGLE_DCHECK(value !=
nullptr);
1406 config_.Add()->assign(value);
1409 inline void Config::add_config(
const char* value,
size_t size) {
1410 config_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
1413 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
1418 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
1419 Config::mutable_config() {
1425 inline bool Config::_internal_has_start_timeout()
const {
1426 bool value = (_has_bits_[0] & 0x00000004u) != 0;
1429 inline bool Config::has_start_timeout()
const {
1430 return _internal_has_start_timeout();
1432 inline void Config::clear_start_timeout() {
1433 start_timeout_ = 20;
1434 _has_bits_[0] &= ~0x00000004u;
1437 return start_timeout_;
1441 return _internal_start_timeout();
1444 _has_bits_[0] |= 0x00000004u;
1445 start_timeout_ =
value;
1448 _internal_set_start_timeout(value);
1453 inline bool Config::_internal_has_max_frame_size()
const {
1454 bool value = (_has_bits_[0] & 0x00000008u) != 0;
1457 inline bool Config::has_max_frame_size()
const {
1458 return _internal_has_max_frame_size();
1460 inline void Config::clear_max_frame_size() {
1461 max_frame_size_ = 64u;
1462 _has_bits_[0] &= ~0x00000008u;
1465 return max_frame_size_;
1469 return _internal_max_frame_size();
1472 _has_bits_[0] |= 0x00000008u;
1473 max_frame_size_ =
value;
1476 _internal_set_max_frame_size(value);
1485 inline bool BenthosHeader::_internal_has_type()
const {
1486 bool value = (_has_bits_[0] & 0x00000002u) != 0;
1489 inline bool BenthosHeader::has_type()
const {
1490 return _internal_has_type();
1492 inline void BenthosHeader::clear_type() {
1494 _has_bits_[0] &= ~0x00000002u;
1501 return _internal_type();
1505 _has_bits_[0] |= 0x00000002u;
1509 _internal_set_type(value);
1514 inline bool BenthosHeader::_internal_has_ack_requested()
const {
1515 bool value = (_has_bits_[0] & 0x00000001u) != 0;
1518 inline bool BenthosHeader::has_ack_requested()
const {
1519 return _internal_has_ack_requested();
1521 inline void BenthosHeader::clear_ack_requested() {
1522 ack_requested_ =
false;
1523 _has_bits_[0] &= ~0x00000001u;
1525 inline bool BenthosHeader::_internal_ack_requested()
const {
1526 return ack_requested_;
1528 inline bool BenthosHeader::ack_requested()
const {
1530 return _internal_ack_requested();
1532 inline void BenthosHeader::_internal_set_ack_requested(
bool value) {
1533 _has_bits_[0] |= 0x00000001u;
1534 ack_requested_ =
value;
1536 inline void BenthosHeader::set_ack_requested(
bool value) {
1537 _internal_set_ack_requested(value);
1542 inline int BenthosHeader::_internal_acked_frame_size()
const {
1543 return acked_frame_.size();
1545 inline int BenthosHeader::acked_frame_size()
const {
1546 return _internal_acked_frame_size();
1548 inline void BenthosHeader::clear_acked_frame() {
1549 acked_frame_.Clear();
1552 return acked_frame_.Get(index);
1556 return _internal_acked_frame(index);
1559 acked_frame_.Set(index, value);
1563 acked_frame_.Add(value);
1566 _internal_add_acked_frame(value);
1569 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
1570 BenthosHeader::_internal_acked_frame()
const {
1571 return acked_frame_;
1573 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
1574 BenthosHeader::acked_frame()
const {
1576 return _internal_acked_frame();
1578 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
1579 BenthosHeader::_internal_mutable_acked_frame() {
1580 return &acked_frame_;
1582 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
1583 BenthosHeader::mutable_acked_frame() {
1585 return _internal_mutable_acked_frame();
1593 inline bool ReceiveStatistics::_internal_has_crc()
const {
1594 bool value = (_has_bits_[0] & 0x00000020u) != 0;
1597 inline bool ReceiveStatistics::has_crc()
const {
1598 return _internal_has_crc();
1600 inline void ReceiveStatistics::clear_crc() {
1602 _has_bits_[0] &= ~0x00000020u;
1609 return _internal_crc();
1613 _has_bits_[0] |= 0x00000020u;
1617 _internal_set_crc(value);
1622 inline bool ReceiveStatistics::_internal_has_multipath_delay()
const {
1623 bool value = (_has_bits_[0] & 0x00000001u) != 0;
1626 inline bool ReceiveStatistics::has_multipath_delay()
const {
1627 return _internal_has_multipath_delay();
1629 inline void ReceiveStatistics::clear_multipath_delay() {
1630 multipath_delay_ = 0;
1631 _has_bits_[0] &= ~0x00000001u;
1633 inline float ReceiveStatistics::_internal_multipath_delay()
const {
1634 return multipath_delay_;
1636 inline float ReceiveStatistics::multipath_delay()
const {
1638 return _internal_multipath_delay();
1640 inline void ReceiveStatistics::_internal_set_multipath_delay(
float value) {
1641 _has_bits_[0] |= 0x00000001u;
1642 multipath_delay_ =
value;
1644 inline void ReceiveStatistics::set_multipath_delay(
float value) {
1645 _internal_set_multipath_delay(value);
1650 inline bool ReceiveStatistics::_internal_has_snr()
const {
1651 bool value = (_has_bits_[0] & 0x00000002u) != 0;
1654 inline bool ReceiveStatistics::has_snr()
const {
1655 return _internal_has_snr();
1657 inline void ReceiveStatistics::clear_snr() {
1659 _has_bits_[0] &= ~0x00000002u;
1661 inline float ReceiveStatistics::_internal_snr()
const {
1664 inline float ReceiveStatistics::snr()
const {
1666 return _internal_snr();
1668 inline void ReceiveStatistics::_internal_set_snr(
float value) {
1669 _has_bits_[0] |= 0x00000002u;
1672 inline void ReceiveStatistics::set_snr(
float value) {
1673 _internal_set_snr(value);
1678 inline bool ReceiveStatistics::_internal_has_relative_speed()
const {
1679 bool value = (_has_bits_[0] & 0x00000004u) != 0;
1682 inline bool ReceiveStatistics::has_relative_speed()
const {
1683 return _internal_has_relative_speed();
1685 inline void ReceiveStatistics::clear_relative_speed() {
1686 relative_speed_ = 0;
1687 _has_bits_[0] &= ~0x00000004u;
1689 inline float ReceiveStatistics::_internal_relative_speed()
const {
1690 return relative_speed_;
1692 inline float ReceiveStatistics::relative_speed()
const {
1694 return _internal_relative_speed();
1696 inline void ReceiveStatistics::_internal_set_relative_speed(
float value) {
1697 _has_bits_[0] |= 0x00000004u;
1698 relative_speed_ =
value;
1700 inline void ReceiveStatistics::set_relative_speed(
float value) {
1701 _internal_set_relative_speed(value);
1706 inline bool ReceiveStatistics::_internal_has_auto_gain_control()
const {
1707 bool value = (_has_bits_[0] & 0x00000008u) != 0;
1710 inline bool ReceiveStatistics::has_auto_gain_control()
const {
1711 return _internal_has_auto_gain_control();
1713 inline void ReceiveStatistics::clear_auto_gain_control() {
1714 auto_gain_control_ = 0;
1715 _has_bits_[0] &= ~0x00000008u;
1717 inline float ReceiveStatistics::_internal_auto_gain_control()
const {
1718 return auto_gain_control_;
1720 inline float ReceiveStatistics::auto_gain_control()
const {
1722 return _internal_auto_gain_control();
1724 inline void ReceiveStatistics::_internal_set_auto_gain_control(
float value) {
1725 _has_bits_[0] |= 0x00000008u;
1726 auto_gain_control_ =
value;
1728 inline void ReceiveStatistics::set_auto_gain_control(
float value) {
1729 _internal_set_auto_gain_control(value);
1734 inline bool ReceiveStatistics::_internal_has_corrected_channel_error()
const {
1735 bool value = (_has_bits_[0] & 0x00000010u) != 0;
1738 inline bool ReceiveStatistics::has_corrected_channel_error()
const {
1739 return _internal_has_corrected_channel_error();
1741 inline void ReceiveStatistics::clear_corrected_channel_error() {
1742 corrected_channel_error_ = 0;
1743 _has_bits_[0] &= ~0x00000010u;
1746 return corrected_channel_error_;
1750 return _internal_corrected_channel_error();
1753 _has_bits_[0] |= 0x00000010u;
1754 corrected_channel_error_ =
value;
1757 _internal_set_corrected_channel_error(value);
1766 inline bool RangingReply::_internal_has_one_way_travel_time()
const {
1767 bool value = (_has_bits_[0] & 0x00000001u) != 0;
1770 inline bool RangingReply::has_one_way_travel_time()
const {
1771 return _internal_has_one_way_travel_time();
1773 inline void RangingReply::clear_one_way_travel_time() {
1774 one_way_travel_time_ = 0;
1775 _has_bits_[0] &= ~0x00000001u;
1777 inline double RangingReply::_internal_one_way_travel_time()
const {
1778 return one_way_travel_time_;
1780 inline double RangingReply::one_way_travel_time()
const {
1782 return _internal_one_way_travel_time();
1784 inline void RangingReply::_internal_set_one_way_travel_time(
double value) {
1785 _has_bits_[0] |= 0x00000001u;
1786 one_way_travel_time_ =
value;
1788 inline void RangingReply::set_one_way_travel_time(
double value) {
1789 _internal_set_one_way_travel_time(value);
1798 inline bool Transmission::_internal_has_type()
const {
1799 bool value = (_has_bits_[0] & 0x00000004u) != 0;
1802 inline bool Transmission::has_type()
const {
1803 return _internal_has_type();
1805 inline void Transmission::clear_type() {
1807 _has_bits_[0] &= ~0x00000004u;
1814 return _internal_type();
1818 _has_bits_[0] |= 0x00000004u;
1822 _internal_set_type(value);
1827 inline bool Transmission::_internal_has_receive_stat()
const {
1828 bool value = (_has_bits_[0] & 0x00000001u) != 0;
1829 PROTOBUF_ASSUME(!value || receive_stat_ !=
nullptr);
1832 inline bool Transmission::has_receive_stat()
const {
1833 return _internal_has_receive_stat();
1835 inline void Transmission::clear_receive_stat() {
1836 if (receive_stat_ !=
nullptr) receive_stat_->Clear();
1837 _has_bits_[0] &= ~0x00000001u;
1839 inline const ::goby::acomms::benthos::protobuf::ReceiveStatistics& Transmission::_internal_receive_stat()
const {
1840 const ::goby::acomms::benthos::protobuf::ReceiveStatistics* p = receive_stat_;
1841 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::acomms::benthos::protobuf::ReceiveStatistics*
>(
1844 inline const ::goby::acomms::benthos::protobuf::ReceiveStatistics& Transmission::receive_stat()
const {
1846 return _internal_receive_stat();
1848 inline void Transmission::unsafe_arena_set_allocated_receive_stat(
1849 ::goby::acomms::benthos::protobuf::ReceiveStatistics* receive_stat) {
1850 if (GetArena() ==
nullptr) {
1851 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(receive_stat_);
1853 receive_stat_ = receive_stat;
1855 _has_bits_[0] |= 0x00000001u;
1857 _has_bits_[0] &= ~0x00000001u;
1861 inline ::goby::acomms::benthos::protobuf::ReceiveStatistics* Transmission::release_receive_stat() {
1862 auto temp = unsafe_arena_release_receive_stat();
1863 if (GetArena() !=
nullptr) {
1864 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1868 inline ::goby::acomms::benthos::protobuf::ReceiveStatistics* Transmission::unsafe_arena_release_receive_stat() {
1870 _has_bits_[0] &= ~0x00000001u;
1871 ::goby::acomms::benthos::protobuf::ReceiveStatistics* temp = receive_stat_;
1872 receive_stat_ =
nullptr;
1875 inline ::goby::acomms::benthos::protobuf::ReceiveStatistics* Transmission::_internal_mutable_receive_stat() {
1876 _has_bits_[0] |= 0x00000001u;
1877 if (receive_stat_ ==
nullptr) {
1878 auto* p = CreateMaybeMessage<::goby::acomms::benthos::protobuf::ReceiveStatistics>(GetArena());
1881 return receive_stat_;
1883 inline ::goby::acomms::benthos::protobuf::ReceiveStatistics* Transmission::mutable_receive_stat() {
1885 return _internal_mutable_receive_stat();
1887 inline void Transmission::set_allocated_receive_stat(::goby::acomms::benthos::protobuf::ReceiveStatistics* receive_stat) {
1888 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1889 if (message_arena ==
nullptr) {
1890 delete receive_stat_;
1893 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1894 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(receive_stat);
1895 if (message_arena != submessage_arena) {
1896 receive_stat = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1897 message_arena, receive_stat, submessage_arena);
1899 _has_bits_[0] |= 0x00000001u;
1901 _has_bits_[0] &= ~0x00000001u;
1903 receive_stat_ = receive_stat;
1908 inline bool Transmission::_internal_has_ranging_reply()
const {
1909 bool value = (_has_bits_[0] & 0x00000002u) != 0;
1910 PROTOBUF_ASSUME(!value || ranging_reply_ !=
nullptr);
1913 inline bool Transmission::has_ranging_reply()
const {
1914 return _internal_has_ranging_reply();
1916 inline void Transmission::clear_ranging_reply() {
1917 if (ranging_reply_ !=
nullptr) ranging_reply_->Clear();
1918 _has_bits_[0] &= ~0x00000002u;
1920 inline const ::goby::acomms::benthos::protobuf::RangingReply& Transmission::_internal_ranging_reply()
const {
1921 const ::goby::acomms::benthos::protobuf::RangingReply* p = ranging_reply_;
1922 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::acomms::benthos::protobuf::RangingReply*
>(
1925 inline const ::goby::acomms::benthos::protobuf::RangingReply& Transmission::ranging_reply()
const {
1927 return _internal_ranging_reply();
1929 inline void Transmission::unsafe_arena_set_allocated_ranging_reply(
1930 ::goby::acomms::benthos::protobuf::RangingReply* ranging_reply) {
1931 if (GetArena() ==
nullptr) {
1932 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(ranging_reply_);
1934 ranging_reply_ = ranging_reply;
1935 if (ranging_reply) {
1936 _has_bits_[0] |= 0x00000002u;
1938 _has_bits_[0] &= ~0x00000002u;
1942 inline ::goby::acomms::benthos::protobuf::RangingReply* Transmission::release_ranging_reply() {
1943 auto temp = unsafe_arena_release_ranging_reply();
1944 if (GetArena() !=
nullptr) {
1945 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1949 inline ::goby::acomms::benthos::protobuf::RangingReply* Transmission::unsafe_arena_release_ranging_reply() {
1951 _has_bits_[0] &= ~0x00000002u;
1952 ::goby::acomms::benthos::protobuf::RangingReply* temp = ranging_reply_;
1953 ranging_reply_ =
nullptr;
1956 inline ::goby::acomms::benthos::protobuf::RangingReply* Transmission::_internal_mutable_ranging_reply() {
1957 _has_bits_[0] |= 0x00000002u;
1958 if (ranging_reply_ ==
nullptr) {
1959 auto* p = CreateMaybeMessage<::goby::acomms::benthos::protobuf::RangingReply>(GetArena());
1962 return ranging_reply_;
1964 inline ::goby::acomms::benthos::protobuf::RangingReply* Transmission::mutable_ranging_reply() {
1966 return _internal_mutable_ranging_reply();
1968 inline void Transmission::set_allocated_ranging_reply(::goby::acomms::benthos::protobuf::RangingReply* ranging_reply) {
1969 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1970 if (message_arena ==
nullptr) {
1971 delete ranging_reply_;
1973 if (ranging_reply) {
1974 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1975 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(ranging_reply);
1976 if (message_arena != submessage_arena) {
1977 ranging_reply = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1978 message_arena, ranging_reply, submessage_arena);
1980 _has_bits_[0] |= 0x00000002u;
1982 _has_bits_[0] &= ~0x00000002u;
1984 ranging_reply_ = ranging_reply;
1989 #pragma GCC diagnostic pop
2007 PROTOBUF_NAMESPACE_OPEN
2011 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::benthos::protobuf::ReceiveStatistics_CRCState>() {
2016 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::benthos::protobuf::TransmissionType>() {
2020 PROTOBUF_NAMESPACE_CLOSE
2024 #include <google/protobuf/port_undef.inc>
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto
ReceiveStatistics * New() const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
ReceiveStatistics(ReceiveStatistics &&from) noexcept
ReceiveStatistics(const ReceiveStatistics &from)
void set_type(::goby::acomms::benthos::protobuf::TransmissionType value)
::goby::acomms::benthos::protobuf::ReceiveStatistics * release_receive_stat()
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > & acked_frame() const
friend void swap(RangingReply &a, RangingReply &b)
static const BenthosHeader & default_instance()
boost::units::quantity< relative_speed_unit, float > relative_speed_with_units() const
void set_config_load(const std::string &value)
void set_multipath_delay_with_units(Quantity value_w_units)
void CopyFrom(const ReceiveStatistics &from)
BenthosHeader(const BenthosHeader &from)
Config * New() const final
const ::goby::acomms::benthos::protobuf::RangingReply & ranging_reply() const
void set_corrected_channel_error(::PROTOBUF_NAMESPACE_ID::int32 value)
bool has_ranging_reply() const
RangingReply * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void set_ack_requested(bool value)
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > * mutable_config()
void set_one_way_travel_time_with_units(Quantity value_w_units)
void unsafe_arena_set_allocated_receive_stat(::goby::acomms::benthos::protobuf::ReceiveStatistics *receive_stat)
Transmission & operator=(Transmission &&from) noexcept
void set_acked_frame(int index, ::PROTOBUF_NAMESPACE_ID::int32 value)
static const RangingReply & default_instance()
Transmission * New() const final
void UnsafeArenaSwap(ReceiveStatistics *other)
void set_relative_speed_with_units(Quantity value_w_units)
::PROTOBUF_NAMESPACE_ID::int32 acked_frame(int index) const
void clear_multipath_delay()
void set_config(int index, const char *value, size_t size)
static const RangingReply * internal_default_instance()
static const BenthosHeader * internal_default_instance()
::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > * mutable_acked_frame()
void Swap(RangingReply *other)
Quantity multipath_delay_with_units() const
virtual ~ReceiveStatistics()
bool has_receive_stat() const
void set_snr(float value)
void CopyFrom(const RangingReply &from)
int acked_frame_size() const
Config(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void MergeFrom(const Config &from)
RangingReply & operator=(const RangingReply &from)
void UnsafeArenaSwap(Transmission *other)
void MergeFrom(const RangingReply &from)
double one_way_travel_time() const
void set_config_load(const char *value, size_t size)
Config(Config &&from) noexcept
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
BenthosHeader(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_config(int index, const std::string &value)
BenthosHeader(BenthosHeader &&from) noexcept
Transmission * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
friend void swap(Config &a, Config &b)
void Swap(ReceiveStatistics *other)
::goby::acomms::benthos::protobuf::RangingReply * release_ranging_reply()
void Swap(BenthosHeader *other)
Config & operator=(const Config &from)
void clear_one_way_travel_time()
void set_allocated_receive_stat(::goby::acomms::benthos::protobuf::ReceiveStatistics *receive_stat)
static const std::string & CRCState_Name(T enum_t_value)
void Swap(Transmission *other)
::PROTOBUF_NAMESPACE_ID::int32 corrected_channel_error() const
static const Transmission & default_instance()
RangingReply(::PROTOBUF_NAMESPACE_ID::Arena *arena)
boost::units::quantity< one_way_travel_time_unit, double > one_way_travel_time_with_units() const
static const ReceiveStatistics * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
::goby::acomms::benthos::protobuf::TransmissionType type() const
void set_config(int index, const char *value)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
::goby::acomms::benthos::protobuf::ReceiveStatistics * mutable_receive_stat()
void MergeFrom(const Transmission &from)
float auto_gain_control() const
boost::units::unit< multipath_delay_dimension, boost::units::si::system > multipath_delay_unit
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
bool ack_requested() const
std::string * mutable_config_load()
Transmission(Transmission &&from) noexcept
void add_config(const char *value, size_t size)
RangingReply & operator=(RangingReply &&from) noexcept
boost::units::unit< relative_speed_dimension, boost::units::si::system > relative_speed_unit
BenthosHeader * New() const final
RangingReply * New() const final
std::string * release_config_load()
Config * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
bool has_ack_requested() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
friend void swap(ReceiveStatistics &a, ReceiveStatistics &b)
void set_config_load(std::string &&value)
void MergeFrom(const ReceiveStatistics &from)
boost::units::derived_dimension< boost::units::length_base_dimension, 1, boost::units::time_base_dimension,-1 >::type relative_speed_dimension
void CopyFrom(const Transmission &from)
bool has_auto_gain_control() const
boost::units::si::second_base_unit::unit_type one_way_travel_time_unit
void set_auto_gain_control(float value)
bool has_relative_speed() const
::goby::acomms::benthos::protobuf::ReceiveStatistics_CRCState crc() const
ReceiveStatistics & operator=(const ReceiveStatistics &from)
void set_config(int index, std::string &&value)
void UnsafeArenaSwap(BenthosHeader *other)
void set_relative_speed(float value)
bool has_corrected_channel_error() const
void add_config(std::string &&value)
::goby::acomms::protobuf::ModemTransmission_TransmissionType type() const
BenthosHeader & operator=(const BenthosHeader &from)
void set_one_way_travel_time(double value)
void clear_relative_speed()
static void InitAsDefaultInstance()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
ReceiveStatistics(::PROTOBUF_NAMESPACE_ID::Arena *arena)
BenthosHeader & operator=(BenthosHeader &&from) noexcept
friend void swap(BenthosHeader &a, BenthosHeader &b)
void add_config(const char *value)
void clear_ranging_reply()
static bool CRCState_IsValid(int value)
void set_config_load(const char *value)
void UnsafeArenaSwap(Config *other)
void set_multipath_delay(float value)
ReceiveStatistics * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type multipath_delay_dimension
void clear_auto_gain_control()
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > & config() const
BenthosHeader * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
RangingReply(RangingReply &&from) noexcept
bool has_config_load() const
bool has_multipath_delay() const
void set_allocated_config_load(std::string *config_load)
static bool CRCState_Parse(const std::string &name, CRCState *value)
Config(const Config &from)
const std::string & config_load() const
const ::goby::acomms::benthos::protobuf::ReceiveStatistics & receive_stat() const
void CopyFrom(const BenthosHeader &from)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * CRCState_descriptor()
Transmission(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void clear_corrected_channel_error()
Transmission(const Transmission &from)
void set_allocated_ranging_reply(::goby::acomms::benthos::protobuf::RangingReply *ranging_reply)
::goby::acomms::benthos::protobuf::RangingReply * unsafe_arena_release_ranging_reply()
ReceiveStatistics & operator=(ReceiveStatistics &&from) noexcept
float relative_speed() const
void CopyFrom(const Config &from)
static const Config & default_instance()
void add_config(const std::string &value)
const std::string & config(int index) const
std::string * add_config()
void unsafe_arena_set_allocated_ranging_reply(::goby::acomms::benthos::protobuf::RangingReply *ranging_reply)
std::string * mutable_config(int index)
void clear_receive_stat()
void UnsafeArenaSwap(RangingReply *other)
::goby::acomms::benthos::protobuf::RangingReply * mutable_ranging_reply()
Config & operator=(Config &&from) noexcept
friend void swap(Transmission &a, Transmission &b)
static const ReceiveStatistics & default_instance()
Transmission & operator=(const Transmission &from)
RangingReply(const RangingReply &from)
void set_type(::goby::acomms::protobuf::ModemTransmission_TransmissionType value)
Quantity relative_speed_with_units() const
::goby::acomms::benthos::protobuf::ReceiveStatistics * unsafe_arena_release_receive_stat()
void set_crc(::goby::acomms::benthos::protobuf::ReceiveStatistics_CRCState value)
static const Transmission * internal_default_instance()
bool has_one_way_travel_time() const
ReceiveStatistics_CRCState CRCState
void add_acked_frame(::PROTOBUF_NAMESPACE_ID::int32 value)
static const Config * internal_default_instance()
boost::units::quantity< multipath_delay_unit, float > multipath_delay_with_units() const
float multipath_delay() const
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Quantity one_way_travel_time_with_units() const
void clear_ack_requested()
void MergeFrom(const BenthosHeader &from)
@ value
the parser finished reading a JSON value
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::benthos::protobuf::Config >, 11, false > config
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ReceiveStatistics_CRCState_descriptor()
constexpr ReceiveStatistics_CRCState ReceiveStatistics_CRCState_CRCState_MIN
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::ModemTransmission, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::benthos::protobuf::Transmission >, 11, false > transmission
RangingReplyDefaultTypeInternal _RangingReply_default_instance_
constexpr int ReceiveStatistics_CRCState_CRCState_ARRAYSIZE
constexpr TransmissionType TransmissionType_MAX
const std::string & TransmissionType_Name(T enum_t_value)
BenthosHeaderDefaultTypeInternal _BenthosHeader_default_instance_
const std::string & ReceiveStatistics_CRCState_Name(T enum_t_value)
bool TransmissionType_IsValid(int value)
bool ReceiveStatistics_CRCState_Parse(const std::string &name, ReceiveStatistics_CRCState *value)
bool TransmissionType_Parse(const std::string &name, TransmissionType *value)
static const int kTransmissionFieldNumber
static const int kConfigFieldNumber
TransmissionDefaultTypeInternal _Transmission_default_instance_
ConfigDefaultTypeInternal _Config_default_instance_
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * TransmissionType_descriptor()
bool ReceiveStatistics_CRCState_IsValid(int value)
constexpr int TransmissionType_ARRAYSIZE
ReceiveStatisticsDefaultTypeInternal _ReceiveStatistics_default_instance_
ReceiveStatistics_CRCState
@ ReceiveStatistics_CRCState_CRC_PASS
@ ReceiveStatistics_CRCState_CRC_FAIL
constexpr TransmissionType TransmissionType_MIN
constexpr ReceiveStatistics_CRCState ReceiveStatistics_CRCState_CRCState_MAX
bool ModemTransmission_TransmissionType_IsValid(int value)
ModemTransmission_TransmissionType
The global namespace for the Goby project.
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
type
Generic JSON types used in JWTs.
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]