4 #ifndef PROTOBUF_INCLUDED_goby_2ftest_2facomms_2froute1_2ftest_2eproto
5 #define PROTOBUF_INCLUDED_goby_2ftest_2facomms_2froute1_2ftest_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>
33 #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 #include <boost/units/systems/si.hpp>
42 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2ftest_2facomms_2froute1_2ftest_2eproto
47 static const ::google::protobuf::internal::ParseTableField
entries[];
48 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
49 static const ::google::protobuf::internal::ParseTable
schema[1];
61 class RouteMessageDefaultTypeInternal;
93 *
this = ::std::move(from);
97 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
98 if (
this != &from) InternalSwap(&from);
106 return _internal_metadata_.unknown_fields();
109 return _internal_metadata_.mutable_unknown_fields();
112 static const ::google::protobuf::Descriptor*
descriptor();
131 return CreateMaybeMessage<RouteMessage>(NULL);
135 return CreateMaybeMessage<RouteMessage>(arena);
137 void CopyFrom(const ::google::protobuf::Message& from)
final;
138 void MergeFrom(const ::google::protobuf::Message& from)
final;
146 ::
google::protobuf::io::CodedInputStream* input) final;
148 ::
google::protobuf::io::CodedOutputStream* output) const final;
150 bool deterministic, ::
google::protobuf::uint8* target) const final;
156 void SetCachedSize(
int size)
const final;
159 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
162 inline void* MaybeArenaPtr()
const {
177 const ::std::
string&
telegram() const;
212 typedef boost::units::make_scaled_unit<boost::units::unit<time_dimension,boost::units::si::system> , boost::units::scale<10, boost::units::static_rational<-6> > >
::type time_unit;
214 template<
typename Quantity >
216 {
set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
218 template<
typename Quantity >
223 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
228 void clear_has_time();
230 void clear_has_src();
232 void clear_has_dest();
233 void set_has_telegram();
234 void clear_has_telegram();
237 size_t RequiredFieldsByteSizeFallback()
const;
239 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
240 ::google::protobuf::internal::HasBits<1> _has_bits_;
241 mutable ::google::protobuf::internal::CachedSize _cached_size_;
242 ::google::protobuf::internal::ArenaStringPtr telegram_;
246 friend struct ::protobuf_goby_2ftest_2facomms_2froute1_2ftest_2eproto::TableStruct;
254 #pragma GCC diagnostic push
255 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
261 return (_has_bits_[0] & 0x00000002u) != 0;
263 inline void RouteMessage::set_has_time() {
264 _has_bits_[0] |= 0x00000002u;
266 inline void RouteMessage::clear_has_time() {
267 _has_bits_[0] &= ~0x00000002u;
270 time_ = GOOGLE_ULONGLONG(0);
285 return (_has_bits_[0] & 0x00000004u) != 0;
287 inline void RouteMessage::set_has_src() {
288 _has_bits_[0] |= 0x00000004u;
290 inline void RouteMessage::clear_has_src() {
291 _has_bits_[0] &= ~0x00000004u;
309 return (_has_bits_[0] & 0x00000008u) != 0;
311 inline void RouteMessage::set_has_dest() {
312 _has_bits_[0] |= 0x00000008u;
314 inline void RouteMessage::clear_has_dest() {
315 _has_bits_[0] &= ~0x00000008u;
333 return (_has_bits_[0] & 0x00000001u) != 0;
335 inline void RouteMessage::set_has_telegram() {
336 _has_bits_[0] |= 0x00000001u;
338 inline void RouteMessage::clear_has_telegram() {
339 _has_bits_[0] &= ~0x00000001u;
343 clear_has_telegram();
347 return telegram_.GetNoArena();
357 telegram_.SetNoArena(
363 GOOGLE_DCHECK(value != NULL);
371 ::std::string(
reinterpret_cast<const char*
>(value), size));
384 clear_has_telegram();
391 clear_has_telegram();
398 #pragma GCC diagnostic pop
410 #endif // PROTOBUF_INCLUDED_goby_2ftest_2facomms_2froute1_2ftest_2eproto