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>
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 <google/protobuf/port_def.inc>
41#define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2fintermodule_2eproto
42PROTOBUF_NAMESPACE_OPEN
46PROTOBUF_NAMESPACE_CLOSE
55namespace intermodule {
58struct SubscriptionDefaultTypeInternal;
64PROTOBUF_NAMESPACE_OPEN
66PROTOBUF_NAMESPACE_CLOSE
69namespace intermodule {
85 static_assert(::std::is_same<T, Subscription_Action>::value ||
86 ::std::is_integral<T>::value,
87 "Incorrect type passed to function Subscription_Action_Name.");
88 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
93 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Subscription_Action>(
99 public ::PROTOBUF_NAMESPACE_ID::Message {
103 explicit PROTOBUF_CONSTEXPR
Subscription(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
108 *
this = ::std::move(from);
116 if (
this == &from)
return *
this;
117 if (GetOwningArena() == from.GetOwningArena()
118 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
119 && GetOwningArena() !=
nullptr
130 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
133 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
136 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
159 if (other ==
this)
return;
160 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
161 if (GetOwningArena() !=
nullptr &&
162 GetOwningArena() == other->GetOwningArena()) {
164 if (GetOwningArena() == other->GetOwningArena()) {
168 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
172 if (other ==
this)
return;
173 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
180 return CreateMaybeMessage<Subscription>(arena);
182 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
184 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
186 Subscription::MergeImpl(*
this, from);
189 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
191 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
197 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
201 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
203 void SetCachedSize(
int size)
const final;
207 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
208 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
209 return "goby.middleware.intermodule.protobuf.Subscription";
213 bool is_message_owned =
false);
217 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
239 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
245 static_assert(::std::is_same<T, Action>::value ||
246 ::std::is_integral<T>::value,
247 "Incorrect type passed to function Action_Name.");
250 static inline bool Action_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
265 bool _internal_has_id()
const;
268 const std::string&
id()
const;
269 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
275 const std::string& _internal_id()
const;
276 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_id(
const std::string& value);
277 std::string* _internal_mutable_id();
283 bool _internal_has_key()
const;
286 const ::goby::middleware::protobuf::SerializerTransporterKey&
key()
const;
287 PROTOBUF_NODISCARD ::goby::middleware::protobuf::SerializerTransporterKey*
release_key();
291 const ::goby::middleware::protobuf::SerializerTransporterKey& _internal_key()
const;
301 bool _internal_has_action()
const;
316 size_t RequiredFieldsByteSizeFallback()
const;
318 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
319 typedef void InternalArenaConstructable_;
320 typedef void DestructorSkippable_;
322 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
323 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
324 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_;
329 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fintermodule_2eproto;
337 #pragma GCC diagnostic push
338 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
343inline bool Subscription::_internal_has_id()
const {
344 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
348 return _internal_has_id();
351 _impl_.id_.ClearToEmpty();
352 _impl_._has_bits_[0] &= ~0x00000001u;
356 return _internal_id();
358template <
typename ArgT0,
typename... ArgT>
359inline PROTOBUF_ALWAYS_INLINE
361 _impl_._has_bits_[0] |= 0x00000001u;
362 _impl_.id_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
366 std::string* _s = _internal_mutable_id();
370inline const std::string& Subscription::_internal_id()
const {
373inline void Subscription::_internal_set_id(
const std::string& value) {
374 _impl_._has_bits_[0] |= 0x00000001u;
375 _impl_.id_.Set(value, GetArenaForAllocation());
377inline std::string* Subscription::_internal_mutable_id() {
378 _impl_._has_bits_[0] |= 0x00000001u;
379 return _impl_.id_.Mutable(GetArenaForAllocation());
383 if (!_internal_has_id()) {
386 _impl_._has_bits_[0] &= ~0x00000001u;
387 auto* p =
_impl_.id_.Release();
388#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
389 if (
_impl_.id_.IsDefault()) {
390 _impl_.id_.Set(
"", GetArenaForAllocation());
397 _impl_._has_bits_[0] |= 0x00000001u;
399 _impl_._has_bits_[0] &= ~0x00000001u;
401 _impl_.id_.SetAllocated(
id, GetArenaForAllocation());
402#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
403 if (
_impl_.id_.IsDefault()) {
404 _impl_.id_.Set(
"", GetArenaForAllocation());
411inline bool Subscription::_internal_has_key()
const {
412 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
413 PROTOBUF_ASSUME(!value ||
_impl_.key_ !=
nullptr);
417 return _internal_has_key();
419inline const ::goby::middleware::protobuf::SerializerTransporterKey& Subscription::_internal_key()
const {
420 const ::goby::middleware::protobuf::SerializerTransporterKey* p =
_impl_.key_;
426 return _internal_key();
430 if (GetArenaForAllocation() ==
nullptr) {
431 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.key_);
435 _impl_._has_bits_[0] |= 0x00000002u;
437 _impl_._has_bits_[0] &= ~0x00000002u;
442 _impl_._has_bits_[0] &= ~0x00000002u;
445#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
446 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
447 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
448 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
450 if (GetArenaForAllocation() !=
nullptr) {
451 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
458 _impl_._has_bits_[0] &= ~0x00000002u;
463inline ::goby::middleware::protobuf::SerializerTransporterKey* Subscription::_internal_mutable_key() {
464 _impl_._has_bits_[0] |= 0x00000002u;
465 if (
_impl_.key_ ==
nullptr) {
477 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
478 if (message_arena ==
nullptr) {
479 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.key_);
482 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
483 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
484 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
key));
485 if (message_arena != submessage_arena) {
486 key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
487 message_arena,
key, submessage_arena);
489 _impl_._has_bits_[0] |= 0x00000002u;
491 _impl_._has_bits_[0] &= ~0x00000002u;
498inline bool Subscription::_internal_has_action()
const {
499 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
503 return _internal_has_action();
507 _impl_._has_bits_[0] &= ~0x00000004u;
509inline ::goby::middleware::intermodule::protobuf::Subscription_Action Subscription::_internal_action()
const {
514 return _internal_action();
518 _impl_._has_bits_[0] |= 0x00000004u;
522 _internal_set_action(value);
527 #pragma GCC diagnostic pop
537PROTOBUF_NAMESPACE_OPEN
542 return ::goby::middleware::intermodule::protobuf::Subscription_Action_descriptor();
545PROTOBUF_NAMESPACE_CLOSE
549#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[]