4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2funit_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2funit_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_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/unknown_field_set.h>
33#include <boost/units/quantity.hpp>
34#include <boost/units/absolute.hpp>
35#include <boost/units/dimensionless_type.hpp>
36#include <boost/units/make_scaled_unit.hpp>
38#include <google/protobuf/port_def.inc>
39#define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2funit_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto
40PROTOBUF_NAMESPACE_OPEN
44PROTOBUF_NAMESPACE_CLOSE
56struct BasicNodeReportDefaultTypeInternal;
62PROTOBUF_NAMESPACE_OPEN
64PROTOBUF_NAMESPACE_CLOSE
73 public ::PROTOBUF_NAMESPACE_ID::Message {
77 explicit PROTOBUF_CONSTEXPR
BasicNodeReport(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
82 *
this = ::std::move(from);
90 if (
this == &from)
return *
this;
91 if (GetOwningArena() == from.GetOwningArena()
92 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
93 && GetOwningArena() !=
nullptr
104 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
107 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
110 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
133 if (other ==
this)
return;
134 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
135 if (GetOwningArena() !=
nullptr &&
136 GetOwningArena() == other->GetOwningArena()) {
138 if (GetOwningArena() == other->GetOwningArena()) {
142 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
146 if (other ==
this)
return;
147 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
154 return CreateMaybeMessage<BasicNodeReport>(arena);
156 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
158 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
160 BasicNodeReport::MergeImpl(*
this, from);
163 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
165 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
171 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
177 void SetCachedSize(
int size)
const final;
181 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
182 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
183 return "goby.test.moos.protobuf.BasicNodeReport";
187 bool is_message_owned =
false);
191 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
215 int _internal_repeat_size()
const;
219 int32_t _internal_repeat(
int index)
const;
220 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
221 _internal_repeat()
const;
222 void _internal_add_repeat(int32_t value);
223 ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
224 _internal_mutable_repeat();
226 int32_t
repeat(
int index)
const;
229 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
231 ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
237 bool _internal_has_name()
const;
240 const std::string&
name()
const;
241 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
247 const std::string& _internal_name()
const;
248 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_name(
const std::string& value);
249 std::string* _internal_mutable_name();
255 bool _internal_has_y()
const;
259 void set_y(
double value);
261 double _internal_y()
const;
262 void _internal_set_y(
double value);
268 bool _internal_has_speed()
const;
271 double speed()
const;
274 double _internal_speed()
const;
275 void _internal_set_speed(
double value);
281 bool _internal_has_depth()
const;
284 double depth()
const;
287 double _internal_depth()
const;
288 void _internal_set_depth(
double value);
294 bool _internal_has_altitude()
const;
300 double _internal_altitude()
const;
301 void _internal_set_altitude(
double value);
307 bool _internal_has_lat()
const;
313 double _internal_lat()
const;
314 void _internal_set_lat(
double value);
320 bool _internal_has_lon()
const;
326 double _internal_lon()
const;
327 void _internal_set_lon(
double value);
333 bool _internal_has_time()
const;
339 double _internal_time()
const;
340 void _internal_set_time(
double value);
346 bool _internal_has_heading()
const;
352 double _internal_heading()
const;
353 void _internal_set_heading(
double value);
359 bool _internal_has_x()
const;
363 void set_x(
double value);
365 double _internal_x()
const;
366 void _internal_set_x(
double value);
373 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
374 typedef void InternalArenaConstructable_;
375 typedef void DestructorSkippable_;
377 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
378 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
379 ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > repeat_;
380 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
392 friend struct ::TableStruct_goby_2ftest_2funit_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto;
400 #pragma GCC diagnostic push
401 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
406inline bool BasicNodeReport::_internal_has_name()
const {
407 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
411 return _internal_has_name();
414 _impl_.name_.ClearToEmpty();
415 _impl_._has_bits_[0] &= ~0x00000001u;
419 return _internal_name();
421template <
typename ArgT0,
typename... ArgT>
422inline PROTOBUF_ALWAYS_INLINE
424 _impl_._has_bits_[0] |= 0x00000001u;
425 _impl_.name_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
429 std::string* _s = _internal_mutable_name();
433inline const std::string& BasicNodeReport::_internal_name()
const {
434 return _impl_.name_.Get();
436inline void BasicNodeReport::_internal_set_name(
const std::string& value) {
437 _impl_._has_bits_[0] |= 0x00000001u;
438 _impl_.name_.Set(value, GetArenaForAllocation());
440inline std::string* BasicNodeReport::_internal_mutable_name() {
441 _impl_._has_bits_[0] |= 0x00000001u;
442 return _impl_.name_.Mutable(GetArenaForAllocation());
446 if (!_internal_has_name()) {
449 _impl_._has_bits_[0] &= ~0x00000001u;
450 auto* p =
_impl_.name_.Release();
451#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
452 if (
_impl_.name_.IsDefault()) {
453 _impl_.name_.Set(
"", GetArenaForAllocation());
459 if (
name !=
nullptr) {
460 _impl_._has_bits_[0] |= 0x00000001u;
462 _impl_._has_bits_[0] &= ~0x00000001u;
464 _impl_.name_.SetAllocated(
name, GetArenaForAllocation());
465#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
466 if (
_impl_.name_.IsDefault()) {
467 _impl_.name_.Set(
"", GetArenaForAllocation());
474inline bool BasicNodeReport::_internal_has_x()
const {
475 bool value = (
_impl_._has_bits_[0] & 0x00000200u) != 0;
479 return _internal_has_x();
483 _impl_._has_bits_[0] &= ~0x00000200u;
485inline double BasicNodeReport::_internal_x()
const {
490 return _internal_x();
492inline void BasicNodeReport::_internal_set_x(
double value) {
493 _impl_._has_bits_[0] |= 0x00000200u;
497 _internal_set_x(value);
502inline bool BasicNodeReport::_internal_has_y()
const {
503 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
507 return _internal_has_y();
511 _impl_._has_bits_[0] &= ~0x00000002u;
513inline double BasicNodeReport::_internal_y()
const {
518 return _internal_y();
520inline void BasicNodeReport::_internal_set_y(
double value) {
521 _impl_._has_bits_[0] |= 0x00000002u;
525 _internal_set_y(value);
530inline bool BasicNodeReport::_internal_has_speed()
const {
531 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
535 return _internal_has_speed();
539 _impl_._has_bits_[0] &= ~0x00000004u;
541inline double BasicNodeReport::_internal_speed()
const {
546 return _internal_speed();
548inline void BasicNodeReport::_internal_set_speed(
double value) {
549 _impl_._has_bits_[0] |= 0x00000004u;
553 _internal_set_speed(value);
558inline bool BasicNodeReport::_internal_has_heading()
const {
559 bool value = (
_impl_._has_bits_[0] & 0x00000100u) != 0;
563 return _internal_has_heading();
567 _impl_._has_bits_[0] &= ~0x00000100u;
569inline double BasicNodeReport::_internal_heading()
const {
574 return _internal_heading();
576inline void BasicNodeReport::_internal_set_heading(
double value) {
577 _impl_._has_bits_[0] |= 0x00000100u;
581 _internal_set_heading(value);
586inline bool BasicNodeReport::_internal_has_depth()
const {
587 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
591 return _internal_has_depth();
595 _impl_._has_bits_[0] &= ~0x00000008u;
597inline double BasicNodeReport::_internal_depth()
const {
602 return _internal_depth();
604inline void BasicNodeReport::_internal_set_depth(
double value) {
605 _impl_._has_bits_[0] |= 0x00000008u;
609 _internal_set_depth(value);
614inline bool BasicNodeReport::_internal_has_altitude()
const {
615 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
619 return _internal_has_altitude();
623 _impl_._has_bits_[0] &= ~0x00000010u;
625inline double BasicNodeReport::_internal_altitude()
const {
630 return _internal_altitude();
632inline void BasicNodeReport::_internal_set_altitude(
double value) {
633 _impl_._has_bits_[0] |= 0x00000010u;
637 _internal_set_altitude(value);
642inline bool BasicNodeReport::_internal_has_lat()
const {
643 bool value = (
_impl_._has_bits_[0] & 0x00000020u) != 0;
647 return _internal_has_lat();
651 _impl_._has_bits_[0] &= ~0x00000020u;
653inline double BasicNodeReport::_internal_lat()
const {
658 return _internal_lat();
660inline void BasicNodeReport::_internal_set_lat(
double value) {
661 _impl_._has_bits_[0] |= 0x00000020u;
665 _internal_set_lat(value);
670inline bool BasicNodeReport::_internal_has_lon()
const {
671 bool value = (
_impl_._has_bits_[0] & 0x00000040u) != 0;
675 return _internal_has_lon();
679 _impl_._has_bits_[0] &= ~0x00000040u;
681inline double BasicNodeReport::_internal_lon()
const {
686 return _internal_lon();
688inline void BasicNodeReport::_internal_set_lon(
double value) {
689 _impl_._has_bits_[0] |= 0x00000040u;
693 _internal_set_lon(value);
698inline bool BasicNodeReport::_internal_has_time()
const {
699 bool value = (
_impl_._has_bits_[0] & 0x00000080u) != 0;
703 return _internal_has_time();
707 _impl_._has_bits_[0] &= ~0x00000080u;
709inline double BasicNodeReport::_internal_time()
const {
714 return _internal_time();
716inline void BasicNodeReport::_internal_set_time(
double value) {
717 _impl_._has_bits_[0] |= 0x00000080u;
721 _internal_set_time(value);
726inline int BasicNodeReport::_internal_repeat_size()
const {
727 return _impl_.repeat_.size();
730 return _internal_repeat_size();
735inline int32_t BasicNodeReport::_internal_repeat(
int index)
const {
736 return _impl_.repeat_.Get(index);
740 return _internal_repeat(index);
743 _impl_.repeat_.Set(index, value);
746inline void BasicNodeReport::_internal_add_repeat(int32_t value) {
747 _impl_.repeat_.Add(value);
750 _internal_add_repeat(value);
753inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
754BasicNodeReport::_internal_repeat()
const {
757inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
760 return _internal_repeat();
762inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
763BasicNodeReport::_internal_mutable_repeat() {
766inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
769 return _internal_mutable_repeat();
773 #pragma GCC diagnostic pop
785#include <google/protobuf/port_undef.inc>
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2funit_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto
bool IsInitialized() const final
void set_speed(double value)
size_t ByteSizeLong() const final
static constexpr int kIndexInFileMessages
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const BasicNodeReport * internal_default_instance()
BasicNodeReport & operator=(BasicNodeReport &&from) noexcept
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
BasicNodeReport(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
std::string * mutable_name()
static const BasicNodeReport & default_instance()
BasicNodeReport * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > & repeat() const
PROTOBUF_NODISCARD std::string * release_name()
void set_lat(double value)
bool has_altitude() const
void set_time(double value)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
const std::string & name() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ClassData _class_data_
PROTOBUF_CONSTEXPR BasicNodeReport(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void set_name(ArgT0 &&arg0, ArgT... args)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
~BasicNodeReport() override
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > * mutable_repeat()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void set_altitude(double value)
friend void swap(BasicNodeReport &a, BasicNodeReport &b)
void CopyFrom(const BasicNodeReport &from)
void set_depth(double value)
void add_repeat(int32_t value)
void MergeFrom(const BasicNodeReport &from)
void UnsafeArenaSwap(BasicNodeReport *other)
BasicNodeReport & operator=(const BasicNodeReport &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_repeat(int index, int32_t value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
BasicNodeReport(BasicNodeReport &&from) noexcept
void Swap(BasicNodeReport *other)
int GetCachedSize() const final
void set_allocated_name(std::string *name)
void set_lon(double value)
BasicNodeReport(const BasicNodeReport &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void set_heading(double value)
BasicNodeReportDefaultTypeInternal _BasicNodeReport_default_instance_
The global namespace for the Goby project.
static const uint32_t offsets[]