4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fio_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fio_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>
35 #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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmiddleware_2fprotobuf_2fio_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[9];
56 namespace middleware {
59 class IODataDefaultTypeInternal;
62 class IOErrorDefaultTypeInternal;
65 class IOStatusDefaultTypeInternal;
68 class SerialCommandDefaultTypeInternal;
71 class SerialStatusDefaultTypeInternal;
74 class TCPClientEventDefaultTypeInternal;
77 class TCPEndPointDefaultTypeInternal;
80 class TCPServerEventDefaultTypeInternal;
83 class UDPEndPointDefaultTypeInternal;
102 namespace middleware {
119 return ::google::protobuf::internal::NameOfEnum(
124 return ::google::protobuf::internal::ParseNamedEnum<SerialCommand_Command>(
139 return ::google::protobuf::internal::NameOfEnum(
144 return ::google::protobuf::internal::ParseNamedEnum<TCPServerEvent_Event>(
158 return ::google::protobuf::internal::NameOfEnum(
163 return ::google::protobuf::internal::ParseNamedEnum<TCPClientEvent_Event>(
179 return ::google::protobuf::internal::NameOfEnum(
184 return ::google::protobuf::internal::ParseNamedEnum<IOError_ErrorCode>(
200 return ::google::protobuf::internal::NameOfEnum(
204 const ::std::string& name,
IOState* value) {
205 return ::google::protobuf::internal::ParseNamedEnum<IOState>(
224 *
this = ::std::move(from);
228 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
229 if (
this != &from) InternalSwap(&from);
237 return _internal_metadata_.unknown_fields();
240 return _internal_metadata_.mutable_unknown_fields();
243 static const ::google::protobuf::Descriptor*
descriptor();
262 return CreateMaybeMessage<UDPEndPoint>(NULL);
266 return CreateMaybeMessage<UDPEndPoint>(arena);
268 void CopyFrom(const ::google::protobuf::Message& from)
final;
269 void MergeFrom(const ::google::protobuf::Message& from)
final;
277 ::
google::protobuf::io::CodedInputStream* input) final;
279 ::
google::protobuf::io::CodedOutputStream* output) const final;
281 bool deterministic, ::
google::protobuf::uint8* target) const final;
287 void SetCachedSize(
int size)
const final;
290 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
293 inline void* MaybeArenaPtr()
const {
308 const ::std::
string&
addr() const;
309 void set_addr(const ::std::
string& value);
311 void set_addr(::std::string&& value);
314 void set_addr(
const char* value,
size_t size);
329 void clear_has_addr();
331 void clear_has_port();
334 size_t RequiredFieldsByteSizeFallback()
const;
336 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
337 ::google::protobuf::internal::HasBits<1> _has_bits_;
338 mutable ::google::protobuf::internal::CachedSize _cached_size_;
339 ::google::protobuf::internal::ArenaStringPtr addr_;
341 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fio_2eproto::TableStruct;
359 *
this = ::std::move(from);
363 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
364 if (
this != &from) InternalSwap(&from);
372 return _internal_metadata_.unknown_fields();
375 return _internal_metadata_.mutable_unknown_fields();
378 static const ::google::protobuf::Descriptor*
descriptor();
397 return CreateMaybeMessage<TCPEndPoint>(NULL);
401 return CreateMaybeMessage<TCPEndPoint>(arena);
403 void CopyFrom(const ::google::protobuf::Message& from)
final;
404 void MergeFrom(const ::google::protobuf::Message& from)
final;
412 ::
google::protobuf::io::CodedInputStream* input) final;
414 ::
google::protobuf::io::CodedOutputStream* output) const final;
416 bool deterministic, ::
google::protobuf::uint8* target) const final;
422 void SetCachedSize(
int size)
const final;
425 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
428 inline void* MaybeArenaPtr()
const {
443 const ::std::
string&
addr() const;
444 void set_addr(const ::std::
string& value);
446 void set_addr(::std::string&& value);
449 void set_addr(
const char* value,
size_t size);
471 void clear_has_addr();
473 void clear_has_port();
474 void set_has_all_clients();
475 void clear_has_all_clients();
477 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
478 ::google::protobuf::internal::HasBits<1> _has_bits_;
479 mutable ::google::protobuf::internal::CachedSize _cached_size_;
480 ::google::protobuf::internal::ArenaStringPtr addr_;
483 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fio_2eproto::TableStruct;
501 *
this = ::std::move(from);
505 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
506 if (
this != &from) InternalSwap(&from);
514 return _internal_metadata_.unknown_fields();
517 return _internal_metadata_.mutable_unknown_fields();
520 static const ::google::protobuf::Descriptor*
descriptor();
537 return reinterpret_cast<const IOData*
>(
551 return CreateMaybeMessage<IOData>(NULL);
555 return CreateMaybeMessage<IOData>(arena);
557 void CopyFrom(const ::google::protobuf::Message& from)
final;
558 void MergeFrom(const ::google::protobuf::Message& from)
final;
566 ::
google::protobuf::io::CodedInputStream* input) final;
568 ::
google::protobuf::io::CodedOutputStream* output) const final;
570 bool deterministic, ::
google::protobuf::uint8* target) const final;
576 void SetCachedSize(
int size)
const final;
577 void InternalSwap(
IOData* other);
579 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
582 inline void* MaybeArenaPtr()
const {
597 const ::std::
string&
data() const;
598 void set_data(const ::std::
string& value);
600 void set_data(::std::string&& value);
603 void set_data(
const void* value,
size_t size);
620 const ::goby::middleware::protobuf::UDPEndPoint& _internal_udp_src()
const;
622 const ::goby::middleware::protobuf::UDPEndPoint&
udp_src()
const;
632 const ::goby::middleware::protobuf::TCPEndPoint& _internal_tcp_src()
const;
634 const ::goby::middleware::protobuf::TCPEndPoint&
tcp_src()
const;
644 const ::goby::middleware::protobuf::UDPEndPoint& _internal_udp_dest()
const;
646 const ::goby::middleware::protobuf::UDPEndPoint&
udp_dest()
const;
656 const ::goby::middleware::protobuf::TCPEndPoint& _internal_tcp_dest()
const;
658 const ::goby::middleware::protobuf::TCPEndPoint&
tcp_dest()
const;
669 void set_has_index();
670 void clear_has_index();
671 void set_has_udp_src();
672 void set_has_tcp_src();
673 void set_has_udp_dest();
674 void set_has_tcp_dest();
676 void clear_has_data();
678 inline bool has_src()
const;
679 inline void clear_has_src();
681 inline bool has_dest()
const;
682 inline void clear_has_dest();
684 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
685 ::google::protobuf::internal::HasBits<1> _has_bits_;
686 mutable ::google::protobuf::internal::CachedSize _cached_size_;
687 ::google::protobuf::internal::ArenaStringPtr data_;
701 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fio_2eproto::TableStruct;
719 *
this = ::std::move(from);
723 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
724 if (
this != &from) InternalSwap(&from);
732 return _internal_metadata_.unknown_fields();
735 return _internal_metadata_.mutable_unknown_fields();
738 static const ::google::protobuf::Descriptor*
descriptor();
757 return CreateMaybeMessage<SerialCommand>(NULL);
761 return CreateMaybeMessage<SerialCommand>(arena);
763 void CopyFrom(const ::google::protobuf::Message& from)
final;
764 void MergeFrom(const ::google::protobuf::Message& from)
final;
772 ::
google::protobuf::io::CodedInputStream* input) final;
774 ::
google::protobuf::io::CodedOutputStream* output) const final;
776 bool deterministic, ::
google::protobuf::uint8* target) const final;
782 void SetCachedSize(
int size)
const final;
785 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
788 inline void* MaybeArenaPtr()
const {
817 static inline const ::google::protobuf::EnumDescriptor*
847 void set_has_index();
848 void clear_has_index();
849 void set_has_command();
850 void clear_has_command();
852 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
853 ::google::protobuf::internal::HasBits<1> _has_bits_;
854 mutable ::google::protobuf::internal::CachedSize _cached_size_;
857 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fio_2eproto::TableStruct;
875 *
this = ::std::move(from);
879 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
880 if (
this != &from) InternalSwap(&from);
888 return _internal_metadata_.unknown_fields();
891 return _internal_metadata_.mutable_unknown_fields();
894 static const ::google::protobuf::Descriptor*
descriptor();
913 return CreateMaybeMessage<SerialStatus>(NULL);
917 return CreateMaybeMessage<SerialStatus>(arena);
919 void CopyFrom(const ::google::protobuf::Message& from)
final;
920 void MergeFrom(const ::google::protobuf::Message& from)
final;
928 ::
google::protobuf::io::CodedInputStream* input) final;
930 ::
google::protobuf::io::CodedOutputStream* output) const final;
932 bool deterministic, ::
google::protobuf::uint8* target) const final;
938 void SetCachedSize(
int size)
const final;
941 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
944 inline void* MaybeArenaPtr()
const {
978 void set_has_index();
979 void clear_has_index();
981 void clear_has_rts();
983 void clear_has_dtr();
985 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
986 ::
google::protobuf::internal::HasBits<1> _has_bits_;
987 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
1009 *
this = ::std::move(from);
1012 inline TCPServerEvent&
operator=(TCPServerEvent&& from) noexcept {
1013 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1014 if (
this != &from) InternalSwap(&from);
1022 return _internal_metadata_.unknown_fields();
1025 return _internal_metadata_.mutable_unknown_fields();
1028 static const ::google::protobuf::Descriptor*
descriptor();
1047 return CreateMaybeMessage<TCPServerEvent>(NULL);
1051 return CreateMaybeMessage<TCPServerEvent>(arena);
1053 void CopyFrom(const ::google::protobuf::Message& from)
final;
1054 void MergeFrom(const ::google::protobuf::Message& from)
final;
1062 ::
google::protobuf::io::CodedInputStream* input) final;
1064 ::
google::protobuf::io::CodedOutputStream* output) const final;
1066 bool deterministic, ::
google::protobuf::uint8* target) const final;
1072 void SetCachedSize(
int size)
const final;
1075 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1078 inline void* MaybeArenaPtr()
const {
1094 static inline
bool Event_IsValid(
int value) {
1101 static const int Event_ARRAYSIZE =
1103 static inline const ::google::protobuf::EnumDescriptor*
1118 bool has_local_endpoint()
const;
1119 void clear_local_endpoint();
1120 static const int kLocalEndpointFieldNumber = 3;
1122 const ::goby::middleware::protobuf::TCPEndPoint& _internal_local_endpoint()
const;
1124 const ::goby::middleware::protobuf::TCPEndPoint& local_endpoint()
const;
1130 bool has_remote_endpoint()
const;
1131 void clear_remote_endpoint();
1132 static const int kRemoteEndpointFieldNumber = 4;
1134 const ::goby::middleware::protobuf::TCPEndPoint& _internal_remote_endpoint()
const;
1136 const ::goby::middleware::protobuf::TCPEndPoint& remote_endpoint()
const;
1142 bool has_event()
const;
1144 static const int kEventFieldNumber = 2;
1149 bool has_number_of_clients()
const;
1150 void clear_number_of_clients();
1151 static const int kNumberOfClientsFieldNumber = 5;
1164 void set_has_index();
1165 void clear_has_index();
1166 void set_has_event();
1167 void clear_has_event();
1168 void set_has_local_endpoint();
1169 void clear_has_local_endpoint();
1170 void set_has_remote_endpoint();
1171 void clear_has_remote_endpoint();
1172 void set_has_number_of_clients();
1173 void clear_has_number_of_clients();
1175 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1176 ::google::protobuf::internal::HasBits<1> _has_bits_;
1177 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1183 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fio_2eproto::TableStruct;
1201 *
this = ::std::move(from);
1204 inline TCPClientEvent&
operator=(TCPClientEvent&& from) noexcept {
1205 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1206 if (
this != &from) InternalSwap(&from);
1214 return _internal_metadata_.unknown_fields();
1217 return _internal_metadata_.mutable_unknown_fields();
1220 static const ::google::protobuf::Descriptor*
descriptor();
1239 return CreateMaybeMessage<TCPClientEvent>(NULL);
1243 return CreateMaybeMessage<TCPClientEvent>(arena);
1245 void CopyFrom(const ::google::protobuf::Message& from)
final;
1246 void MergeFrom(const ::google::protobuf::Message& from)
final;
1254 ::
google::protobuf::io::CodedInputStream* input) final;
1256 ::
google::protobuf::io::CodedOutputStream* output) const final;
1258 bool deterministic, ::
google::protobuf::uint8* target) const final;
1264 void SetCachedSize(
int size)
const final;
1267 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1270 inline void* MaybeArenaPtr()
const {
1284 static inline
bool Event_IsValid(
int value) {
1291 static const int Event_ARRAYSIZE =
1293 static inline const ::google::protobuf::EnumDescriptor*
1308 bool has_local_endpoint()
const;
1309 void clear_local_endpoint();
1310 static const int kLocalEndpointFieldNumber = 3;
1312 const ::goby::middleware::protobuf::TCPEndPoint& _internal_local_endpoint()
const;
1314 const ::goby::middleware::protobuf::TCPEndPoint& local_endpoint()
const;
1320 bool has_remote_endpoint()
const;
1321 void clear_remote_endpoint();
1322 static const int kRemoteEndpointFieldNumber = 4;
1324 const ::goby::middleware::protobuf::TCPEndPoint& _internal_remote_endpoint()
const;
1326 const ::goby::middleware::protobuf::TCPEndPoint& remote_endpoint()
const;
1339 bool has_event()
const;
1341 static const int kEventFieldNumber = 2;
1347 void set_has_index();
1348 void clear_has_index();
1349 void set_has_event();
1350 void clear_has_event();
1351 void set_has_local_endpoint();
1352 void clear_has_local_endpoint();
1353 void set_has_remote_endpoint();
1354 void clear_has_remote_endpoint();
1356 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1357 ::google::protobuf::internal::HasBits<1> _has_bits_;
1358 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1363 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fio_2eproto::TableStruct;
1381 *
this = ::std::move(from);
1384 inline IOError&
operator=(IOError&& from) noexcept {
1385 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1386 if (
this != &from) InternalSwap(&from);
1394 return _internal_metadata_.unknown_fields();
1397 return _internal_metadata_.mutable_unknown_fields();
1400 static const ::google::protobuf::Descriptor*
descriptor();
1405 return reinterpret_cast<const IOError*
>(
1419 return CreateMaybeMessage<IOError>(NULL);
1423 return CreateMaybeMessage<IOError>(arena);
1425 void CopyFrom(const ::google::protobuf::Message& from)
final;
1426 void MergeFrom(const ::google::protobuf::Message& from)
final;
1434 ::
google::protobuf::io::CodedInputStream* input) final;
1436 ::
google::protobuf::io::CodedOutputStream* output) const final;
1438 bool deterministic, ::
google::protobuf::uint8* target) const final;
1444 void SetCachedSize(
int size)
const final;
1445 void InternalSwap(
IOError* other);
1447 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1450 inline void* MaybeArenaPtr()
const {
1468 static inline
bool ErrorCode_IsValid(
int value) {
1475 static const int ErrorCode_ARRAYSIZE =
1477 static inline const ::google::protobuf::EnumDescriptor*
1492 bool has_text()
const;
1494 static const int kTextFieldNumber = 2;
1495 const ::std::string& text()
const;
1496 void set_text(const ::std::string& value);
1498 void set_text(::std::string&& value);
1500 void set_text(
const char* value);
1501 void set_text(
const char* value,
size_t size);
1502 ::std::string* mutable_text();
1503 ::std::string* release_text();
1504 void set_allocated_text(::std::string* text);
1507 bool has_code()
const;
1509 static const int kCodeFieldNumber = 1;
1515 void set_has_code();
1516 void clear_has_code();
1517 void set_has_text();
1518 void clear_has_text();
1520 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1521 ::google::protobuf::internal::HasBits<1> _has_bits_;
1522 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1523 ::google::protobuf::internal::ArenaStringPtr text_;
1525 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fio_2eproto::TableStruct;
1543 *
this = ::std::move(from);
1546 inline IOStatus&
operator=(IOStatus&& from) noexcept {
1547 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1548 if (
this != &from) InternalSwap(&from);
1556 return _internal_metadata_.unknown_fields();
1559 return _internal_metadata_.mutable_unknown_fields();
1562 static const ::google::protobuf::Descriptor*
descriptor();
1567 return reinterpret_cast<const IOStatus*
>(
1581 return CreateMaybeMessage<IOStatus>(NULL);
1585 return CreateMaybeMessage<IOStatus>(arena);
1587 void CopyFrom(const ::google::protobuf::Message& from)
final;
1588 void MergeFrom(const ::google::protobuf::Message& from)
final;
1596 ::
google::protobuf::io::CodedInputStream* input) final;
1598 ::
google::protobuf::io::CodedOutputStream* output) const final;
1600 bool deterministic, ::
google::protobuf::uint8* target) const final;
1606 void SetCachedSize(
int size)
const final;
1607 void InternalSwap(
IOStatus* other);
1609 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1612 inline void* MaybeArenaPtr()
const {
1624 bool has_error() const;
1626 static const
int kErrorFieldNumber = 3;
1628 const ::
goby::middleware::protobuf::
IOError& _internal_error() const;
1630 const ::
goby::middleware::protobuf::
IOError& error() const;
1631 ::
goby::middleware::protobuf::
IOError* release_error();
1632 ::
goby::middleware::protobuf::
IOError* mutable_error();
1633 void set_allocated_error(::
goby::middleware::protobuf::
IOError* error);
1643 bool has_state() const;
1645 static const
int kStateFieldNumber = 2;
1646 ::
goby::middleware::protobuf::
IOState state() const;
1647 void set_state(::
goby::middleware::protobuf::
IOState value);
1651 void set_has_index();
1652 void clear_has_index();
1653 void set_has_state();
1654 void clear_has_state();
1655 void set_has_error();
1656 void clear_has_error();
1658 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1659 ::
google::protobuf::internal::HasBits<1> _has_bits_;
1660 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
1672 #pragma GCC diagnostic push
1673 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1679 return (_has_bits_[0] & 0x00000001u) != 0;
1681 inline void UDPEndPoint::set_has_addr() {
1682 _has_bits_[0] |= 0x00000001u;
1684 inline void UDPEndPoint::clear_has_addr() {
1685 _has_bits_[0] &= ~0x00000001u;
1693 return addr_.GetNoArena();
1709 GOOGLE_DCHECK(value != NULL);
1717 ::std::string(
reinterpret_cast<const char*
>(value), size));
1745 return (_has_bits_[0] & 0x00000002u) != 0;
1747 inline void UDPEndPoint::set_has_port() {
1748 _has_bits_[0] |= 0x00000002u;
1750 inline void UDPEndPoint::clear_has_port() {
1751 _has_bits_[0] &= ~0x00000002u;
1773 return (_has_bits_[0] & 0x00000001u) != 0;
1775 inline void TCPEndPoint::set_has_addr() {
1776 _has_bits_[0] |= 0x00000001u;
1778 inline void TCPEndPoint::clear_has_addr() {
1779 _has_bits_[0] &= ~0x00000001u;
1787 return addr_.GetNoArena();
1803 GOOGLE_DCHECK(value != NULL);
1811 ::std::string(
reinterpret_cast<const char*
>(value), size));
1839 return (_has_bits_[0] & 0x00000002u) != 0;
1841 inline void TCPEndPoint::set_has_port() {
1842 _has_bits_[0] |= 0x00000002u;
1844 inline void TCPEndPoint::clear_has_port() {
1845 _has_bits_[0] &= ~0x00000002u;
1863 return (_has_bits_[0] & 0x00000004u) != 0;
1865 inline void TCPEndPoint::set_has_all_clients() {
1866 _has_bits_[0] |= 0x00000004u;
1868 inline void TCPEndPoint::clear_has_all_clients() {
1869 _has_bits_[0] &= ~0x00000004u;
1872 all_clients_ =
false;
1873 clear_has_all_clients();
1877 return all_clients_;
1880 set_has_all_clients();
1881 all_clients_ = value;
1891 return (_has_bits_[0] & 0x00000002u) != 0;
1893 inline void IOData::set_has_index() {
1894 _has_bits_[0] |= 0x00000002u;
1896 inline void IOData::clear_has_index() {
1897 _has_bits_[0] &= ~0x00000002u;
1915 return src_case() == kUdpSrc;
1917 inline void IOData::set_has_udp_src() {
1918 _oneof_case_[0] = kUdpSrc;
1921 if (has_udp_src()) {
1922 delete src_.udp_src_;
1926 inline const ::goby::middleware::protobuf::UDPEndPoint& IOData::_internal_udp_src()
const {
1927 return *src_.udp_src_;
1931 if (has_udp_src()) {
1934 src_.udp_src_ = NULL;
1942 return has_udp_src()
1947 if (!has_udp_src()) {
1950 src_.udp_src_ = CreateMaybeMessage< ::goby::middleware::protobuf::UDPEndPoint >(
1951 GetArenaNoVirtual());
1954 return src_.udp_src_;
1959 return src_case() == kTcpSrc;
1961 inline void IOData::set_has_tcp_src() {
1962 _oneof_case_[0] = kTcpSrc;
1965 if (has_tcp_src()) {
1966 delete src_.tcp_src_;
1970 inline const ::goby::middleware::protobuf::TCPEndPoint& IOData::_internal_tcp_src()
const {
1971 return *src_.tcp_src_;
1975 if (has_tcp_src()) {
1978 src_.tcp_src_ = NULL;
1986 return has_tcp_src()
1991 if (!has_tcp_src()) {
1994 src_.tcp_src_ = CreateMaybeMessage< ::goby::middleware::protobuf::TCPEndPoint >(
1995 GetArenaNoVirtual());
1998 return src_.tcp_src_;
2003 return dest_case() == kUdpDest;
2005 inline void IOData::set_has_udp_dest() {
2006 _oneof_case_[1] = kUdpDest;
2009 if (has_udp_dest()) {
2010 delete dest_.udp_dest_;
2014 inline const ::goby::middleware::protobuf::UDPEndPoint& IOData::_internal_udp_dest()
const {
2015 return *dest_.udp_dest_;
2019 if (has_udp_dest()) {
2022 dest_.udp_dest_ = NULL;
2030 return has_udp_dest()
2035 if (!has_udp_dest()) {
2038 dest_.udp_dest_ = CreateMaybeMessage< ::goby::middleware::protobuf::UDPEndPoint >(
2039 GetArenaNoVirtual());
2042 return dest_.udp_dest_;
2047 return dest_case() == kTcpDest;
2049 inline void IOData::set_has_tcp_dest() {
2050 _oneof_case_[1] = kTcpDest;
2053 if (has_tcp_dest()) {
2054 delete dest_.tcp_dest_;
2058 inline const ::goby::middleware::protobuf::TCPEndPoint& IOData::_internal_tcp_dest()
const {
2059 return *dest_.tcp_dest_;
2063 if (has_tcp_dest()) {
2066 dest_.tcp_dest_ = NULL;
2074 return has_tcp_dest()
2079 if (!has_tcp_dest()) {
2082 dest_.tcp_dest_ = CreateMaybeMessage< ::goby::middleware::protobuf::TCPEndPoint >(
2083 GetArenaNoVirtual());
2086 return dest_.tcp_dest_;
2091 return (_has_bits_[0] & 0x00000001u) != 0;
2093 inline void IOData::set_has_data() {
2094 _has_bits_[0] |= 0x00000001u;
2096 inline void IOData::clear_has_data() {
2097 _has_bits_[0] &= ~0x00000001u;
2105 return data_.GetNoArena();
2121 GOOGLE_DCHECK(value != NULL);
2129 ::std::string(
reinterpret_cast<const char*
>(value), size));
2155 inline bool IOData::has_src()
const {
2156 return src_case() != SRC_NOT_SET;
2158 inline void IOData::clear_has_src() {
2159 _oneof_case_[0] = SRC_NOT_SET;
2161 inline bool IOData::has_dest()
const {
2162 return dest_case() != DEST_NOT_SET;
2164 inline void IOData::clear_has_dest() {
2165 _oneof_case_[1] = DEST_NOT_SET;
2179 return (_has_bits_[0] & 0x00000001u) != 0;
2181 inline void SerialCommand::set_has_index() {
2182 _has_bits_[0] |= 0x00000001u;
2184 inline void SerialCommand::clear_has_index() {
2185 _has_bits_[0] &= ~0x00000001u;
2203 return (_has_bits_[0] & 0x00000002u) != 0;
2205 inline void SerialCommand::set_has_command() {
2206 _has_bits_[0] |= 0x00000002u;
2208 inline void SerialCommand::clear_has_command() {
2209 _has_bits_[0] &= ~0x00000002u;
2213 clear_has_command();
2232 return (_has_bits_[0] & 0x00000004u) != 0;
2234 inline void SerialStatus::set_has_index() {
2235 _has_bits_[0] |= 0x00000004u;
2237 inline void SerialStatus::clear_has_index() {
2238 _has_bits_[0] &= ~0x00000004u;
2256 return (_has_bits_[0] & 0x00000001u) != 0;
2258 inline void SerialStatus::set_has_rts() {
2259 _has_bits_[0] |= 0x00000001u;
2261 inline void SerialStatus::clear_has_rts() {
2262 _has_bits_[0] &= ~0x00000001u;
2280 return (_has_bits_[0] & 0x00000002u) != 0;
2282 inline void SerialStatus::set_has_dtr() {
2283 _has_bits_[0] |= 0x00000002u;
2285 inline void SerialStatus::clear_has_dtr() {
2286 _has_bits_[0] &= ~0x00000002u;
2308 return (_has_bits_[0] & 0x00000010u) != 0;
2310 inline void TCPServerEvent::set_has_index() {
2311 _has_bits_[0] |= 0x00000010u;
2313 inline void TCPServerEvent::clear_has_index() {
2314 _has_bits_[0] &= ~0x00000010u;
2332 return (_has_bits_[0] & 0x00000004u) != 0;
2334 inline void TCPServerEvent::set_has_event() {
2335 _has_bits_[0] |= 0x00000004u;
2337 inline void TCPServerEvent::clear_has_event() {
2338 _has_bits_[0] &= ~0x00000004u;
2357 return (_has_bits_[0] & 0x00000001u) != 0;
2359 inline void TCPServerEvent::set_has_local_endpoint() {
2360 _has_bits_[0] |= 0x00000001u;
2362 inline void TCPServerEvent::clear_has_local_endpoint() {
2363 _has_bits_[0] &= ~0x00000001u;
2366 if (local_endpoint_ != NULL) local_endpoint_->Clear();
2367 clear_has_local_endpoint();
2369 inline const ::goby::middleware::protobuf::TCPEndPoint& TCPServerEvent::_internal_local_endpoint()
const {
2370 return *local_endpoint_;
2373 const ::goby::middleware::protobuf::TCPEndPoint* p = local_endpoint_;
2380 clear_has_local_endpoint();
2382 local_endpoint_ = NULL;
2386 set_has_local_endpoint();
2387 if (local_endpoint_ == NULL) {
2388 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::TCPEndPoint>(GetArenaNoVirtual());
2389 local_endpoint_ = p;
2392 return local_endpoint_;
2396 if (message_arena == NULL) {
2397 delete local_endpoint_;
2399 if (local_endpoint) {
2401 if (message_arena != submessage_arena) {
2402 local_endpoint = ::google::protobuf::internal::GetOwnedMessage(
2403 message_arena, local_endpoint, submessage_arena);
2405 set_has_local_endpoint();
2407 clear_has_local_endpoint();
2409 local_endpoint_ = local_endpoint;
2415 return (_has_bits_[0] & 0x00000002u) != 0;
2417 inline void TCPServerEvent::set_has_remote_endpoint() {
2418 _has_bits_[0] |= 0x00000002u;
2420 inline void TCPServerEvent::clear_has_remote_endpoint() {
2421 _has_bits_[0] &= ~0x00000002u;
2424 if (remote_endpoint_ != NULL) remote_endpoint_->Clear();
2425 clear_has_remote_endpoint();
2427 inline const ::goby::middleware::protobuf::TCPEndPoint& TCPServerEvent::_internal_remote_endpoint()
const {
2428 return *remote_endpoint_;
2431 const ::goby::middleware::protobuf::TCPEndPoint* p = remote_endpoint_;
2438 clear_has_remote_endpoint();
2440 remote_endpoint_ = NULL;
2444 set_has_remote_endpoint();
2445 if (remote_endpoint_ == NULL) {
2446 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::TCPEndPoint>(GetArenaNoVirtual());
2447 remote_endpoint_ = p;
2450 return remote_endpoint_;
2454 if (message_arena == NULL) {
2455 delete remote_endpoint_;
2457 if (remote_endpoint) {
2459 if (message_arena != submessage_arena) {
2460 remote_endpoint = ::google::protobuf::internal::GetOwnedMessage(
2461 message_arena, remote_endpoint, submessage_arena);
2463 set_has_remote_endpoint();
2465 clear_has_remote_endpoint();
2467 remote_endpoint_ = remote_endpoint;
2473 return (_has_bits_[0] & 0x00000008u) != 0;
2475 inline void TCPServerEvent::set_has_number_of_clients() {
2476 _has_bits_[0] |= 0x00000008u;
2478 inline void TCPServerEvent::clear_has_number_of_clients() {
2479 _has_bits_[0] &= ~0x00000008u;
2482 number_of_clients_ = 0;
2483 clear_has_number_of_clients();
2487 return number_of_clients_;
2490 set_has_number_of_clients();
2491 number_of_clients_ = value;
2501 return (_has_bits_[0] & 0x00000004u) != 0;
2503 inline void TCPClientEvent::set_has_index() {
2504 _has_bits_[0] |= 0x00000004u;
2506 inline void TCPClientEvent::clear_has_index() {
2507 _has_bits_[0] &= ~0x00000004u;
2525 return (_has_bits_[0] & 0x00000008u) != 0;
2527 inline void TCPClientEvent::set_has_event() {
2528 _has_bits_[0] |= 0x00000008u;
2530 inline void TCPClientEvent::clear_has_event() {
2531 _has_bits_[0] &= ~0x00000008u;
2550 return (_has_bits_[0] & 0x00000001u) != 0;
2552 inline void TCPClientEvent::set_has_local_endpoint() {
2553 _has_bits_[0] |= 0x00000001u;
2555 inline void TCPClientEvent::clear_has_local_endpoint() {
2556 _has_bits_[0] &= ~0x00000001u;
2559 if (local_endpoint_ != NULL) local_endpoint_->Clear();
2560 clear_has_local_endpoint();
2562 inline const ::goby::middleware::protobuf::TCPEndPoint& TCPClientEvent::_internal_local_endpoint()
const {
2563 return *local_endpoint_;
2566 const ::goby::middleware::protobuf::TCPEndPoint* p = local_endpoint_;
2573 clear_has_local_endpoint();
2575 local_endpoint_ = NULL;
2579 set_has_local_endpoint();
2580 if (local_endpoint_ == NULL) {
2581 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::TCPEndPoint>(GetArenaNoVirtual());
2582 local_endpoint_ = p;
2585 return local_endpoint_;
2589 if (message_arena == NULL) {
2590 delete local_endpoint_;
2592 if (local_endpoint) {
2594 if (message_arena != submessage_arena) {
2595 local_endpoint = ::google::protobuf::internal::GetOwnedMessage(
2596 message_arena, local_endpoint, submessage_arena);
2598 set_has_local_endpoint();
2600 clear_has_local_endpoint();
2602 local_endpoint_ = local_endpoint;
2608 return (_has_bits_[0] & 0x00000002u) != 0;
2610 inline void TCPClientEvent::set_has_remote_endpoint() {
2611 _has_bits_[0] |= 0x00000002u;
2613 inline void TCPClientEvent::clear_has_remote_endpoint() {
2614 _has_bits_[0] &= ~0x00000002u;
2617 if (remote_endpoint_ != NULL) remote_endpoint_->Clear();
2618 clear_has_remote_endpoint();
2620 inline const ::goby::middleware::protobuf::TCPEndPoint& TCPClientEvent::_internal_remote_endpoint()
const {
2621 return *remote_endpoint_;
2624 const ::goby::middleware::protobuf::TCPEndPoint* p = remote_endpoint_;
2631 clear_has_remote_endpoint();
2633 remote_endpoint_ = NULL;
2637 set_has_remote_endpoint();
2638 if (remote_endpoint_ == NULL) {
2639 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::TCPEndPoint>(GetArenaNoVirtual());
2640 remote_endpoint_ = p;
2643 return remote_endpoint_;
2647 if (message_arena == NULL) {
2648 delete remote_endpoint_;
2650 if (remote_endpoint) {
2652 if (message_arena != submessage_arena) {
2653 remote_endpoint = ::google::protobuf::internal::GetOwnedMessage(
2654 message_arena, remote_endpoint, submessage_arena);
2656 set_has_remote_endpoint();
2658 clear_has_remote_endpoint();
2660 remote_endpoint_ = remote_endpoint;
2670 return (_has_bits_[0] & 0x00000002u) != 0;
2672 inline void IOError::set_has_code() {
2673 _has_bits_[0] |= 0x00000002u;
2675 inline void IOError::clear_has_code() {
2676 _has_bits_[0] &= ~0x00000002u;
2695 return (_has_bits_[0] & 0x00000001u) != 0;
2697 inline void IOError::set_has_text() {
2698 _has_bits_[0] |= 0x00000001u;
2700 inline void IOError::clear_has_text() {
2701 _has_bits_[0] &= ~0x00000001u;
2709 return text_.GetNoArena();
2725 GOOGLE_DCHECK(value != NULL);
2733 ::std::string(
reinterpret_cast<const char*
>(value), size));
2765 return (_has_bits_[0] & 0x00000002u) != 0;
2767 inline void IOStatus::set_has_index() {
2768 _has_bits_[0] |= 0x00000002u;
2770 inline void IOStatus::clear_has_index() {
2771 _has_bits_[0] &= ~0x00000002u;
2789 return (_has_bits_[0] & 0x00000004u) != 0;
2791 inline void IOStatus::set_has_state() {
2792 _has_bits_[0] |= 0x00000004u;
2794 inline void IOStatus::clear_has_state() {
2795 _has_bits_[0] &= ~0x00000004u;
2814 return (_has_bits_[0] & 0x00000001u) != 0;
2816 inline void IOStatus::set_has_error() {
2817 _has_bits_[0] |= 0x00000001u;
2819 inline void IOStatus::clear_has_error() {
2820 _has_bits_[0] &= ~0x00000001u;
2823 if (error_ != NULL) error_->Clear();
2826 inline const ::goby::middleware::protobuf::IOError& IOStatus::_internal_error()
const {
2830 const ::goby::middleware::protobuf::IOError* p = error_;
2844 if (error_ == NULL) {
2845 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::IOError>(GetArenaNoVirtual());
2853 if (message_arena == NULL) {
2858 if (message_arena != submessage_arena) {
2859 error = ::google::protobuf::internal::GetOwnedMessage(
2860 message_arena, error, submessage_arena);
2871 #pragma GCC diagnostic pop
2897 namespace protobuf {
2901 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::protobuf::SerialCommand_Command>() {
2906 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::protobuf::TCPServerEvent_Event>() {
2911 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::protobuf::TCPClientEvent_Event>() {
2916 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::protobuf::IOError_ErrorCode>() {
2921 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::protobuf::IOState>() {
2930 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fio_2eproto