4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
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 3012004 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
37 #include "dccl/option_extensions.pb.h"
38 #include <boost/units/quantity.hpp>
39 #include <boost/units/absolute.hpp>
40 #include <boost/units/dimensionless_type.hpp>
41 #include <boost/units/make_scaled_unit.hpp>
43 #include <boost/units/systems/si.hpp>
45 #include <google/protobuf/port_def.inc>
46 #define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto
47 PROTOBUF_NAMESPACE_OPEN
51 PROTOBUF_NAMESPACE_CLOSE
55 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
57 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
59 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
61 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
71 class HeaderDefaultTypeInternal;
77 PROTOBUF_NAMESPACE_OPEN
78 template<> ::goby::test::acomms::protobuf::Header* Arena::CreateMaybeMessage<::goby::test::acomms::protobuf::Header>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
98 static_assert(::std::is_same<T, Header_PublishDestination>::value ||
99 ::std::is_integral<T>::value,
100 "Incorrect type passed to function Header_PublishDestination_Name.");
101 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
106 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Header_PublishDestination>(
112 public ::PROTOBUF_NAMESPACE_ID::Message {
120 *
this = ::std::move(from);
128 if (GetArena() == from.GetArena()) {
129 if (
this != &from) InternalSwap(&from);
137 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
140 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
143 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
144 return GetDescriptor();
147 return GetMetadataStatic().descriptor;
150 return GetMetadataStatic().reflection;
156 return reinterpret_cast<const Header*
>(
159 static constexpr
int kIndexInFileMessages =
162 friend void swap(Header& a, Header& b) {
165 inline void Swap(Header* other) {
166 if (other ==
this)
return;
167 if (GetArena() == other->GetArena()) {
170 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
174 if (other ==
this)
return;
175 GOOGLE_DCHECK(GetArena() == other->GetArena());
181 inline Header*
New() const final {
182 return CreateMaybeMessage<Header>(
nullptr);
185 Header*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
186 return CreateMaybeMessage<Header>(arena);
188 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
189 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
192 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
193 bool IsInitialized() const final;
196 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
197 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
198 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
199 int GetCachedSize() const final {
return _cached_size_.Get(); }
202 inline void SharedCtor();
203 inline void SharedDtor();
204 void SetCachedSize(
int size)
const final;
205 void InternalSwap(Header* other);
206 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
207 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
208 return "goby.test.acomms.protobuf.Header";
211 explicit Header(::PROTOBUF_NAMESPACE_ID::Arena* arena);
213 static void ArenaDtor(
void*
object);
214 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
219 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
242 static constexpr
int PublishDestination_ARRAYSIZE =
244 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
250 static_assert(::std::is_same<T, PublishDestination>::value ||
251 ::std::is_integral<T>::value,
252 "Incorrect type passed to function PublishDestination_Name.");
263 kSourceAppFieldNumber = 12,
264 kTimeFieldNumber = 10,
265 kSourcePlatformFieldNumber = 11,
266 kDestPlatformFieldNumber = 14,
267 kDestTypeFieldNumber = 13,
272 bool _internal_has_source_app()
const;
283 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
284 " string fields are deprecated and will be removed in a"
286 std::
string* unsafe_arena_release_source_app();
287 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
288 "
string fields are deprecated and will be removed in a"
290 void unsafe_arena_set_allocated_source_app(
291 std::
string* source_app);
293 const std::
string& _internal_source_app() const;
294 void _internal_set_source_app(const std::
string& value);
295 std::
string* _internal_mutable_source_app();
299 bool has_time() const;
301 bool _internal_has_time() const;
305 void set_time(::PROTOBUF_NAMESPACE_ID::
uint64 value);
307 ::PROTOBUF_NAMESPACE_ID::
uint64 _internal_time() const;
308 void _internal_set_time(::PROTOBUF_NAMESPACE_ID::
uint64 value);
312 bool has_source_platform() const;
314 bool _internal_has_source_platform() const;
316 void clear_source_platform();
317 ::PROTOBUF_NAMESPACE_ID::
uint32 source_platform() const;
318 void set_source_platform(::PROTOBUF_NAMESPACE_ID::
uint32 value);
320 ::PROTOBUF_NAMESPACE_ID::
uint32 _internal_source_platform() const;
321 void _internal_set_source_platform(::PROTOBUF_NAMESPACE_ID::
uint32 value);
325 bool has_dest_platform() const;
327 bool _internal_has_dest_platform() const;
329 void clear_dest_platform();
330 ::PROTOBUF_NAMESPACE_ID::
uint32 dest_platform() const;
331 void set_dest_platform(::PROTOBUF_NAMESPACE_ID::
uint32 value);
333 ::PROTOBUF_NAMESPACE_ID::
uint32 _internal_dest_platform() const;
334 void _internal_set_dest_platform(::PROTOBUF_NAMESPACE_ID::
uint32 value);
338 bool has_dest_type() const;
340 bool _internal_has_dest_type() const;
342 void clear_dest_type();
354 template<typename Quantity >
355 void set_time_with_units(Quantity value_w_units)
356 { set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
358 template<
typename Quantity >
363 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
370 size_t RequiredFieldsByteSizeFallback()
const;
372 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
373 typedef void InternalArenaConstructable_;
374 typedef void DestructorSkippable_;
375 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
376 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
377 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_app_;
382 friend struct ::TableStruct_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto;
390 #pragma GCC diagnostic push
391 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
396 inline bool Header::_internal_has_time()
const {
397 bool value = (_has_bits_[0] & 0x00000002u) != 0;
400 inline bool Header::has_time()
const {
401 return _internal_has_time();
403 inline void Header::clear_time() {
404 time_ = PROTOBUF_ULONGLONG(0);
405 _has_bits_[0] &= ~0x00000002u;
412 return _internal_time();
415 _has_bits_[0] |= 0x00000002u;
419 _internal_set_time(value);
424 inline bool Header::_internal_has_source_platform()
const {
425 bool value = (_has_bits_[0] & 0x00000004u) != 0;
428 inline bool Header::has_source_platform()
const {
429 return _internal_has_source_platform();
431 inline void Header::clear_source_platform() {
432 source_platform_ = 0u;
433 _has_bits_[0] &= ~0x00000004u;
436 return source_platform_;
440 return _internal_source_platform();
443 _has_bits_[0] |= 0x00000004u;
444 source_platform_ =
value;
447 _internal_set_source_platform(value);
452 inline bool Header::_internal_has_source_app()
const {
453 bool value = (_has_bits_[0] & 0x00000001u) != 0;
456 inline bool Header::has_source_app()
const {
457 return _internal_has_source_app();
459 inline void Header::clear_source_app() {
461 _has_bits_[0] &= ~0x00000001u;
463 inline const std::string& Header::source_app()
const {
465 return _internal_source_app();
467 inline void Header::set_source_app(
const std::string& value) {
468 _internal_set_source_app(value);
471 inline std::string* Header::mutable_source_app() {
473 return _internal_mutable_source_app();
475 inline const std::string& Header::_internal_source_app()
const {
476 return source_app_.Get();
478 inline void Header::_internal_set_source_app(
const std::string& value) {
479 _has_bits_[0] |= 0x00000001u;
482 inline void Header::set_source_app(std::string&& value) {
483 _has_bits_[0] |= 0x00000001u;
488 inline void Header::set_source_app(
const char* value) {
489 GOOGLE_DCHECK(value !=
nullptr);
490 _has_bits_[0] |= 0x00000001u;
495 inline void Header::set_source_app(
const char* value,
497 _has_bits_[0] |= 0x00000001u;
499 reinterpret_cast<const char*
>(value), size), GetArena());
502 inline std::string* Header::_internal_mutable_source_app() {
503 _has_bits_[0] |= 0x00000001u;
506 inline std::string* Header::release_source_app() {
508 if (!_internal_has_source_app()) {
511 _has_bits_[0] &= ~0x00000001u;
514 inline void Header::set_allocated_source_app(std::string* source_app) {
515 if (source_app !=
nullptr) {
516 _has_bits_[0] |= 0x00000001u;
518 _has_bits_[0] &= ~0x00000001u;
524 inline std::string* Header::unsafe_arena_release_source_app() {
526 GOOGLE_DCHECK(GetArena() !=
nullptr);
527 _has_bits_[0] &= ~0x00000001u;
531 inline void Header::unsafe_arena_set_allocated_source_app(
532 std::string* source_app) {
533 GOOGLE_DCHECK(GetArena() !=
nullptr);
534 if (source_app !=
nullptr) {
535 _has_bits_[0] |= 0x00000001u;
537 _has_bits_[0] &= ~0x00000001u;
540 source_app, GetArena());
545 inline bool Header::_internal_has_dest_type()
const {
546 bool value = (_has_bits_[0] & 0x00000010u) != 0;
549 inline bool Header::has_dest_type()
const {
550 return _internal_has_dest_type();
552 inline void Header::clear_dest_type() {
554 _has_bits_[0] &= ~0x00000010u;
561 return _internal_dest_type();
565 _has_bits_[0] |= 0x00000010u;
569 _internal_set_dest_type(value);
574 inline bool Header::_internal_has_dest_platform()
const {
575 bool value = (_has_bits_[0] & 0x00000008u) != 0;
578 inline bool Header::has_dest_platform()
const {
579 return _internal_has_dest_platform();
581 inline void Header::clear_dest_platform() {
583 _has_bits_[0] &= ~0x00000008u;
586 return dest_platform_;
590 return _internal_dest_platform();
593 _has_bits_[0] |= 0x00000008u;
594 dest_platform_ =
value;
597 _internal_set_dest_platform(value);
602 #pragma GCC diagnostic pop
612 PROTOBUF_NAMESPACE_OPEN
616 inline const EnumDescriptor* GetEnumDescriptor< ::goby::test::acomms::protobuf::Header_PublishDestination>() {
620 PROTOBUF_NAMESPACE_CLOSE
624 #include <google/protobuf/port_undef.inc>
void set_source_app(const char *value, size_t size)
void set_source_app(std::string &&value)
Header_PublishDestination PublishDestination
void UnsafeArenaSwap(Header *other)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * PublishDestination_descriptor()
static const std::string & PublishDestination_Name(T enum_t_value)
void set_allocated_source_app(std::string *source_app)
static void InitAsDefaultInstance()
static bool PublishDestination_IsValid(int value)
Header & operator=(Header &&from) noexcept
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const Header * internal_default_instance()
Header(::PROTOBUF_NAMESPACE_ID::Arena *arena)
bool has_source_app() const
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Header * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void set_source_app(const std::string &value)
std::string * mutable_source_app()
friend void swap(Header &a, Header &b)
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
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type time_dimension
Header(const Header &from)
Header & operator=(const Header &from)
static const Header & default_instance()
boost::units::quantity< time_unit, google::protobuf::uint64 > time_with_units() const
void CopyFrom(const Header &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Header(Header &&from) noexcept
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void set_source_app(const char *value)
std::string * release_source_app()
static bool PublishDestination_Parse(const std::string &name, PublishDestination *value)
Header * New() const final
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Quantity time_with_units() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const std::string & source_app() const
void MergeFrom(const Header &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
unit< time_dimension, si::system > time
@ value
the parser finished reading a JSON value
HeaderDefaultTypeInternal _Header_default_instance_
constexpr Header_PublishDestination Header_PublishDestination_PublishDestination_MAX
Header_PublishDestination
@ Header_PublishDestination_PUBLISH_OTHER
@ Header_PublishDestination_PUBLISH_SELF
@ Header_PublishDestination_PUBLISH_ALL
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Header_PublishDestination_descriptor()
constexpr Header_PublishDestination Header_PublishDestination_PublishDestination_MIN
bool Header_PublishDestination_IsValid(int value)
bool Header_PublishDestination_Parse(const std::string &name, Header_PublishDestination *value)
const std::string & Header_PublishDestination_Name(T enum_t_value)
constexpr int Header_PublishDestination_PublishDestination_ARRAYSIZE
boost::units::make_system< boost::units::angle::revolution_base_unit, boost::units::metric::minute_base_unit >::type system
The global namespace for the Goby project.
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
type
Generic JSON types used in JWTs.