4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fmiddleware_2flog_2ftest_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fmiddleware_2flog_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 "dccl/option_extensions.pb.h"
36 #include <boost/units/quantity.hpp>
37 #include <boost/units/absolute.hpp>
38 #include <boost/units/dimensionless_type.hpp>
39 #include <boost/units/make_scaled_unit.hpp>
41 #include <google/protobuf/port_def.inc>
42 #define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2fmiddleware_2flog_2ftest_2eproto
43 PROTOBUF_NAMESPACE_OPEN
47 PROTOBUF_NAMESPACE_CLOSE
51 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
53 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
55 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
57 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
64 namespace middleware {
67 class CTDSampleDefaultTypeInternal;
70 class TempSampleDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> ::goby::test::middleware::protobuf::CTDSample* Arena::CreateMaybeMessage<::goby::test::middleware::protobuf::CTDSample>(Arena*);
78 template<> ::goby::test::middleware::protobuf::TempSample* Arena::CreateMaybeMessage<::goby::test::middleware::protobuf::TempSample>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
82 namespace middleware {
87 class CTDSample PROTOBUF_FINAL :
88 public ::PROTOBUF_NAMESPACE_ID::Message {
96 *
this = ::std::move(from);
99 inline CTDSample&
operator=(
const CTDSample& from) {
103 inline CTDSample&
operator=(CTDSample&& from) noexcept {
104 if (GetArena() == from.GetArena()) {
105 if (
this != &from) InternalSwap(&from);
113 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
116 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
119 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
120 return GetDescriptor();
123 return GetMetadataStatic().descriptor;
126 return GetMetadataStatic().reflection;
132 return reinterpret_cast<const CTDSample*
>(
135 static constexpr
int kIndexInFileMessages =
138 friend void swap(CTDSample& a, CTDSample& b) {
141 inline void Swap(CTDSample* other) {
142 if (other ==
this)
return;
143 if (GetArena() == other->GetArena()) {
146 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
150 if (other ==
this)
return;
151 GOOGLE_DCHECK(GetArena() == other->GetArena());
157 inline CTDSample*
New() const final {
158 return CreateMaybeMessage<CTDSample>(
nullptr);
161 CTDSample*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
162 return CreateMaybeMessage<CTDSample>(arena);
164 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
165 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
168 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
169 bool IsInitialized() const final;
172 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
173 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
174 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175 int GetCachedSize() const final {
return _cached_size_.Get(); }
178 inline void SharedCtor();
179 inline void SharedDtor();
180 void SetCachedSize(
int size)
const final;
181 void InternalSwap(CTDSample* other);
182 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
183 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
184 return "goby.test.middleware.protobuf.CTDSample";
187 explicit CTDSample(::PROTOBUF_NAMESPACE_ID::Arena* arena);
189 static void ArenaDtor(
void*
object);
190 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
195 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
207 kSalinityFieldNumber = 1,
208 kTemperatureFieldNumber = 2,
209 kDepthFieldNumber = 3,
214 bool _internal_has_salinity()
const;
220 double _internal_salinity()
const;
221 void _internal_set_salinity(
double value);
227 bool _internal_has_temperature()
const;
233 double _internal_temperature()
const;
234 void _internal_set_temperature(
double value);
240 bool _internal_has_depth()
const;
246 double _internal_depth()
const;
247 void _internal_set_depth(
double value);
255 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
256 typedef void InternalArenaConstructable_;
257 typedef void DestructorSkippable_;
258 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
259 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
263 friend struct ::TableStruct_goby_2ftest_2fmiddleware_2flog_2ftest_2eproto;
268 public ::PROTOBUF_NAMESPACE_ID::Message {
276 *
this = ::std::move(from);
283 inline TempSample&
operator=(TempSample&& from) noexcept {
284 if (GetArena() == from.GetArena()) {
285 if (
this != &from) InternalSwap(&from);
293 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
296 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
299 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
300 return GetDescriptor();
303 return GetMetadataStatic().descriptor;
306 return GetMetadataStatic().reflection;
312 return reinterpret_cast<const TempSample*
>(
315 static constexpr
int kIndexInFileMessages =
318 friend void swap(TempSample& a, TempSample& b) {
321 inline void Swap(TempSample* other) {
322 if (other ==
this)
return;
323 if (GetArena() == other->GetArena()) {
326 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
330 if (other ==
this)
return;
331 GOOGLE_DCHECK(GetArena() == other->GetArena());
337 inline TempSample*
New() const final {
338 return CreateMaybeMessage<TempSample>(
nullptr);
341 TempSample*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
342 return CreateMaybeMessage<TempSample>(arena);
344 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
345 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
348 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
349 bool IsInitialized() const final;
352 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
353 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
354 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
355 int GetCachedSize() const final {
return _cached_size_.Get(); }
358 inline void SharedCtor();
359 inline void SharedDtor();
360 void SetCachedSize(
int size)
const final;
361 void InternalSwap(TempSample* other);
362 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
363 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
364 return "goby.test.middleware.protobuf.TempSample";
369 static void ArenaDtor(
void*
object);
370 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
375 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
387 kTemperatureFieldNumber = 1,
392 bool _internal_has_temperature()
const;
398 double _internal_temperature()
const;
399 void _internal_set_temperature(
double value);
406 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
407 typedef void InternalArenaConstructable_;
408 typedef void DestructorSkippable_;
409 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
410 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
412 friend struct ::TableStruct_goby_2ftest_2fmiddleware_2flog_2ftest_2eproto;
420 #pragma GCC diagnostic push
421 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
426 inline bool CTDSample::_internal_has_salinity()
const {
427 bool value = (_has_bits_[0] & 0x00000001u) != 0;
430 inline bool CTDSample::has_salinity()
const {
431 return _internal_has_salinity();
433 inline void CTDSample::clear_salinity() {
435 _has_bits_[0] &= ~0x00000001u;
437 inline double CTDSample::_internal_salinity()
const {
442 return _internal_salinity();
444 inline void CTDSample::_internal_set_salinity(
double value) {
445 _has_bits_[0] |= 0x00000001u;
448 inline void CTDSample::set_salinity(
double value) {
449 _internal_set_salinity(value);
454 inline bool CTDSample::_internal_has_temperature()
const {
455 bool value = (_has_bits_[0] & 0x00000002u) != 0;
458 inline bool CTDSample::has_temperature()
const {
459 return _internal_has_temperature();
461 inline void CTDSample::clear_temperature() {
463 _has_bits_[0] &= ~0x00000002u;
465 inline double CTDSample::_internal_temperature()
const {
468 inline double CTDSample::temperature()
const {
470 return _internal_temperature();
472 inline void CTDSample::_internal_set_temperature(
double value) {
473 _has_bits_[0] |= 0x00000002u;
474 temperature_ =
value;
476 inline void CTDSample::set_temperature(
double value) {
477 _internal_set_temperature(value);
482 inline bool CTDSample::_internal_has_depth()
const {
483 bool value = (_has_bits_[0] & 0x00000004u) != 0;
486 inline bool CTDSample::has_depth()
const {
487 return _internal_has_depth();
489 inline void CTDSample::clear_depth() {
491 _has_bits_[0] &= ~0x00000004u;
493 inline double CTDSample::_internal_depth()
const {
498 return _internal_depth();
500 inline void CTDSample::_internal_set_depth(
double value) {
501 _has_bits_[0] |= 0x00000004u;
504 inline void CTDSample::set_depth(
double value) {
505 _internal_set_depth(value);
514 inline bool TempSample::_internal_has_temperature()
const {
515 bool value = (_has_bits_[0] & 0x00000001u) != 0;
518 inline bool TempSample::has_temperature()
const {
519 return _internal_has_temperature();
521 inline void TempSample::clear_temperature() {
523 _has_bits_[0] &= ~0x00000001u;
525 inline double TempSample::_internal_temperature()
const {
528 inline double TempSample::temperature()
const {
530 return _internal_temperature();
532 inline void TempSample::_internal_set_temperature(
double value) {
533 _has_bits_[0] |= 0x00000001u;
534 temperature_ =
value;
536 inline void TempSample::set_temperature(
double value) {
537 _internal_set_temperature(value);
542 #pragma GCC diagnostic pop
556 #include <google/protobuf/port_undef.inc>
CTDSample * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
TempSample(::PROTOBUF_NAMESPACE_ID::Arena *arena)
double temperature() const
void MergeFrom(const CTDSample &from)
CTDSample & operator=(CTDSample &&from) noexcept
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
TempSample(TempSample &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
static const CTDSample & default_instance()
bool has_temperature() const
TempSample & operator=(const TempSample &from)
TempSample & operator=(TempSample &&from) noexcept
TempSample * New() const final
void MergeFrom(const TempSample &from)
static const CTDSample * internal_default_instance()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_depth(double value)
void UnsafeArenaSwap(CTDSample *other)
CTDSample & operator=(const CTDSample &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void set_salinity(double value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
TempSample(const TempSample &from)
CTDSample * New() const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void Swap(CTDSample *other)
void set_temperature(double value)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
CTDSample(const CTDSample &from)
static const TempSample & default_instance()
void Swap(TempSample *other)
friend void swap(TempSample &a, TempSample &b)
void UnsafeArenaSwap(TempSample *other)
bool has_salinity() const
void CopyFrom(const TempSample &from)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void CopyFrom(const CTDSample &from)
friend void swap(CTDSample &a, CTDSample &b)
CTDSample(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const TempSample * internal_default_instance()
CTDSample(CTDSample &&from) noexcept
static void InitAsDefaultInstance()
TempSample * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2fmiddleware_2flog_2ftest_2eproto
@ value
the parser finished reading a JSON value
CTDSampleDefaultTypeInternal _CTDSample_default_instance_
TempSampleDefaultTypeInternal _TempSample_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.
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
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::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]