4 #ifndef PROTOBUF_goby_2fmoos_2fprotobuf_2fctd_5fsample_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fmoos_2fprotobuf_2fctd_5fsample_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 2006000 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 2006001 < 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/generated_message_util.h> 23 #include <google/protobuf/message.h> 24 #include <google/protobuf/repeated_field.h> 25 #include <google/protobuf/extension_set.h> 26 #include <google/protobuf/generated_enum_reflection.h> 27 #include <google/protobuf/unknown_field_set.h> 28 #include "dccl/option_extensions.pb.h" 29 #include <boost/units/quantity.hpp> 30 #include <boost/units/absolute.hpp> 31 #include <boost/units/dimensionless_type.hpp> 32 #include <boost/units/make_scaled_unit.hpp> 40 void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fctd_5fsample_2eproto();
41 void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fctd_5fsample_2eproto();
42 void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fctd_5fsample_2eproto();
46 enum CTDSample_SalinityAlgorithm {
47 CTDSample_SalinityAlgorithm_SAL_ALGORITHM_UNKNOWN = 0,
48 CTDSample_SalinityAlgorithm_UNESCO_44_PREKIN_AND_LEWIS_1980 = 1
50 bool CTDSample_SalinityAlgorithm_IsValid(
int value);
51 const CTDSample_SalinityAlgorithm CTDSample_SalinityAlgorithm_SalinityAlgorithm_MIN = CTDSample_SalinityAlgorithm_SAL_ALGORITHM_UNKNOWN;
52 const CTDSample_SalinityAlgorithm CTDSample_SalinityAlgorithm_SalinityAlgorithm_MAX = CTDSample_SalinityAlgorithm_UNESCO_44_PREKIN_AND_LEWIS_1980;
53 const int CTDSample_SalinityAlgorithm_SalinityAlgorithm_ARRAYSIZE = CTDSample_SalinityAlgorithm_SalinityAlgorithm_MAX + 1;
55 const ::google::protobuf::EnumDescriptor* CTDSample_SalinityAlgorithm_descriptor();
56 inline const ::std::string& CTDSample_SalinityAlgorithm_Name(CTDSample_SalinityAlgorithm value) {
57 return ::google::protobuf::internal::NameOfEnum(
58 CTDSample_SalinityAlgorithm_descriptor(), value);
60 inline bool CTDSample_SalinityAlgorithm_Parse(
61 const ::std::string& name, CTDSample_SalinityAlgorithm* value) {
62 return ::google::protobuf::internal::ParseNamedEnum<CTDSample_SalinityAlgorithm>(
63 CTDSample_SalinityAlgorithm_descriptor(), name, value);
65 enum CTDSample_SoundSpeedAlgorithm {
66 CTDSample_SoundSpeedAlgorithm_SS_ALGORITHM_UNKNOWN = 0,
67 CTDSample_SoundSpeedAlgorithm_UNESCO_44_CHEN_AND_MILLERO_1977 = 1,
68 CTDSample_SoundSpeedAlgorithm_MACKENZIE_1981 = 2,
69 CTDSample_SoundSpeedAlgorithm_DEL_GROSSO_1974 = 3
71 bool CTDSample_SoundSpeedAlgorithm_IsValid(
int value);
72 const CTDSample_SoundSpeedAlgorithm CTDSample_SoundSpeedAlgorithm_SoundSpeedAlgorithm_MIN = CTDSample_SoundSpeedAlgorithm_SS_ALGORITHM_UNKNOWN;
73 const CTDSample_SoundSpeedAlgorithm CTDSample_SoundSpeedAlgorithm_SoundSpeedAlgorithm_MAX = CTDSample_SoundSpeedAlgorithm_DEL_GROSSO_1974;
74 const int CTDSample_SoundSpeedAlgorithm_SoundSpeedAlgorithm_ARRAYSIZE = CTDSample_SoundSpeedAlgorithm_SoundSpeedAlgorithm_MAX + 1;
76 const ::google::protobuf::EnumDescriptor* CTDSample_SoundSpeedAlgorithm_descriptor();
77 inline const ::std::string& CTDSample_SoundSpeedAlgorithm_Name(CTDSample_SoundSpeedAlgorithm value) {
78 return ::google::protobuf::internal::NameOfEnum(
79 CTDSample_SoundSpeedAlgorithm_descriptor(), value);
81 inline bool CTDSample_SoundSpeedAlgorithm_Parse(
82 const ::std::string& name, CTDSample_SoundSpeedAlgorithm* value) {
83 return ::google::protobuf::internal::ParseNamedEnum<CTDSample_SoundSpeedAlgorithm>(
84 CTDSample_SoundSpeedAlgorithm_descriptor(), name, value);
86 enum CTDSample_DensityAlgorithm {
87 CTDSample_DensityAlgorithm_DENSITY_ALGORITHM_UNKNOWN = 0,
88 CTDSample_DensityAlgorithm_UNESCO_38_MILLERO_AND_POISSON_1981 = 1
90 bool CTDSample_DensityAlgorithm_IsValid(
int value);
91 const CTDSample_DensityAlgorithm CTDSample_DensityAlgorithm_DensityAlgorithm_MIN = CTDSample_DensityAlgorithm_DENSITY_ALGORITHM_UNKNOWN;
92 const CTDSample_DensityAlgorithm CTDSample_DensityAlgorithm_DensityAlgorithm_MAX = CTDSample_DensityAlgorithm_UNESCO_38_MILLERO_AND_POISSON_1981;
93 const int CTDSample_DensityAlgorithm_DensityAlgorithm_ARRAYSIZE = CTDSample_DensityAlgorithm_DensityAlgorithm_MAX + 1;
95 const ::google::protobuf::EnumDescriptor* CTDSample_DensityAlgorithm_descriptor();
96 inline const ::std::string& CTDSample_DensityAlgorithm_Name(CTDSample_DensityAlgorithm value) {
97 return ::google::protobuf::internal::NameOfEnum(
98 CTDSample_DensityAlgorithm_descriptor(), value);
100 inline bool CTDSample_DensityAlgorithm_Parse(
101 const ::std::string& name, CTDSample_DensityAlgorithm* value) {
102 return ::google::protobuf::internal::ParseNamedEnum<CTDSample_DensityAlgorithm>(
103 CTDSample_DensityAlgorithm_descriptor(), name, value);
119 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
120 return _unknown_fields_;
123 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
124 return &_unknown_fields_;
127 static const ::google::protobuf::Descriptor* descriptor();
128 static const CTDSample& default_instance();
135 void CopyFrom(const ::google::protobuf::Message& from);
136 void MergeFrom(const ::google::protobuf::Message& from);
140 bool IsInitialized()
const;
142 int ByteSize()
const;
143 bool MergePartialFromCodedStream(
144 ::google::protobuf::io::CodedInputStream* input);
145 void SerializeWithCachedSizes(
146 ::google::protobuf::io::CodedOutputStream* output)
const;
147 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
148 int GetCachedSize()
const {
return _cached_size_; }
152 void SetCachedSize(
int size)
const;
154 ::google::protobuf::Metadata GetMetadata()
const;
158 typedef CTDSample_SalinityAlgorithm SalinityAlgorithm;
159 static const SalinityAlgorithm SAL_ALGORITHM_UNKNOWN = CTDSample_SalinityAlgorithm_SAL_ALGORITHM_UNKNOWN;
160 static const SalinityAlgorithm UNESCO_44_PREKIN_AND_LEWIS_1980 = CTDSample_SalinityAlgorithm_UNESCO_44_PREKIN_AND_LEWIS_1980;
161 static inline bool SalinityAlgorithm_IsValid(
int value) {
162 return CTDSample_SalinityAlgorithm_IsValid(value);
164 static const SalinityAlgorithm SalinityAlgorithm_MIN =
165 CTDSample_SalinityAlgorithm_SalinityAlgorithm_MIN;
166 static const SalinityAlgorithm SalinityAlgorithm_MAX =
167 CTDSample_SalinityAlgorithm_SalinityAlgorithm_MAX;
168 static const int SalinityAlgorithm_ARRAYSIZE =
169 CTDSample_SalinityAlgorithm_SalinityAlgorithm_ARRAYSIZE;
170 static inline const ::google::protobuf::EnumDescriptor*
171 SalinityAlgorithm_descriptor() {
172 return CTDSample_SalinityAlgorithm_descriptor();
174 static inline const ::std::string& SalinityAlgorithm_Name(SalinityAlgorithm value) {
175 return CTDSample_SalinityAlgorithm_Name(value);
177 static inline bool SalinityAlgorithm_Parse(const ::std::string& name,
178 SalinityAlgorithm* value) {
179 return CTDSample_SalinityAlgorithm_Parse(name, value);
182 typedef CTDSample_SoundSpeedAlgorithm SoundSpeedAlgorithm;
183 static const SoundSpeedAlgorithm SS_ALGORITHM_UNKNOWN = CTDSample_SoundSpeedAlgorithm_SS_ALGORITHM_UNKNOWN;
184 static const SoundSpeedAlgorithm UNESCO_44_CHEN_AND_MILLERO_1977 = CTDSample_SoundSpeedAlgorithm_UNESCO_44_CHEN_AND_MILLERO_1977;
185 static const SoundSpeedAlgorithm MACKENZIE_1981 = CTDSample_SoundSpeedAlgorithm_MACKENZIE_1981;
186 static const SoundSpeedAlgorithm DEL_GROSSO_1974 = CTDSample_SoundSpeedAlgorithm_DEL_GROSSO_1974;
187 static inline bool SoundSpeedAlgorithm_IsValid(
int value) {
188 return CTDSample_SoundSpeedAlgorithm_IsValid(value);
190 static const SoundSpeedAlgorithm SoundSpeedAlgorithm_MIN =
191 CTDSample_SoundSpeedAlgorithm_SoundSpeedAlgorithm_MIN;
192 static const SoundSpeedAlgorithm SoundSpeedAlgorithm_MAX =
193 CTDSample_SoundSpeedAlgorithm_SoundSpeedAlgorithm_MAX;
194 static const int SoundSpeedAlgorithm_ARRAYSIZE =
195 CTDSample_SoundSpeedAlgorithm_SoundSpeedAlgorithm_ARRAYSIZE;
196 static inline const ::google::protobuf::EnumDescriptor*
197 SoundSpeedAlgorithm_descriptor() {
198 return CTDSample_SoundSpeedAlgorithm_descriptor();
200 static inline const ::std::string& SoundSpeedAlgorithm_Name(SoundSpeedAlgorithm value) {
201 return CTDSample_SoundSpeedAlgorithm_Name(value);
203 static inline bool SoundSpeedAlgorithm_Parse(const ::std::string& name,
204 SoundSpeedAlgorithm* value) {
205 return CTDSample_SoundSpeedAlgorithm_Parse(name, value);
208 typedef CTDSample_DensityAlgorithm DensityAlgorithm;
209 static const DensityAlgorithm DENSITY_ALGORITHM_UNKNOWN = CTDSample_DensityAlgorithm_DENSITY_ALGORITHM_UNKNOWN;
210 static const DensityAlgorithm UNESCO_38_MILLERO_AND_POISSON_1981 = CTDSample_DensityAlgorithm_UNESCO_38_MILLERO_AND_POISSON_1981;
211 static inline bool DensityAlgorithm_IsValid(
int value) {
212 return CTDSample_DensityAlgorithm_IsValid(value);
214 static const DensityAlgorithm DensityAlgorithm_MIN =
215 CTDSample_DensityAlgorithm_DensityAlgorithm_MIN;
216 static const DensityAlgorithm DensityAlgorithm_MAX =
217 CTDSample_DensityAlgorithm_DensityAlgorithm_MAX;
218 static const int DensityAlgorithm_ARRAYSIZE =
219 CTDSample_DensityAlgorithm_DensityAlgorithm_ARRAYSIZE;
220 static inline const ::google::protobuf::EnumDescriptor*
221 DensityAlgorithm_descriptor() {
222 return CTDSample_DensityAlgorithm_descriptor();
224 static inline const ::std::string& DensityAlgorithm_Name(DensityAlgorithm value) {
225 return CTDSample_DensityAlgorithm_Name(value);
227 static inline bool DensityAlgorithm_Parse(const ::std::string& name,
228 DensityAlgorithm* value) {
229 return CTDSample_DensityAlgorithm_Parse(name, value);
235 inline bool has_source_id()
const;
236 inline void clear_source_id();
237 static const int kSourceIdFieldNumber = 1;
238 inline ::google::protobuf::int32 source_id()
const;
239 inline void set_source_id(::google::protobuf::int32 value);
242 inline bool has_time()
const;
243 inline void clear_time();
244 static const int kTimeFieldNumber = 2;
245 inline double time()
const;
246 inline void set_time(
double value);
249 inline bool has_conductivity()
const;
250 inline void clear_conductivity();
251 static const int kConductivityFieldNumber = 10;
252 inline double conductivity()
const;
253 inline void set_conductivity(
double value);
256 inline bool has_temperature()
const;
257 inline void clear_temperature();
258 static const int kTemperatureFieldNumber = 11;
259 inline double temperature()
const;
260 inline void set_temperature(
double value);
263 inline bool has_pressure()
const;
264 inline void clear_pressure();
265 static const int kPressureFieldNumber = 12;
266 inline double pressure()
const;
267 inline void set_pressure(
double value);
270 inline bool has_salinity()
const;
271 inline void clear_salinity();
272 static const int kSalinityFieldNumber = 20;
273 inline double salinity()
const;
274 inline void set_salinity(
double value);
277 inline bool has_sound_speed()
const;
278 inline void clear_sound_speed();
279 static const int kSoundSpeedFieldNumber = 21;
280 inline double sound_speed()
const;
281 inline void set_sound_speed(
double value);
284 inline bool has_density()
const;
285 inline void clear_density();
286 static const int kDensityFieldNumber = 22;
287 inline double density()
const;
288 inline void set_density(
double value);
291 inline bool has_depth()
const;
292 inline void clear_depth();
293 static const int kDepthFieldNumber = 23;
294 inline double depth()
const;
295 inline void set_depth(
double value);
298 inline bool has_lat()
const;
299 inline void clear_lat();
300 static const int kLatFieldNumber = 24;
301 inline double lat()
const;
302 inline void set_lat(
double value);
305 inline bool has_lon()
const;
306 inline void clear_lon();
307 static const int kLonFieldNumber = 25;
308 inline double lon()
const;
309 inline void set_lon(
double value);
312 inline bool has_salinity_algorithm()
const;
313 inline void clear_salinity_algorithm();
314 static const int kSalinityAlgorithmFieldNumber = 30;
315 inline ::goby::moos::protobuf::CTDSample_SalinityAlgorithm salinity_algorithm()
const;
316 inline void set_salinity_algorithm(::goby::moos::protobuf::CTDSample_SalinityAlgorithm value);
319 inline bool has_sound_speed_algorithm()
const;
320 inline void clear_sound_speed_algorithm();
321 static const int kSoundSpeedAlgorithmFieldNumber = 31;
322 inline ::goby::moos::protobuf::CTDSample_SoundSpeedAlgorithm sound_speed_algorithm()
const;
323 inline void set_sound_speed_algorithm(::goby::moos::protobuf::CTDSample_SoundSpeedAlgorithm value);
326 inline bool has_density_algorithm()
const;
327 inline void clear_density_algorithm();
328 static const int kDensityAlgorithmFieldNumber = 32;
329 inline ::goby::moos::protobuf::CTDSample_DensityAlgorithm density_algorithm()
const;
330 inline void set_density_algorithm(::goby::moos::protobuf::CTDSample_DensityAlgorithm value);
332 enum DCCLParameters { DCCL_ID = 200, DCCL_MAX_BYTES = 32 };
335 inline void set_has_source_id();
336 inline void clear_has_source_id();
337 inline void set_has_time();
338 inline void clear_has_time();
339 inline void set_has_conductivity();
340 inline void clear_has_conductivity();
341 inline void set_has_temperature();
342 inline void clear_has_temperature();
343 inline void set_has_pressure();
344 inline void clear_has_pressure();
345 inline void set_has_salinity();
346 inline void clear_has_salinity();
347 inline void set_has_sound_speed();
348 inline void clear_has_sound_speed();
349 inline void set_has_density();
350 inline void clear_has_density();
351 inline void set_has_depth();
352 inline void clear_has_depth();
353 inline void set_has_lat();
354 inline void clear_has_lat();
355 inline void set_has_lon();
356 inline void clear_has_lon();
357 inline void set_has_salinity_algorithm();
358 inline void clear_has_salinity_algorithm();
359 inline void set_has_sound_speed_algorithm();
360 inline void clear_has_sound_speed_algorithm();
361 inline void set_has_density_algorithm();
362 inline void clear_has_density_algorithm();
364 ::google::protobuf::UnknownFieldSet _unknown_fields_;
366 ::google::protobuf::uint32 _has_bits_[1];
367 mutable int _cached_size_;
369 double conductivity_;
373 ::google::protobuf::int32 source_id_;
374 int salinity_algorithm_;
380 int sound_speed_algorithm_;
381 int density_algorithm_;
382 friend void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fctd_5fsample_2eproto();
383 friend void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fctd_5fsample_2eproto();
384 friend void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fctd_5fsample_2eproto();
386 void InitAsDefaultInstance();
397 inline bool CTDSample::has_source_id()
const {
398 return (_has_bits_[0] & 0x00000001u) != 0;
400 inline void CTDSample::set_has_source_id() {
401 _has_bits_[0] |= 0x00000001u;
403 inline void CTDSample::clear_has_source_id() {
404 _has_bits_[0] &= ~0x00000001u;
406 inline void CTDSample::clear_source_id() {
408 clear_has_source_id();
410 inline ::google::protobuf::int32 CTDSample::source_id()
const {
414 inline void CTDSample::set_source_id(::google::protobuf::int32 value) {
421 inline bool CTDSample::has_time()
const {
422 return (_has_bits_[0] & 0x00000002u) != 0;
424 inline void CTDSample::set_has_time() {
425 _has_bits_[0] |= 0x00000002u;
427 inline void CTDSample::clear_has_time() {
428 _has_bits_[0] &= ~0x00000002u;
430 inline void CTDSample::clear_time() {
434 inline double CTDSample::time()
const {
438 inline void CTDSample::set_time(
double value) {
445 inline bool CTDSample::has_conductivity()
const {
446 return (_has_bits_[0] & 0x00000004u) != 0;
448 inline void CTDSample::set_has_conductivity() {
449 _has_bits_[0] |= 0x00000004u;
451 inline void CTDSample::clear_has_conductivity() {
452 _has_bits_[0] &= ~0x00000004u;
454 inline void CTDSample::clear_conductivity() {
456 clear_has_conductivity();
458 inline double CTDSample::conductivity()
const {
460 return conductivity_;
462 inline void CTDSample::set_conductivity(
double value) {
463 set_has_conductivity();
464 conductivity_ = value;
469 inline bool CTDSample::has_temperature()
const {
470 return (_has_bits_[0] & 0x00000008u) != 0;
472 inline void CTDSample::set_has_temperature() {
473 _has_bits_[0] |= 0x00000008u;
475 inline void CTDSample::clear_has_temperature() {
476 _has_bits_[0] &= ~0x00000008u;
478 inline void CTDSample::clear_temperature() {
480 clear_has_temperature();
482 inline double CTDSample::temperature()
const {
486 inline void CTDSample::set_temperature(
double value) {
487 set_has_temperature();
488 temperature_ = value;
493 inline bool CTDSample::has_pressure()
const {
494 return (_has_bits_[0] & 0x00000010u) != 0;
496 inline void CTDSample::set_has_pressure() {
497 _has_bits_[0] |= 0x00000010u;
499 inline void CTDSample::clear_has_pressure() {
500 _has_bits_[0] &= ~0x00000010u;
502 inline void CTDSample::clear_pressure() {
504 clear_has_pressure();
506 inline double CTDSample::pressure()
const {
510 inline void CTDSample::set_pressure(
double value) {
517 inline bool CTDSample::has_salinity()
const {
518 return (_has_bits_[0] & 0x00000020u) != 0;
520 inline void CTDSample::set_has_salinity() {
521 _has_bits_[0] |= 0x00000020u;
523 inline void CTDSample::clear_has_salinity() {
524 _has_bits_[0] &= ~0x00000020u;
526 inline void CTDSample::clear_salinity() {
528 clear_has_salinity();
530 inline double CTDSample::salinity()
const {
534 inline void CTDSample::set_salinity(
double value) {
541 inline bool CTDSample::has_sound_speed()
const {
542 return (_has_bits_[0] & 0x00000040u) != 0;
544 inline void CTDSample::set_has_sound_speed() {
545 _has_bits_[0] |= 0x00000040u;
547 inline void CTDSample::clear_has_sound_speed() {
548 _has_bits_[0] &= ~0x00000040u;
550 inline void CTDSample::clear_sound_speed() {
552 clear_has_sound_speed();
554 inline double CTDSample::sound_speed()
const {
558 inline void CTDSample::set_sound_speed(
double value) {
559 set_has_sound_speed();
560 sound_speed_ = value;
565 inline bool CTDSample::has_density()
const {
566 return (_has_bits_[0] & 0x00000080u) != 0;
568 inline void CTDSample::set_has_density() {
569 _has_bits_[0] |= 0x00000080u;
571 inline void CTDSample::clear_has_density() {
572 _has_bits_[0] &= ~0x00000080u;
574 inline void CTDSample::clear_density() {
578 inline double CTDSample::density()
const {
582 inline void CTDSample::set_density(
double value) {
589 inline bool CTDSample::has_depth()
const {
590 return (_has_bits_[0] & 0x00000100u) != 0;
592 inline void CTDSample::set_has_depth() {
593 _has_bits_[0] |= 0x00000100u;
595 inline void CTDSample::clear_has_depth() {
596 _has_bits_[0] &= ~0x00000100u;
598 inline void CTDSample::clear_depth() {
602 inline double CTDSample::depth()
const {
606 inline void CTDSample::set_depth(
double value) {
613 inline bool CTDSample::has_lat()
const {
614 return (_has_bits_[0] & 0x00000200u) != 0;
616 inline void CTDSample::set_has_lat() {
617 _has_bits_[0] |= 0x00000200u;
619 inline void CTDSample::clear_has_lat() {
620 _has_bits_[0] &= ~0x00000200u;
622 inline void CTDSample::clear_lat() {
626 inline double CTDSample::lat()
const {
630 inline void CTDSample::set_lat(
double value) {
637 inline bool CTDSample::has_lon()
const {
638 return (_has_bits_[0] & 0x00000400u) != 0;
640 inline void CTDSample::set_has_lon() {
641 _has_bits_[0] |= 0x00000400u;
643 inline void CTDSample::clear_has_lon() {
644 _has_bits_[0] &= ~0x00000400u;
646 inline void CTDSample::clear_lon() {
650 inline double CTDSample::lon()
const {
654 inline void CTDSample::set_lon(
double value) {
661 inline bool CTDSample::has_salinity_algorithm()
const {
662 return (_has_bits_[0] & 0x00000800u) != 0;
664 inline void CTDSample::set_has_salinity_algorithm() {
665 _has_bits_[0] |= 0x00000800u;
667 inline void CTDSample::clear_has_salinity_algorithm() {
668 _has_bits_[0] &= ~0x00000800u;
670 inline void CTDSample::clear_salinity_algorithm() {
671 salinity_algorithm_ = 0;
672 clear_has_salinity_algorithm();
674 inline ::goby::moos::protobuf::CTDSample_SalinityAlgorithm CTDSample::salinity_algorithm()
const {
676 return static_cast< ::goby::moos::protobuf::CTDSample_SalinityAlgorithm
>(salinity_algorithm_);
678 inline void CTDSample::set_salinity_algorithm(::goby::moos::protobuf::CTDSample_SalinityAlgorithm value) {
679 assert(::goby::moos::protobuf::CTDSample_SalinityAlgorithm_IsValid(value));
680 set_has_salinity_algorithm();
681 salinity_algorithm_ = value;
686 inline bool CTDSample::has_sound_speed_algorithm()
const {
687 return (_has_bits_[0] & 0x00001000u) != 0;
689 inline void CTDSample::set_has_sound_speed_algorithm() {
690 _has_bits_[0] |= 0x00001000u;
692 inline void CTDSample::clear_has_sound_speed_algorithm() {
693 _has_bits_[0] &= ~0x00001000u;
695 inline void CTDSample::clear_sound_speed_algorithm() {
696 sound_speed_algorithm_ = 0;
697 clear_has_sound_speed_algorithm();
699 inline ::goby::moos::protobuf::CTDSample_SoundSpeedAlgorithm CTDSample::sound_speed_algorithm()
const {
701 return static_cast< ::goby::moos::protobuf::CTDSample_SoundSpeedAlgorithm
>(sound_speed_algorithm_);
703 inline void CTDSample::set_sound_speed_algorithm(::goby::moos::protobuf::CTDSample_SoundSpeedAlgorithm value) {
704 assert(::goby::moos::protobuf::CTDSample_SoundSpeedAlgorithm_IsValid(value));
705 set_has_sound_speed_algorithm();
706 sound_speed_algorithm_ = value;
711 inline bool CTDSample::has_density_algorithm()
const {
712 return (_has_bits_[0] & 0x00002000u) != 0;
714 inline void CTDSample::set_has_density_algorithm() {
715 _has_bits_[0] |= 0x00002000u;
717 inline void CTDSample::clear_has_density_algorithm() {
718 _has_bits_[0] &= ~0x00002000u;
720 inline void CTDSample::clear_density_algorithm() {
721 density_algorithm_ = 0;
722 clear_has_density_algorithm();
724 inline ::goby::moos::protobuf::CTDSample_DensityAlgorithm CTDSample::density_algorithm()
const {
726 return static_cast< ::goby::moos::protobuf::CTDSample_DensityAlgorithm
>(density_algorithm_);
728 inline void CTDSample::set_density_algorithm(::goby::moos::protobuf::CTDSample_DensityAlgorithm value) {
729 assert(::goby::moos::protobuf::CTDSample_DensityAlgorithm_IsValid(value));
730 set_has_density_algorithm();
731 density_algorithm_ = value;
746 template <>
struct is_proto_enum< ::goby::moos::protobuf::CTDSample_SalinityAlgorithm> : ::google::protobuf::internal::true_type {};
748 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::CTDSample_SalinityAlgorithm>() {
749 return ::goby::moos::protobuf::CTDSample_SalinityAlgorithm_descriptor();
751 template <>
struct is_proto_enum< ::goby::moos::protobuf::CTDSample_SoundSpeedAlgorithm> : ::google::protobuf::internal::true_type {};
753 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::CTDSample_SoundSpeedAlgorithm>() {
754 return ::goby::moos::protobuf::CTDSample_SoundSpeedAlgorithm_descriptor();
756 template <>
struct is_proto_enum< ::goby::moos::protobuf::CTDSample_DensityAlgorithm> : ::google::protobuf::internal::true_type {};
758 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::CTDSample_DensityAlgorithm>() {
759 return ::goby::moos::protobuf::CTDSample_DensityAlgorithm_descriptor();
768 #endif // PROTOBUF_goby_2fmoos_2fprotobuf_2fctd_5fsample_2eproto__INCLUDED
The global namespace for the Goby project.