Goby v2
ctd_sample.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/moos/protobuf/ctd_sample.proto
3 
4 #ifndef PROTOBUF_goby_2fmoos_2fprotobuf_2fctd_5fsample_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fmoos_2fprotobuf_2fctd_5fsample_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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>
33 // @@protoc_insertion_point(includes)
34 
35 namespace goby {
36 namespace moos {
37 namespace protobuf {
38 
39 // Internal implementation detail -- do not call these.
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();
43 
44 class CTDSample;
45 
46 enum CTDSample_SalinityAlgorithm {
47  CTDSample_SalinityAlgorithm_SAL_ALGORITHM_UNKNOWN = 0,
48  CTDSample_SalinityAlgorithm_UNESCO_44_PREKIN_AND_LEWIS_1980 = 1
49 };
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;
54 
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);
59 }
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);
64 }
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
70 };
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;
75 
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);
80 }
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);
85 }
86 enum CTDSample_DensityAlgorithm {
87  CTDSample_DensityAlgorithm_DENSITY_ALGORITHM_UNKNOWN = 0,
88  CTDSample_DensityAlgorithm_UNESCO_38_MILLERO_AND_POISSON_1981 = 1
89 };
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;
94 
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);
99 }
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);
104 }
105 // ===================================================================
106 
107 class CTDSample : public ::google::protobuf::Message {
108  public:
109  CTDSample();
110  virtual ~CTDSample();
111 
112  CTDSample(const CTDSample& from);
113 
114  inline CTDSample& operator=(const CTDSample& from) {
115  CopyFrom(from);
116  return *this;
117  }
118 
119  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
120  return _unknown_fields_;
121  }
122 
123  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
124  return &_unknown_fields_;
125  }
126 
127  static const ::google::protobuf::Descriptor* descriptor();
128  static const CTDSample& default_instance();
129 
130  void Swap(CTDSample* other);
131 
132  // implements Message ----------------------------------------------
133 
134  CTDSample* New() const;
135  void CopyFrom(const ::google::protobuf::Message& from);
136  void MergeFrom(const ::google::protobuf::Message& from);
137  void CopyFrom(const CTDSample& from);
138  void MergeFrom(const CTDSample& from);
139  void Clear();
140  bool IsInitialized() const;
141 
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_; }
149  private:
150  void SharedCtor();
151  void SharedDtor();
152  void SetCachedSize(int size) const;
153  public:
154  ::google::protobuf::Metadata GetMetadata() const;
155 
156  // nested types ----------------------------------------------------
157 
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);
163  }
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();
173  }
174  static inline const ::std::string& SalinityAlgorithm_Name(SalinityAlgorithm value) {
175  return CTDSample_SalinityAlgorithm_Name(value);
176  }
177  static inline bool SalinityAlgorithm_Parse(const ::std::string& name,
178  SalinityAlgorithm* value) {
179  return CTDSample_SalinityAlgorithm_Parse(name, value);
180  }
181 
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);
189  }
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();
199  }
200  static inline const ::std::string& SoundSpeedAlgorithm_Name(SoundSpeedAlgorithm value) {
201  return CTDSample_SoundSpeedAlgorithm_Name(value);
202  }
203  static inline bool SoundSpeedAlgorithm_Parse(const ::std::string& name,
204  SoundSpeedAlgorithm* value) {
205  return CTDSample_SoundSpeedAlgorithm_Parse(name, value);
206  }
207 
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);
213  }
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();
223  }
224  static inline const ::std::string& DensityAlgorithm_Name(DensityAlgorithm value) {
225  return CTDSample_DensityAlgorithm_Name(value);
226  }
227  static inline bool DensityAlgorithm_Parse(const ::std::string& name,
228  DensityAlgorithm* value) {
229  return CTDSample_DensityAlgorithm_Parse(name, value);
230  }
231 
232  // accessors -------------------------------------------------------
233 
234  // optional int32 source_id = 1;
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);
240 
241  // required double time = 2;
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);
247 
248  // optional double conductivity = 10;
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);
254 
255  // required double temperature = 11;
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);
261 
262  // required double pressure = 12;
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);
268 
269  // required double salinity = 20;
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);
275 
276  // required double sound_speed = 21;
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);
282 
283  // required double density = 22;
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);
289 
290  // required double depth = 23;
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);
296 
297  // required double lat = 24;
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);
303 
304  // required double lon = 25;
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);
310 
311  // optional .goby.moos.protobuf.CTDSample.SalinityAlgorithm salinity_algorithm = 30 [default = SAL_ALGORITHM_UNKNOWN];
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);
317 
318  // optional .goby.moos.protobuf.CTDSample.SoundSpeedAlgorithm sound_speed_algorithm = 31 [default = SS_ALGORITHM_UNKNOWN];
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);
324 
325  // optional .goby.moos.protobuf.CTDSample.DensityAlgorithm density_algorithm = 32 [default = DENSITY_ALGORITHM_UNKNOWN];
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);
331 
332  enum DCCLParameters { DCCL_ID = 200, DCCL_MAX_BYTES = 32 };
333  // @@protoc_insertion_point(class_scope:goby.moos.protobuf.CTDSample)
334  private:
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();
363 
364  ::google::protobuf::UnknownFieldSet _unknown_fields_;
365 
366  ::google::protobuf::uint32 _has_bits_[1];
367  mutable int _cached_size_;
368  double time_;
369  double conductivity_;
370  double temperature_;
371  double pressure_;
372  double salinity_;
373  ::google::protobuf::int32 source_id_;
374  int salinity_algorithm_;
375  double sound_speed_;
376  double density_;
377  double depth_;
378  double lat_;
379  double lon_;
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();
385 
386  void InitAsDefaultInstance();
387  static CTDSample* default_instance_;
388 };
389 // ===================================================================
390 
391 
392 // ===================================================================
393 
394 // CTDSample
395 
396 // optional int32 source_id = 1;
397 inline bool CTDSample::has_source_id() const {
398  return (_has_bits_[0] & 0x00000001u) != 0;
399 }
400 inline void CTDSample::set_has_source_id() {
401  _has_bits_[0] |= 0x00000001u;
402 }
403 inline void CTDSample::clear_has_source_id() {
404  _has_bits_[0] &= ~0x00000001u;
405 }
406 inline void CTDSample::clear_source_id() {
407  source_id_ = 0;
408  clear_has_source_id();
409 }
410 inline ::google::protobuf::int32 CTDSample::source_id() const {
411  // @@protoc_insertion_point(field_get:goby.moos.protobuf.CTDSample.source_id)
412  return source_id_;
413 }
414 inline void CTDSample::set_source_id(::google::protobuf::int32 value) {
415  set_has_source_id();
416  source_id_ = value;
417  // @@protoc_insertion_point(field_set:goby.moos.protobuf.CTDSample.source_id)
418 }
419 
420 // required double time = 2;
421 inline bool CTDSample::has_time() const {
422  return (_has_bits_[0] & 0x00000002u) != 0;
423 }
424 inline void CTDSample::set_has_time() {
425  _has_bits_[0] |= 0x00000002u;
426 }
427 inline void CTDSample::clear_has_time() {
428  _has_bits_[0] &= ~0x00000002u;
429 }
430 inline void CTDSample::clear_time() {
431  time_ = 0;
432  clear_has_time();
433 }
434 inline double CTDSample::time() const {
435  // @@protoc_insertion_point(field_get:goby.moos.protobuf.CTDSample.time)
436  return time_;
437 }
438 inline void CTDSample::set_time(double value) {
439  set_has_time();
440  time_ = value;
441  // @@protoc_insertion_point(field_set:goby.moos.protobuf.CTDSample.time)
442 }
443 
444 // optional double conductivity = 10;
445 inline bool CTDSample::has_conductivity() const {
446  return (_has_bits_[0] & 0x00000004u) != 0;
447 }
448 inline void CTDSample::set_has_conductivity() {
449  _has_bits_[0] |= 0x00000004u;
450 }
451 inline void CTDSample::clear_has_conductivity() {
452  _has_bits_[0] &= ~0x00000004u;
453 }
454 inline void CTDSample::clear_conductivity() {
455  conductivity_ = 0;
456  clear_has_conductivity();
457 }
458 inline double CTDSample::conductivity() const {
459  // @@protoc_insertion_point(field_get:goby.moos.protobuf.CTDSample.conductivity)
460  return conductivity_;
461 }
462 inline void CTDSample::set_conductivity(double value) {
463  set_has_conductivity();
464  conductivity_ = value;
465  // @@protoc_insertion_point(field_set:goby.moos.protobuf.CTDSample.conductivity)
466 }
467 
468 // required double temperature = 11;
469 inline bool CTDSample::has_temperature() const {
470  return (_has_bits_[0] & 0x00000008u) != 0;
471 }
472 inline void CTDSample::set_has_temperature() {
473  _has_bits_[0] |= 0x00000008u;
474 }
475 inline void CTDSample::clear_has_temperature() {
476  _has_bits_[0] &= ~0x00000008u;
477 }
478 inline void CTDSample::clear_temperature() {
479  temperature_ = 0;
480  clear_has_temperature();
481 }
482 inline double CTDSample::temperature() const {
483  // @@protoc_insertion_point(field_get:goby.moos.protobuf.CTDSample.temperature)
484  return temperature_;
485 }
486 inline void CTDSample::set_temperature(double value) {
487  set_has_temperature();
488  temperature_ = value;
489  // @@protoc_insertion_point(field_set:goby.moos.protobuf.CTDSample.temperature)
490 }
491 
492 // required double pressure = 12;
493 inline bool CTDSample::has_pressure() const {
494  return (_has_bits_[0] & 0x00000010u) != 0;
495 }
496 inline void CTDSample::set_has_pressure() {
497  _has_bits_[0] |= 0x00000010u;
498 }
499 inline void CTDSample::clear_has_pressure() {
500  _has_bits_[0] &= ~0x00000010u;
501 }
502 inline void CTDSample::clear_pressure() {
503  pressure_ = 0;
504  clear_has_pressure();
505 }
506 inline double CTDSample::pressure() const {
507  // @@protoc_insertion_point(field_get:goby.moos.protobuf.CTDSample.pressure)
508  return pressure_;
509 }
510 inline void CTDSample::set_pressure(double value) {
511  set_has_pressure();
512  pressure_ = value;
513  // @@protoc_insertion_point(field_set:goby.moos.protobuf.CTDSample.pressure)
514 }
515 
516 // required double salinity = 20;
517 inline bool CTDSample::has_salinity() const {
518  return (_has_bits_[0] & 0x00000020u) != 0;
519 }
520 inline void CTDSample::set_has_salinity() {
521  _has_bits_[0] |= 0x00000020u;
522 }
523 inline void CTDSample::clear_has_salinity() {
524  _has_bits_[0] &= ~0x00000020u;
525 }
526 inline void CTDSample::clear_salinity() {
527  salinity_ = 0;
528  clear_has_salinity();
529 }
530 inline double CTDSample::salinity() const {
531  // @@protoc_insertion_point(field_get:goby.moos.protobuf.CTDSample.salinity)
532  return salinity_;
533 }
534 inline void CTDSample::set_salinity(double value) {
535  set_has_salinity();
536  salinity_ = value;
537  // @@protoc_insertion_point(field_set:goby.moos.protobuf.CTDSample.salinity)
538 }
539 
540 // required double sound_speed = 21;
541 inline bool CTDSample::has_sound_speed() const {
542  return (_has_bits_[0] & 0x00000040u) != 0;
543 }
544 inline void CTDSample::set_has_sound_speed() {
545  _has_bits_[0] |= 0x00000040u;
546 }
547 inline void CTDSample::clear_has_sound_speed() {
548  _has_bits_[0] &= ~0x00000040u;
549 }
550 inline void CTDSample::clear_sound_speed() {
551  sound_speed_ = 0;
552  clear_has_sound_speed();
553 }
554 inline double CTDSample::sound_speed() const {
555  // @@protoc_insertion_point(field_get:goby.moos.protobuf.CTDSample.sound_speed)
556  return sound_speed_;
557 }
558 inline void CTDSample::set_sound_speed(double value) {
559  set_has_sound_speed();
560  sound_speed_ = value;
561  // @@protoc_insertion_point(field_set:goby.moos.protobuf.CTDSample.sound_speed)
562 }
563 
564 // required double density = 22;
565 inline bool CTDSample::has_density() const {
566  return (_has_bits_[0] & 0x00000080u) != 0;
567 }
568 inline void CTDSample::set_has_density() {
569  _has_bits_[0] |= 0x00000080u;
570 }
571 inline void CTDSample::clear_has_density() {
572  _has_bits_[0] &= ~0x00000080u;
573 }
574 inline void CTDSample::clear_density() {
575  density_ = 0;
576  clear_has_density();
577 }
578 inline double CTDSample::density() const {
579  // @@protoc_insertion_point(field_get:goby.moos.protobuf.CTDSample.density)
580  return density_;
581 }
582 inline void CTDSample::set_density(double value) {
583  set_has_density();
584  density_ = value;
585  // @@protoc_insertion_point(field_set:goby.moos.protobuf.CTDSample.density)
586 }
587 
588 // required double depth = 23;
589 inline bool CTDSample::has_depth() const {
590  return (_has_bits_[0] & 0x00000100u) != 0;
591 }
592 inline void CTDSample::set_has_depth() {
593  _has_bits_[0] |= 0x00000100u;
594 }
595 inline void CTDSample::clear_has_depth() {
596  _has_bits_[0] &= ~0x00000100u;
597 }
598 inline void CTDSample::clear_depth() {
599  depth_ = 0;
600  clear_has_depth();
601 }
602 inline double CTDSample::depth() const {
603  // @@protoc_insertion_point(field_get:goby.moos.protobuf.CTDSample.depth)
604  return depth_;
605 }
606 inline void CTDSample::set_depth(double value) {
607  set_has_depth();
608  depth_ = value;
609  // @@protoc_insertion_point(field_set:goby.moos.protobuf.CTDSample.depth)
610 }
611 
612 // required double lat = 24;
613 inline bool CTDSample::has_lat() const {
614  return (_has_bits_[0] & 0x00000200u) != 0;
615 }
616 inline void CTDSample::set_has_lat() {
617  _has_bits_[0] |= 0x00000200u;
618 }
619 inline void CTDSample::clear_has_lat() {
620  _has_bits_[0] &= ~0x00000200u;
621 }
622 inline void CTDSample::clear_lat() {
623  lat_ = 0;
624  clear_has_lat();
625 }
626 inline double CTDSample::lat() const {
627  // @@protoc_insertion_point(field_get:goby.moos.protobuf.CTDSample.lat)
628  return lat_;
629 }
630 inline void CTDSample::set_lat(double value) {
631  set_has_lat();
632  lat_ = value;
633  // @@protoc_insertion_point(field_set:goby.moos.protobuf.CTDSample.lat)
634 }
635 
636 // required double lon = 25;
637 inline bool CTDSample::has_lon() const {
638  return (_has_bits_[0] & 0x00000400u) != 0;
639 }
640 inline void CTDSample::set_has_lon() {
641  _has_bits_[0] |= 0x00000400u;
642 }
643 inline void CTDSample::clear_has_lon() {
644  _has_bits_[0] &= ~0x00000400u;
645 }
646 inline void CTDSample::clear_lon() {
647  lon_ = 0;
648  clear_has_lon();
649 }
650 inline double CTDSample::lon() const {
651  // @@protoc_insertion_point(field_get:goby.moos.protobuf.CTDSample.lon)
652  return lon_;
653 }
654 inline void CTDSample::set_lon(double value) {
655  set_has_lon();
656  lon_ = value;
657  // @@protoc_insertion_point(field_set:goby.moos.protobuf.CTDSample.lon)
658 }
659 
660 // optional .goby.moos.protobuf.CTDSample.SalinityAlgorithm salinity_algorithm = 30 [default = SAL_ALGORITHM_UNKNOWN];
661 inline bool CTDSample::has_salinity_algorithm() const {
662  return (_has_bits_[0] & 0x00000800u) != 0;
663 }
664 inline void CTDSample::set_has_salinity_algorithm() {
665  _has_bits_[0] |= 0x00000800u;
666 }
667 inline void CTDSample::clear_has_salinity_algorithm() {
668  _has_bits_[0] &= ~0x00000800u;
669 }
670 inline void CTDSample::clear_salinity_algorithm() {
671  salinity_algorithm_ = 0;
672  clear_has_salinity_algorithm();
673 }
674 inline ::goby::moos::protobuf::CTDSample_SalinityAlgorithm CTDSample::salinity_algorithm() const {
675  // @@protoc_insertion_point(field_get:goby.moos.protobuf.CTDSample.salinity_algorithm)
676  return static_cast< ::goby::moos::protobuf::CTDSample_SalinityAlgorithm >(salinity_algorithm_);
677 }
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;
682  // @@protoc_insertion_point(field_set:goby.moos.protobuf.CTDSample.salinity_algorithm)
683 }
684 
685 // optional .goby.moos.protobuf.CTDSample.SoundSpeedAlgorithm sound_speed_algorithm = 31 [default = SS_ALGORITHM_UNKNOWN];
686 inline bool CTDSample::has_sound_speed_algorithm() const {
687  return (_has_bits_[0] & 0x00001000u) != 0;
688 }
689 inline void CTDSample::set_has_sound_speed_algorithm() {
690  _has_bits_[0] |= 0x00001000u;
691 }
692 inline void CTDSample::clear_has_sound_speed_algorithm() {
693  _has_bits_[0] &= ~0x00001000u;
694 }
695 inline void CTDSample::clear_sound_speed_algorithm() {
696  sound_speed_algorithm_ = 0;
697  clear_has_sound_speed_algorithm();
698 }
699 inline ::goby::moos::protobuf::CTDSample_SoundSpeedAlgorithm CTDSample::sound_speed_algorithm() const {
700  // @@protoc_insertion_point(field_get:goby.moos.protobuf.CTDSample.sound_speed_algorithm)
701  return static_cast< ::goby::moos::protobuf::CTDSample_SoundSpeedAlgorithm >(sound_speed_algorithm_);
702 }
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;
707  // @@protoc_insertion_point(field_set:goby.moos.protobuf.CTDSample.sound_speed_algorithm)
708 }
709 
710 // optional .goby.moos.protobuf.CTDSample.DensityAlgorithm density_algorithm = 32 [default = DENSITY_ALGORITHM_UNKNOWN];
711 inline bool CTDSample::has_density_algorithm() const {
712  return (_has_bits_[0] & 0x00002000u) != 0;
713 }
714 inline void CTDSample::set_has_density_algorithm() {
715  _has_bits_[0] |= 0x00002000u;
716 }
717 inline void CTDSample::clear_has_density_algorithm() {
718  _has_bits_[0] &= ~0x00002000u;
719 }
720 inline void CTDSample::clear_density_algorithm() {
721  density_algorithm_ = 0;
722  clear_has_density_algorithm();
723 }
724 inline ::goby::moos::protobuf::CTDSample_DensityAlgorithm CTDSample::density_algorithm() const {
725  // @@protoc_insertion_point(field_get:goby.moos.protobuf.CTDSample.density_algorithm)
726  return static_cast< ::goby::moos::protobuf::CTDSample_DensityAlgorithm >(density_algorithm_);
727 }
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;
732  // @@protoc_insertion_point(field_set:goby.moos.protobuf.CTDSample.density_algorithm)
733 }
734 
735 
736 // @@protoc_insertion_point(namespace_scope)
737 
738 } // namespace protobuf
739 } // namespace moos
740 } // namespace goby
741 
742 #ifndef SWIG
743 namespace google {
744 namespace protobuf {
745 
746 template <> struct is_proto_enum< ::goby::moos::protobuf::CTDSample_SalinityAlgorithm> : ::google::protobuf::internal::true_type {};
747 template <>
748 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::CTDSample_SalinityAlgorithm>() {
749  return ::goby::moos::protobuf::CTDSample_SalinityAlgorithm_descriptor();
750 }
751 template <> struct is_proto_enum< ::goby::moos::protobuf::CTDSample_SoundSpeedAlgorithm> : ::google::protobuf::internal::true_type {};
752 template <>
753 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::CTDSample_SoundSpeedAlgorithm>() {
754  return ::goby::moos::protobuf::CTDSample_SoundSpeedAlgorithm_descriptor();
755 }
756 template <> struct is_proto_enum< ::goby::moos::protobuf::CTDSample_DensityAlgorithm> : ::google::protobuf::internal::true_type {};
757 template <>
758 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::CTDSample_DensityAlgorithm>() {
759  return ::goby::moos::protobuf::CTDSample_DensityAlgorithm_descriptor();
760 }
761 
762 } // namespace google
763 } // namespace protobuf
764 #endif // SWIG
765 
766 // @@protoc_insertion_point(global_scope)
767 
768 #endif // PROTOBUF_goby_2fmoos_2fprotobuf_2fctd_5fsample_2eproto__INCLUDED
The global namespace for the Goby project.