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 < 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>
36 #include "dccl/option_extensions.pb.h"
39 #include <boost/units/quantity.hpp>
40 #include <boost/units/absolute.hpp>
41 #include <boost/units/dimensionless_type.hpp>
42 #include <boost/units/make_scaled_unit.hpp>
44 #include <google/protobuf/port_def.inc>
45 #define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2fintermodule_2eproto
46 PROTOBUF_NAMESPACE_OPEN
50 PROTOBUF_NAMESPACE_CLOSE
54 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
56 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
66 namespace middleware {
67 namespace intermodule {
70 class SubscriptionDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> ::goby::middleware::intermodule::protobuf::Subscription* Arena::CreateMaybeMessage<::goby::middleware::intermodule::protobuf::Subscription>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
80 namespace middleware {
81 namespace intermodule {
97 static_assert(::std::is_same<T, Subscription_Action>::value ||
98 ::std::is_integral<T>::value,
99 "Incorrect type passed to function Subscription_Action_Name.");
100 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
105 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Subscription_Action>(
111 public ::PROTOBUF_NAMESPACE_ID::Message {
119 *
this = ::std::move(from);
122 inline Subscription&
operator=(
const Subscription& from) {
126 inline Subscription&
operator=(Subscription&& from) noexcept {
127 if (GetArena() == from.GetArena()) {
128 if (
this != &from) InternalSwap(&from);
136 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
139 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
142 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
143 return GetDescriptor();
146 return GetMetadataStatic().descriptor;
149 return GetMetadataStatic().reflection;
155 return reinterpret_cast<const Subscription*
>(
158 static constexpr
int kIndexInFileMessages =
161 friend void swap(Subscription& a, Subscription& b) {
164 inline void Swap(Subscription* other) {
165 if (other ==
this)
return;
166 if (GetArena() == other->GetArena()) {
169 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
173 if (other ==
this)
return;
174 GOOGLE_DCHECK(GetArena() == other->GetArena());
180 inline Subscription*
New() const final {
181 return CreateMaybeMessage<Subscription>(
nullptr);
184 Subscription*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
185 return CreateMaybeMessage<Subscription>(arena);
187 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
188 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
191 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
192 bool IsInitialized() const final;
195 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
196 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
197 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
198 int GetCachedSize() const final {
return _cached_size_.Get(); }
201 inline void SharedCtor();
202 inline void SharedDtor();
203 void SetCachedSize(
int size)
const final;
204 void InternalSwap(Subscription* other);
205 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
206 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
207 return "goby.middleware.intermodule.protobuf.Subscription";
212 static void ArenaDtor(
void*
object);
213 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
218 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
232 static constexpr
Action UNSUBSCRIBE_ALL =
241 static constexpr
int Action_ARRAYSIZE =
243 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
249 static_assert(::std::is_same<T, Action>::value ||
250 ::std::is_integral<T>::value,
251 "Incorrect type passed to function Action_Name.");
264 kActionFieldNumber = 5,
269 bool _internal_has_id()
const;
272 const std::string&
id()
const;
276 void set_id(
const char* value,
size_t size);
280 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
281 " string fields are deprecated and will be removed in a"
283 std::
string* unsafe_arena_release_id();
284 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
285 "
string fields are deprecated and will be removed in a"
287 void unsafe_arena_set_allocated_id(
290 const std::
string& _internal_id() const;
291 void _internal_set_id(const std::
string& value);
292 std::
string* _internal_mutable_id();
296 bool has_key() const;
298 bool _internal_has_key() const;
301 const ::
goby::middleware::protobuf::SerializerTransporterKey& key() const;
302 ::
goby::middleware::protobuf::SerializerTransporterKey* release_key();
303 ::
goby::middleware::protobuf::SerializerTransporterKey* mutable_key();
304 void set_allocated_key(::
goby::middleware::protobuf::SerializerTransporterKey* key);
306 const ::
goby::middleware::protobuf::SerializerTransporterKey& _internal_key() const;
307 ::
goby::middleware::protobuf::SerializerTransporterKey* _internal_mutable_key();
309 void unsafe_arena_set_allocated_key(
310 ::
goby::middleware::protobuf::SerializerTransporterKey* key);
311 ::
goby::middleware::protobuf::SerializerTransporterKey* unsafe_arena_release_key();
314 bool has_action() const;
316 bool _internal_has_action() const;
331 size_t RequiredFieldsByteSizeFallback() const;
333 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
334 typedef
void InternalArenaConstructable_;
335 typedef
void DestructorSkippable_;
336 ::PROTOBUF_NAMESPACE_ID::
internal::HasBits<1> _has_bits_;
337 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
338 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr id_;
339 ::
goby::middleware::protobuf::SerializerTransporterKey* key_;
349 #pragma GCC diagnostic push
350 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
355 inline bool Subscription::_internal_has_id()
const {
356 bool value = (_has_bits_[0] & 0x00000001u) != 0;
359 inline bool Subscription::has_id()
const {
360 return _internal_has_id();
362 inline void Subscription::clear_id() {
364 _has_bits_[0] &= ~0x00000001u;
366 inline const std::string& Subscription::id()
const {
368 return _internal_id();
370 inline void Subscription::set_id(
const std::string& value) {
371 _internal_set_id(value);
374 inline std::string* Subscription::mutable_id() {
376 return _internal_mutable_id();
378 inline const std::string& Subscription::_internal_id()
const {
381 inline void Subscription::_internal_set_id(
const std::string& value) {
382 _has_bits_[0] |= 0x00000001u;
385 inline void Subscription::set_id(std::string&& value) {
386 _has_bits_[0] |= 0x00000001u;
391 inline void Subscription::set_id(
const char* value) {
392 GOOGLE_DCHECK(value !=
nullptr);
393 _has_bits_[0] |= 0x00000001u;
398 inline void Subscription::set_id(
const char* value,
400 _has_bits_[0] |= 0x00000001u;
402 reinterpret_cast<const char*
>(value), size), GetArena());
405 inline std::string* Subscription::_internal_mutable_id() {
406 _has_bits_[0] |= 0x00000001u;
409 inline std::string* Subscription::release_id() {
411 if (!_internal_has_id()) {
414 _has_bits_[0] &= ~0x00000001u;
417 inline void Subscription::set_allocated_id(std::string*
id) {
419 _has_bits_[0] |= 0x00000001u;
421 _has_bits_[0] &= ~0x00000001u;
427 inline std::string* Subscription::unsafe_arena_release_id() {
429 GOOGLE_DCHECK(GetArena() !=
nullptr);
430 _has_bits_[0] &= ~0x00000001u;
434 inline void Subscription::unsafe_arena_set_allocated_id(
436 GOOGLE_DCHECK(GetArena() !=
nullptr);
438 _has_bits_[0] |= 0x00000001u;
440 _has_bits_[0] &= ~0x00000001u;
448 inline bool Subscription::_internal_has_key()
const {
449 bool value = (_has_bits_[0] & 0x00000002u) != 0;
450 PROTOBUF_ASSUME(!value || key_ !=
nullptr);
453 inline bool Subscription::has_key()
const {
454 return _internal_has_key();
456 inline const ::goby::middleware::protobuf::SerializerTransporterKey& Subscription::_internal_key()
const {
457 const ::goby::middleware::protobuf::SerializerTransporterKey* p = key_;
458 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::SerializerTransporterKey*
>(
461 inline const ::goby::middleware::protobuf::SerializerTransporterKey& Subscription::key()
const {
463 return _internal_key();
465 inline void Subscription::unsafe_arena_set_allocated_key(
466 ::goby::middleware::protobuf::SerializerTransporterKey* key) {
467 if (GetArena() ==
nullptr) {
468 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(key_);
472 _has_bits_[0] |= 0x00000002u;
474 _has_bits_[0] &= ~0x00000002u;
478 inline ::goby::middleware::protobuf::SerializerTransporterKey* Subscription::release_key() {
479 auto temp = unsafe_arena_release_key();
480 if (GetArena() !=
nullptr) {
481 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
485 inline ::goby::middleware::protobuf::SerializerTransporterKey* Subscription::unsafe_arena_release_key() {
487 _has_bits_[0] &= ~0x00000002u;
488 ::goby::middleware::protobuf::SerializerTransporterKey* temp = key_;
492 inline ::goby::middleware::protobuf::SerializerTransporterKey* Subscription::_internal_mutable_key() {
493 _has_bits_[0] |= 0x00000002u;
494 if (key_ ==
nullptr) {
495 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::SerializerTransporterKey>(GetArena());
500 inline ::goby::middleware::protobuf::SerializerTransporterKey* Subscription::mutable_key() {
502 return _internal_mutable_key();
504 inline void Subscription::set_allocated_key(::goby::middleware::protobuf::SerializerTransporterKey* key) {
505 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
506 if (message_arena ==
nullptr) {
507 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(key_);
510 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
511 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
key)->GetArena();
512 if (message_arena != submessage_arena) {
513 key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
514 message_arena, key, submessage_arena);
516 _has_bits_[0] |= 0x00000002u;
518 _has_bits_[0] &= ~0x00000002u;
525 inline bool Subscription::_internal_has_action()
const {
526 bool value = (_has_bits_[0] & 0x00000004u) != 0;
529 inline bool Subscription::has_action()
const {
530 return _internal_has_action();
532 inline void Subscription::clear_action() {
534 _has_bits_[0] &= ~0x00000004u;
541 return _internal_action();
545 _has_bits_[0] |= 0x00000004u;
549 _internal_set_action(value);
554 #pragma GCC diagnostic pop
564 PROTOBUF_NAMESPACE_OPEN
568 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::intermodule::protobuf::Subscription_Action>() {
572 PROTOBUF_NAMESPACE_CLOSE
576 #include <google/protobuf/port_undef.inc>
void set_id(const char *value)
void set_id(std::string &&value)
void Swap(Subscription *other)
std::string * release_id()
std::string * mutable_id()
Subscription(const Subscription &from)
void MergeFrom(const Subscription &from)
Subscription(Subscription &&from) noexcept
Subscription(::PROTOBUF_NAMESPACE_ID::Arena *arena)
Subscription_Action Action
static bool Action_IsValid(int value)
Subscription & operator=(const Subscription &from)
static const Subscription * internal_default_instance()
Subscription & operator=(Subscription &&from) noexcept
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static bool Action_Parse(const std::string &name, Action *value)
static void InitAsDefaultInstance()
const std::string & id() const
friend void swap(Subscription &a, Subscription &b)
void CopyFrom(const Subscription &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
Subscription * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void set_id(const char *value, size_t size)
static const Subscription & default_instance()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Action_descriptor()
Subscription * New() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void UnsafeArenaSwap(Subscription *other)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void set_id(const std::string &value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const std::string & Action_Name(T enum_t_value)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_allocated_id(std::string *id)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fintermodule_2eproto
@ value
the parser finished reading a JSON value
@ key
the parser read a key of a value in an object
@ Subscription_Action_UNSUBSCRIBE_ALL
@ Subscription_Action_SUBSCRIBE
@ Subscription_Action_UNSUBSCRIBE
SubscriptionDefaultTypeInternal _Subscription_default_instance_
constexpr Subscription_Action Subscription_Action_Action_MIN
constexpr int Subscription_Action_Action_ARRAYSIZE
bool Subscription_Action_IsValid(int value)
const std::string & Subscription_Action_Name(T enum_t_value)
constexpr Subscription_Action Subscription_Action_Action_MAX
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Subscription_Action_descriptor()
bool Subscription_Action_Parse(const std::string &name, Subscription_Action *value)
SerializerTransporterKeyDefaultTypeInternal _SerializerTransporterKey_default_instance_
The global namespace for the Goby project.
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)