4 #ifndef PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto
5 #define PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2fheader_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 #include <boost/units/systems/si.hpp>
43 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto
48 static const ::google::protobuf::internal::ParseTableField
entries[];
49 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
50 static const ::google::protobuf::internal::ParseTable
schema[1];
62 class HeaderDefaultTypeInternal;
90 return ::google::protobuf::internal::NameOfEnum(
95 return ::google::protobuf::internal::ParseNamedEnum<Header_PublishDestination>(
114 *
this = ::std::move(from);
118 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
119 if (
this != &from) InternalSwap(&from);
127 return _internal_metadata_.unknown_fields();
130 return _internal_metadata_.mutable_unknown_fields();
133 static const ::google::protobuf::Descriptor*
descriptor();
138 return reinterpret_cast<const Header*
>(
152 return CreateMaybeMessage<Header>(NULL);
156 return CreateMaybeMessage<Header>(arena);
158 void CopyFrom(const ::google::protobuf::Message& from)
final;
159 void MergeFrom(const ::google::protobuf::Message& from)
final;
167 ::
google::protobuf::io::CodedInputStream* input) final;
169 ::
google::protobuf::io::CodedOutputStream* output) const final;
171 bool deterministic, ::
google::protobuf::uint8* target) const final;
177 void SetCachedSize(
int size)
const final;
178 void InternalSwap(
Header* other);
180 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
183 inline void* MaybeArenaPtr()
const {
208 static inline const ::google::protobuf::EnumDescriptor*
267 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;
269 template<
typename Quantity >
271 {
set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
273 template<
typename Quantity >
278 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
283 void clear_has_time();
284 void set_has_source_platform();
285 void clear_has_source_platform();
286 void set_has_source_app();
287 void clear_has_source_app();
288 void set_has_dest_type();
289 void clear_has_dest_type();
290 void set_has_dest_platform();
291 void clear_has_dest_platform();
294 size_t RequiredFieldsByteSizeFallback()
const;
296 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
297 ::google::protobuf::internal::HasBits<1> _has_bits_;
298 mutable ::google::protobuf::internal::CachedSize _cached_size_;
299 ::google::protobuf::internal::ArenaStringPtr source_app_;
304 friend struct ::protobuf_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto::TableStruct;
312 #pragma GCC diagnostic push
313 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
319 return (_has_bits_[0] & 0x00000002u) != 0;
321 inline void Header::set_has_time() {
322 _has_bits_[0] |= 0x00000002u;
324 inline void Header::clear_has_time() {
325 _has_bits_[0] &= ~0x00000002u;
328 time_ = GOOGLE_ULONGLONG(0);
343 return (_has_bits_[0] & 0x00000004u) != 0;
345 inline void Header::set_has_source_platform() {
346 _has_bits_[0] |= 0x00000004u;
348 inline void Header::clear_has_source_platform() {
349 _has_bits_[0] &= ~0x00000004u;
352 source_platform_ = 0u;
353 clear_has_source_platform();
357 return source_platform_;
360 set_has_source_platform();
361 source_platform_ = value;
367 return (_has_bits_[0] & 0x00000001u) != 0;
369 inline void Header::set_has_source_app() {
370 _has_bits_[0] |= 0x00000001u;
372 inline void Header::clear_has_source_app() {
373 _has_bits_[0] &= ~0x00000001u;
377 clear_has_source_app();
381 return source_app_.GetNoArena();
384 set_has_source_app();
390 set_has_source_app();
391 source_app_.SetNoArena(
397 GOOGLE_DCHECK(value != NULL);
398 set_has_source_app();
403 set_has_source_app();
405 ::std::string(
reinterpret_cast<const char*
>(value), size));
409 set_has_source_app();
418 clear_has_source_app();
423 set_has_source_app();
425 clear_has_source_app();
433 return (_has_bits_[0] & 0x00000010u) != 0;
435 inline void Header::set_has_dest_type() {
436 _has_bits_[0] |= 0x00000010u;
438 inline void Header::clear_has_dest_type() {
439 _has_bits_[0] &= ~0x00000010u;
443 clear_has_dest_type();
458 return (_has_bits_[0] & 0x00000008u) != 0;
460 inline void Header::set_has_dest_platform() {
461 _has_bits_[0] |= 0x00000008u;
463 inline void Header::clear_has_dest_platform() {
464 _has_bits_[0] &= ~0x00000008u;
468 clear_has_dest_platform();
472 return dest_platform_;
475 set_has_dest_platform();
476 dest_platform_ = value;
481 #pragma GCC diagnostic pop
496 inline const EnumDescriptor* GetEnumDescriptor< ::goby::test::acomms::protobuf::Header_PublishDestination>() {
505 #endif // PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto