4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fjanus_5fdriver_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fjanus_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/unknown_field_set.h>
34#include "dccl/option_extensions.pb.h"
36#include <boost/units/quantity.hpp>
37#include <boost/units/absolute.hpp>
38#include <boost/units/dimensionless_type.hpp>
39#include <boost/units/make_scaled_unit.hpp>
41#include <google/protobuf/port_def.inc>
42#define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2fjanus_5fdriver_2eproto
43PROTOBUF_NAMESPACE_OPEN
47PROTOBUF_NAMESPACE_CLOSE
59struct ConfigDefaultTypeInternal;
65PROTOBUF_NAMESPACE_OPEN
67PROTOBUF_NAMESPACE_CLOSE
76 public ::PROTOBUF_NAMESPACE_ID::Message {
80 explicit PROTOBUF_CONSTEXPR
Config(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
85 *
this = ::std::move(from);
93 if (
this == &from)
return *
this;
94 if (GetOwningArena() == from.GetOwningArena()
95 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
96 && GetOwningArena() !=
nullptr
107 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
110 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
113 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
126 return reinterpret_cast<const Config*
>(
136 if (other ==
this)
return;
137 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
138 if (GetOwningArena() !=
nullptr &&
139 GetOwningArena() == other->GetOwningArena()) {
141 if (GetOwningArena() == other->GetOwningArena()) {
145 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
149 if (other ==
this)
return;
150 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
156 Config*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
157 return CreateMaybeMessage<Config>(arena);
159 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
161 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
163 Config::MergeImpl(*
this, from);
166 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
168 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
174 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
178 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
180 void SetCachedSize(
int size)
const final;
181 void InternalSwap(
Config* other);
184 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186 return "goby.acomms.janus.protobuf.Config";
189 explicit Config(::PROTOBUF_NAMESPACE_ID::Arena* arena,
190 bool is_message_owned =
false);
194 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
234 bool _internal_has_pset_file()
const;
238 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
244 const std::string& _internal_pset_file()
const;
245 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_pset_file(
const std::string& value);
246 std::string* _internal_mutable_pset_file();
252 bool _internal_has_stream_driver()
const;
256 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
262 const std::string& _internal_stream_driver()
const;
263 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_stream_driver(
const std::string& value);
264 std::string* _internal_mutable_stream_driver();
270 bool _internal_has_stream_driver_args()
const;
274 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
280 const std::string& _internal_stream_driver_args()
const;
281 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_stream_driver_args(
const std::string& value);
282 std::string* _internal_mutable_stream_driver_args();
288 bool _internal_has_stream_format()
const;
292 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
298 const std::string& _internal_stream_format()
const;
299 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_stream_format(
const std::string& value);
300 std::string* _internal_mutable_stream_format();
306 bool _internal_has_verbosity()
const;
312 int32_t _internal_verbosity()
const;
313 void _internal_set_verbosity(int32_t value);
319 bool _internal_has_application_type()
const;
325 int32_t _internal_application_type()
const;
326 void _internal_set_application_type(int32_t value);
332 bool _internal_has_pset_center_freq()
const;
338 uint32_t _internal_pset_center_freq()
const;
339 void _internal_set_pset_center_freq(uint32_t value);
345 bool _internal_has_pset_bandwidth()
const;
351 uint32_t _internal_pset_bandwidth()
const;
352 void _internal_set_pset_bandwidth(uint32_t value);
358 bool _internal_has_chip_len_exp()
const;
364 uint32_t _internal_chip_len_exp()
const;
365 void _internal_set_chip_len_exp(uint32_t value);
371 bool _internal_has_stream_channel()
const;
377 uint32_t _internal_stream_channel()
const;
378 void _internal_set_stream_channel(uint32_t value);
384 bool _internal_has_wut()
const;
390 bool _internal_wut()
const;
391 void _internal_set_wut(
bool value);
397 bool _internal_has_compute_channel_spectrogram()
const;
403 bool _internal_compute_channel_spectrogram()
const;
404 void _internal_set_compute_channel_spectrogram(
bool value);
410 bool _internal_has_colored_bit_prob()
const;
416 bool _internal_colored_bit_prob()
const;
417 void _internal_set_colored_bit_prob(
bool value);
423 bool _internal_has_stream_passband()
const;
429 bool _internal_stream_passband()
const;
430 void _internal_set_stream_passband(
bool value);
436 bool _internal_has_pad()
const;
442 bool _internal_pad()
const;
443 void _internal_set_pad(
bool value);
449 bool _internal_has_doppler_correction()
const;
455 bool _internal_doppler_correction()
const;
456 void _internal_set_doppler_correction(
bool value);
462 bool _internal_has_class_id()
const;
468 int32_t _internal_class_id()
const;
469 void _internal_set_class_id(int32_t value);
475 bool _internal_has_pset_id()
const;
481 uint32_t _internal_pset_id()
const;
482 void _internal_set_pset_id(uint32_t value);
488 bool _internal_has_sequence_32_chips()
const;
494 uint32_t _internal_sequence_32_chips()
const;
495 void _internal_set_sequence_32_chips(uint32_t value);
501 bool _internal_has_stream_fs()
const;
507 uint32_t _internal_stream_fs()
const;
508 void _internal_set_stream_fs(uint32_t value);
514 bool _internal_has_stream_channel_count()
const;
520 uint32_t _internal_stream_channel_count()
const;
521 void _internal_set_stream_channel_count(uint32_t value);
527 bool _internal_has_stream_mul()
const;
533 uint32_t _internal_stream_mul()
const;
534 void _internal_set_stream_mul(uint32_t value);
540 bool _internal_has_stream_amp()
const;
546 double _internal_stream_amp()
const;
547 void _internal_set_stream_amp(
double value);
553 bool _internal_has_doppler_max_speed()
const;
559 double _internal_doppler_max_speed()
const;
560 void _internal_set_doppler_max_speed(
double value);
566 bool _internal_has_detection_threshold()
const;
572 double _internal_detection_threshold()
const;
573 void _internal_set_detection_threshold(
double value);
579 bool _internal_has_cbp_high2medium()
const;
585 double _internal_cbp_high2medium()
const;
586 void _internal_set_cbp_high2medium(
double value);
592 bool _internal_has_cbp_medium2low()
const;
598 double _internal_cbp_medium2low()
const;
599 void _internal_set_cbp_medium2low(
double value);
606 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
607 typedef void InternalArenaConstructable_;
608 typedef void DestructorSkippable_;
610 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
611 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
612 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_pset_file_;
613 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pset_file_;
614 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_stream_driver_;
615 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_driver_;
616 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_driver_args_;
617 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_stream_format_;
618 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_format_;
620 int32_t application_type_;
621 uint32_t pset_center_freq_;
622 uint32_t pset_bandwidth_;
623 uint32_t chip_len_exp_;
624 uint32_t stream_channel_;
626 bool compute_channel_spectrogram_;
627 bool colored_bit_prob_;
628 bool stream_passband_;
630 bool doppler_correction_;
633 uint32_t sequence_32_chips_;
635 uint32_t stream_channel_count_;
636 uint32_t stream_mul_;
638 double doppler_max_speed_;
639 double detection_threshold_;
640 double cbp_high2medium_;
641 double cbp_medium2low_;
644 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fjanus_5fdriver_2eproto;
650 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::janus::protobuf::Config >, 11,
false >
654 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::janus::protobuf::Config >, 11,
false >
660 #pragma GCC diagnostic push
661 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
666inline bool Config::_internal_has_verbosity()
const {
667 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
671 return _internal_has_verbosity();
675 _impl_._has_bits_[0] &= ~0x00000010u;
677inline int32_t Config::_internal_verbosity()
const {
682 return _internal_verbosity();
684inline void Config::_internal_set_verbosity(int32_t value) {
685 _impl_._has_bits_[0] |= 0x00000010u;
686 _impl_.verbosity_ = value;
689 _internal_set_verbosity(value);
694inline bool Config::_internal_has_class_id()
const {
695 bool value = (
_impl_._has_bits_[0] & 0x00010000u) != 0;
699 return _internal_has_class_id();
703 _impl_._has_bits_[0] &= ~0x00010000u;
705inline int32_t Config::_internal_class_id()
const {
710 return _internal_class_id();
712inline void Config::_internal_set_class_id(int32_t value) {
713 _impl_._has_bits_[0] |= 0x00010000u;
717 _internal_set_class_id(value);
722inline bool Config::_internal_has_application_type()
const {
723 bool value = (
_impl_._has_bits_[0] & 0x00000020u) != 0;
727 return _internal_has_application_type();
730 _impl_.application_type_ = 0;
731 _impl_._has_bits_[0] &= ~0x00000020u;
733inline int32_t Config::_internal_application_type()
const {
734 return _impl_.application_type_;
738 return _internal_application_type();
740inline void Config::_internal_set_application_type(int32_t value) {
741 _impl_._has_bits_[0] |= 0x00000020u;
742 _impl_.application_type_ = value;
745 _internal_set_application_type(value);
750inline bool Config::_internal_has_pset_id()
const {
751 bool value = (
_impl_._has_bits_[0] & 0x00020000u) != 0;
755 return _internal_has_pset_id();
759 _impl_._has_bits_[0] &= ~0x00020000u;
761inline uint32_t Config::_internal_pset_id()
const {
766 return _internal_pset_id();
768inline void Config::_internal_set_pset_id(uint32_t value) {
769 _impl_._has_bits_[0] |= 0x00020000u;
773 _internal_set_pset_id(value);
778inline bool Config::_internal_has_pset_file()
const {
779 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
783 return _internal_has_pset_file();
786 _impl_.pset_file_.ClearToDefault(::goby::acomms::janus::protobuf::Config::Impl_::_i_give_permission_to_break_this_code_default_pset_file_, GetArenaForAllocation());
787 _impl_._has_bits_[0] &= ~0x00000001u;
791 if (
_impl_.pset_file_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_pset_file_.get();
792 return _internal_pset_file();
794template <
typename ArgT0,
typename... ArgT>
795inline PROTOBUF_ALWAYS_INLINE
797 _impl_._has_bits_[0] |= 0x00000001u;
798 _impl_.pset_file_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
802 std::string* _s = _internal_mutable_pset_file();
806inline const std::string& Config::_internal_pset_file()
const {
807 return _impl_.pset_file_.Get();
809inline void Config::_internal_set_pset_file(
const std::string& value) {
810 _impl_._has_bits_[0] |= 0x00000001u;
811 _impl_.pset_file_.Set(value, GetArenaForAllocation());
813inline std::string* Config::_internal_mutable_pset_file() {
814 _impl_._has_bits_[0] |= 0x00000001u;
815 return _impl_.pset_file_.Mutable(::goby::acomms::janus::protobuf::Config::Impl_::_i_give_permission_to_break_this_code_default_pset_file_, GetArenaForAllocation());
819 if (!_internal_has_pset_file()) {
822 _impl_._has_bits_[0] &= ~0x00000001u;
823 auto* p =
_impl_.pset_file_.Release();
828 _impl_._has_bits_[0] |= 0x00000001u;
830 _impl_._has_bits_[0] &= ~0x00000001u;
837inline bool Config::_internal_has_pset_center_freq()
const {
838 bool value = (
_impl_._has_bits_[0] & 0x00000040u) != 0;
842 return _internal_has_pset_center_freq();
845 _impl_.pset_center_freq_ = 0u;
846 _impl_._has_bits_[0] &= ~0x00000040u;
848inline uint32_t Config::_internal_pset_center_freq()
const {
849 return _impl_.pset_center_freq_;
853 return _internal_pset_center_freq();
855inline void Config::_internal_set_pset_center_freq(uint32_t value) {
856 _impl_._has_bits_[0] |= 0x00000040u;
857 _impl_.pset_center_freq_ = value;
860 _internal_set_pset_center_freq(value);
865inline bool Config::_internal_has_pset_bandwidth()
const {
866 bool value = (
_impl_._has_bits_[0] & 0x00000080u) != 0;
870 return _internal_has_pset_bandwidth();
873 _impl_.pset_bandwidth_ = 0u;
874 _impl_._has_bits_[0] &= ~0x00000080u;
876inline uint32_t Config::_internal_pset_bandwidth()
const {
877 return _impl_.pset_bandwidth_;
881 return _internal_pset_bandwidth();
883inline void Config::_internal_set_pset_bandwidth(uint32_t value) {
884 _impl_._has_bits_[0] |= 0x00000080u;
885 _impl_.pset_bandwidth_ = value;
888 _internal_set_pset_bandwidth(value);
893inline bool Config::_internal_has_chip_len_exp()
const {
894 bool value = (
_impl_._has_bits_[0] & 0x00000100u) != 0;
898 return _internal_has_chip_len_exp();
901 _impl_.chip_len_exp_ = 0u;
902 _impl_._has_bits_[0] &= ~0x00000100u;
904inline uint32_t Config::_internal_chip_len_exp()
const {
905 return _impl_.chip_len_exp_;
909 return _internal_chip_len_exp();
911inline void Config::_internal_set_chip_len_exp(uint32_t value) {
912 _impl_._has_bits_[0] |= 0x00000100u;
913 _impl_.chip_len_exp_ = value;
916 _internal_set_chip_len_exp(value);
921inline bool Config::_internal_has_sequence_32_chips()
const {
922 bool value = (
_impl_._has_bits_[0] & 0x00040000u) != 0;
926 return _internal_has_sequence_32_chips();
929 _impl_.sequence_32_chips_ = 2933675936u;
930 _impl_._has_bits_[0] &= ~0x00040000u;
932inline uint32_t Config::_internal_sequence_32_chips()
const {
933 return _impl_.sequence_32_chips_;
937 return _internal_sequence_32_chips();
939inline void Config::_internal_set_sequence_32_chips(uint32_t value) {
940 _impl_._has_bits_[0] |= 0x00040000u;
941 _impl_.sequence_32_chips_ = value;
944 _internal_set_sequence_32_chips(value);
949inline bool Config::_internal_has_stream_driver()
const {
950 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
954 return _internal_has_stream_driver();
957 _impl_.stream_driver_.ClearToDefault(::goby::acomms::janus::protobuf::Config::Impl_::_i_give_permission_to_break_this_code_default_stream_driver_, GetArenaForAllocation());
958 _impl_._has_bits_[0] &= ~0x00000002u;
962 if (
_impl_.stream_driver_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_stream_driver_.get();
963 return _internal_stream_driver();
965template <
typename ArgT0,
typename... ArgT>
966inline PROTOBUF_ALWAYS_INLINE
968 _impl_._has_bits_[0] |= 0x00000002u;
969 _impl_.stream_driver_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
973 std::string* _s = _internal_mutable_stream_driver();
977inline const std::string& Config::_internal_stream_driver()
const {
978 return _impl_.stream_driver_.Get();
980inline void Config::_internal_set_stream_driver(
const std::string& value) {
981 _impl_._has_bits_[0] |= 0x00000002u;
982 _impl_.stream_driver_.Set(value, GetArenaForAllocation());
984inline std::string* Config::_internal_mutable_stream_driver() {
985 _impl_._has_bits_[0] |= 0x00000002u;
986 return _impl_.stream_driver_.Mutable(::goby::acomms::janus::protobuf::Config::Impl_::_i_give_permission_to_break_this_code_default_stream_driver_, GetArenaForAllocation());
990 if (!_internal_has_stream_driver()) {
993 _impl_._has_bits_[0] &= ~0x00000002u;
994 auto* p =
_impl_.stream_driver_.Release();
999 _impl_._has_bits_[0] |= 0x00000002u;
1001 _impl_._has_bits_[0] &= ~0x00000002u;
1008inline bool Config::_internal_has_stream_driver_args()
const {
1009 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
1013 return _internal_has_stream_driver_args();
1016 _impl_.stream_driver_args_.ClearToEmpty();
1017 _impl_._has_bits_[0] &= ~0x00000004u;
1021 return _internal_stream_driver_args();
1023template <
typename ArgT0,
typename... ArgT>
1024inline PROTOBUF_ALWAYS_INLINE
1026 _impl_._has_bits_[0] |= 0x00000004u;
1027 _impl_.stream_driver_args_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1031 std::string* _s = _internal_mutable_stream_driver_args();
1035inline const std::string& Config::_internal_stream_driver_args()
const {
1036 return _impl_.stream_driver_args_.Get();
1038inline void Config::_internal_set_stream_driver_args(
const std::string& value) {
1039 _impl_._has_bits_[0] |= 0x00000004u;
1040 _impl_.stream_driver_args_.Set(value, GetArenaForAllocation());
1042inline std::string* Config::_internal_mutable_stream_driver_args() {
1043 _impl_._has_bits_[0] |= 0x00000004u;
1044 return _impl_.stream_driver_args_.Mutable(GetArenaForAllocation());
1048 if (!_internal_has_stream_driver_args()) {
1051 _impl_._has_bits_[0] &= ~0x00000004u;
1052 auto* p =
_impl_.stream_driver_args_.Release();
1053#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1054 if (
_impl_.stream_driver_args_.IsDefault()) {
1055 _impl_.stream_driver_args_.Set(
"", GetArenaForAllocation());
1062 _impl_._has_bits_[0] |= 0x00000004u;
1064 _impl_._has_bits_[0] &= ~0x00000004u;
1067#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1068 if (
_impl_.stream_driver_args_.IsDefault()) {
1069 _impl_.stream_driver_args_.Set(
"", GetArenaForAllocation());
1076inline bool Config::_internal_has_stream_fs()
const {
1077 bool value = (
_impl_._has_bits_[0] & 0x00080000u) != 0;
1081 return _internal_has_stream_fs();
1084 _impl_.stream_fs_ = 48000u;
1085 _impl_._has_bits_[0] &= ~0x00080000u;
1087inline uint32_t Config::_internal_stream_fs()
const {
1088 return _impl_.stream_fs_;
1092 return _internal_stream_fs();
1094inline void Config::_internal_set_stream_fs(uint32_t value) {
1095 _impl_._has_bits_[0] |= 0x00080000u;
1096 _impl_.stream_fs_ = value;
1099 _internal_set_stream_fs(value);
1104inline bool Config::_internal_has_stream_format()
const {
1105 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
1109 return _internal_has_stream_format();
1112 _impl_.stream_format_.ClearToDefault(::goby::acomms::janus::protobuf::Config::Impl_::_i_give_permission_to_break_this_code_default_stream_format_, GetArenaForAllocation());
1113 _impl_._has_bits_[0] &= ~0x00000008u;
1117 if (
_impl_.stream_format_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_stream_format_.get();
1118 return _internal_stream_format();
1120template <
typename ArgT0,
typename... ArgT>
1121inline PROTOBUF_ALWAYS_INLINE
1123 _impl_._has_bits_[0] |= 0x00000008u;
1124 _impl_.stream_format_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1128 std::string* _s = _internal_mutable_stream_format();
1132inline const std::string& Config::_internal_stream_format()
const {
1133 return _impl_.stream_format_.Get();
1135inline void Config::_internal_set_stream_format(
const std::string& value) {
1136 _impl_._has_bits_[0] |= 0x00000008u;
1137 _impl_.stream_format_.Set(value, GetArenaForAllocation());
1139inline std::string* Config::_internal_mutable_stream_format() {
1140 _impl_._has_bits_[0] |= 0x00000008u;
1141 return _impl_.stream_format_.Mutable(::goby::acomms::janus::protobuf::Config::Impl_::_i_give_permission_to_break_this_code_default_stream_format_, GetArenaForAllocation());
1145 if (!_internal_has_stream_format()) {
1148 _impl_._has_bits_[0] &= ~0x00000008u;
1149 auto* p =
_impl_.stream_format_.Release();
1154 _impl_._has_bits_[0] |= 0x00000008u;
1156 _impl_._has_bits_[0] &= ~0x00000008u;
1163inline bool Config::_internal_has_stream_channel_count()
const {
1164 bool value = (
_impl_._has_bits_[0] & 0x00100000u) != 0;
1168 return _internal_has_stream_channel_count();
1171 _impl_.stream_channel_count_ = 1u;
1172 _impl_._has_bits_[0] &= ~0x00100000u;
1174inline uint32_t Config::_internal_stream_channel_count()
const {
1175 return _impl_.stream_channel_count_;
1179 return _internal_stream_channel_count();
1181inline void Config::_internal_set_stream_channel_count(uint32_t value) {
1182 _impl_._has_bits_[0] |= 0x00100000u;
1183 _impl_.stream_channel_count_ = value;
1186 _internal_set_stream_channel_count(value);
1191inline bool Config::_internal_has_stream_channel()
const {
1192 bool value = (
_impl_._has_bits_[0] & 0x00000200u) != 0;
1196 return _internal_has_stream_channel();
1199 _impl_.stream_channel_ = 0u;
1200 _impl_._has_bits_[0] &= ~0x00000200u;
1202inline uint32_t Config::_internal_stream_channel()
const {
1203 return _impl_.stream_channel_;
1207 return _internal_stream_channel();
1209inline void Config::_internal_set_stream_channel(uint32_t value) {
1210 _impl_._has_bits_[0] |= 0x00000200u;
1211 _impl_.stream_channel_ = value;
1214 _internal_set_stream_channel(value);
1219inline bool Config::_internal_has_stream_passband()
const {
1220 bool value = (
_impl_._has_bits_[0] & 0x00002000u) != 0;
1224 return _internal_has_stream_passband();
1227 _impl_.stream_passband_ =
true;
1228 _impl_._has_bits_[0] &= ~0x00002000u;
1230inline bool Config::_internal_stream_passband()
const {
1231 return _impl_.stream_passband_;
1235 return _internal_stream_passband();
1237inline void Config::_internal_set_stream_passband(
bool value) {
1238 _impl_._has_bits_[0] |= 0x00002000u;
1239 _impl_.stream_passband_ = value;
1242 _internal_set_stream_passband(value);
1247inline bool Config::_internal_has_stream_amp()
const {
1248 bool value = (
_impl_._has_bits_[0] & 0x00400000u) != 0;
1252 return _internal_has_stream_amp();
1255 _impl_.stream_amp_ = 0.95;
1256 _impl_._has_bits_[0] &= ~0x00400000u;
1258inline double Config::_internal_stream_amp()
const {
1259 return _impl_.stream_amp_;
1263 return _internal_stream_amp();
1265inline void Config::_internal_set_stream_amp(
double value) {
1266 _impl_._has_bits_[0] |= 0x00400000u;
1267 _impl_.stream_amp_ = value;
1270 _internal_set_stream_amp(value);
1275inline bool Config::_internal_has_stream_mul()
const {
1276 bool value = (
_impl_._has_bits_[0] & 0x00200000u) != 0;
1280 return _internal_has_stream_mul();
1284 _impl_._has_bits_[0] &= ~0x00200000u;
1286inline uint32_t Config::_internal_stream_mul()
const {
1287 return _impl_.stream_mul_;
1291 return _internal_stream_mul();
1293inline void Config::_internal_set_stream_mul(uint32_t value) {
1294 _impl_._has_bits_[0] |= 0x00200000u;
1295 _impl_.stream_mul_ = value;
1298 _internal_set_stream_mul(value);
1303inline bool Config::_internal_has_pad()
const {
1304 bool value = (
_impl_._has_bits_[0] & 0x00004000u) != 0;
1308 return _internal_has_pad();
1312 _impl_._has_bits_[0] &= ~0x00004000u;
1314inline bool Config::_internal_pad()
const {
1319 return _internal_pad();
1321inline void Config::_internal_set_pad(
bool value) {
1322 _impl_._has_bits_[0] |= 0x00004000u;
1326 _internal_set_pad(value);
1331inline bool Config::_internal_has_wut()
const {
1332 bool value = (
_impl_._has_bits_[0] & 0x00000400u) != 0;
1336 return _internal_has_wut();
1340 _impl_._has_bits_[0] &= ~0x00000400u;
1342inline bool Config::_internal_wut()
const {
1347 return _internal_wut();
1349inline void Config::_internal_set_wut(
bool value) {
1350 _impl_._has_bits_[0] |= 0x00000400u;
1354 _internal_set_wut(value);
1359inline bool Config::_internal_has_doppler_correction()
const {
1360 bool value = (
_impl_._has_bits_[0] & 0x00008000u) != 0;
1364 return _internal_has_doppler_correction();
1367 _impl_.doppler_correction_ =
true;
1368 _impl_._has_bits_[0] &= ~0x00008000u;
1370inline bool Config::_internal_doppler_correction()
const {
1371 return _impl_.doppler_correction_;
1375 return _internal_doppler_correction();
1377inline void Config::_internal_set_doppler_correction(
bool value) {
1378 _impl_._has_bits_[0] |= 0x00008000u;
1379 _impl_.doppler_correction_ = value;
1382 _internal_set_doppler_correction(value);
1387inline bool Config::_internal_has_doppler_max_speed()
const {
1388 bool value = (
_impl_._has_bits_[0] & 0x00800000u) != 0;
1392 return _internal_has_doppler_max_speed();
1395 _impl_.doppler_max_speed_ = 5;
1396 _impl_._has_bits_[0] &= ~0x00800000u;
1398inline double Config::_internal_doppler_max_speed()
const {
1399 return _impl_.doppler_max_speed_;
1403 return _internal_doppler_max_speed();
1405inline void Config::_internal_set_doppler_max_speed(
double value) {
1406 _impl_._has_bits_[0] |= 0x00800000u;
1407 _impl_.doppler_max_speed_ = value;
1410 _internal_set_doppler_max_speed(value);
1415inline bool Config::_internal_has_compute_channel_spectrogram()
const {
1416 bool value = (
_impl_._has_bits_[0] & 0x00000800u) != 0;
1420 return _internal_has_compute_channel_spectrogram();
1423 _impl_.compute_channel_spectrogram_ =
false;
1424 _impl_._has_bits_[0] &= ~0x00000800u;
1426inline bool Config::_internal_compute_channel_spectrogram()
const {
1427 return _impl_.compute_channel_spectrogram_;
1431 return _internal_compute_channel_spectrogram();
1433inline void Config::_internal_set_compute_channel_spectrogram(
bool value) {
1434 _impl_._has_bits_[0] |= 0x00000800u;
1435 _impl_.compute_channel_spectrogram_ = value;
1438 _internal_set_compute_channel_spectrogram(value);
1443inline bool Config::_internal_has_detection_threshold()
const {
1444 bool value = (
_impl_._has_bits_[0] & 0x01000000u) != 0;
1448 return _internal_has_detection_threshold();
1451 _impl_.detection_threshold_ = 2.5;
1452 _impl_._has_bits_[0] &= ~0x01000000u;
1454inline double Config::_internal_detection_threshold()
const {
1455 return _impl_.detection_threshold_;
1459 return _internal_detection_threshold();
1461inline void Config::_internal_set_detection_threshold(
double value) {
1462 _impl_._has_bits_[0] |= 0x01000000u;
1463 _impl_.detection_threshold_ = value;
1466 _internal_set_detection_threshold(value);
1471inline bool Config::_internal_has_colored_bit_prob()
const {
1472 bool value = (
_impl_._has_bits_[0] & 0x00001000u) != 0;
1476 return _internal_has_colored_bit_prob();
1479 _impl_.colored_bit_prob_ =
false;
1480 _impl_._has_bits_[0] &= ~0x00001000u;
1482inline bool Config::_internal_colored_bit_prob()
const {
1483 return _impl_.colored_bit_prob_;
1487 return _internal_colored_bit_prob();
1489inline void Config::_internal_set_colored_bit_prob(
bool value) {
1490 _impl_._has_bits_[0] |= 0x00001000u;
1491 _impl_.colored_bit_prob_ = value;
1494 _internal_set_colored_bit_prob(value);
1499inline bool Config::_internal_has_cbp_high2medium()
const {
1500 bool value = (
_impl_._has_bits_[0] & 0x02000000u) != 0;
1504 return _internal_has_cbp_high2medium();
1507 _impl_.cbp_high2medium_ = 0.2;
1508 _impl_._has_bits_[0] &= ~0x02000000u;
1510inline double Config::_internal_cbp_high2medium()
const {
1511 return _impl_.cbp_high2medium_;
1515 return _internal_cbp_high2medium();
1517inline void Config::_internal_set_cbp_high2medium(
double value) {
1518 _impl_._has_bits_[0] |= 0x02000000u;
1519 _impl_.cbp_high2medium_ = value;
1522 _internal_set_cbp_high2medium(value);
1527inline bool Config::_internal_has_cbp_medium2low()
const {
1528 bool value = (
_impl_._has_bits_[0] & 0x04000000u) != 0;
1532 return _internal_has_cbp_medium2low();
1535 _impl_.cbp_medium2low_ = 0.35;
1536 _impl_._has_bits_[0] &= ~0x04000000u;
1538inline double Config::_internal_cbp_medium2low()
const {
1539 return _impl_.cbp_medium2low_;
1543 return _internal_cbp_medium2low();
1545inline void Config::_internal_set_cbp_medium2low(
double value) {
1546 _impl_._has_bits_[0] |= 0x04000000u;
1547 _impl_.cbp_medium2low_ = value;
1550 _internal_set_cbp_medium2low(value);
1555 #pragma GCC diagnostic pop
1567#include <google/protobuf/port_undef.inc>
bool has_doppler_max_speed() const
bool has_compute_channel_spectrogram() const
void set_stream_mul(uint32_t value)
uint32_t stream_channel_count() const
const std::string & stream_driver_args() const
double stream_amp() const
PROTOBUF_NODISCARD std::string * release_pset_file()
uint32_t pset_bandwidth() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_allocated_stream_format(std::string *stream_format)
static const Config & default_instance()
bool has_class_id() const
void set_stream_fs(uint32_t value)
void CopyFrom(const Config &from)
void set_pset_bandwidth(uint32_t value)
bool has_cbp_high2medium() const
static constexpr int kIndexInFileMessages
void clear_stream_passband()
@ kDopplerCorrectionFieldNumber
@ kApplicationTypeFieldNumber
@ kColoredBitProbFieldNumber
@ kStreamDriverArgsFieldNumber
@ kStreamPassbandFieldNumber
@ kCbpMedium2LowFieldNumber
@ kStreamFormatFieldNumber
@ kDopplerMaxSpeedFieldNumber
@ kPsetCenterFreqFieldNumber
@ kDetectionThresholdFieldNumber
@ kStreamChannelCountFieldNumber
@ kStreamChannelFieldNumber
@ kSequence32ChipsFieldNumber
@ kPsetBandwidthFieldNumber
@ kComputeChannelSpectrogramFieldNumber
@ kCbpHigh2MediumFieldNumber
@ kStreamDriverFieldNumber
PROTOBUF_NODISCARD std::string * release_stream_driver_args()
void set_doppler_correction(bool value)
bool compute_channel_spectrogram() const
bool has_pset_bandwidth() const
PROTOBUF_NODISCARD std::string * release_stream_format()
bool has_colored_bit_prob() const
const std::string & pset_file() const
int32_t verbosity() const
void clear_stream_format()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
bool has_application_type() const
size_t ByteSizeLong() const final
friend void swap(Config &a, Config &b)
double detection_threshold() const
void clear_detection_threshold()
void clear_stream_driver()
bool has_stream_fs() const
PROTOBUF_NODISCARD std::string * release_stream_driver()
void clear_colored_bit_prob()
void set_application_type(int32_t value)
void clear_cbp_medium2low()
bool has_stream_amp() const
bool has_sequence_32_chips() const
bool doppler_correction() const
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
bool has_doppler_correction() const
void clear_stream_driver_args()
bool has_stream_channel() const
Config(Config &&from) noexcept
const std::string & stream_driver() const
void UnsafeArenaSwap(Config *other)
const std::string & stream_format() const
void clear_sequence_32_chips()
void MergeFrom(const Config &from)
void set_stream_amp(double value)
bool has_stream_driver() const
void set_doppler_max_speed(double value)
bool has_pset_center_freq() const
static const ClassData _class_data_
uint32_t stream_fs() const
void set_cbp_medium2low(double value)
void set_compute_channel_spectrogram(bool value)
void set_pset_center_freq(uint32_t value)
bool has_cbp_medium2low() const
void set_stream_driver_args(ArgT0 &&arg0, ArgT... args)
void set_stream_channel(uint32_t value)
void set_pset_file(ArgT0 &&arg0, ArgT... args)
bool has_stream_passband() const
void set_allocated_pset_file(std::string *pset_file)
uint32_t stream_mul() const
void set_verbosity(int32_t value)
double doppler_max_speed() const
bool has_pset_file() const
void set_cbp_high2medium(double value)
void clear_application_type()
Config(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_colored_bit_prob(bool value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void set_allocated_stream_driver(std::string *stream_driver)
bool colored_bit_prob() const
void clear_cbp_high2medium()
uint32_t chip_len_exp() const
bool stream_passband() const
bool has_verbosity() const
void clear_doppler_correction()
uint32_t sequence_32_chips() const
std::string * mutable_stream_driver()
void clear_pset_center_freq()
Config & operator=(Config &&from) noexcept
void set_allocated_stream_driver_args(std::string *stream_driver_args)
double cbp_medium2low() const
void clear_doppler_max_speed()
void set_stream_format(ArgT0 &&arg0, ArgT... args)
void clear_stream_channel()
void set_sequence_32_chips(uint32_t value)
Config & operator=(const Config &from)
void set_class_id(int32_t value)
static const Config * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
bool has_stream_format() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void set_chip_len_exp(uint32_t value)
bool has_stream_mul() const
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
PROTOBUF_CONSTEXPR Config(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
std::string * mutable_pset_file()
int32_t application_type() const
bool has_chip_len_exp() const
uint32_t stream_channel() const
void set_stream_driver(ArgT0 &&arg0, ArgT... args)
void clear_stream_channel_count()
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
bool has_stream_driver_args() const
Config(const Config &from)
bool IsInitialized() const final
void clear_compute_channel_spectrogram()
void set_pset_id(uint32_t value)
bool has_stream_channel_count() const
double cbp_high2medium() const
void set_stream_passband(bool value)
void clear_pset_bandwidth()
int GetCachedSize() const final
Config * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
std::string * mutable_stream_format()
std::string * mutable_stream_driver_args()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void clear_chip_len_exp()
void set_stream_channel_count(uint32_t value)
bool has_detection_threshold() const
uint32_t pset_center_freq() const
void set_detection_threshold(double value)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fjanus_5fdriver_2eproto
static const int kTxConfigFieldNumber
static const int kRxConfigFieldNumber
ConfigDefaultTypeInternal _Config_default_instance_
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::janus::protobuf::Config >, 11, false > rx_config
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::janus::protobuf::Config >, 11, false > tx_config
The global namespace for the Goby project.
static const uint32_t offsets[]