4 #ifndef PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto
5 #define PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
35 #include <boost/units/quantity.hpp>
36 #include <boost/units/absolute.hpp>
37 #include <boost/units/dimensionless_type.hpp>
38 #include <boost/units/make_scaled_unit.hpp>
40 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto
45 static const ::google::protobuf::internal::ParseTableField
entries[];
46 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
47 static const ::google::protobuf::internal::ParseTable
schema[2];
59 class ConfigDefaultTypeInternal;
62 class Config_EndPointDefaultTypeInternal;
95 *
this = ::std::move(from);
99 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
100 if (
this != &from) InternalSwap(&from);
108 return _internal_metadata_.unknown_fields();
111 return _internal_metadata_.mutable_unknown_fields();
114 static const ::google::protobuf::Descriptor*
descriptor();
133 return CreateMaybeMessage<Config_EndPoint>(NULL);
137 return CreateMaybeMessage<Config_EndPoint>(arena);
139 void CopyFrom(const ::google::protobuf::Message& from)
final;
140 void MergeFrom(const ::google::protobuf::Message& from)
final;
148 ::
google::protobuf::io::CodedInputStream* input) final;
150 ::
google::protobuf::io::CodedOutputStream* output) const final;
152 bool deterministic, ::
google::protobuf::uint8* target) const final;
158 void SetCachedSize(
int size)
const final;
161 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
164 inline void* MaybeArenaPtr()
const {
179 const ::std::
string&
ip() const;
180 void set_ip(const ::std::
string& value);
182 void set_ip(::std::string&& value);
184 void set_ip(
const char* value);
185 void set_ip(
const char* value,
size_t size);
206 void set_has_modem_id();
207 void clear_has_modem_id();
211 void clear_has_port();
213 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
214 ::google::protobuf::internal::HasBits<1> _has_bits_;
215 mutable ::google::protobuf::internal::CachedSize _cached_size_;
219 ::google::protobuf::internal::ArenaStringPtr ip_;
222 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto::TableStruct;
240 *
this = ::std::move(from);
244 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
245 if (
this != &from) InternalSwap(&from);
253 return _internal_metadata_.unknown_fields();
256 return _internal_metadata_.mutable_unknown_fields();
259 static const ::google::protobuf::Descriptor*
descriptor();
264 return reinterpret_cast<const Config*
>(
278 return CreateMaybeMessage<Config>(NULL);
282 return CreateMaybeMessage<Config>(arena);
284 void CopyFrom(const ::google::protobuf::Message& from)
final;
285 void MergeFrom(const ::google::protobuf::Message& from)
final;
293 ::
google::protobuf::io::CodedInputStream* input) final;
295 ::
google::protobuf::io::CodedOutputStream* output) const final;
297 bool deterministic, ::
google::protobuf::uint8* target) const final;
303 void SetCachedSize(
int size)
const final;
304 void InternalSwap(
Config* other);
306 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
309 inline void* MaybeArenaPtr()
const {
374 void set_has_local();
375 void clear_has_local();
376 void set_has_max_frame_size();
377 void clear_has_max_frame_size();
379 void clear_has_ipv6();
381 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
382 ::
google::protobuf::internal::HasBits<1> _has_bits_;
383 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
385 ::
google::protobuf::RepeatedField< ::
google::protobuf::
uint32 > additional_application_ack_modem_id_;
394 extern ::
google::protobuf::internal::ExtensionIdentifier< ::
goby::acomms::protobuf::DriverConfig,
395 ::
google::protobuf::internal::MessageTypeTraits< ::
goby::acomms::udp::protobuf::
Config >, 11, false >
401 #pragma GCC diagnostic push
402 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
408 return (_has_bits_[0] & 0x00000002u) != 0;
410 inline void Config_EndPoint::set_has_modem_id() {
411 _has_bits_[0] |= 0x00000002u;
413 inline void Config_EndPoint::clear_has_modem_id() {
414 _has_bits_[0] &= ~0x00000002u;
418 clear_has_modem_id();
432 return (_has_bits_[0] & 0x00000001u) != 0;
434 inline void Config_EndPoint::set_has_ip() {
435 _has_bits_[0] |= 0x00000001u;
437 inline void Config_EndPoint::clear_has_ip() {
438 _has_bits_[0] &= ~0x00000001u;
446 return ip_.GetNoArena();
462 GOOGLE_DCHECK(value != NULL);
470 ::std::string(
reinterpret_cast<const char*
>(value), size));
498 return (_has_bits_[0] & 0x00000004u) != 0;
500 inline void Config_EndPoint::set_has_port() {
501 _has_bits_[0] |= 0x00000004u;
503 inline void Config_EndPoint::clear_has_port() {
504 _has_bits_[0] &= ~0x00000004u;
526 return (_has_bits_[0] & 0x00000001u) != 0;
528 inline void Config::set_has_local() {
529 _has_bits_[0] |= 0x00000001u;
531 inline void Config::clear_has_local() {
532 _has_bits_[0] &= ~0x00000001u;
535 if (local_ != NULL) local_->Clear();
538 inline const ::goby::acomms::udp::protobuf::Config_EndPoint& Config::_internal_local()
const {
541 inline const ::goby::acomms::udp::protobuf::Config_EndPoint&
Config::local()
const {
542 const ::goby::acomms::udp::protobuf::Config_EndPoint* p = local_;
556 if (local_ == NULL) {
557 auto* p = CreateMaybeMessage<::goby::acomms::udp::protobuf::Config_EndPoint>(GetArenaNoVirtual());
565 if (message_arena == NULL) {
570 if (message_arena != submessage_arena) {
571 local = ::google::protobuf::internal::GetOwnedMessage(
572 message_arena,
local, submessage_arena);
584 return remote_.size();
591 return remote_.Mutable(index);
593 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::udp::protobuf::Config_EndPoint >*
598 inline const ::goby::acomms::udp::protobuf::Config_EndPoint&
Config::remote(
int index)
const {
600 return remote_.Get(index);
604 return remote_.Add();
606 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::udp::protobuf::Config_EndPoint >&
614 return (_has_bits_[0] & 0x00000004u) != 0;
616 inline void Config::set_has_max_frame_size() {
617 _has_bits_[0] |= 0x00000004u;
619 inline void Config::clear_has_max_frame_size() {
620 _has_bits_[0] &= ~0x00000004u;
623 max_frame_size_ = 1400;
624 clear_has_max_frame_size();
628 return max_frame_size_;
631 set_has_max_frame_size();
632 max_frame_size_ = value;
638 return (_has_bits_[0] & 0x00000002u) != 0;
640 inline void Config::set_has_ipv6() {
641 _has_bits_[0] |= 0x00000002u;
643 inline void Config::clear_has_ipv6() {
644 _has_bits_[0] &= ~0x00000002u;
662 return additional_application_ack_modem_id_.size();
665 additional_application_ack_modem_id_.Clear();
669 return additional_application_ack_modem_id_.Get(index);
672 additional_application_ack_modem_id_.Set(index, value);
676 additional_application_ack_modem_id_.Add(value);
679 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
682 return additional_application_ack_modem_id_;
684 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
687 return &additional_application_ack_modem_id_;
691 #pragma GCC diagnostic pop
705 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto