4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fmiddleware_5fspeed_2ftest_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fmiddleware_5fspeed_2ftest_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/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_2ftest_2fzeromq_2fmiddleware_5fspeed_2ftest_2eproto
42 PROTOBUF_NAMESPACE_OPEN
46 PROTOBUF_NAMESPACE_CLOSE
50 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
52 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
54 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
56 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
66 class LargeDefaultTypeInternal;
69 class ReadyDefaultTypeInternal;
72 class SampleDefaultTypeInternal;
78 PROTOBUF_NAMESPACE_OPEN
79 template<> ::goby::test::zeromq::protobuf::Large* Arena::CreateMaybeMessage<::goby::test::zeromq::protobuf::Large>(Arena*);
80 template<> ::goby::test::zeromq::protobuf::Ready* Arena::CreateMaybeMessage<::goby::test::zeromq::protobuf::Ready>(Arena*);
81 template<> ::goby::test::zeromq::protobuf::Sample* Arena::CreateMaybeMessage<::goby::test::zeromq::protobuf::Sample>(Arena*);
82 PROTOBUF_NAMESPACE_CLOSE
90 class Ready PROTOBUF_FINAL :
91 public ::PROTOBUF_NAMESPACE_ID::Message {
93 inline Ready() : Ready(nullptr) {};
99 *
this = ::std::move(from);
107 if (GetArena() == from.GetArena()) {
108 if (
this != &from) InternalSwap(&from);
116 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
119 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
122 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
123 return GetDescriptor();
126 return GetMetadataStatic().descriptor;
129 return GetMetadataStatic().reflection;
135 return reinterpret_cast<const Ready*
>(
138 static constexpr
int kIndexInFileMessages =
141 friend void swap(Ready& a, Ready& b) {
144 inline void Swap(Ready* other) {
145 if (other ==
this)
return;
146 if (GetArena() == other->GetArena()) {
149 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
153 if (other ==
this)
return;
154 GOOGLE_DCHECK(GetArena() == other->GetArena());
160 inline Ready*
New() const final {
161 return CreateMaybeMessage<Ready>(
nullptr);
164 Ready*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
165 return CreateMaybeMessage<Ready>(arena);
167 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
168 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
171 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
172 bool IsInitialized() const final;
175 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
176 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
177 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
178 int GetCachedSize() const final {
return _cached_size_.Get(); }
181 inline void SharedCtor();
182 inline void SharedDtor();
183 void SetCachedSize(
int size)
const final;
184 void InternalSwap(Ready* other);
185 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
186 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
187 return "goby.test.zeromq.protobuf.Ready";
190 explicit Ready(::PROTOBUF_NAMESPACE_ID::Arena* arena);
192 static void ArenaDtor(
void*
object);
193 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
198 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
213 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
214 typedef void InternalArenaConstructable_;
215 typedef void DestructorSkippable_;
216 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
217 friend struct ::TableStruct_goby_2ftest_2fzeromq_2fmiddleware_5fspeed_2ftest_2eproto;
222 public ::PROTOBUF_NAMESPACE_ID::Message {
230 *
this = ::std::move(from);
238 if (GetArena() == from.GetArena()) {
239 if (
this != &from) InternalSwap(&from);
247 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
250 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
253 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
254 return GetDescriptor();
257 return GetMetadataStatic().descriptor;
260 return GetMetadataStatic().reflection;
266 return reinterpret_cast<const Sample*
>(
269 static constexpr
int kIndexInFileMessages =
272 friend void swap(Sample& a, Sample& b) {
275 inline void Swap(Sample* other) {
276 if (other ==
this)
return;
277 if (GetArena() == other->GetArena()) {
280 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
284 if (other ==
this)
return;
285 GOOGLE_DCHECK(GetArena() == other->GetArena());
291 inline Sample*
New() const final {
292 return CreateMaybeMessage<Sample>(
nullptr);
295 Sample*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
296 return CreateMaybeMessage<Sample>(arena);
298 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
299 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
302 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
303 bool IsInitialized() const final;
306 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
307 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
308 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
309 int GetCachedSize() const final {
return _cached_size_.Get(); }
312 inline void SharedCtor();
313 inline void SharedDtor();
314 void SetCachedSize(
int size)
const final;
315 void InternalSwap(Sample* other);
316 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
317 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
318 return "goby.test.zeromq.protobuf.Sample";
321 explicit Sample(::PROTOBUF_NAMESPACE_ID::Arena* arena);
323 static void ArenaDtor(
void*
object);
324 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
329 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
341 kTemperatureFieldNumber = 1,
342 kSalinityFieldNumber = 2,
343 kDepthFieldNumber = 3,
348 bool _internal_has_temperature()
const;
354 double _internal_temperature()
const;
355 void _internal_set_temperature(
double value);
361 bool _internal_has_salinity()
const;
367 double _internal_salinity()
const;
368 void _internal_set_salinity(
double value);
374 bool _internal_has_depth()
const;
380 double _internal_depth()
const;
381 void _internal_set_depth(
double value);
389 size_t RequiredFieldsByteSizeFallback()
const;
391 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
392 typedef void InternalArenaConstructable_;
393 typedef void DestructorSkippable_;
394 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
395 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
399 friend struct ::TableStruct_goby_2ftest_2fzeromq_2fmiddleware_5fspeed_2ftest_2eproto;
404 public ::PROTOBUF_NAMESPACE_ID::Message {
412 *
this = ::std::move(from);
420 if (GetArena() == from.GetArena()) {
421 if (
this != &from) InternalSwap(&from);
429 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
432 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
435 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
436 return GetDescriptor();
439 return GetMetadataStatic().descriptor;
442 return GetMetadataStatic().reflection;
448 return reinterpret_cast<const Large*
>(
451 static constexpr
int kIndexInFileMessages =
454 friend void swap(Large& a, Large& b) {
457 inline void Swap(Large* other) {
458 if (other ==
this)
return;
459 if (GetArena() == other->GetArena()) {
462 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
466 if (other ==
this)
return;
467 GOOGLE_DCHECK(GetArena() == other->GetArena());
473 inline Large*
New() const final {
474 return CreateMaybeMessage<Large>(
nullptr);
477 Large*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
478 return CreateMaybeMessage<Large>(arena);
480 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
481 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
484 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
485 bool IsInitialized() const final;
488 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
489 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
490 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
491 int GetCachedSize() const final {
return _cached_size_.Get(); }
494 inline void SharedCtor();
495 inline void SharedDtor();
496 void SetCachedSize(
int size)
const final;
497 void InternalSwap(Large* other);
498 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
499 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
500 return "goby.test.zeromq.protobuf.Large";
503 explicit Large(::PROTOBUF_NAMESPACE_ID::Arena* arena);
505 static void ArenaDtor(
void*
object);
506 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
511 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
523 kDataFieldNumber = 1,
528 bool _internal_has_data()
const;
531 const std::string&
data()
const;
539 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
540 " string fields are deprecated and will be removed in a"
542 std::
string* unsafe_arena_release_data();
543 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
544 "
string fields are deprecated and will be removed in a"
546 void unsafe_arena_set_allocated_data(
549 const std::
string& _internal_data() const;
550 void _internal_set_data(const std::
string& value);
551 std::
string* _internal_mutable_data();
558 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
559 typedef
void InternalArenaConstructable_;
560 typedef
void DestructorSkippable_;
561 ::PROTOBUF_NAMESPACE_ID::
internal::HasBits<1> _has_bits_;
562 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
563 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr data_;
572 #pragma GCC diagnostic push
573 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
582 inline bool Sample::_internal_has_temperature()
const {
583 bool value = (_has_bits_[0] & 0x00000001u) != 0;
586 inline bool Sample::has_temperature()
const {
587 return _internal_has_temperature();
589 inline void Sample::clear_temperature() {
591 _has_bits_[0] &= ~0x00000001u;
593 inline double Sample::_internal_temperature()
const {
596 inline double Sample::temperature()
const {
598 return _internal_temperature();
600 inline void Sample::_internal_set_temperature(
double value) {
601 _has_bits_[0] |= 0x00000001u;
602 temperature_ = value;
604 inline void Sample::set_temperature(
double value) {
605 _internal_set_temperature(value);
610 inline bool Sample::_internal_has_salinity()
const {
611 bool value = (_has_bits_[0] & 0x00000002u) != 0;
614 inline bool Sample::has_salinity()
const {
615 return _internal_has_salinity();
617 inline void Sample::clear_salinity() {
619 _has_bits_[0] &= ~0x00000002u;
621 inline double Sample::_internal_salinity()
const {
626 return _internal_salinity();
628 inline void Sample::_internal_set_salinity(
double value) {
629 _has_bits_[0] |= 0x00000002u;
632 inline void Sample::set_salinity(
double value) {
633 _internal_set_salinity(value);
638 inline bool Sample::_internal_has_depth()
const {
639 bool value = (_has_bits_[0] & 0x00000004u) != 0;
642 inline bool Sample::has_depth()
const {
643 return _internal_has_depth();
645 inline void Sample::clear_depth() {
647 _has_bits_[0] &= ~0x00000004u;
649 inline double Sample::_internal_depth()
const {
654 return _internal_depth();
656 inline void Sample::_internal_set_depth(
double value) {
657 _has_bits_[0] |= 0x00000004u;
660 inline void Sample::set_depth(
double value) {
661 _internal_set_depth(value);
670 inline bool Large::_internal_has_data()
const {
671 bool value = (_has_bits_[0] & 0x00000001u) != 0;
674 inline bool Large::has_data()
const {
675 return _internal_has_data();
677 inline void Large::clear_data() {
679 _has_bits_[0] &= ~0x00000001u;
681 inline const std::string& Large::data()
const {
683 return _internal_data();
685 inline void Large::set_data(
const std::string& value) {
686 _internal_set_data(value);
689 inline std::string* Large::mutable_data() {
691 return _internal_mutable_data();
693 inline const std::string& Large::_internal_data()
const {
696 inline void Large::_internal_set_data(
const std::string& value) {
697 _has_bits_[0] |= 0x00000001u;
700 inline void Large::set_data(std::string&& value) {
701 _has_bits_[0] |= 0x00000001u;
706 inline void Large::set_data(
const char* value) {
707 GOOGLE_DCHECK(value !=
nullptr);
708 _has_bits_[0] |= 0x00000001u;
713 inline void Large::set_data(
const void* value,
715 _has_bits_[0] |= 0x00000001u;
717 reinterpret_cast<const char*
>(value), size), GetArena());
720 inline std::string* Large::_internal_mutable_data() {
721 _has_bits_[0] |= 0x00000001u;
724 inline std::string* Large::release_data() {
726 if (!_internal_has_data()) {
729 _has_bits_[0] &= ~0x00000001u;
732 inline void Large::set_allocated_data(std::string* data) {
733 if (data !=
nullptr) {
734 _has_bits_[0] |= 0x00000001u;
736 _has_bits_[0] &= ~0x00000001u;
742 inline std::string* Large::unsafe_arena_release_data() {
744 GOOGLE_DCHECK(GetArena() !=
nullptr);
745 _has_bits_[0] &= ~0x00000001u;
749 inline void Large::unsafe_arena_set_allocated_data(
751 GOOGLE_DCHECK(GetArena() !=
nullptr);
752 if (data !=
nullptr) {
753 _has_bits_[0] |= 0x00000001u;
755 _has_bits_[0] &= ~0x00000001u;
763 #pragma GCC diagnostic pop
779 #include <google/protobuf/port_undef.inc>
void CopyFrom(const Sample &from)
void set_data(const char *value)
Sample(const Sample &from)
void set_allocated_data(std::string *data)
static const Large & default_instance()
Ready(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_temperature(double value)
void set_data(const void *value, size_t size)
Large * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
friend void swap(Ready &a, Ready &b)
void CopyFrom(const Ready &from)
Ready(Ready &&from) noexcept
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void set_data(std::string &&value)
Large & operator=(const Large &from)
void set_data(const std::string &value)
Ready & operator=(Ready &&from) noexcept
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static void InitAsDefaultInstance()
Ready & operator=(const Ready &from)
Large(Large &&from) noexcept
Large(::PROTOBUF_NAMESPACE_ID::Arena *arena)
friend void swap(Large &a, Large &b)
static const Sample * internal_default_instance()
std::string * mutable_data()
void MergeFrom(const Large &from)
Sample(Sample &&from) noexcept
void MergeFrom(const Sample &from)
friend void swap(Sample &a, Sample &b)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
bool has_salinity() const
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Ready * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
static const Ready & default_instance()
Large * New() const final
void UnsafeArenaSwap(Ready *other)
Sample & operator=(Sample &&from) noexcept
void UnsafeArenaSwap(Large *other)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void MergeFrom(const Ready &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
static const Sample & default_instance()
Ready * New() const final
Sample * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Sample & operator=(const Sample &from)
Sample(::PROTOBUF_NAMESPACE_ID::Arena *arena)
Large & operator=(Large &&from) noexcept
void set_salinity(double value)
void UnsafeArenaSwap(Sample *other)
void set_depth(double value)
static const Ready * internal_default_instance()
bool has_temperature() const
const std::string & data() const
void CopyFrom(const Large &from)
std::string * release_data()
double temperature() const
Sample * New() const final
static const Large * internal_default_instance()
@ value
the parser finished reading a JSON value
ReadyDefaultTypeInternal _Ready_default_instance_
SampleDefaultTypeInternal _Sample_default_instance_
LargeDefaultTypeInternal _Large_default_instance_
boost::units::quantity< boost::units::si::dimensionless > salinity(boost::units::quantity< ConductivityUnit > conductivity, boost::units::quantity< boost::units::absolute< TemperatureUnit > > temperature, boost::units::quantity< PressureUnit > pressure)
Calculates salinity from conductivity, temperature, and pressure Adapted from "Algorithms for computa...
boost::units::quantity< boost::units::si::length > depth(boost::units::quantity< PressureUnit > pressure, boost::units::quantity< LatitudeUnit > latitude)
Calculates depth from pressure and latitude Adapted from "Algorithms for computation of fundamental p...
The global namespace for the Goby project.
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2fzeromq_2fmiddleware_5fspeed_2ftest_2eproto