4 #ifndef PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto
5 #define PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fnetwork_5fheader_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/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "dccl/option_extensions.pb.h"
35 #include "dccl/arithmetic/protobuf/arithmetic_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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto
46 static const ::google::protobuf::internal::ParseTableField
entries[];
47 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
48 static const ::google::protobuf::internal::ParseTable
schema[11];
59 class ICMPHeaderDefaultTypeInternal;
61 class IPGatewayICMPControl;
62 class IPGatewayICMPControlDefaultTypeInternal;
64 class IPGatewayICMPControl_QueueReport;
65 class IPGatewayICMPControl_QueueReportDefaultTypeInternal;
67 class IPGatewayICMPControl_QueueReport_SubQueue;
68 class IPGatewayICMPControl_QueueReport_SubQueueDefaultTypeInternal;
71 class IPv4HeaderDefaultTypeInternal;
73 class IPv4Header_FlagsFragOffset;
74 class IPv4Header_FlagsFragOffsetDefaultTypeInternal;
77 class NetworkHeaderDefaultTypeInternal;
79 class NetworkHeader_ICMPHeader;
80 class NetworkHeader_ICMPHeaderDefaultTypeInternal;
82 class NetworkHeader_SCTPHeader;
83 class NetworkHeader_SCTPHeaderDefaultTypeInternal;
85 class NetworkHeader_UDPHeader;
86 class NetworkHeader_UDPHeaderDefaultTypeInternal;
89 class UDPHeaderDefaultTypeInternal;
125 return ::google::protobuf::internal::NameOfEnum(
130 return ::google::protobuf::internal::ParseNamedEnum<NetworkHeader_Protocol>(
143 return ::google::protobuf::internal::NameOfEnum(
148 return ::google::protobuf::internal::ParseNamedEnum<IPGatewayICMPControl_MessageType>(
167 *
this = ::std::move(from);
171 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
172 if (
this != &from) InternalSwap(&from);
180 return _internal_metadata_.unknown_fields();
183 return _internal_metadata_.mutable_unknown_fields();
186 static const ::google::protobuf::Descriptor*
descriptor();
205 return CreateMaybeMessage<NetworkHeader_UDPHeader>(NULL);
209 return CreateMaybeMessage<NetworkHeader_UDPHeader>(arena);
211 void CopyFrom(const ::google::protobuf::Message& from)
final;
212 void MergeFrom(const ::google::protobuf::Message& from)
final;
220 ::
google::protobuf::io::CodedInputStream* input) final;
222 ::
google::protobuf::io::CodedOutputStream* output) const final;
224 bool deterministic, ::
google::protobuf::uint8* target) const final;
230 void SetCachedSize(
int size)
const final;
233 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
236 inline void* MaybeArenaPtr()
const {
262 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
263 ::
google::protobuf::internal::HasBits<1> _has_bits_;
264 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
284 *
this = ::std::move(from);
287 inline NetworkHeader_ICMPHeader&
operator=(NetworkHeader_ICMPHeader&& from) noexcept {
288 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
289 if (
this != &from) InternalSwap(&from);
297 return _internal_metadata_.unknown_fields();
300 return _internal_metadata_.mutable_unknown_fields();
303 static const ::google::protobuf::Descriptor*
descriptor();
322 return CreateMaybeMessage<NetworkHeader_ICMPHeader>(NULL);
326 return CreateMaybeMessage<NetworkHeader_ICMPHeader>(arena);
328 void CopyFrom(const ::google::protobuf::Message& from)
final;
329 void MergeFrom(const ::google::protobuf::Message& from)
final;
337 ::
google::protobuf::io::CodedInputStream* input) final;
339 ::
google::protobuf::io::CodedOutputStream* output) const final;
341 bool deterministic, ::
google::protobuf::uint8* target) const final;
347 void SetCachedSize(
int size)
const final;
350 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
353 inline void* MaybeArenaPtr()
const {
367 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
368 ::
google::protobuf::internal::HasBits<1> _has_bits_;
369 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
388 *
this = ::std::move(from);
391 inline NetworkHeader_SCTPHeader&
operator=(NetworkHeader_SCTPHeader&& from) noexcept {
392 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
393 if (
this != &from) InternalSwap(&from);
401 return _internal_metadata_.unknown_fields();
404 return _internal_metadata_.mutable_unknown_fields();
407 static const ::google::protobuf::Descriptor*
descriptor();
426 return CreateMaybeMessage<NetworkHeader_SCTPHeader>(NULL);
430 return CreateMaybeMessage<NetworkHeader_SCTPHeader>(arena);
432 void CopyFrom(const ::google::protobuf::Message& from)
final;
433 void MergeFrom(const ::google::protobuf::Message& from)
final;
441 ::
google::protobuf::io::CodedInputStream* input) final;
443 ::
google::protobuf::io::CodedOutputStream* output) const final;
445 bool deterministic, ::
google::protobuf::uint8* target) const final;
451 void SetCachedSize(
int size)
const final;
454 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
457 inline void* MaybeArenaPtr()
const {
471 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
472 ::
google::protobuf::internal::HasBits<1> _has_bits_;
473 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
492 *
this = ::std::move(from);
495 inline NetworkHeader&
operator=(NetworkHeader&& from) noexcept {
496 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
497 if (
this != &from) InternalSwap(&from);
505 return _internal_metadata_.unknown_fields();
508 return _internal_metadata_.mutable_unknown_fields();
511 static const ::google::protobuf::Descriptor*
descriptor();
530 return CreateMaybeMessage<NetworkHeader>(NULL);
534 return CreateMaybeMessage<NetworkHeader>(arena);
536 void CopyFrom(const ::google::protobuf::Message& from)
final;
537 void MergeFrom(const ::google::protobuf::Message& from)
final;
545 ::
google::protobuf::io::CodedInputStream* input) final;
547 ::
google::protobuf::io::CodedOutputStream* output) const final;
549 bool deterministic, ::
google::protobuf::uint8* target) const final;
555 void SetCachedSize(
int size)
const final;
558 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
561 inline void* MaybeArenaPtr()
const {
581 static inline
bool Protocol_IsValid(
int value) {
588 static const int Protocol_ARRAYSIZE =
590 static inline const ::google::protobuf::EnumDescriptor*
605 bool has_udp()
const;
607 static const int kUdpFieldNumber = 20;
609 const ::goby::acomms::protobuf::NetworkHeader_UDPHeader& _internal_udp()
const;
611 const ::goby::acomms::protobuf::NetworkHeader_UDPHeader& udp()
const;
617 bool has_srcdest_addr()
const;
618 void clear_srcdest_addr();
619 static const int kSrcdestAddrFieldNumber = 10;
624 bool has_protocol()
const;
625 void clear_protocol();
626 static const int kProtocolFieldNumber = 1;
633 void set_has_protocol();
634 void clear_has_protocol();
635 void set_has_srcdest_addr();
636 void clear_has_srcdest_addr();
638 void clear_has_udp();
641 size_t RequiredFieldsByteSizeFallback()
const;
643 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
644 ::google::protobuf::internal::HasBits<1> _has_bits_;
645 mutable ::google::protobuf::internal::CachedSize _cached_size_;
649 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto::TableStruct;
667 *
this = ::std::move(from);
670 inline IPv4Header_FlagsFragOffset&
operator=(IPv4Header_FlagsFragOffset&& from) noexcept {
671 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
672 if (
this != &from) InternalSwap(&from);
680 return _internal_metadata_.unknown_fields();
683 return _internal_metadata_.mutable_unknown_fields();
686 static const ::google::protobuf::Descriptor*
descriptor();
705 return CreateMaybeMessage<IPv4Header_FlagsFragOffset>(NULL);
709 return CreateMaybeMessage<IPv4Header_FlagsFragOffset>(arena);
711 void CopyFrom(const ::google::protobuf::Message& from)
final;
712 void MergeFrom(const ::google::protobuf::Message& from)
final;
720 ::
google::protobuf::io::CodedInputStream* input) final;
722 ::
google::protobuf::io::CodedOutputStream* output) const final;
724 bool deterministic, ::
google::protobuf::uint8* target) const final;
730 void SetCachedSize(
int size)
const final;
733 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
736 inline void* MaybeArenaPtr()
const {
748 bool has_dont_fragment() const;
749 void clear_dont_fragment();
750 static const
int kDontFragmentFieldNumber = 1;
751 bool dont_fragment() const;
752 void set_dont_fragment(
bool value);
755 bool has_more_fragments() const;
756 void clear_more_fragments();
757 static const
int kMoreFragmentsFieldNumber = 2;
758 bool more_fragments() const;
759 void set_more_fragments(
bool value);
762 bool has_fragment_offset() const;
763 void clear_fragment_offset();
764 static const
int kFragmentOffsetFieldNumber = 3;
766 void set_fragment_offset(::
google::protobuf::
uint32 value);
770 void set_has_dont_fragment();
771 void clear_has_dont_fragment();
772 void set_has_more_fragments();
773 void clear_has_more_fragments();
774 void set_has_fragment_offset();
775 void clear_has_fragment_offset();
778 size_t RequiredFieldsByteSizeFallback() const;
780 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
781 ::
google::protobuf::internal::HasBits<1> _has_bits_;
782 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
784 bool more_fragments_;
804 *
this = ::std::move(from);
807 inline IPv4Header&
operator=(IPv4Header&& from) noexcept {
808 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
809 if (
this != &from) InternalSwap(&from);
817 return _internal_metadata_.unknown_fields();
820 return _internal_metadata_.mutable_unknown_fields();
823 static const ::google::protobuf::Descriptor*
descriptor();
842 return CreateMaybeMessage<IPv4Header>(NULL);
846 return CreateMaybeMessage<IPv4Header>(arena);
848 void CopyFrom(const ::google::protobuf::Message& from)
final;
849 void MergeFrom(const ::google::protobuf::Message& from)
final;
857 ::
google::protobuf::io::CodedInputStream* input) final;
859 ::
google::protobuf::io::CodedOutputStream* output) const final;
861 bool deterministic, ::
google::protobuf::uint8* target) const final;
867 void SetCachedSize(
int size)
const final;
870 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
873 inline void* MaybeArenaPtr()
const {
887 bool has_source_ip_address() const;
888 void clear_source_ip_address();
889 static const
int kSourceIpAddressFieldNumber = 11;
890 const ::std::
string& source_ip_address() const;
891 void set_source_ip_address(const ::std::
string& value);
893 void set_source_ip_address(::std::string&& value);
895 void set_source_ip_address(
const char* value);
896 void set_source_ip_address(
const char* value,
size_t size);
897 ::std::string* mutable_source_ip_address();
898 ::std::string* release_source_ip_address();
899 void set_allocated_source_ip_address(::std::string* source_ip_address);
902 bool has_dest_ip_address()
const;
903 void clear_dest_ip_address();
904 static const int kDestIpAddressFieldNumber = 12;
905 const ::std::string& dest_ip_address()
const;
906 void set_dest_ip_address(const ::std::string& value);
908 void set_dest_ip_address(::std::string&& value);
910 void set_dest_ip_address(
const char* value);
911 void set_dest_ip_address(
const char* value,
size_t size);
912 ::std::string* mutable_dest_ip_address();
913 ::std::string* release_dest_ip_address();
914 void set_allocated_dest_ip_address(::std::string* dest_ip_address);
917 bool has_flags_frag_offset()
const;
918 void clear_flags_frag_offset();
919 static const int kFlagsFragOffsetFieldNumber = 7;
921 const ::goby::acomms::protobuf::IPv4Header_FlagsFragOffset& _internal_flags_frag_offset()
const;
923 const ::goby::acomms::protobuf::IPv4Header_FlagsFragOffset& flags_frag_offset()
const;
929 bool has_version()
const;
930 void clear_version();
931 static const int kVersionFieldNumber = 1;
936 bool has_ihl()
const;
938 static const int kIhlFieldNumber = 2;
943 bool has_dscp()
const;
945 static const int kDscpFieldNumber = 3;
950 bool has_ecn()
const;
952 static const int kEcnFieldNumber = 4;
957 bool has_total_length()
const;
958 void clear_total_length();
959 static const int kTotalLengthFieldNumber = 5;
964 bool has_identification()
const;
965 void clear_identification();
966 static const int kIdentificationFieldNumber = 6;
971 bool has_ttl()
const;
973 static const int kTtlFieldNumber = 8;
978 bool has_protocol()
const;
979 void clear_protocol();
980 static const int kProtocolFieldNumber = 9;
985 bool has_header_checksum()
const;
986 void clear_header_checksum();
987 static const int kHeaderChecksumFieldNumber = 10;
995 void clear_has_ihl();
996 void set_has_version();
997 void clear_has_version();
999 void clear_has_ecn();
1000 void set_has_dscp();
1001 void clear_has_dscp();
1002 void set_has_total_length();
1003 void clear_has_total_length();
1004 void set_has_identification();
1005 void clear_has_identification();
1006 void set_has_flags_frag_offset();
1007 void clear_has_flags_frag_offset();
1009 void clear_has_ttl();
1010 void set_has_protocol();
1011 void clear_has_protocol();
1012 void set_has_header_checksum();
1013 void clear_has_header_checksum();
1014 void set_has_source_ip_address();
1015 void clear_has_source_ip_address();
1016 void set_has_dest_ip_address();
1017 void clear_has_dest_ip_address();
1020 size_t RequiredFieldsByteSizeFallback()
const;
1022 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1023 ::google::protobuf::internal::HasBits<1> _has_bits_;
1024 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1025 ::google::protobuf::internal::ArenaStringPtr source_ip_address_;
1026 ::google::protobuf::internal::ArenaStringPtr dest_ip_address_;
1037 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto::TableStruct;
1055 *
this = ::std::move(from);
1058 inline UDPHeader&
operator=(UDPHeader&& from) noexcept {
1059 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1060 if (
this != &from) InternalSwap(&from);
1068 return _internal_metadata_.unknown_fields();
1071 return _internal_metadata_.mutable_unknown_fields();
1074 static const ::google::protobuf::Descriptor*
descriptor();
1079 return reinterpret_cast<const UDPHeader*
>(
1093 return CreateMaybeMessage<UDPHeader>(NULL);
1097 return CreateMaybeMessage<UDPHeader>(arena);
1099 void CopyFrom(const ::google::protobuf::Message& from)
final;
1100 void MergeFrom(const ::google::protobuf::Message& from)
final;
1108 ::
google::protobuf::io::CodedInputStream* input) final;
1110 ::
google::protobuf::io::CodedOutputStream* output) const final;
1112 bool deterministic, ::
google::protobuf::uint8* target) const final;
1118 void SetCachedSize(
int size)
const final;
1121 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1124 inline void* MaybeArenaPtr()
const {
1136 bool has_source_port() const;
1137 void clear_source_port();
1138 static const
int kSourcePortFieldNumber = 1;
1140 void set_source_port(::
google::protobuf::
uint32 value);
1143 bool has_dest_port() const;
1144 void clear_dest_port();
1145 static const
int kDestPortFieldNumber = 2;
1150 bool has_length() const;
1151 void clear_length();
1152 static const
int kLengthFieldNumber = 3;
1157 bool has_checksum() const;
1158 void clear_checksum();
1159 static const
int kChecksumFieldNumber = 4;
1166 void set_has_source_port();
1167 void clear_has_source_port();
1168 void set_has_dest_port();
1169 void clear_has_dest_port();
1170 void set_has_length();
1171 void clear_has_length();
1172 void set_has_checksum();
1173 void clear_has_checksum();
1176 size_t RequiredFieldsByteSizeFallback()
const;
1178 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1179 ::google::protobuf::internal::HasBits<1> _has_bits_;
1180 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1185 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto::TableStruct;
1203 *
this = ::std::move(from);
1206 inline ICMPHeader&
operator=(ICMPHeader&& from) noexcept {
1207 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1208 if (
this != &from) InternalSwap(&from);
1216 return _internal_metadata_.unknown_fields();
1219 return _internal_metadata_.mutable_unknown_fields();
1222 static const ::google::protobuf::Descriptor*
descriptor();
1241 return CreateMaybeMessage<ICMPHeader>(NULL);
1245 return CreateMaybeMessage<ICMPHeader>(arena);
1247 void CopyFrom(const ::google::protobuf::Message& from)
final;
1248 void MergeFrom(const ::google::protobuf::Message& from)
final;
1256 ::
google::protobuf::io::CodedInputStream* input) final;
1258 ::
google::protobuf::io::CodedOutputStream* output) const final;
1260 bool deterministic, ::
google::protobuf::uint8* target) const final;
1266 void SetCachedSize(
int size)
const final;
1269 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1272 inline void* MaybeArenaPtr()
const {
1284 bool has_type() const;
1286 static const
int kTypeFieldNumber = 1;
1291 bool has_code() const;
1293 static const
int kCodeFieldNumber = 2;
1298 bool has_checksum() const;
1299 void clear_checksum();
1300 static const
int kChecksumFieldNumber = 3;
1305 bool has_short1() const;
1306 void clear_short1();
1307 static const
int kShort1FieldNumber = 4;
1312 bool has_short2() const;
1313 void clear_short2();
1314 static const
int kShort2FieldNumber = 5;
1321 void set_has_type();
1322 void clear_has_type();
1323 void set_has_code();
1324 void clear_has_code();
1325 void set_has_checksum();
1326 void clear_has_checksum();
1327 void set_has_short1();
1328 void clear_has_short1();
1329 void set_has_short2();
1330 void clear_has_short2();
1333 size_t RequiredFieldsByteSizeFallback()
const;
1335 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1336 ::google::protobuf::internal::HasBits<1> _has_bits_;
1337 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1343 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto::TableStruct;
1361 *
this = ::std::move(from);
1364 inline IPGatewayICMPControl_QueueReport_SubQueue&
operator=(IPGatewayICMPControl_QueueReport_SubQueue&& from) noexcept {
1365 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1366 if (
this != &from) InternalSwap(&from);
1374 return _internal_metadata_.unknown_fields();
1377 return _internal_metadata_.mutable_unknown_fields();
1380 static const ::google::protobuf::Descriptor*
descriptor();
1399 return CreateMaybeMessage<IPGatewayICMPControl_QueueReport_SubQueue>(NULL);
1403 return CreateMaybeMessage<IPGatewayICMPControl_QueueReport_SubQueue>(arena);
1405 void CopyFrom(const ::google::protobuf::Message& from)
final;
1406 void MergeFrom(const ::google::protobuf::Message& from)
final;
1414 ::
google::protobuf::io::CodedInputStream* input) final;
1416 ::
google::protobuf::io::CodedOutputStream* output) const final;
1418 bool deterministic, ::
google::protobuf::uint8* target) const final;
1424 void SetCachedSize(
int size)
const final;
1427 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1430 inline void* MaybeArenaPtr()
const {
1442 bool has_dest() const;
1444 static const
int kDestFieldNumber = 1;
1449 bool has_size() const;
1451 static const
int kSizeFieldNumber = 2;
1457 void set_has_dest();
1458 void clear_has_dest();
1459 void set_has_size();
1460 void clear_has_size();
1463 size_t RequiredFieldsByteSizeFallback() const;
1465 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1466 ::
google::protobuf::internal::HasBits<1> _has_bits_;
1467 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
1488 *
this = ::std::move(from);
1491 inline IPGatewayICMPControl_QueueReport&
operator=(IPGatewayICMPControl_QueueReport&& from) noexcept {
1492 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1493 if (
this != &from) InternalSwap(&from);
1501 return _internal_metadata_.unknown_fields();
1504 return _internal_metadata_.mutable_unknown_fields();
1507 static const ::google::protobuf::Descriptor*
descriptor();
1526 return CreateMaybeMessage<IPGatewayICMPControl_QueueReport>(NULL);
1530 return CreateMaybeMessage<IPGatewayICMPControl_QueueReport>(arena);
1532 void CopyFrom(const ::google::protobuf::Message& from)
final;
1533 void MergeFrom(const ::google::protobuf::Message& from)
final;
1541 ::
google::protobuf::io::CodedInputStream* input) final;
1543 ::
google::protobuf::io::CodedOutputStream* output) const final;
1545 bool deterministic, ::
google::protobuf::uint8* target) const final;
1551 void SetCachedSize(
int size)
const final;
1554 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1557 inline void* MaybeArenaPtr()
const {
1571 int queue_size() const;
1573 static const
int kQueueFieldNumber = 1;
1585 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1586 ::
google::protobuf::internal::HasBits<1> _has_bits_;
1587 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
1607 *
this = ::std::move(from);
1610 inline IPGatewayICMPControl&
operator=(IPGatewayICMPControl&& from) noexcept {
1611 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1612 if (
this != &from) InternalSwap(&from);
1620 return _internal_metadata_.unknown_fields();
1623 return _internal_metadata_.mutable_unknown_fields();
1626 static const ::google::protobuf::Descriptor*
descriptor();
1645 return CreateMaybeMessage<IPGatewayICMPControl>(NULL);
1649 return CreateMaybeMessage<IPGatewayICMPControl>(arena);
1651 void CopyFrom(const ::google::protobuf::Message& from)
final;
1652 void MergeFrom(const ::google::protobuf::Message& from)
final;
1660 ::
google::protobuf::io::CodedInputStream* input) final;
1662 ::
google::protobuf::io::CodedOutputStream* output) const final;
1664 bool deterministic, ::
google::protobuf::uint8* target) const final;
1670 void SetCachedSize(
int size)
const final;
1673 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1676 inline void* MaybeArenaPtr()
const {
1690 static inline
bool MessageType_IsValid(
int value) {
1697 static const int MessageType_ARRAYSIZE =
1699 static inline const ::google::protobuf::EnumDescriptor*
1714 bool has_address()
const;
1715 void clear_address();
1716 static const int kAddressFieldNumber = 2;
1717 const ::std::string& address()
const;
1718 void set_address(const ::std::string& value);
1720 void set_address(::std::string&& value);
1722 void set_address(
const char* value);
1723 void set_address(
const char* value,
size_t size);
1724 ::std::string* mutable_address();
1725 ::std::string* release_address();
1726 void set_allocated_address(::std::string* address);
1729 bool has_queue_report()
const;
1730 void clear_queue_report();
1731 static const int kQueueReportFieldNumber = 3;
1733 const ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport& _internal_queue_report()
const;
1735 const ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport& queue_report()
const;
1741 bool has_type()
const;
1743 static const int kTypeFieldNumber = 1;
1749 void set_has_type();
1750 void clear_has_type();
1751 void set_has_address();
1752 void clear_has_address();
1753 void set_has_queue_report();
1754 void clear_has_queue_report();
1757 size_t RequiredFieldsByteSizeFallback()
const;
1759 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1760 ::google::protobuf::internal::HasBits<1> _has_bits_;
1761 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1762 ::google::protobuf::internal::ArenaStringPtr address_;
1765 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto::TableStruct;
1773 #pragma GCC diagnostic push
1774 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1780 return srcdest_port_.size();
1783 srcdest_port_.Clear();
1787 return srcdest_port_.Get(index);
1790 srcdest_port_.Set(index, value);
1794 srcdest_port_.Add(value);
1797 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
1800 return srcdest_port_;
1802 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
1805 return &srcdest_port_;
1822 return (_has_bits_[0] & 0x00000004u) != 0;
1824 inline void NetworkHeader::set_has_protocol() {
1825 _has_bits_[0] |= 0x00000004u;
1827 inline void NetworkHeader::clear_has_protocol() {
1828 _has_bits_[0] &= ~0x00000004u;
1832 clear_has_protocol();
1847 return (_has_bits_[0] & 0x00000002u) != 0;
1849 inline void NetworkHeader::set_has_srcdest_addr() {
1850 _has_bits_[0] |= 0x00000002u;
1852 inline void NetworkHeader::clear_has_srcdest_addr() {
1853 _has_bits_[0] &= ~0x00000002u;
1857 clear_has_srcdest_addr();
1861 return srcdest_addr_;
1864 set_has_srcdest_addr();
1865 srcdest_addr_ = value;
1871 return (_has_bits_[0] & 0x00000001u) != 0;
1873 inline void NetworkHeader::set_has_udp() {
1874 _has_bits_[0] |= 0x00000001u;
1876 inline void NetworkHeader::clear_has_udp() {
1877 _has_bits_[0] &= ~0x00000001u;
1880 if (udp_ != NULL) udp_->Clear();
1883 inline const ::goby::acomms::protobuf::NetworkHeader_UDPHeader& NetworkHeader::_internal_udp()
const {
1887 const ::goby::acomms::protobuf::NetworkHeader_UDPHeader* p = udp_;
1902 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::NetworkHeader_UDPHeader>(GetArenaNoVirtual());
1910 if (message_arena == NULL) {
1915 if (message_arena != submessage_arena) {
1916 udp = ::google::protobuf::internal::GetOwnedMessage(
1917 message_arena, udp, submessage_arena);
1933 return (_has_bits_[0] & 0x00000001u) != 0;
1935 inline void IPv4Header_FlagsFragOffset::set_has_dont_fragment() {
1936 _has_bits_[0] |= 0x00000001u;
1938 inline void IPv4Header_FlagsFragOffset::clear_has_dont_fragment() {
1939 _has_bits_[0] &= ~0x00000001u;
1942 dont_fragment_ =
false;
1943 clear_has_dont_fragment();
1947 return dont_fragment_;
1950 set_has_dont_fragment();
1951 dont_fragment_ = value;
1957 return (_has_bits_[0] & 0x00000002u) != 0;
1959 inline void IPv4Header_FlagsFragOffset::set_has_more_fragments() {
1960 _has_bits_[0] |= 0x00000002u;
1962 inline void IPv4Header_FlagsFragOffset::clear_has_more_fragments() {
1963 _has_bits_[0] &= ~0x00000002u;
1966 more_fragments_ =
false;
1967 clear_has_more_fragments();
1971 return more_fragments_;
1974 set_has_more_fragments();
1975 more_fragments_ = value;
1981 return (_has_bits_[0] & 0x00000004u) != 0;
1983 inline void IPv4Header_FlagsFragOffset::set_has_fragment_offset() {
1984 _has_bits_[0] |= 0x00000004u;
1986 inline void IPv4Header_FlagsFragOffset::clear_has_fragment_offset() {
1987 _has_bits_[0] &= ~0x00000004u;
1990 fragment_offset_ = 0u;
1991 clear_has_fragment_offset();
1995 return fragment_offset_;
1998 set_has_fragment_offset();
1999 fragment_offset_ = value;
2009 return (_has_bits_[0] & 0x00000010u) != 0;
2011 inline void IPv4Header::set_has_ihl() {
2012 _has_bits_[0] |= 0x00000010u;
2014 inline void IPv4Header::clear_has_ihl() {
2015 _has_bits_[0] &= ~0x00000010u;
2033 return (_has_bits_[0] & 0x00000008u) != 0;
2035 inline void IPv4Header::set_has_version() {
2036 _has_bits_[0] |= 0x00000008u;
2038 inline void IPv4Header::clear_has_version() {
2039 _has_bits_[0] &= ~0x00000008u;
2043 clear_has_version();
2057 return (_has_bits_[0] & 0x00000040u) != 0;
2059 inline void IPv4Header::set_has_ecn() {
2060 _has_bits_[0] |= 0x00000040u;
2062 inline void IPv4Header::clear_has_ecn() {
2063 _has_bits_[0] &= ~0x00000040u;
2081 return (_has_bits_[0] & 0x00000020u) != 0;
2083 inline void IPv4Header::set_has_dscp() {
2084 _has_bits_[0] |= 0x00000020u;
2086 inline void IPv4Header::clear_has_dscp() {
2087 _has_bits_[0] &= ~0x00000020u;
2105 return (_has_bits_[0] & 0x00000080u) != 0;
2107 inline void IPv4Header::set_has_total_length() {
2108 _has_bits_[0] |= 0x00000080u;
2110 inline void IPv4Header::clear_has_total_length() {
2111 _has_bits_[0] &= ~0x00000080u;
2115 clear_has_total_length();
2119 return total_length_;
2122 set_has_total_length();
2123 total_length_ = value;
2129 return (_has_bits_[0] & 0x00000100u) != 0;
2131 inline void IPv4Header::set_has_identification() {
2132 _has_bits_[0] |= 0x00000100u;
2134 inline void IPv4Header::clear_has_identification() {
2135 _has_bits_[0] &= ~0x00000100u;
2138 identification_ = 0u;
2139 clear_has_identification();
2143 return identification_;
2146 set_has_identification();
2147 identification_ = value;
2153 return (_has_bits_[0] & 0x00000004u) != 0;
2155 inline void IPv4Header::set_has_flags_frag_offset() {
2156 _has_bits_[0] |= 0x00000004u;
2158 inline void IPv4Header::clear_has_flags_frag_offset() {
2159 _has_bits_[0] &= ~0x00000004u;
2162 if (flags_frag_offset_ != NULL) flags_frag_offset_->Clear();
2163 clear_has_flags_frag_offset();
2165 inline const ::goby::acomms::protobuf::IPv4Header_FlagsFragOffset& IPv4Header::_internal_flags_frag_offset()
const {
2166 return *flags_frag_offset_;
2169 const ::goby::acomms::protobuf::IPv4Header_FlagsFragOffset* p = flags_frag_offset_;
2176 clear_has_flags_frag_offset();
2178 flags_frag_offset_ = NULL;
2182 set_has_flags_frag_offset();
2183 if (flags_frag_offset_ == NULL) {
2184 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::IPv4Header_FlagsFragOffset>(GetArenaNoVirtual());
2185 flags_frag_offset_ = p;
2188 return flags_frag_offset_;
2192 if (message_arena == NULL) {
2193 delete flags_frag_offset_;
2195 if (flags_frag_offset) {
2197 if (message_arena != submessage_arena) {
2198 flags_frag_offset = ::google::protobuf::internal::GetOwnedMessage(
2199 message_arena, flags_frag_offset, submessage_arena);
2201 set_has_flags_frag_offset();
2203 clear_has_flags_frag_offset();
2205 flags_frag_offset_ = flags_frag_offset;
2211 return (_has_bits_[0] & 0x00000200u) != 0;
2213 inline void IPv4Header::set_has_ttl() {
2214 _has_bits_[0] |= 0x00000200u;
2216 inline void IPv4Header::clear_has_ttl() {
2217 _has_bits_[0] &= ~0x00000200u;
2235 return (_has_bits_[0] & 0x00000400u) != 0;
2237 inline void IPv4Header::set_has_protocol() {
2238 _has_bits_[0] |= 0x00000400u;
2240 inline void IPv4Header::clear_has_protocol() {
2241 _has_bits_[0] &= ~0x00000400u;
2245 clear_has_protocol();
2259 return (_has_bits_[0] & 0x00000800u) != 0;
2261 inline void IPv4Header::set_has_header_checksum() {
2262 _has_bits_[0] |= 0x00000800u;
2264 inline void IPv4Header::clear_has_header_checksum() {
2265 _has_bits_[0] &= ~0x00000800u;
2268 header_checksum_ = 0u;
2269 clear_has_header_checksum();
2273 return header_checksum_;
2276 set_has_header_checksum();
2277 header_checksum_ = value;
2283 return (_has_bits_[0] & 0x00000001u) != 0;
2285 inline void IPv4Header::set_has_source_ip_address() {
2286 _has_bits_[0] |= 0x00000001u;
2288 inline void IPv4Header::clear_has_source_ip_address() {
2289 _has_bits_[0] &= ~0x00000001u;
2293 clear_has_source_ip_address();
2297 return source_ip_address_.GetNoArena();
2300 set_has_source_ip_address();
2306 set_has_source_ip_address();
2307 source_ip_address_.SetNoArena(
2313 GOOGLE_DCHECK(value != NULL);
2314 set_has_source_ip_address();
2319 set_has_source_ip_address();
2321 ::std::string(
reinterpret_cast<const char*
>(value), size));
2325 set_has_source_ip_address();
2331 if (!has_source_ip_address()) {
2334 clear_has_source_ip_address();
2338 if (source_ip_address != NULL) {
2339 set_has_source_ip_address();
2341 clear_has_source_ip_address();
2349 return (_has_bits_[0] & 0x00000002u) != 0;
2351 inline void IPv4Header::set_has_dest_ip_address() {
2352 _has_bits_[0] |= 0x00000002u;
2354 inline void IPv4Header::clear_has_dest_ip_address() {
2355 _has_bits_[0] &= ~0x00000002u;
2359 clear_has_dest_ip_address();
2363 return dest_ip_address_.GetNoArena();
2366 set_has_dest_ip_address();
2372 set_has_dest_ip_address();
2373 dest_ip_address_.SetNoArena(
2379 GOOGLE_DCHECK(value != NULL);
2380 set_has_dest_ip_address();
2385 set_has_dest_ip_address();
2387 ::std::string(
reinterpret_cast<const char*
>(value), size));
2391 set_has_dest_ip_address();
2397 if (!has_dest_ip_address()) {
2400 clear_has_dest_ip_address();
2404 if (dest_ip_address != NULL) {
2405 set_has_dest_ip_address();
2407 clear_has_dest_ip_address();
2419 return (_has_bits_[0] & 0x00000001u) != 0;
2421 inline void UDPHeader::set_has_source_port() {
2422 _has_bits_[0] |= 0x00000001u;
2424 inline void UDPHeader::clear_has_source_port() {
2425 _has_bits_[0] &= ~0x00000001u;
2429 clear_has_source_port();
2433 return source_port_;
2436 set_has_source_port();
2437 source_port_ = value;
2443 return (_has_bits_[0] & 0x00000002u) != 0;
2445 inline void UDPHeader::set_has_dest_port() {
2446 _has_bits_[0] |= 0x00000002u;
2448 inline void UDPHeader::clear_has_dest_port() {
2449 _has_bits_[0] &= ~0x00000002u;
2453 clear_has_dest_port();
2460 set_has_dest_port();
2467 return (_has_bits_[0] & 0x00000004u) != 0;
2469 inline void UDPHeader::set_has_length() {
2470 _has_bits_[0] |= 0x00000004u;
2472 inline void UDPHeader::clear_has_length() {
2473 _has_bits_[0] &= ~0x00000004u;
2491 return (_has_bits_[0] & 0x00000008u) != 0;
2493 inline void UDPHeader::set_has_checksum() {
2494 _has_bits_[0] |= 0x00000008u;
2496 inline void UDPHeader::clear_has_checksum() {
2497 _has_bits_[0] &= ~0x00000008u;
2501 clear_has_checksum();
2519 return (_has_bits_[0] & 0x00000001u) != 0;
2521 inline void ICMPHeader::set_has_type() {
2522 _has_bits_[0] |= 0x00000001u;
2524 inline void ICMPHeader::clear_has_type() {
2525 _has_bits_[0] &= ~0x00000001u;
2543 return (_has_bits_[0] & 0x00000002u) != 0;
2545 inline void ICMPHeader::set_has_code() {
2546 _has_bits_[0] |= 0x00000002u;
2548 inline void ICMPHeader::clear_has_code() {
2549 _has_bits_[0] &= ~0x00000002u;
2567 return (_has_bits_[0] & 0x00000004u) != 0;
2569 inline void ICMPHeader::set_has_checksum() {
2570 _has_bits_[0] |= 0x00000004u;
2572 inline void ICMPHeader::clear_has_checksum() {
2573 _has_bits_[0] &= ~0x00000004u;
2577 clear_has_checksum();
2591 return (_has_bits_[0] & 0x00000008u) != 0;
2593 inline void ICMPHeader::set_has_short1() {
2594 _has_bits_[0] |= 0x00000008u;
2596 inline void ICMPHeader::clear_has_short1() {
2597 _has_bits_[0] &= ~0x00000008u;
2615 return (_has_bits_[0] & 0x00000010u) != 0;
2617 inline void ICMPHeader::set_has_short2() {
2618 _has_bits_[0] |= 0x00000010u;
2620 inline void ICMPHeader::clear_has_short2() {
2621 _has_bits_[0] &= ~0x00000010u;
2643 return (_has_bits_[0] & 0x00000001u) != 0;
2645 inline void IPGatewayICMPControl_QueueReport_SubQueue::set_has_dest() {
2646 _has_bits_[0] |= 0x00000001u;
2648 inline void IPGatewayICMPControl_QueueReport_SubQueue::clear_has_dest() {
2649 _has_bits_[0] &= ~0x00000001u;
2667 return (_has_bits_[0] & 0x00000002u) != 0;
2669 inline void IPGatewayICMPControl_QueueReport_SubQueue::set_has_size() {
2670 _has_bits_[0] |= 0x00000002u;
2672 inline void IPGatewayICMPControl_QueueReport_SubQueue::clear_has_size() {
2673 _has_bits_[0] &= ~0x00000002u;
2695 return queue_.size();
2702 return queue_.Mutable(index);
2704 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport_SubQueue >*
2711 return queue_.Get(index);
2715 return queue_.Add();
2717 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport_SubQueue >&
2729 return (_has_bits_[0] & 0x00000004u) != 0;
2731 inline void IPGatewayICMPControl::set_has_type() {
2732 _has_bits_[0] |= 0x00000004u;
2734 inline void IPGatewayICMPControl::clear_has_type() {
2735 _has_bits_[0] &= ~0x00000004u;
2754 return (_has_bits_[0] & 0x00000001u) != 0;
2756 inline void IPGatewayICMPControl::set_has_address() {
2757 _has_bits_[0] |= 0x00000001u;
2759 inline void IPGatewayICMPControl::clear_has_address() {
2760 _has_bits_[0] &= ~0x00000001u;
2764 clear_has_address();
2768 return address_.GetNoArena();
2778 address_.SetNoArena(
2784 GOOGLE_DCHECK(value != NULL);
2792 ::std::string(
reinterpret_cast<const char*
>(value), size));
2802 if (!has_address()) {
2805 clear_has_address();
2809 if (address != NULL) {
2812 clear_has_address();
2820 return (_has_bits_[0] & 0x00000002u) != 0;
2822 inline void IPGatewayICMPControl::set_has_queue_report() {
2823 _has_bits_[0] |= 0x00000002u;
2825 inline void IPGatewayICMPControl::clear_has_queue_report() {
2826 _has_bits_[0] &= ~0x00000002u;
2829 if (queue_report_ != NULL) queue_report_->Clear();
2830 clear_has_queue_report();
2832 inline const ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport& IPGatewayICMPControl::_internal_queue_report()
const {
2833 return *queue_report_;
2836 const ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport* p = queue_report_;
2843 clear_has_queue_report();
2845 queue_report_ = NULL;
2849 set_has_queue_report();
2850 if (queue_report_ == NULL) {
2851 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport>(GetArenaNoVirtual());
2855 return queue_report_;
2859 if (message_arena == NULL) {
2860 delete queue_report_;
2864 if (message_arena != submessage_arena) {
2865 queue_report = ::google::protobuf::internal::GetOwnedMessage(
2866 message_arena, queue_report, submessage_arena);
2868 set_has_queue_report();
2870 clear_has_queue_report();
2872 queue_report_ = queue_report;
2877 #pragma GCC diagnostic pop
2907 namespace protobuf {
2911 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::NetworkHeader_Protocol>() {
2916 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::IPGatewayICMPControl_MessageType>() {
2925 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto