4 #ifndef PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto
5 #define PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fnetwork_5fack_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_2facomms_2fprotobuf_2fnetwork_5fack_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[1];
59 class NetworkAckDefaultTypeInternal;
84 return ::google::protobuf::internal::NameOfEnum(
89 return ::google::protobuf::internal::ParseNamedEnum<NetworkAck_AckType>(
108 *
this = ::std::move(from);
112 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
113 if (
this != &from) InternalSwap(&from);
121 return _internal_metadata_.unknown_fields();
124 return _internal_metadata_.mutable_unknown_fields();
127 static const ::google::protobuf::Descriptor*
descriptor();
146 return CreateMaybeMessage<NetworkAck>(NULL);
150 return CreateMaybeMessage<NetworkAck>(arena);
152 void CopyFrom(const ::google::protobuf::Message& from)
final;
153 void MergeFrom(const ::google::protobuf::Message& from)
final;
161 ::
google::protobuf::io::CodedInputStream* input) final;
163 ::
google::protobuf::io::CodedOutputStream* output) const final;
165 bool deterministic, ::
google::protobuf::uint8* target) const final;
171 void SetCachedSize(
int size)
const final;
174 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
177 inline void* MaybeArenaPtr()
const {
200 static inline const ::google::protobuf::EnumDescriptor*
259 void set_has_message_src();
260 void clear_has_message_src();
261 void set_has_message_dest();
262 void clear_has_message_dest();
263 void set_has_message_time();
264 void clear_has_message_time();
265 void set_has_message_dccl_id();
266 void clear_has_message_dccl_id();
267 void set_has_ack_src();
268 void clear_has_ack_src();
269 void set_has_ack_type();
270 void clear_has_ack_type();
273 size_t RequiredFieldsByteSizeFallback()
const;
275 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
276 ::google::protobuf::internal::HasBits<1> _has_bits_;
277 mutable ::google::protobuf::internal::CachedSize _cached_size_;
284 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto::TableStruct;
292 #pragma GCC diagnostic push
293 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
299 return (_has_bits_[0] & 0x00000001u) != 0;
301 inline void NetworkAck::set_has_message_src() {
302 _has_bits_[0] |= 0x00000001u;
304 inline void NetworkAck::clear_has_message_src() {
305 _has_bits_[0] &= ~0x00000001u;
309 clear_has_message_src();
316 set_has_message_src();
317 message_src_ = value;
323 return (_has_bits_[0] & 0x00000002u) != 0;
325 inline void NetworkAck::set_has_message_dest() {
326 _has_bits_[0] |= 0x00000002u;
328 inline void NetworkAck::clear_has_message_dest() {
329 _has_bits_[0] &= ~0x00000002u;
333 clear_has_message_dest();
337 return message_dest_;
340 set_has_message_dest();
341 message_dest_ = value;
347 return (_has_bits_[0] & 0x00000004u) != 0;
349 inline void NetworkAck::set_has_message_time() {
350 _has_bits_[0] |= 0x00000004u;
352 inline void NetworkAck::clear_has_message_time() {
353 _has_bits_[0] &= ~0x00000004u;
356 message_time_ = GOOGLE_ULONGLONG(0);
357 clear_has_message_time();
361 return message_time_;
364 set_has_message_time();
365 message_time_ = value;
371 return (_has_bits_[0] & 0x00000008u) != 0;
373 inline void NetworkAck::set_has_message_dccl_id() {
374 _has_bits_[0] |= 0x00000008u;
376 inline void NetworkAck::clear_has_message_dccl_id() {
377 _has_bits_[0] &= ~0x00000008u;
380 message_dccl_id_ = 0;
381 clear_has_message_dccl_id();
385 return message_dccl_id_;
388 set_has_message_dccl_id();
389 message_dccl_id_ = value;
395 return (_has_bits_[0] & 0x00000010u) != 0;
397 inline void NetworkAck::set_has_ack_src() {
398 _has_bits_[0] |= 0x00000010u;
400 inline void NetworkAck::clear_has_ack_src() {
401 _has_bits_[0] &= ~0x00000010u;
419 return (_has_bits_[0] & 0x00000020u) != 0;
421 inline void NetworkAck::set_has_ack_type() {
422 _has_bits_[0] |= 0x00000020u;
424 inline void NetworkAck::clear_has_ack_type() {
425 _has_bits_[0] &= ~0x00000020u;
429 clear_has_ack_type();
443 #pragma GCC diagnostic pop
457 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::NetworkAck_AckType>() {
466 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto