4 #ifndef PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto
5 #define PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
34 #include "dccl/option_extensions.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_goby_2facomms_2fprotobuf_2fmosh_5fpacket_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[1];
58 class MoshPacketDefaultTypeInternal;
88 *
this = ::std::move(from);
92 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
93 if (
this != &from) InternalSwap(&from);
101 return _internal_metadata_.unknown_fields();
104 return _internal_metadata_.mutable_unknown_fields();
107 static const ::google::protobuf::Descriptor*
descriptor();
126 return CreateMaybeMessage<MoshPacket>(NULL);
130 return CreateMaybeMessage<MoshPacket>(arena);
132 void CopyFrom(const ::google::protobuf::Message& from)
final;
133 void MergeFrom(const ::google::protobuf::Message& from)
final;
141 ::
google::protobuf::io::CodedInputStream* input) final;
143 ::
google::protobuf::io::CodedOutputStream* output) const final;
145 bool deterministic, ::
google::protobuf::uint8* target) const final;
151 void SetCachedSize(
int size)
const final;
154 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
157 inline void* MaybeArenaPtr()
const {
172 const ::std::
string&
fragment() const;
222 void clear_has_src();
224 void clear_has_dest();
225 void set_has_frag_num();
226 void clear_has_frag_num();
227 void set_has_frag_len();
228 void clear_has_frag_len();
229 void set_has_is_last_frag();
230 void clear_has_is_last_frag();
231 void set_has_fragment();
232 void clear_has_fragment();
235 size_t RequiredFieldsByteSizeFallback()
const;
237 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
238 ::google::protobuf::internal::HasBits<1> _has_bits_;
239 mutable ::google::protobuf::internal::CachedSize _cached_size_;
240 ::google::protobuf::internal::ArenaStringPtr fragment_;
246 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto::TableStruct;
254 #pragma GCC diagnostic push
255 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
261 return (_has_bits_[0] & 0x00000002u) != 0;
263 inline void MoshPacket::set_has_src() {
264 _has_bits_[0] |= 0x00000002u;
266 inline void MoshPacket::clear_has_src() {
267 _has_bits_[0] &= ~0x00000002u;
285 return (_has_bits_[0] & 0x00000004u) != 0;
287 inline void MoshPacket::set_has_dest() {
288 _has_bits_[0] |= 0x00000004u;
290 inline void MoshPacket::clear_has_dest() {
291 _has_bits_[0] &= ~0x00000004u;
309 return (_has_bits_[0] & 0x00000008u) != 0;
311 inline void MoshPacket::set_has_frag_num() {
312 _has_bits_[0] |= 0x00000008u;
314 inline void MoshPacket::clear_has_frag_num() {
315 _has_bits_[0] &= ~0x00000008u;
319 clear_has_frag_num();
333 return (_has_bits_[0] & 0x00000010u) != 0;
335 inline void MoshPacket::set_has_frag_len() {
336 _has_bits_[0] |= 0x00000010u;
338 inline void MoshPacket::clear_has_frag_len() {
339 _has_bits_[0] &= ~0x00000010u;
343 clear_has_frag_len();
357 return (_has_bits_[0] & 0x00000020u) != 0;
359 inline void MoshPacket::set_has_is_last_frag() {
360 _has_bits_[0] |= 0x00000020u;
362 inline void MoshPacket::clear_has_is_last_frag() {
363 _has_bits_[0] &= ~0x00000020u;
366 is_last_frag_ =
false;
367 clear_has_is_last_frag();
371 return is_last_frag_;
374 set_has_is_last_frag();
375 is_last_frag_ = value;
381 return (_has_bits_[0] & 0x00000001u) != 0;
383 inline void MoshPacket::set_has_fragment() {
384 _has_bits_[0] |= 0x00000001u;
386 inline void MoshPacket::clear_has_fragment() {
387 _has_bits_[0] &= ~0x00000001u;
391 clear_has_fragment();
395 return fragment_.GetNoArena();
405 fragment_.SetNoArena(
411 GOOGLE_DCHECK(value != NULL);
419 ::std::string(
reinterpret_cast<const char*
>(value), size));
432 clear_has_fragment();
439 clear_has_fragment();
446 #pragma GCC diagnostic pop
457 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto