4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fpopoto_5fdriver_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fpopoto_5fdriver_2eproto
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
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 3021012 < 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_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.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#include <google/protobuf/port_def.inc>
46#define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2fpopoto_5fdriver_2eproto
47PROTOBUF_NAMESPACE_OPEN
51PROTOBUF_NAMESPACE_CLOSE
63struct ConfigDefaultTypeInternal;
66struct RangingReplyDefaultTypeInternal;
69struct TransmissionDefaultTypeInternal;
75PROTOBUF_NAMESPACE_OPEN
79PROTOBUF_NAMESPACE_CLOSE
102 static_assert(::std::is_same<T, TransmissionType>::value ||
103 ::std::is_integral<T>::value,
104 "Incorrect type passed to function TransmissionType_Name.");
105 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
110 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TransmissionType>(
116 public ::PROTOBUF_NAMESPACE_ID::Message {
120 explicit PROTOBUF_CONSTEXPR
Config(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
125 *
this = ::std::move(from);
133 if (
this == &from)
return *
this;
134 if (GetOwningArena() == from.GetOwningArena()
135 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
136 && GetOwningArena() !=
nullptr
147 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
150 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
153 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
166 return reinterpret_cast<const Config*
>(
176 if (other ==
this)
return;
177 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
178 if (GetOwningArena() !=
nullptr &&
179 GetOwningArena() == other->GetOwningArena()) {
181 if (GetOwningArena() == other->GetOwningArena()) {
185 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
189 if (other ==
this)
return;
190 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
196 Config*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
197 return CreateMaybeMessage<Config>(arena);
199 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
201 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
203 Config::MergeImpl(*
this, from);
206 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
208 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
214 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
218 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
220 void SetCachedSize(
int size)
const final;
221 void InternalSwap(
Config* other);
224 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
225 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
226 return "goby.acomms.popoto.protobuf.Config";
229 explicit Config(::PROTOBUF_NAMESPACE_ID::Arena* arena,
230 bool is_message_owned =
false);
234 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
251 bool _internal_has_payload_mode()
const;
257 int32_t _internal_payload_mode()
const;
258 void _internal_set_payload_mode(int32_t value);
264 bool _internal_has_application_type()
const;
270 int32_t _internal_application_type()
const;
271 void _internal_set_application_type(int32_t value);
277 bool _internal_has_start_timeout()
const;
283 int32_t _internal_start_timeout()
const;
284 void _internal_set_start_timeout(int32_t value);
290 bool _internal_has_modem_power()
const;
296 double _internal_modem_power()
const;
297 void _internal_set_modem_power(
double value);
304 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
305 typedef void InternalArenaConstructable_;
306 typedef void DestructorSkippable_;
308 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
309 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
310 int32_t payload_mode_;
311 int32_t application_type_;
312 int32_t start_timeout_;
316 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fpopoto_5fdriver_2eproto;
321 public ::PROTOBUF_NAMESPACE_ID::Message {
325 explicit PROTOBUF_CONSTEXPR
RangingReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
330 *
this = ::std::move(from);
338 if (
this == &from)
return *
this;
339 if (GetOwningArena() == from.GetOwningArena()
340 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
341 && GetOwningArena() !=
nullptr
352 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
355 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
358 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
381 if (other ==
this)
return;
382 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
383 if (GetOwningArena() !=
nullptr &&
384 GetOwningArena() == other->GetOwningArena()) {
386 if (GetOwningArena() == other->GetOwningArena()) {
390 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
394 if (other ==
this)
return;
395 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
402 return CreateMaybeMessage<RangingReply>(arena);
404 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
406 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
408 RangingReply::MergeImpl(*
this, from);
411 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
413 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
419 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
423 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
425 void SetCachedSize(
int size)
const final;
429 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
430 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
431 return "goby.acomms.popoto.protobuf.RangingReply";
435 bool is_message_owned =
false);
439 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
454 bool has_one_way_travel_time()
const;
456 bool _internal_has_one_way_travel_time()
const;
458 void clear_one_way_travel_time();
459 double one_way_travel_time()
const;
460 void set_one_way_travel_time(
double value);
462 double _internal_one_way_travel_time()
const;
463 void _internal_set_one_way_travel_time(
double value);
467 bool has_two_way_travel_time()
const;
469 bool _internal_has_two_way_travel_time()
const;
471 void clear_two_way_travel_time();
472 double two_way_travel_time()
const;
473 void set_two_way_travel_time(
double value);
475 double _internal_two_way_travel_time()
const;
476 void _internal_set_two_way_travel_time(
double value);
480 bool has_modem_range()
const;
482 bool _internal_has_modem_range()
const;
484 void clear_modem_range();
485 double modem_range()
const;
486 void set_modem_range(
double value);
488 double _internal_modem_range()
const;
489 void _internal_set_modem_range(
double value);
493 bool has_modem_sound_speed()
const;
495 bool _internal_has_modem_sound_speed()
const;
497 void clear_modem_sound_speed();
498 double modem_sound_speed()
const;
499 void set_modem_sound_speed(
double value);
501 double _internal_modem_sound_speed()
const;
502 void _internal_set_modem_sound_speed(
double value);
507 template<
typename Quantity >
509 {
set_one_way_travel_time(boost::units::quantity<one_way_travel_time_unit,double >(value_w_units).value() ); };
511 template<
typename Quantity >
520 template<
typename Quantity >
522 {
set_two_way_travel_time(boost::units::quantity<two_way_travel_time_unit,double >(value_w_units).value() ); };
524 template<
typename Quantity >
535 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
536 typedef void InternalArenaConstructable_;
537 typedef void DestructorSkippable_;
539 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
540 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
541 double one_way_travel_time_;
542 double two_way_travel_time_;
544 double modem_sound_speed_;
547 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fpopoto_5fdriver_2eproto;
552 public ::PROTOBUF_NAMESPACE_ID::Message {
556 explicit PROTOBUF_CONSTEXPR
Transmission(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
561 *
this = ::std::move(from);
569 if (
this == &from)
return *
this;
570 if (GetOwningArena() == from.GetOwningArena()
571 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
572 && GetOwningArena() !=
nullptr
583 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
586 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
589 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
612 if (other ==
this)
return;
613 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
614 if (GetOwningArena() !=
nullptr &&
615 GetOwningArena() == other->GetOwningArena()) {
617 if (GetOwningArena() == other->GetOwningArena()) {
621 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
625 if (other ==
this)
return;
626 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
633 return CreateMaybeMessage<Transmission>(arena);
635 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
637 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
639 Transmission::MergeImpl(*
this, from);
642 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
644 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
650 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
654 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
656 void SetCachedSize(
int size)
const final;
660 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
661 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
662 return "goby.acomms.popoto.protobuf.Transmission";
666 bool is_message_owned =
false);
670 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
685 bool has_file_location()
const;
687 bool _internal_has_file_location()
const;
689 void clear_file_location();
690 const std::string& file_location()
const;
691 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
697 const std::string& _internal_file_location()
const;
698 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_file_location(
const std::string& value);
699 std::string* _internal_mutable_file_location();
705 bool _internal_has_ranging_reply()
const;
708 const ::goby::acomms::popoto::protobuf::RangingReply&
ranging_reply()
const;
713 const ::goby::acomms::popoto::protobuf::RangingReply& _internal_ranging_reply()
const;
723 bool _internal_has_transmit_power()
const;
729 double _internal_transmit_power()
const;
730 void _internal_set_transmit_power(
double value);
736 bool _internal_has_type()
const;
750 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
751 typedef void InternalArenaConstructable_;
752 typedef void DestructorSkippable_;
754 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
755 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
756 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_location_;
758 double transmit_power_;
762 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fpopoto_5fdriver_2eproto;
768 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::popoto::protobuf::Config >, 11,
false >
772 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::popoto::protobuf::Transmission >, 11,
false >
778 #pragma GCC diagnostic push
779 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
784inline bool Config::_internal_has_start_timeout()
const {
785 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
789 return _internal_has_start_timeout();
792 _impl_.start_timeout_ = 30;
793 _impl_._has_bits_[0] &= ~0x00000004u;
795inline int32_t Config::_internal_start_timeout()
const {
796 return _impl_.start_timeout_;
800 return _internal_start_timeout();
802inline void Config::_internal_set_start_timeout(int32_t value) {
803 _impl_._has_bits_[0] |= 0x00000004u;
804 _impl_.start_timeout_ = value;
807 _internal_set_start_timeout(value);
812inline bool Config::_internal_has_payload_mode()
const {
813 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
817 return _internal_has_payload_mode();
821 _impl_._has_bits_[0] &= ~0x00000001u;
823inline int32_t Config::_internal_payload_mode()
const {
824 return _impl_.payload_mode_;
828 return _internal_payload_mode();
830inline void Config::_internal_set_payload_mode(int32_t value) {
831 _impl_._has_bits_[0] |= 0x00000001u;
832 _impl_.payload_mode_ = value;
835 _internal_set_payload_mode(value);
840inline bool Config::_internal_has_modem_power()
const {
841 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
845 return _internal_has_modem_power();
849 _impl_._has_bits_[0] &= ~0x00000008u;
851inline double Config::_internal_modem_power()
const {
852 return _impl_.modem_power_;
856 return _internal_modem_power();
858inline void Config::_internal_set_modem_power(
double value) {
859 _impl_._has_bits_[0] |= 0x00000008u;
860 _impl_.modem_power_ = value;
863 _internal_set_modem_power(value);
868inline bool Config::_internal_has_application_type()
const {
869 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
873 return _internal_has_application_type();
876 _impl_.application_type_ = 0;
877 _impl_._has_bits_[0] &= ~0x00000002u;
879inline int32_t Config::_internal_application_type()
const {
880 return _impl_.application_type_;
884 return _internal_application_type();
886inline void Config::_internal_set_application_type(int32_t value) {
887 _impl_._has_bits_[0] |= 0x00000002u;
888 _impl_.application_type_ = value;
891 _internal_set_application_type(value);
900inline bool RangingReply::_internal_has_one_way_travel_time()
const {
901 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
905 return _internal_has_one_way_travel_time();
908 _impl_.one_way_travel_time_ = 0;
909 _impl_._has_bits_[0] &= ~0x00000001u;
911inline double RangingReply::_internal_one_way_travel_time()
const {
912 return _impl_.one_way_travel_time_;
916 return _internal_one_way_travel_time();
918inline void RangingReply::_internal_set_one_way_travel_time(
double value) {
919 _impl_._has_bits_[0] |= 0x00000001u;
920 _impl_.one_way_travel_time_ = value;
923 _internal_set_one_way_travel_time(value);
928inline bool RangingReply::_internal_has_two_way_travel_time()
const {
929 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
933 return _internal_has_two_way_travel_time();
936 _impl_.two_way_travel_time_ = 0;
937 _impl_._has_bits_[0] &= ~0x00000002u;
939inline double RangingReply::_internal_two_way_travel_time()
const {
940 return _impl_.two_way_travel_time_;
944 return _internal_two_way_travel_time();
946inline void RangingReply::_internal_set_two_way_travel_time(
double value) {
947 _impl_._has_bits_[0] |= 0x00000002u;
948 _impl_.two_way_travel_time_ = value;
951 _internal_set_two_way_travel_time(value);
956inline bool RangingReply::_internal_has_modem_range()
const {
957 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
961 return _internal_has_modem_range();
965 _impl_._has_bits_[0] &= ~0x00000004u;
967inline double RangingReply::_internal_modem_range()
const {
968 return _impl_.modem_range_;
972 return _internal_modem_range();
974inline void RangingReply::_internal_set_modem_range(
double value) {
975 _impl_._has_bits_[0] |= 0x00000004u;
976 _impl_.modem_range_ = value;
979 _internal_set_modem_range(value);
984inline bool RangingReply::_internal_has_modem_sound_speed()
const {
985 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
989 return _internal_has_modem_sound_speed();
992 _impl_.modem_sound_speed_ = 0;
993 _impl_._has_bits_[0] &= ~0x00000008u;
995inline double RangingReply::_internal_modem_sound_speed()
const {
996 return _impl_.modem_sound_speed_;
1000 return _internal_modem_sound_speed();
1002inline void RangingReply::_internal_set_modem_sound_speed(
double value) {
1003 _impl_._has_bits_[0] |= 0x00000008u;
1004 _impl_.modem_sound_speed_ = value;
1007 _internal_set_modem_sound_speed(value);
1016inline bool Transmission::_internal_has_type()
const {
1017 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1021 return _internal_has_type();
1025 _impl_._has_bits_[0] &= ~0x00000008u;
1027inline ::goby::acomms::popoto::protobuf::TransmissionType Transmission::_internal_type()
const {
1032 return _internal_type();
1036 _impl_._has_bits_[0] |= 0x00000008u;
1037 _impl_.type_ = value;
1040 _internal_set_type(value);
1045inline bool Transmission::_internal_has_ranging_reply()
const {
1046 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1047 PROTOBUF_ASSUME(!value || _impl_.ranging_reply_ !=
nullptr);
1051 return _internal_has_ranging_reply();
1054 if (
_impl_.ranging_reply_ !=
nullptr)
_impl_.ranging_reply_->Clear();
1055 _impl_._has_bits_[0] &= ~0x00000002u;
1057inline const ::goby::acomms::popoto::protobuf::RangingReply& Transmission::_internal_ranging_reply()
const {
1058 const ::goby::acomms::popoto::protobuf::RangingReply* p = _impl_.ranging_reply_;
1064 return _internal_ranging_reply();
1068 if (GetArenaForAllocation() ==
nullptr) {
1069 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.ranging_reply_);
1073 _impl_._has_bits_[0] |= 0x00000002u;
1075 _impl_._has_bits_[0] &= ~0x00000002u;
1080 _impl_._has_bits_[0] &= ~0x00000002u;
1082 _impl_.ranging_reply_ =
nullptr;
1083#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1084 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1085 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1086 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1088 if (GetArenaForAllocation() !=
nullptr) {
1089 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1096 _impl_._has_bits_[0] &= ~0x00000002u;
1098 _impl_.ranging_reply_ =
nullptr;
1101inline ::goby::acomms::popoto::protobuf::RangingReply* Transmission::_internal_mutable_ranging_reply() {
1102 _impl_._has_bits_[0] |= 0x00000002u;
1103 if (_impl_.ranging_reply_ ==
nullptr) {
1105 _impl_.ranging_reply_ = p;
1107 return _impl_.ranging_reply_;
1115 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1116 if (message_arena ==
nullptr) {
1117 delete _impl_.ranging_reply_;
1120 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1121 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
ranging_reply);
1122 if (message_arena != submessage_arena) {
1123 ranging_reply = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1126 _impl_._has_bits_[0] |= 0x00000002u;
1128 _impl_._has_bits_[0] &= ~0x00000002u;
1135inline bool Transmission::_internal_has_file_location()
const {
1136 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1140 return _internal_has_file_location();
1143 _impl_.file_location_.ClearToEmpty();
1144 _impl_._has_bits_[0] &= ~0x00000001u;
1148 return _internal_file_location();
1150template <
typename ArgT0,
typename... ArgT>
1151inline PROTOBUF_ALWAYS_INLINE
1153 _impl_._has_bits_[0] |= 0x00000001u;
1154 _impl_.file_location_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1158 std::string* _s = _internal_mutable_file_location();
1162inline const std::string& Transmission::_internal_file_location()
const {
1163 return _impl_.file_location_.Get();
1165inline void Transmission::_internal_set_file_location(
const std::string& value) {
1166 _impl_._has_bits_[0] |= 0x00000001u;
1167 _impl_.file_location_.Set(value, GetArenaForAllocation());
1169inline std::string* Transmission::_internal_mutable_file_location() {
1170 _impl_._has_bits_[0] |= 0x00000001u;
1171 return _impl_.file_location_.Mutable(GetArenaForAllocation());
1175 if (!_internal_has_file_location()) {
1178 _impl_._has_bits_[0] &= ~0x00000001u;
1179 auto* p =
_impl_.file_location_.Release();
1180#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1181 if (
_impl_.file_location_.IsDefault()) {
1182 _impl_.file_location_.Set(
"", GetArenaForAllocation());
1189 _impl_._has_bits_[0] |= 0x00000001u;
1191 _impl_._has_bits_[0] &= ~0x00000001u;
1194#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1195 if (
_impl_.file_location_.IsDefault()) {
1196 _impl_.file_location_.Set(
"", GetArenaForAllocation());
1203inline bool Transmission::_internal_has_transmit_power()
const {
1204 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1208 return _internal_has_transmit_power();
1211 _impl_.transmit_power_ = 0;
1212 _impl_._has_bits_[0] &= ~0x00000004u;
1214inline double Transmission::_internal_transmit_power()
const {
1215 return _impl_.transmit_power_;
1219 return _internal_transmit_power();
1221inline void Transmission::_internal_set_transmit_power(
double value) {
1222 _impl_._has_bits_[0] |= 0x00000004u;
1223 _impl_.transmit_power_ = value;
1226 _internal_set_transmit_power(value);
1231 #pragma GCC diagnostic pop
1245PROTOBUF_NAMESPACE_OPEN
1250 return ::goby::acomms::popoto::protobuf::TransmissionType_descriptor();
1253PROTOBUF_NAMESPACE_CLOSE
1257#include <google/protobuf/port_undef.inc>
bool has_payload_mode() const
void set_application_type(int32_t value)
int32_t payload_mode() const
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
int32_t start_timeout() const
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
bool has_application_type() const
void CopyFrom(const Config &from)
static constexpr int kIndexInFileMessages
int GetCachedSize() const final
void clear_payload_mode()
Config & operator=(Config &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
static const Config * internal_default_instance()
void set_modem_power(double value)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
friend void swap(Config &a, Config &b)
Config * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Config & operator=(const Config &from)
Config(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
double modem_power() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
bool has_start_timeout() const
bool IsInitialized() const final
@ kPayloadModeFieldNumber
@ kStartTimeoutFieldNumber
@ kApplicationTypeFieldNumber
void set_start_timeout(int32_t value)
PROTOBUF_CONSTEXPR Config(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const Config & default_instance()
Config(const Config &from)
void set_payload_mode(int32_t value)
size_t ByteSizeLong() const final
void clear_application_type()
void MergeFrom(const Config &from)
Config(Config &&from) noexcept
int32_t application_type() const
void clear_start_timeout()
bool has_modem_power() const
static const ClassData _class_data_
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void UnsafeArenaSwap(Config *other)
boost::units::si::second_base_unit::unit_type one_way_travel_time_unit
friend void swap(RangingReply &a, RangingReply &b)
RangingReply & operator=(const RangingReply &from)
double two_way_travel_time() const
void set_one_way_travel_time(double value)
static constexpr int kIndexInFileMessages
int GetCachedSize() const final
double one_way_travel_time() const
void set_two_way_travel_time_with_units(Quantity value_w_units)
void set_modem_range(double value)
double modem_sound_speed() const
RangingReply(RangingReply &&from) noexcept
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void clear_one_way_travel_time()
void UnsafeArenaSwap(RangingReply *other)
RangingReply(const RangingReply &from)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
Quantity two_way_travel_time_with_units() const
boost::units::quantity< one_way_travel_time_unit, double > one_way_travel_time_with_units() const
void clear_modem_sound_speed()
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
PROTOBUF_CONSTEXPR RangingReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Quantity one_way_travel_time_with_units() const
@ kOneWayTravelTimeFieldNumber
@ kTwoWayTravelTimeFieldNumber
@ kModemSoundSpeedFieldNumber
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void set_two_way_travel_time(double value)
void MergeFrom(const RangingReply &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void set_modem_sound_speed(double value)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
boost::units::si::second_base_unit::unit_type two_way_travel_time_unit
static const RangingReply & default_instance()
RangingReply & operator=(RangingReply &&from) noexcept
RangingReply * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void clear_two_way_travel_time()
size_t ByteSizeLong() const final
static const RangingReply * internal_default_instance()
void CopyFrom(const RangingReply &from)
bool has_modem_range() const
bool has_one_way_travel_time() const
bool has_modem_sound_speed() const
boost::units::quantity< two_way_travel_time_unit, double > two_way_travel_time_with_units() const
double modem_range() const
void Swap(RangingReply *other)
bool has_two_way_travel_time() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
RangingReply(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void set_one_way_travel_time_with_units(Quantity value_w_units)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
bool IsInitialized() const final
static const ClassData _class_data_
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void clear_transmit_power()
void set_type(::goby::acomms::popoto::protobuf::TransmissionType value)
Transmission * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
double transmit_power() const
::goby::acomms::popoto::protobuf::RangingReply * unsafe_arena_release_ranging_reply()
void set_transmit_power(double value)
void Swap(Transmission *other)
Transmission & operator=(Transmission &&from) noexcept
Transmission(const Transmission &from)
Transmission(Transmission &&from) noexcept
bool has_transmit_power() const
int GetCachedSize() const final
static constexpr int kIndexInFileMessages
Transmission(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void set_allocated_ranging_reply(::goby::acomms::popoto::protobuf::RangingReply *ranging_reply)
size_t ByteSizeLong() const final
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
PROTOBUF_NODISCARD::goby::acomms::popoto::protobuf::RangingReply * release_ranging_reply()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void unsafe_arena_set_allocated_ranging_reply(::goby::acomms::popoto::protobuf::RangingReply *ranging_reply)
void clear_ranging_reply()
void MergeFrom(const Transmission &from)
void clear_file_location()
PROTOBUF_NODISCARD std::string * release_file_location()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
static const Transmission & default_instance()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
static const Transmission * internal_default_instance()
const ::goby::acomms::popoto::protobuf::RangingReply & ranging_reply() const
PROTOBUF_CONSTEXPR Transmission(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
@ kFileLocationFieldNumber
@ kTransmitPowerFieldNumber
@ kRangingReplyFieldNumber
::goby::acomms::popoto::protobuf::TransmissionType type() const
void set_allocated_file_location(std::string *file_location)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
std::string * mutable_file_location()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void UnsafeArenaSwap(Transmission *other)
const std::string & file_location() const
void CopyFrom(const Transmission &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
bool has_ranging_reply() const
::goby::acomms::popoto::protobuf::RangingReply * mutable_ranging_reply()
friend void swap(Transmission &a, Transmission &b)
Transmission & operator=(const Transmission &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
bool has_file_location() const
void set_file_location(ArgT0 &&arg0, ArgT... args)
bool IsInitialized() const final
static const ClassData _class_data_
*brief create JSON pointer *sa reference_tokens const string_t const string_t & b
*brief create JSON pointer *sa reference_tokens const string_t & a
*brief remove last reference token *sa JSON pointer has no nullptr
*brief write string representation of the JSON pointer to stream *sa const json_pointer & ptr
bool TransmissionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TransmissionType *value)
constexpr TransmissionType TransmissionType_MAX
static const int kTransmissionFieldNumber
@ POPOTO_TWO_WAY_RANGE_RESPONSE
@ POPOTO_TWO_WAY_RANGE_REQUEST
RangingReplyDefaultTypeInternal _RangingReply_default_instance_
ConfigDefaultTypeInternal _Config_default_instance_
bool TransmissionType_IsValid(int value)
constexpr int TransmissionType_ARRAYSIZE
const std::string & TransmissionType_Name(T enum_t_value)
constexpr TransmissionType TransmissionType_MIN
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::popoto::protobuf::Config >, 11, false > config
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * TransmissionType_descriptor()
static const int kConfigFieldNumber
TransmissionDefaultTypeInternal _Transmission_default_instance_
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::ModemTransmission, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::popoto::protobuf::Transmission >, 11, false > transmission
The global namespace for the Goby project.
const EnumDescriptor * GetEnumDescriptor< ::goby::acomms::popoto::protobuf::TransmissionType >()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fpopoto_5fdriver_2eproto
::goby::acomms::popoto::protobuf::RangingReply * Arena::CreateMaybeMessage<::goby::acomms::popoto::protobuf::RangingReply >(Arena *)
static const uint32_t offsets[]