4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_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 <boost/units/quantity.hpp>
35#include <boost/units/absolute.hpp>
36#include <boost/units/dimensionless_type.hpp>
37#include <boost/units/make_scaled_unit.hpp>
39#include <google/protobuf/port_def.inc>
40#define PROTOBUF_INTERNAL_EXPORT_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto
41PROTOBUF_NAMESPACE_OPEN
45PROTOBUF_NAMESPACE_CLOSE
56struct ModemIdEntryDefaultTypeInternal;
61PROTOBUF_NAMESPACE_OPEN
63PROTOBUF_NAMESPACE_CLOSE
84 static_assert(::std::is_same<T, ModemIdEntry_VehicleType>::value ||
85 ::std::is_integral<T>::value,
86 "Incorrect type passed to function ModemIdEntry_VehicleType_Name.");
87 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
92 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ModemIdEntry_VehicleType>(
98 public ::PROTOBUF_NAMESPACE_ID::Message {
102 explicit PROTOBUF_CONSTEXPR
ModemIdEntry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
107 *
this = ::std::move(from);
115 if (
this == &from)
return *
this;
116 if (GetOwningArena() == from.GetOwningArena()
117 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
118 && GetOwningArena() !=
nullptr
129 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
132 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
135 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
158 if (other ==
this)
return;
159 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
160 if (GetOwningArena() !=
nullptr &&
161 GetOwningArena() == other->GetOwningArena()) {
163 if (GetOwningArena() == other->GetOwningArena()) {
167 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
171 if (other ==
this)
return;
172 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
179 return CreateMaybeMessage<ModemIdEntry>(arena);
181 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
183 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
185 ModemIdEntry::MergeImpl(*
this, from);
188 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
190 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
196 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
200 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
202 void SetCachedSize(
int size)
const final;
206 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
207 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
208 return "goby.moos.protobuf.ModemIdEntry";
212 bool is_message_owned =
false);
216 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
244 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
250 static_assert(::std::is_same<T, VehicleType>::value ||
251 ::std::is_integral<T>::value,
252 "Incorrect type passed to function VehicleType_Name.");
270 bool _internal_has_name()
const;
273 const std::string&
name()
const;
274 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
280 const std::string& _internal_name()
const;
281 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_name(
const std::string& value);
282 std::string* _internal_mutable_name();
288 bool _internal_has_modem_id()
const;
294 uint32_t _internal_modem_id()
const;
295 void _internal_set_modem_id(uint32_t value);
301 bool _internal_has_type()
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 name_;
329 friend struct ::TableStruct_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto;
337 #pragma GCC diagnostic push
338 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
343inline bool ModemIdEntry::_internal_has_modem_id()
const {
344 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
348 return _internal_has_modem_id();
352 _impl_._has_bits_[0] &= ~0x00000002u;
354inline uint32_t ModemIdEntry::_internal_modem_id()
const {
359 return _internal_modem_id();
361inline void ModemIdEntry::_internal_set_modem_id(uint32_t value) {
362 _impl_._has_bits_[0] |= 0x00000002u;
366 _internal_set_modem_id(value);
371inline bool ModemIdEntry::_internal_has_name()
const {
372 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
376 return _internal_has_name();
379 _impl_.name_.ClearToEmpty();
380 _impl_._has_bits_[0] &= ~0x00000001u;
384 return _internal_name();
386template <
typename ArgT0,
typename... ArgT>
387inline PROTOBUF_ALWAYS_INLINE
389 _impl_._has_bits_[0] |= 0x00000001u;
390 _impl_.name_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
394 std::string* _s = _internal_mutable_name();
398inline const std::string& ModemIdEntry::_internal_name()
const {
399 return _impl_.name_.Get();
401inline void ModemIdEntry::_internal_set_name(
const std::string& value) {
402 _impl_._has_bits_[0] |= 0x00000001u;
403 _impl_.name_.Set(value, GetArenaForAllocation());
405inline std::string* ModemIdEntry::_internal_mutable_name() {
406 _impl_._has_bits_[0] |= 0x00000001u;
407 return _impl_.name_.Mutable(GetArenaForAllocation());
411 if (!_internal_has_name()) {
414 _impl_._has_bits_[0] &= ~0x00000001u;
415 auto* p =
_impl_.name_.Release();
416#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
417 if (
_impl_.name_.IsDefault()) {
418 _impl_.name_.Set(
"", GetArenaForAllocation());
424 if (
name !=
nullptr) {
425 _impl_._has_bits_[0] |= 0x00000001u;
427 _impl_._has_bits_[0] &= ~0x00000001u;
429 _impl_.name_.SetAllocated(
name, GetArenaForAllocation());
430#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
431 if (
_impl_.name_.IsDefault()) {
432 _impl_.name_.Set(
"", GetArenaForAllocation());
439inline bool ModemIdEntry::_internal_has_type()
const {
440 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
444 return _internal_has_type();
448 _impl_._has_bits_[0] &= ~0x00000004u;
450inline ::goby::moos::protobuf::ModemIdEntry_VehicleType ModemIdEntry::_internal_type()
const {
455 return _internal_type();
459 _impl_._has_bits_[0] |= 0x00000004u;
463 _internal_set_type(value);
468 #pragma GCC diagnostic pop
477PROTOBUF_NAMESPACE_OPEN
482 return ::goby::moos::protobuf::ModemIdEntry_VehicleType_descriptor();
485PROTOBUF_NAMESPACE_CLOSE
489#include <google/protobuf/port_undef.inc>
PROTOBUF_CONSTEXPR ModemIdEntry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static const ModemIdEntry * internal_default_instance()
ModemIdEntry(const ModemIdEntry &from)
static constexpr VehicleType UNKNOWN
size_t ByteSizeLong() const final
void Swap(ModemIdEntry *other)
ModemIdEntry & operator=(const ModemIdEntry &from)
void set_name(ArgT0 &&arg0, ArgT... args)
void UnsafeArenaSwap(ModemIdEntry *other)
static constexpr int kIndexInFileMessages
static const ClassData _class_data_
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const ModemIdEntry & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * VehicleType_descriptor()
friend void swap(ModemIdEntry &a, ModemIdEntry &b)
ModemIdEntry & operator=(ModemIdEntry &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
::goby::moos::protobuf::ModemIdEntry_VehicleType type() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
static constexpr VehicleType VehicleType_MIN
uint32_t modem_id() const
ModemIdEntry(ModemIdEntry &&from) noexcept
void set_type(::goby::moos::protobuf::ModemIdEntry_VehicleType value)
const std::string & name() const
static constexpr VehicleType VehicleType_MAX
static constexpr VehicleType GLIDER
static bool VehicleType_IsValid(int value)
bool has_modem_id() const
static constexpr VehicleType BUOY
static const std::string & VehicleType_Name(T enum_t_value)
static constexpr VehicleType AUV
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
ModemIdEntry(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
int GetCachedSize() const final
void MergeFrom(const ModemIdEntry &from)
PROTOBUF_NODISCARD std::string * release_name()
std::string * mutable_name()
static bool VehicleType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, VehicleType *value)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
bool IsInitialized() const final
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static constexpr int VehicleType_ARRAYSIZE
void set_modem_id(uint32_t value)
static constexpr VehicleType ASC
static constexpr VehicleType SHIP
void set_allocated_name(std::string *name)
void CopyFrom(const ModemIdEntry &from)
ModemIdEntry * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto
const EnumDescriptor * GetEnumDescriptor< ::goby::moos::protobuf::ModemIdEntry_VehicleType >()
ModemIdEntryDefaultTypeInternal _ModemIdEntry_default_instance_
constexpr int ModemIdEntry_VehicleType_VehicleType_ARRAYSIZE
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ModemIdEntry_VehicleType_descriptor()
constexpr ModemIdEntry_VehicleType ModemIdEntry_VehicleType_VehicleType_MIN
bool ModemIdEntry_VehicleType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ModemIdEntry_VehicleType *value)
@ ModemIdEntry_VehicleType_SHIP
@ ModemIdEntry_VehicleType_ASC
@ ModemIdEntry_VehicleType_UNKNOWN
@ ModemIdEntry_VehicleType_BUOY
@ ModemIdEntry_VehicleType_AUV
@ ModemIdEntry_VehicleType_GLIDER
bool ModemIdEntry_VehicleType_IsValid(int value)
const std::string & ModemIdEntry_VehicleType_Name(T enum_t_value)
constexpr ModemIdEntry_VehicleType ModemIdEntry_VehicleType_VehicleType_MAX
The global namespace for the Goby project.
static const uint32_t offsets[]