4 #ifndef PROTOBUF_INCLUDED_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto
5 #define PROTOBUF_INCLUDED_goby_2futil_2fprotobuf_2flinebasedcomms_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 <boost/units/quantity.hpp>
35 #include <boost/units/absolute.hpp>
36 #include <boost/units/dimensionless_type.hpp>
37 #include <boost/units/make_scaled_unit.hpp>
39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto
44 static const ::google::protobuf::internal::ParseTableField
entries[];
45 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
46 static const ::google::protobuf::internal::ParseTable
schema[1];
57 class DatagramDefaultTypeInternal;
87 *
this = ::std::move(from);
91 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
92 if (
this != &from) InternalSwap(&from);
100 return _internal_metadata_.unknown_fields();
103 return _internal_metadata_.mutable_unknown_fields();
106 static const ::google::protobuf::Descriptor*
descriptor();
111 return reinterpret_cast<const Datagram*
>(
125 return CreateMaybeMessage<Datagram>(NULL);
129 return CreateMaybeMessage<Datagram>(arena);
131 void CopyFrom(const ::google::protobuf::Message& from)
final;
132 void MergeFrom(const ::google::protobuf::Message& from)
final;
140 ::
google::protobuf::io::CodedInputStream* input) final;
142 ::
google::protobuf::io::CodedOutputStream* output) const final;
144 bool deterministic, ::
google::protobuf::uint8* target) const final;
150 void SetCachedSize(
int size)
const final;
153 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
156 inline void* MaybeArenaPtr()
const {
171 const ::std::
string&
data() const;
172 void set_data(const ::std::
string& value);
174 void set_data(::std::string&& value);
177 void set_data(
const char* value,
size_t size);
186 const ::std::string&
src()
const;
187 void set_src(const ::std::string& value);
189 void set_src(::std::string&& value);
191 void set_src(
const char* value);
192 void set_src(
const char* value,
size_t size);
201 const ::std::string&
dest()
const;
202 void set_dest(const ::std::string& value);
204 void set_dest(::std::string&& value);
207 void set_dest(
const char* value,
size_t size);
222 void clear_has_data();
224 void clear_has_src();
226 void clear_has_dest();
228 void clear_has_time();
230 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
231 ::google::protobuf::internal::HasBits<1> _has_bits_;
232 mutable ::google::protobuf::internal::CachedSize _cached_size_;
233 ::google::protobuf::internal::ArenaStringPtr data_;
234 ::google::protobuf::internal::ArenaStringPtr src_;
235 ::google::protobuf::internal::ArenaStringPtr dest_;
237 friend struct ::protobuf_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto::TableStruct;
245 #pragma GCC diagnostic push
246 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
252 return (_has_bits_[0] & 0x00000001u) != 0;
254 inline void Datagram::set_has_data() {
255 _has_bits_[0] |= 0x00000001u;
257 inline void Datagram::clear_has_data() {
258 _has_bits_[0] &= ~0x00000001u;
266 return data_.GetNoArena();
282 GOOGLE_DCHECK(value != NULL);
290 ::std::string(
reinterpret_cast<const char*
>(value), size));
318 return (_has_bits_[0] & 0x00000002u) != 0;
320 inline void Datagram::set_has_src() {
321 _has_bits_[0] |= 0x00000002u;
323 inline void Datagram::clear_has_src() {
324 _has_bits_[0] &= ~0x00000002u;
332 return src_.GetNoArena();
348 GOOGLE_DCHECK(value != NULL);
356 ::std::string(
reinterpret_cast<const char*
>(value), size));
384 return (_has_bits_[0] & 0x00000004u) != 0;
386 inline void Datagram::set_has_dest() {
387 _has_bits_[0] |= 0x00000004u;
389 inline void Datagram::clear_has_dest() {
390 _has_bits_[0] &= ~0x00000004u;
398 return dest_.GetNoArena();
414 GOOGLE_DCHECK(value != NULL);
422 ::std::string(
reinterpret_cast<const char*
>(value), size));
450 return (_has_bits_[0] & 0x00000008u) != 0;
452 inline void Datagram::set_has_time() {
453 _has_bits_[0] |= 0x00000008u;
455 inline void Datagram::clear_has_time() {
456 _has_bits_[0] &= ~0x00000008u;
473 #pragma GCC diagnostic pop
484 #endif // PROTOBUF_INCLUDED_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto