4 #ifndef PROTOBUF_INCLUDED_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto
5 #define PROTOBUF_INCLUDED_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto
43 static const ::google::protobuf::internal::ParseTableField
entries[];
44 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
45 static const ::google::protobuf::internal::ParseTable
schema[1];
57 class BasicNodeReportDefaultTypeInternal;
89 *
this = ::std::move(from);
93 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
94 if (
this != &from) InternalSwap(&from);
102 return _internal_metadata_.unknown_fields();
105 return _internal_metadata_.mutable_unknown_fields();
108 static const ::google::protobuf::Descriptor*
descriptor();
127 return CreateMaybeMessage<BasicNodeReport>(NULL);
131 return CreateMaybeMessage<BasicNodeReport>(arena);
133 void CopyFrom(const ::google::protobuf::Message& from)
final;
134 void MergeFrom(const ::google::protobuf::Message& from)
final;
142 ::
google::protobuf::io::CodedInputStream* input) final;
144 ::
google::protobuf::io::CodedOutputStream* output) const final;
146 bool deterministic, ::
google::protobuf::uint8* target) const final;
152 void SetCachedSize(
int size)
const final;
155 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
158 inline void* MaybeArenaPtr()
const {
185 const ::std::
string&
name() const;
186 void set_name(const ::std::
string& value);
188 void set_name(::std::string&& value);
191 void set_name(
const char* value,
size_t size);
201 void set_y(
double value);
207 double speed()
const;
214 double depth()
const;
257 void set_x(
double value);
262 void clear_has_name();
267 void set_has_speed();
268 void clear_has_speed();
269 void set_has_heading();
270 void clear_has_heading();
271 void set_has_depth();
272 void clear_has_depth();
273 void set_has_altitude();
274 void clear_has_altitude();
276 void clear_has_lat();
278 void clear_has_lon();
280 void clear_has_time();
282 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
283 ::google::protobuf::internal::HasBits<1> _has_bits_;
284 mutable ::google::protobuf::internal::CachedSize _cached_size_;
286 ::google::protobuf::internal::ArenaStringPtr name_;
296 friend struct ::protobuf_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto::TableStruct;
304 #pragma GCC diagnostic push
305 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
311 return (_has_bits_[0] & 0x00000001u) != 0;
313 inline void BasicNodeReport::set_has_name() {
314 _has_bits_[0] |= 0x00000001u;
316 inline void BasicNodeReport::clear_has_name() {
317 _has_bits_[0] &= ~0x00000001u;
325 return name_.GetNoArena();
341 GOOGLE_DCHECK(value != NULL);
349 ::std::string(
reinterpret_cast<const char*
>(value), size));
377 return (_has_bits_[0] & 0x00000200u) != 0;
379 inline void BasicNodeReport::set_has_x() {
380 _has_bits_[0] |= 0x00000200u;
382 inline void BasicNodeReport::clear_has_x() {
383 _has_bits_[0] &= ~0x00000200u;
401 return (_has_bits_[0] & 0x00000002u) != 0;
403 inline void BasicNodeReport::set_has_y() {
404 _has_bits_[0] |= 0x00000002u;
406 inline void BasicNodeReport::clear_has_y() {
407 _has_bits_[0] &= ~0x00000002u;
425 return (_has_bits_[0] & 0x00000004u) != 0;
427 inline void BasicNodeReport::set_has_speed() {
428 _has_bits_[0] |= 0x00000004u;
430 inline void BasicNodeReport::clear_has_speed() {
431 _has_bits_[0] &= ~0x00000004u;
449 return (_has_bits_[0] & 0x00000100u) != 0;
451 inline void BasicNodeReport::set_has_heading() {
452 _has_bits_[0] |= 0x00000100u;
454 inline void BasicNodeReport::clear_has_heading() {
455 _has_bits_[0] &= ~0x00000100u;
473 return (_has_bits_[0] & 0x00000008u) != 0;
475 inline void BasicNodeReport::set_has_depth() {
476 _has_bits_[0] |= 0x00000008u;
478 inline void BasicNodeReport::clear_has_depth() {
479 _has_bits_[0] &= ~0x00000008u;
497 return (_has_bits_[0] & 0x00000010u) != 0;
499 inline void BasicNodeReport::set_has_altitude() {
500 _has_bits_[0] |= 0x00000010u;
502 inline void BasicNodeReport::clear_has_altitude() {
503 _has_bits_[0] &= ~0x00000010u;
507 clear_has_altitude();
521 return (_has_bits_[0] & 0x00000020u) != 0;
523 inline void BasicNodeReport::set_has_lat() {
524 _has_bits_[0] |= 0x00000020u;
526 inline void BasicNodeReport::clear_has_lat() {
527 _has_bits_[0] &= ~0x00000020u;
545 return (_has_bits_[0] & 0x00000040u) != 0;
547 inline void BasicNodeReport::set_has_lon() {
548 _has_bits_[0] |= 0x00000040u;
550 inline void BasicNodeReport::clear_has_lon() {
551 _has_bits_[0] &= ~0x00000040u;
569 return (_has_bits_[0] & 0x00000080u) != 0;
571 inline void BasicNodeReport::set_has_time() {
572 _has_bits_[0] |= 0x00000080u;
574 inline void BasicNodeReport::clear_has_time() {
575 _has_bits_[0] &= ~0x00000080u;
593 return repeat_.size();
600 return repeat_.Get(index);
603 repeat_.Set(index, value);
610 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
615 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
622 #pragma GCC diagnostic pop
634 #endif // PROTOBUF_INCLUDED_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto