4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fintermodule_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fintermodule_2eproto
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
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 3021012 < 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_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.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>
34#include "dccl/option_extensions.pb.h"
37#include <boost/units/quantity.hpp>
38#include <boost/units/absolute.hpp>
39#include <boost/units/dimensionless_type.hpp>
40#include <boost/units/make_scaled_unit.hpp>
42#include <google/protobuf/port_def.inc>
43#define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2fintermodule_2eproto
44PROTOBUF_NAMESPACE_OPEN
48PROTOBUF_NAMESPACE_CLOSE
57namespace intermodule {
60struct SubscriptionDefaultTypeInternal;
66PROTOBUF_NAMESPACE_OPEN
68PROTOBUF_NAMESPACE_CLOSE
71namespace intermodule {
87 static_assert(::std::is_same<T, Subscription_Action>::value ||
88 ::std::is_integral<T>::value,
89 "Incorrect type passed to function Subscription_Action_Name.");
90 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
95 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Subscription_Action>(
101 public ::PROTOBUF_NAMESPACE_ID::Message {
105 explicit PROTOBUF_CONSTEXPR
Subscription(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
110 *
this = ::std::move(from);
118 if (
this == &from)
return *
this;
119 if (GetOwningArena() == from.GetOwningArena()
120 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
121 && GetOwningArena() !=
nullptr
132 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
135 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
138 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
161 if (other ==
this)
return;
162 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
163 if (GetOwningArena() !=
nullptr &&
164 GetOwningArena() == other->GetOwningArena()) {
166 if (GetOwningArena() == other->GetOwningArena()) {
170 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
174 if (other ==
this)
return;
175 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
182 return CreateMaybeMessage<Subscription>(arena);
184 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
186 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
188 Subscription::MergeImpl(*
this, from);
191 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
193 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
199 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
203 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
205 void SetCachedSize(
int size)
const final;
209 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
210 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
211 return "goby.middleware.intermodule.protobuf.Subscription";
215 bool is_message_owned =
false);
219 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
241 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
247 static_assert(::std::is_same<T, Action>::value ||
248 ::std::is_integral<T>::value,
249 "Incorrect type passed to function Action_Name.");
252 static inline bool Action_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
267 bool _internal_has_id()
const;
270 const std::string&
id()
const;
271 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
277 const std::string& _internal_id()
const;
278 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_id(
const std::string& value);
279 std::string* _internal_mutable_id();
285 bool _internal_has_key()
const;
288 const ::goby::middleware::protobuf::SerializerTransporterKey&
key()
const;
289 PROTOBUF_NODISCARD ::goby::middleware::protobuf::SerializerTransporterKey*
release_key();
293 const ::goby::middleware::protobuf::SerializerTransporterKey& _internal_key()
const;
303 bool _internal_has_action()
const;
318 size_t RequiredFieldsByteSizeFallback()
const;
320 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
321 typedef void InternalArenaConstructable_;
322 typedef void DestructorSkippable_;
324 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
325 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
326 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_;
331 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fintermodule_2eproto;
339 #pragma GCC diagnostic push
340 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
345inline bool Subscription::_internal_has_id()
const {
346 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
350 return _internal_has_id();
353 _impl_.id_.ClearToEmpty();
354 _impl_._has_bits_[0] &= ~0x00000001u;
358 return _internal_id();
360template <
typename ArgT0,
typename... ArgT>
361inline PROTOBUF_ALWAYS_INLINE
363 _impl_._has_bits_[0] |= 0x00000001u;
364 _impl_.id_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
368 std::string* _s = _internal_mutable_id();
372inline const std::string& Subscription::_internal_id()
const {
375inline void Subscription::_internal_set_id(
const std::string& value) {
376 _impl_._has_bits_[0] |= 0x00000001u;
377 _impl_.id_.Set(value, GetArenaForAllocation());
379inline std::string* Subscription::_internal_mutable_id() {
380 _impl_._has_bits_[0] |= 0x00000001u;
381 return _impl_.id_.Mutable(GetArenaForAllocation());
385 if (!_internal_has_id()) {
388 _impl_._has_bits_[0] &= ~0x00000001u;
389 auto* p =
_impl_.id_.Release();
390#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
391 if (
_impl_.id_.IsDefault()) {
392 _impl_.id_.Set(
"", GetArenaForAllocation());
399 _impl_._has_bits_[0] |= 0x00000001u;
401 _impl_._has_bits_[0] &= ~0x00000001u;
403 _impl_.id_.SetAllocated(
id, GetArenaForAllocation());
404#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
405 if (
_impl_.id_.IsDefault()) {
406 _impl_.id_.Set(
"", GetArenaForAllocation());
413inline bool Subscription::_internal_has_key()
const {
414 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
415 PROTOBUF_ASSUME(!value ||
_impl_.key_ !=
nullptr);
419 return _internal_has_key();
421inline const ::goby::middleware::protobuf::SerializerTransporterKey& Subscription::_internal_key()
const {
422 const ::goby::middleware::protobuf::SerializerTransporterKey* p =
_impl_.key_;
428 return _internal_key();
432 if (GetArenaForAllocation() ==
nullptr) {
433 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.key_);
437 _impl_._has_bits_[0] |= 0x00000002u;
439 _impl_._has_bits_[0] &= ~0x00000002u;
444 _impl_._has_bits_[0] &= ~0x00000002u;
447#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
448 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
449 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
450 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
452 if (GetArenaForAllocation() !=
nullptr) {
453 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
460 _impl_._has_bits_[0] &= ~0x00000002u;
465inline ::goby::middleware::protobuf::SerializerTransporterKey* Subscription::_internal_mutable_key() {
466 _impl_._has_bits_[0] |= 0x00000002u;
467 if (
_impl_.key_ ==
nullptr) {
479 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
480 if (message_arena ==
nullptr) {
481 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.key_);
484 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
485 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
486 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
key));
487 if (message_arena != submessage_arena) {
488 key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
489 message_arena,
key, submessage_arena);
491 _impl_._has_bits_[0] |= 0x00000002u;
493 _impl_._has_bits_[0] &= ~0x00000002u;
500inline bool Subscription::_internal_has_action()
const {
501 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
505 return _internal_has_action();
509 _impl_._has_bits_[0] &= ~0x00000004u;
511inline ::goby::middleware::intermodule::protobuf::Subscription_Action Subscription::_internal_action()
const {
516 return _internal_action();
520 _impl_._has_bits_[0] |= 0x00000004u;
524 _internal_set_action(value);
529 #pragma GCC diagnostic pop
539PROTOBUF_NAMESPACE_OPEN
544 return ::goby::middleware::intermodule::protobuf::Subscription_Action_descriptor();
547PROTOBUF_NAMESPACE_CLOSE
551#include <google/protobuf/port_undef.inc>
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void unsafe_arena_set_allocated_key(::goby::middleware::protobuf::SerializerTransporterKey *key)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static constexpr Action UNSUBSCRIBE_ALL
void set_allocated_id(std::string *id)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const std::string & Action_Name(T enum_t_value)
PROTOBUF_NODISCARD std::string * release_id()
int GetCachedSize() const final
static constexpr Action Action_MIN
size_t ByteSizeLong() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
::goby::middleware::protobuf::SerializerTransporterKey * mutable_key()
void MergeFrom(const Subscription &from)
Subscription * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
static constexpr int Action_ARRAYSIZE
static const ClassData _class_data_
std::string * mutable_id()
static const Subscription * internal_default_instance()
static bool Action_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Action *value)
static constexpr Action SUBSCRIBE
static constexpr int kIndexInFileMessages
void set_action(::goby::middleware::intermodule::protobuf::Subscription_Action value)
::goby::middleware::intermodule::protobuf::Subscription_Action action() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Subscription & operator=(Subscription &&from) noexcept
friend void swap(Subscription &a, Subscription &b)
static const Subscription & default_instance()
const ::goby::middleware::protobuf::SerializerTransporterKey & key() const
PROTOBUF_CONSTEXPR Subscription(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void CopyFrom(const Subscription &from)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
Subscription & operator=(const Subscription &from)
Subscription(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void Swap(Subscription *other)
bool IsInitialized() const final
const std::string & id() const
PROTOBUF_NODISCARD::goby::middleware::protobuf::SerializerTransporterKey * release_key()
void set_allocated_key(::goby::middleware::protobuf::SerializerTransporterKey *key)
void UnsafeArenaSwap(Subscription *other)
static bool Action_IsValid(int value)
void set_id(ArgT0 &&arg0, ArgT... args)
::goby::middleware::protobuf::SerializerTransporterKey * unsafe_arena_release_key()
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Action_descriptor()
static constexpr Action UNSUBSCRIBE
Subscription(Subscription &&from) noexcept
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static constexpr Action Action_MAX
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Subscription(const Subscription &from)
const EnumDescriptor * GetEnumDescriptor< ::goby::middleware::intermodule::protobuf::Subscription_Action >()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fintermodule_2eproto
@ Subscription_Action_UNSUBSCRIBE_ALL
@ Subscription_Action_SUBSCRIBE
@ Subscription_Action_UNSUBSCRIBE
SubscriptionDefaultTypeInternal _Subscription_default_instance_
bool Subscription_Action_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Subscription_Action *value)
constexpr Subscription_Action Subscription_Action_Action_MIN
constexpr int Subscription_Action_Action_ARRAYSIZE
bool Subscription_Action_IsValid(int value)
constexpr Subscription_Action Subscription_Action_Action_MAX
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Subscription_Action_descriptor()
const std::string & Subscription_Action_Name(T enum_t_value)
SerializerTransporterKeyDefaultTypeInternal _SerializerTransporterKey_default_instance_
The global namespace for the Goby project.
::goby::middleware::protobuf::SerializerTransporterKey * Arena::CreateMaybeMessage<::goby::middleware::protobuf::SerializerTransporterKey >(Arena *)
static const uint32_t offsets[]