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() {
359 return GetDescriptor();
362 return default_instance().GetMetadata().descriptor;
365 return default_instance().GetMetadata().reflection;
368 return *internal_default_instance();
372 &_RangingReply_default_instance_);
374 static constexpr int kIndexInFileMessages =
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;
414 bool IsInitialized() const final;
417 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
418 uint8_t* _InternalSerialize(
419 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
420 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
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;
441 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
448 kOneWayTravelTimeFieldNumber = 1,
449 kTwoWayTravelTimeFieldNumber = 2,
450 kModemRangeFieldNumber = 3,
451 kModemSoundSpeedFieldNumber = 4,
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 >
516 {
return one_way_travel_time_with_units<boost::units::quantity< one_way_travel_time_unit,double > >(); };
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 >
529 {
return two_way_travel_time_with_units<boost::units::quantity< two_way_travel_time_unit,double > >(); };
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() {
590 return GetDescriptor();
593 return default_instance().GetMetadata().descriptor;
596 return default_instance().GetMetadata().reflection;
599 return *internal_default_instance();
603 &_Transmission_default_instance_);
605 static constexpr int kIndexInFileMessages =
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;
645 bool IsInitialized() const final;
648 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
649 uint8_t* _InternalSerialize(
650 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
651 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
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;
672 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
679 kFileLocationFieldNumber = 4,
680 kRangingReplyFieldNumber = 3,
681 kTransmitPowerFieldNumber = 5,
682 kTypeFieldNumber = 1,
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>
693 std::string* mutable_file_location();
694 PROTOBUF_NODISCARD std::string* release_file_location();
695 void set_allocated_file_location(std::string* file_location);
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();
703 bool has_ranging_reply()
const;
705 bool _internal_has_ranging_reply()
const;
707 void clear_ranging_reply();
708 const ::goby::acomms::popoto::protobuf::RangingReply& ranging_reply()
const;
709 PROTOBUF_NODISCARD ::goby::acomms::popoto::protobuf::RangingReply* release_ranging_reply();
713 const ::goby::acomms::popoto::protobuf::RangingReply& _internal_ranging_reply()
const;
716 void unsafe_arena_set_allocated_ranging_reply(
721 bool has_transmit_power()
const;
723 bool _internal_has_transmit_power()
const;
725 void clear_transmit_power();
726 double transmit_power()
const;
727 void set_transmit_power(
double value);
729 double _internal_transmit_power()
const;
730 void _internal_set_transmit_power(
double value);
734 bool has_type()
const;
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;
788inline bool Config::has_start_timeout()
const {
789 return _internal_has_start_timeout();
791inline void Config::clear_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_;
798inline int32_t Config::start_timeout()
const {
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;
806inline void Config::set_start_timeout(int32_t value) {
807 _internal_set_start_timeout(value);
812inline bool Config::_internal_has_payload_mode()
const {
813 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
816inline bool Config::has_payload_mode()
const {
817 return _internal_has_payload_mode();
819inline void Config::clear_payload_mode() {
820 _impl_.payload_mode_ = 0;
821 _impl_._has_bits_[0] &= ~0x00000001u;
823inline int32_t Config::_internal_payload_mode()
const {
824 return _impl_.payload_mode_;
826inline int32_t Config::payload_mode()
const {
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;
834inline void Config::set_payload_mode(int32_t value) {
835 _internal_set_payload_mode(value);
840inline bool Config::_internal_has_modem_power()
const {
841 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
844inline bool Config::has_modem_power()
const {
845 return _internal_has_modem_power();
847inline void Config::clear_modem_power() {
848 _impl_.modem_power_ = 1;
849 _impl_._has_bits_[0] &= ~0x00000008u;
851inline double Config::_internal_modem_power()
const {
852 return _impl_.modem_power_;
854inline double Config::modem_power()
const {
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;
862inline void Config::set_modem_power(
double value) {
863 _internal_set_modem_power(value);
868inline bool Config::_internal_has_application_type()
const {
869 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
872inline bool Config::has_application_type()
const {
873 return _internal_has_application_type();
875inline void Config::clear_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_;
882inline int32_t Config::application_type()
const {
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;
890inline void Config::set_application_type(int32_t 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;
904inline bool RangingReply::has_one_way_travel_time()
const {
905 return _internal_has_one_way_travel_time();
907inline void RangingReply::clear_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_;
914inline double RangingReply::one_way_travel_time()
const {
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;
922inline void RangingReply::set_one_way_travel_time(
double 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;
932inline bool RangingReply::has_two_way_travel_time()
const {
933 return _internal_has_two_way_travel_time();
935inline void RangingReply::clear_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_;
942inline double RangingReply::two_way_travel_time()
const {
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;
950inline void RangingReply::set_two_way_travel_time(
double 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;
960inline bool RangingReply::has_modem_range()
const {
961 return _internal_has_modem_range();
963inline void RangingReply::clear_modem_range() {
964 _impl_.modem_range_ = 0;
965 _impl_._has_bits_[0] &= ~0x00000004u;
967inline double RangingReply::_internal_modem_range()
const {
968 return _impl_.modem_range_;
970inline double RangingReply::modem_range()
const {
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;
978inline void RangingReply::set_modem_range(
double 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;
988inline bool RangingReply::has_modem_sound_speed()
const {
989 return _internal_has_modem_sound_speed();
991inline void RangingReply::clear_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_;
998inline double RangingReply::modem_sound_speed()
const {
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;
1006inline void RangingReply::set_modem_sound_speed(
double value) {
1007 _internal_set_modem_sound_speed(value);
1016inline bool Transmission::_internal_has_type()
const {
1017 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1020inline bool Transmission::has_type()
const {
1021 return _internal_has_type();
1023inline void Transmission::clear_type() {
1025 _impl_._has_bits_[0] &= ~0x00000008u;
1027inline ::goby::acomms::popoto::protobuf::TransmissionType Transmission::_internal_type()
const {
1030inline ::goby::acomms::popoto::protobuf::TransmissionType Transmission::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);
1050inline bool Transmission::has_ranging_reply()
const {
1051 return _internal_has_ranging_reply();
1053inline void Transmission::clear_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_;
1062inline const ::goby::acomms::popoto::protobuf::RangingReply& Transmission::ranging_reply()
const {
1064 return _internal_ranging_reply();
1066inline void Transmission::unsafe_arena_set_allocated_ranging_reply(
1068 if (GetArenaForAllocation() ==
nullptr) {
1069 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(_impl_.ranging_reply_);
1071 _impl_.ranging_reply_ = ranging_reply;
1072 if (ranging_reply) {
1073 _impl_._has_bits_[0] |= 0x00000002u;
1075 _impl_._has_bits_[0] &= ~0x00000002u;
1079inline ::goby::acomms::popoto::protobuf::RangingReply* Transmission::release_ranging_reply() {
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);
1094inline ::goby::acomms::popoto::protobuf::RangingReply* Transmission::unsafe_arena_release_ranging_reply() {
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_;
1109inline ::goby::acomms::popoto::protobuf::RangingReply* Transmission::mutable_ranging_reply() {
1115 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1116 if (message_arena ==
nullptr) {
1117 delete _impl_.ranging_reply_;
1119 if (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(
1124 message_arena, ranging_reply, submessage_arena);
1126 _impl_._has_bits_[0] |= 0x00000002u;
1128 _impl_._has_bits_[0] &= ~0x00000002u;
1130 _impl_.ranging_reply_ = ranging_reply;
1135inline bool Transmission::_internal_has_file_location()
const {
1136 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1139inline bool Transmission::has_file_location()
const {
1140 return _internal_has_file_location();
1142inline void Transmission::clear_file_location() {
1143 _impl_.file_location_.ClearToEmpty();
1144 _impl_._has_bits_[0] &= ~0x00000001u;
1146inline const std::string& Transmission::file_location()
const {
1148 return _internal_file_location();
1150template <
typename ArgT0,
typename... ArgT>
1151inline PROTOBUF_ALWAYS_INLINE
1152void Transmission::set_file_location(ArgT0&& arg0, ArgT... args) {
1153 _impl_._has_bits_[0] |= 0x00000001u;
1154 _impl_.file_location_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1157inline std::string* Transmission::mutable_file_location() {
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());
1173inline std::string* Transmission::release_file_location() {
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());
1187inline void Transmission::set_allocated_file_location(std::string* file_location) {
1188 if (file_location !=
nullptr) {
1189 _impl_._has_bits_[0] |= 0x00000001u;
1191 _impl_._has_bits_[0] &= ~0x00000001u;
1193 _impl_.file_location_.SetAllocated(file_location, GetArenaForAllocation());
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;
1207inline bool Transmission::has_transmit_power()
const {
1208 return _internal_has_transmit_power();
1210inline void Transmission::clear_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_;
1217inline double Transmission::transmit_power()
const {
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;
1225inline void Transmission::set_transmit_power(
double 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
@ kPayloadModeFieldNumber
@ kStartTimeoutFieldNumber
@ kApplicationTypeFieldNumber
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
bool has_start_timeout() const
bool IsInitialized() const final
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)
void set_two_way_travel_time_with_units(Quantity value_w_units)
RangingReply(RangingReply &&from) noexcept
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void UnsafeArenaSwap(RangingReply *other)
RangingReply(const RangingReply &from)
Quantity two_way_travel_time_with_units() const
boost::units::quantity< one_way_travel_time_unit, double > one_way_travel_time_with_units() const
PROTOBUF_CONSTEXPR RangingReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Quantity one_way_travel_time_with_units() const
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void MergeFrom(const RangingReply &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
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
static const RangingReply * internal_default_instance()
void CopyFrom(const RangingReply &from)
boost::units::quantity< two_way_travel_time_unit, double > two_way_travel_time_with_units() const
void Swap(RangingReply *other)
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
static const ClassData _class_data_
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Transmission * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void Swap(Transmission *other)
Transmission & operator=(Transmission &&from) noexcept
Transmission(const Transmission &from)
Transmission(Transmission &&from) noexcept
Transmission(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void MergeFrom(const Transmission &from)
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()
PROTOBUF_CONSTEXPR Transmission(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void UnsafeArenaSwap(Transmission *other)
void CopyFrom(const Transmission &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
friend void swap(Transmission &a, Transmission &b)
Transmission & operator=(const Transmission &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void set_file_location(ArgT0 &&arg0, ArgT... args)
static const ClassData _class_data_
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
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * TransmissionType_descriptor()
static const int kConfigFieldNumber
TransmissionDefaultTypeInternal _Transmission_default_instance_
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[]