4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2fudp_5fdriver_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_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>
23 #include <google/protobuf/arena.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>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
33 #include "goby/protobuf/option_extensions.pb.h"
34 #include "goby/acomms/protobuf/driver_base.pb.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_jaiabot_2fmessages_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[3];
50 static const ::google::protobuf::uint32
offsets[];
58 class ConfigDefaultTypeInternal;
61 class Config_EndPointDefaultTypeInternal;
64 class Config_HubEndPointsDefaultTypeInternal;
96 *
this = ::std::move(from);
100 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
101 if (
this != &from) InternalSwap(&from);
109 return _internal_metadata_.unknown_fields();
112 return _internal_metadata_.mutable_unknown_fields();
115 static const ::google::protobuf::Descriptor*
descriptor();
134 return CreateMaybeMessage<Config_EndPoint>(NULL);
138 return CreateMaybeMessage<Config_EndPoint>(arena);
140 void CopyFrom(const ::google::protobuf::Message& from)
final;
141 void MergeFrom(const ::google::protobuf::Message& from)
final;
149 ::
google::protobuf::io::CodedInputStream* input) final;
151 ::
google::protobuf::io::CodedOutputStream* output) const final;
153 bool deterministic, ::
google::protobuf::uint8* target) const final;
159 void SetCachedSize(
int size)
const final;
162 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
165 inline void* MaybeArenaPtr()
const {
170 ::google::protobuf::Metadata
GetMetadata() const final;
180 const ::std::
string&
ip() const;
181 void set_ip(const ::std::
string& value);
183 void set_ip(::std::string&& value);
185 void set_ip(
const char* value);
186 void set_ip(
const char* value,
size_t size);
195 ::google::protobuf::uint32
modem_id()
const;
202 ::google::protobuf::uint32
port()
const;
203 void set_port(::google::protobuf::uint32 value);
207 void set_has_modem_id();
208 void clear_has_modem_id();
212 void clear_has_port();
214 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
215 ::google::protobuf::internal::HasBits<1> _has_bits_;
216 mutable ::google::protobuf::internal::CachedSize _cached_size_;
220 ::google::protobuf::internal::ArenaStringPtr ip_;
221 ::google::protobuf::uint32 modem_id_;
222 ::google::protobuf::uint32 port_;
223 friend struct ::protobuf_jaiabot_2fmessages_2fudp_5fdriver_2eproto::TableStruct;
241 *
this = ::std::move(from);
245 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
246 if (
this != &from) InternalSwap(&from);
254 return _internal_metadata_.unknown_fields();
257 return _internal_metadata_.mutable_unknown_fields();
260 static const ::google::protobuf::Descriptor*
descriptor();
279 return CreateMaybeMessage<Config_HubEndPoints>(NULL);
283 return CreateMaybeMessage<Config_HubEndPoints>(arena);
285 void CopyFrom(const ::google::protobuf::Message& from)
final;
286 void MergeFrom(const ::google::protobuf::Message& from)
final;
294 ::
google::protobuf::io::CodedInputStream* input) final;
296 ::
google::protobuf::io::CodedOutputStream* output) const final;
298 bool deterministic, ::
google::protobuf::uint8* target) const final;
304 void SetCachedSize(
int size)
const final;
307 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
310 inline void* MaybeArenaPtr()
const {
315 ::google::protobuf::Metadata
GetMetadata() const final;
342 void set_has_hub_id();
343 void clear_has_hub_id();
344 void set_has_remote();
345 void clear_has_remote();
348 size_t RequiredFieldsByteSizeFallback() const;
350 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
351 ::
google::protobuf::internal::HasBits<1> _has_bits_;
352 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
354 ::
google::protobuf::int32 hub_id_;
373 *
this = ::std::move(from);
376 inline Config&
operator=(Config&& from) noexcept {
377 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
378 if (
this != &from) InternalSwap(&from);
386 return _internal_metadata_.unknown_fields();
389 return _internal_metadata_.mutable_unknown_fields();
392 static const ::google::protobuf::Descriptor*
descriptor();
397 return reinterpret_cast<const Config*
>(
411 return CreateMaybeMessage<Config>(NULL);
414 Config*
New(::google::protobuf::Arena* arena)
const final {
415 return CreateMaybeMessage<Config>(arena);
417 void CopyFrom(const ::google::protobuf::Message& from)
final;
418 void MergeFrom(const ::google::protobuf::Message& from)
final;
426 ::
google::protobuf::io::CodedInputStream* input) final;
428 ::
google::protobuf::io::CodedOutputStream* output) const final;
430 bool deterministic, ::
google::protobuf::uint8* target) const final;
436 void SetCachedSize(
int size)
const final;
437 void InternalSwap(
Config* other);
439 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
442 inline void* MaybeArenaPtr()
const {
447 ::google::protobuf::Metadata
GetMetadata() const final;
457 int remote_size() const;
469 int additional_application_ack_modem_id_size() const;
470 void clear_additional_application_ack_modem_id();
471 static const
int kAdditionalApplicationAckModemIdFieldNumber = 21;
472 ::
google::protobuf::uint32 additional_application_ack_modem_id(
int index) const;
473 void set_additional_application_ack_modem_id(
int index, ::
google::protobuf::uint32 value);
474 void add_additional_application_ack_modem_id(::
google::protobuf::uint32 value);
475 const ::
google::protobuf::RepeatedField< ::
google::protobuf::uint32 >&
476 additional_application_ack_modem_id() const;
477 ::
google::protobuf::RepeatedField< ::
google::protobuf::uint32 >*
478 mutable_additional_application_ack_modem_id();
481 int hub_endpoint_size() const;
482 void clear_hub_endpoint();
483 static const
int kHubEndpointFieldNumber = 32;
486 mutable_hub_endpoint();
490 hub_endpoint() const;
493 bool has_local() const;
495 static const
int kLocalFieldNumber = 1;
505 bool has_subnet_mask() const;
506 void clear_subnet_mask();
507 static const
int kSubnetMaskFieldNumber = 31;
508 ::
google::protobuf::uint32 subnet_mask() const;
509 void set_subnet_mask(::
google::protobuf::uint32 value);
512 bool has_ipv6() const;
514 static const
int kIpv6FieldNumber = 4;
516 void set_ipv6(
bool value);
526 bool has_max_frame_size() const;
527 void clear_max_frame_size();
528 static const
int kMaxFrameSizeFieldNumber = 3;
529 ::
google::protobuf::int32 max_frame_size() const;
530 void set_max_frame_size(::
google::protobuf::int32 value);
534 void set_has_local();
535 void clear_has_local();
536 void set_has_max_frame_size();
537 void clear_has_max_frame_size();
539 void clear_has_ipv6();
540 void set_has_hub_id();
541 void clear_has_hub_id();
542 void set_has_subnet_mask();
543 void clear_has_subnet_mask();
546 size_t RequiredFieldsByteSizeFallback() const;
548 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
549 ::
google::protobuf::internal::HasBits<1> _has_bits_;
550 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
552 ::
google::protobuf::RepeatedField< ::
google::protobuf::uint32 > additional_application_ack_modem_id_;
555 ::
google::protobuf::uint32 subnet_mask_;
557 ::
google::protobuf::int32 hub_id_;
558 ::
google::protobuf::int32 max_frame_size_;
564 extern ::
google::protobuf::internal::ExtensionIdentifier< ::
goby::acomms::protobuf::DriverConfig,
565 ::
google::protobuf::internal::MessageTypeTraits< ::
jaiabot::udp::protobuf::
Config >, 11, false >
571 #pragma GCC diagnostic push
572 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
578 return (_has_bits_[0] & 0x00000002u) != 0;
580 inline void Config_EndPoint::set_has_modem_id() {
581 _has_bits_[0] |= 0x00000002u;
583 inline void Config_EndPoint::clear_has_modem_id() {
584 _has_bits_[0] &= ~0x00000002u;
588 clear_has_modem_id();
602 return (_has_bits_[0] & 0x00000001u) != 0;
604 inline void Config_EndPoint::set_has_ip() {
605 _has_bits_[0] |= 0x00000001u;
607 inline void Config_EndPoint::clear_has_ip() {
608 _has_bits_[0] &= ~0x00000001u;
616 return ip_.GetNoArena();
632 GOOGLE_DCHECK(value != NULL);
640 ::std::string(
reinterpret_cast<const char*
>(value), size));
668 return (_has_bits_[0] & 0x00000004u) != 0;
670 inline void Config_EndPoint::set_has_port() {
671 _has_bits_[0] |= 0x00000004u;
673 inline void Config_EndPoint::clear_has_port() {
674 _has_bits_[0] &= ~0x00000004u;
696 return (_has_bits_[0] & 0x00000002u) != 0;
698 inline void Config_HubEndPoints::set_has_hub_id() {
699 _has_bits_[0] |= 0x00000002u;
701 inline void Config_HubEndPoints::clear_has_hub_id() {
702 _has_bits_[0] &= ~0x00000002u;
720 return (_has_bits_[0] & 0x00000001u) != 0;
722 inline void Config_HubEndPoints::set_has_remote() {
723 _has_bits_[0] |= 0x00000001u;
725 inline void Config_HubEndPoints::clear_has_remote() {
726 _has_bits_[0] &= ~0x00000001u;
729 if (remote_ != NULL) remote_->Clear();
732 inline const ::jaiabot::udp::protobuf::Config_EndPoint& Config_HubEndPoints::_internal_remote()
const {
736 const ::jaiabot::udp::protobuf::Config_EndPoint* p = remote_;
750 if (remote_ == NULL) {
751 auto* p = CreateMaybeMessage<::jaiabot::udp::protobuf::Config_EndPoint>(GetArenaNoVirtual());
758 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
759 if (message_arena == NULL) {
763 ::google::protobuf::Arena* submessage_arena = NULL;
764 if (message_arena != submessage_arena) {
765 remote = ::google::protobuf::internal::GetOwnedMessage(
766 message_arena,
remote, submessage_arena);
782 return (_has_bits_[0] & 0x00000001u) != 0;
784 inline void Config::set_has_local() {
785 _has_bits_[0] |= 0x00000001u;
787 inline void Config::clear_has_local() {
788 _has_bits_[0] &= ~0x00000001u;
791 if (local_ != NULL) local_->Clear();
794 inline const ::jaiabot::udp::protobuf::Config_EndPoint& Config::_internal_local()
const {
797 inline const ::jaiabot::udp::protobuf::Config_EndPoint&
Config::local()
const {
798 const ::jaiabot::udp::protobuf::Config_EndPoint* p = local_;
812 if (local_ == NULL) {
813 auto* p = CreateMaybeMessage<::jaiabot::udp::protobuf::Config_EndPoint>(GetArenaNoVirtual());
820 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
821 if (message_arena == NULL) {
825 ::google::protobuf::Arena* submessage_arena = NULL;
826 if (message_arena != submessage_arena) {
827 local = ::google::protobuf::internal::GetOwnedMessage(
828 message_arena, local, submessage_arena);
840 return remote_.size();
847 return remote_.Mutable(index);
849 inline ::google::protobuf::RepeatedPtrField< ::jaiabot::udp::protobuf::Config_EndPoint >*
854 inline const ::jaiabot::udp::protobuf::Config_EndPoint&
Config::remote(
int index)
const {
856 return remote_.Get(index);
860 return remote_.Add();
862 inline const ::google::protobuf::RepeatedPtrField< ::jaiabot::udp::protobuf::Config_EndPoint >&
870 return (_has_bits_[0] & 0x00000010u) != 0;
872 inline void Config::set_has_max_frame_size() {
873 _has_bits_[0] |= 0x00000010u;
875 inline void Config::clear_has_max_frame_size() {
876 _has_bits_[0] &= ~0x00000010u;
879 max_frame_size_ = 1400;
880 clear_has_max_frame_size();
884 return max_frame_size_;
887 set_has_max_frame_size();
888 max_frame_size_ = value;
894 return (_has_bits_[0] & 0x00000004u) != 0;
896 inline void Config::set_has_ipv6() {
897 _has_bits_[0] |= 0x00000004u;
899 inline void Config::clear_has_ipv6() {
900 _has_bits_[0] &= ~0x00000004u;
918 return additional_application_ack_modem_id_.size();
921 additional_application_ack_modem_id_.Clear();
925 return additional_application_ack_modem_id_.Get(index);
928 additional_application_ack_modem_id_.Set(index, value);
932 additional_application_ack_modem_id_.Add(value);
935 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
938 return additional_application_ack_modem_id_;
940 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
943 return &additional_application_ack_modem_id_;
948 return (_has_bits_[0] & 0x00000008u) != 0;
950 inline void Config::set_has_hub_id() {
951 _has_bits_[0] |= 0x00000008u;
953 inline void Config::clear_has_hub_id() {
954 _has_bits_[0] &= ~0x00000008u;
972 return (_has_bits_[0] & 0x00000002u) != 0;
974 inline void Config::set_has_subnet_mask() {
975 _has_bits_[0] |= 0x00000002u;
977 inline void Config::clear_has_subnet_mask() {
978 _has_bits_[0] &= ~0x00000002u;
982 clear_has_subnet_mask();
989 set_has_subnet_mask();
990 subnet_mask_ = value;
996 return hub_endpoint_.size();
999 hub_endpoint_.Clear();
1003 return hub_endpoint_.Mutable(index);
1005 inline ::google::protobuf::RepeatedPtrField< ::jaiabot::udp::protobuf::Config_HubEndPoints >*
1008 return &hub_endpoint_;
1012 return hub_endpoint_.Get(index);
1016 return hub_endpoint_.Add();
1018 inline const ::google::protobuf::RepeatedPtrField< ::jaiabot::udp::protobuf::Config_HubEndPoints >&
1021 return hub_endpoint_;
1025 #pragma GCC diagnostic pop
1040 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fudp_5fdriver_2eproto