Goby v2
dccl.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/dccl.proto
3 
4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fdccl_2eproto__INCLUDED
5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fdccl_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/unknown_field_set.h>
27 #include "goby/common/protobuf/option_extensions.pb.h"
28 #include <boost/units/quantity.hpp>
29 #include <boost/units/absolute.hpp>
30 #include <boost/units/dimensionless_type.hpp>
31 #include <boost/units/make_scaled_unit.hpp>
32 // @@protoc_insertion_point(includes)
33 
34 namespace goby {
35 namespace acomms {
36 namespace protobuf {
37 
38 // Internal implementation detail -- do not call these.
39 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fdccl_2eproto();
40 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fdccl_2eproto();
41 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fdccl_2eproto();
42 
43 class DCCLConfig;
44 class ArithmeticModel;
45 
46 // ===================================================================
47 
48 class DCCLConfig : public ::google::protobuf::Message {
49  public:
50  DCCLConfig();
51  virtual ~DCCLConfig();
52 
53  DCCLConfig(const DCCLConfig& from);
54 
55  inline DCCLConfig& operator=(const DCCLConfig& from) {
56  CopyFrom(from);
57  return *this;
58  }
59 
60  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
61  return _unknown_fields_;
62  }
63 
64  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
65  return &_unknown_fields_;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const DCCLConfig& default_instance();
70 
71  void Swap(DCCLConfig* other);
72 
73  // implements Message ----------------------------------------------
74 
75  DCCLConfig* New() const;
76  void CopyFrom(const ::google::protobuf::Message& from);
77  void MergeFrom(const ::google::protobuf::Message& from);
78  void CopyFrom(const DCCLConfig& from);
79  void MergeFrom(const DCCLConfig& from);
80  void Clear();
81  bool IsInitialized() const;
82 
83  int ByteSize() const;
84  bool MergePartialFromCodedStream(
85  ::google::protobuf::io::CodedInputStream* input);
86  void SerializeWithCachedSizes(
87  ::google::protobuf::io::CodedOutputStream* output) const;
88  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
89  int GetCachedSize() const { return _cached_size_; }
90  private:
91  void SharedCtor();
92  void SharedDtor();
93  void SetCachedSize(int size) const;
94  public:
95  ::google::protobuf::Metadata GetMetadata() const;
96 
97  // nested types ----------------------------------------------------
98 
99  // accessors -------------------------------------------------------
100 
101  // optional string crypto_passphrase = 2;
102  inline bool has_crypto_passphrase() const;
103  inline void clear_crypto_passphrase();
104  static const int kCryptoPassphraseFieldNumber = 2;
105  inline const ::std::string& crypto_passphrase() const;
106  inline void set_crypto_passphrase(const ::std::string& value);
107  inline void set_crypto_passphrase(const char* value);
108  inline void set_crypto_passphrase(const char* value, size_t size);
109  inline ::std::string* mutable_crypto_passphrase();
110  inline ::std::string* release_crypto_passphrase();
111  inline void set_allocated_crypto_passphrase(::std::string* crypto_passphrase);
112 
113  // repeated uint32 skip_crypto_for_id = 3;
114  inline int skip_crypto_for_id_size() const;
115  inline void clear_skip_crypto_for_id();
116  static const int kSkipCryptoForIdFieldNumber = 3;
117  inline ::google::protobuf::uint32 skip_crypto_for_id(int index) const;
118  inline void set_skip_crypto_for_id(int index, ::google::protobuf::uint32 value);
119  inline void add_skip_crypto_for_id(::google::protobuf::uint32 value);
120  inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
121  skip_crypto_for_id() const;
122  inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
123  mutable_skip_crypto_for_id();
124 
125  // optional string id_codec = 4;
126  inline bool has_id_codec() const;
127  inline void clear_id_codec();
128  static const int kIdCodecFieldNumber = 4;
129  inline const ::std::string& id_codec() const;
130  inline void set_id_codec(const ::std::string& value);
131  inline void set_id_codec(const char* value);
132  inline void set_id_codec(const char* value, size_t size);
133  inline ::std::string* mutable_id_codec();
134  inline ::std::string* release_id_codec();
135  inline void set_allocated_id_codec(::std::string* id_codec);
136 
137  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.DCCLConfig)
138  private:
139  inline void set_has_crypto_passphrase();
140  inline void clear_has_crypto_passphrase();
141  inline void set_has_id_codec();
142  inline void clear_has_id_codec();
143 
144  ::google::protobuf::UnknownFieldSet _unknown_fields_;
145 
146  ::google::protobuf::uint32 _has_bits_[1];
147  mutable int _cached_size_;
148  ::std::string* crypto_passphrase_;
149  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > skip_crypto_for_id_;
150  ::std::string* id_codec_;
151  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fdccl_2eproto();
152  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fdccl_2eproto();
153  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fdccl_2eproto();
154 
155  void InitAsDefaultInstance();
156  static DCCLConfig* default_instance_;
157 };
158 // -------------------------------------------------------------------
159 
160 class ArithmeticModel : public ::google::protobuf::Message {
161  public:
162  ArithmeticModel();
163  virtual ~ArithmeticModel();
164 
165  ArithmeticModel(const ArithmeticModel& from);
166 
167  inline ArithmeticModel& operator=(const ArithmeticModel& from) {
168  CopyFrom(from);
169  return *this;
170  }
171 
172  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
173  return _unknown_fields_;
174  }
175 
176  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
177  return &_unknown_fields_;
178  }
179 
180  static const ::google::protobuf::Descriptor* descriptor();
181  static const ArithmeticModel& default_instance();
182 
183  void Swap(ArithmeticModel* other);
184 
185  // implements Message ----------------------------------------------
186 
187  ArithmeticModel* New() const;
188  void CopyFrom(const ::google::protobuf::Message& from);
189  void MergeFrom(const ::google::protobuf::Message& from);
190  void CopyFrom(const ArithmeticModel& from);
191  void MergeFrom(const ArithmeticModel& from);
192  void Clear();
193  bool IsInitialized() const;
194 
195  int ByteSize() const;
196  bool MergePartialFromCodedStream(
197  ::google::protobuf::io::CodedInputStream* input);
198  void SerializeWithCachedSizes(
199  ::google::protobuf::io::CodedOutputStream* output) const;
200  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
201  int GetCachedSize() const { return _cached_size_; }
202  private:
203  void SharedCtor();
204  void SharedDtor();
205  void SetCachedSize(int size) const;
206  public:
207  ::google::protobuf::Metadata GetMetadata() const;
208 
209  // nested types ----------------------------------------------------
210 
211  // accessors -------------------------------------------------------
212 
213  // required string name = 1;
214  inline bool has_name() const;
215  inline void clear_name();
216  static const int kNameFieldNumber = 1;
217  inline const ::std::string& name() const;
218  inline void set_name(const ::std::string& value);
219  inline void set_name(const char* value);
220  inline void set_name(const char* value, size_t size);
221  inline ::std::string* mutable_name();
222  inline ::std::string* release_name();
223  inline void set_allocated_name(::std::string* name);
224 
225  // repeated uint32 frequency = 10;
226  inline int frequency_size() const;
227  inline void clear_frequency();
228  static const int kFrequencyFieldNumber = 10;
229  inline ::google::protobuf::uint32 frequency(int index) const;
230  inline void set_frequency(int index, ::google::protobuf::uint32 value);
231  inline void add_frequency(::google::protobuf::uint32 value);
232  inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
233  frequency() const;
234  inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
235  mutable_frequency();
236 
237  // optional uint32 eof_frequency = 11 [default = 1];
238  inline bool has_eof_frequency() const;
239  inline void clear_eof_frequency();
240  static const int kEofFrequencyFieldNumber = 11;
241  inline ::google::protobuf::uint32 eof_frequency() const;
242  inline void set_eof_frequency(::google::protobuf::uint32 value);
243 
244  // optional uint32 out_of_range_frequency = 12 [default = 0];
245  inline bool has_out_of_range_frequency() const;
246  inline void clear_out_of_range_frequency();
247  static const int kOutOfRangeFrequencyFieldNumber = 12;
248  inline ::google::protobuf::uint32 out_of_range_frequency() const;
249  inline void set_out_of_range_frequency(::google::protobuf::uint32 value);
250 
251  // repeated double value_bound = 20;
252  inline int value_bound_size() const;
253  inline void clear_value_bound();
254  static const int kValueBoundFieldNumber = 20;
255  inline double value_bound(int index) const;
256  inline void set_value_bound(int index, double value);
257  inline void add_value_bound(double value);
258  inline const ::google::protobuf::RepeatedField< double >&
259  value_bound() const;
260  inline ::google::protobuf::RepeatedField< double >*
261  mutable_value_bound();
262 
263  // optional bool is_adaptive = 30 [default = false];
264  inline bool has_is_adaptive() const;
265  inline void clear_is_adaptive();
266  static const int kIsAdaptiveFieldNumber = 30;
267  inline bool is_adaptive() const;
268  inline void set_is_adaptive(bool value);
269 
270  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.ArithmeticModel)
271  private:
272  inline void set_has_name();
273  inline void clear_has_name();
274  inline void set_has_eof_frequency();
275  inline void clear_has_eof_frequency();
276  inline void set_has_out_of_range_frequency();
277  inline void clear_has_out_of_range_frequency();
278  inline void set_has_is_adaptive();
279  inline void clear_has_is_adaptive();
280 
281  ::google::protobuf::UnknownFieldSet _unknown_fields_;
282 
283  ::google::protobuf::uint32 _has_bits_[1];
284  mutable int _cached_size_;
285  ::std::string* name_;
286  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > frequency_;
287  ::google::protobuf::uint32 eof_frequency_;
288  ::google::protobuf::uint32 out_of_range_frequency_;
289  ::google::protobuf::RepeatedField< double > value_bound_;
290  bool is_adaptive_;
291  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fdccl_2eproto();
292  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fdccl_2eproto();
293  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fdccl_2eproto();
294 
295  void InitAsDefaultInstance();
296  static ArithmeticModel* default_instance_;
297 };
298 // ===================================================================
299 
300 
301 // ===================================================================
302 
303 // DCCLConfig
304 
305 // optional string crypto_passphrase = 2;
306 inline bool DCCLConfig::has_crypto_passphrase() const {
307  return (_has_bits_[0] & 0x00000001u) != 0;
308 }
309 inline void DCCLConfig::set_has_crypto_passphrase() {
310  _has_bits_[0] |= 0x00000001u;
311 }
312 inline void DCCLConfig::clear_has_crypto_passphrase() {
313  _has_bits_[0] &= ~0x00000001u;
314 }
315 inline void DCCLConfig::clear_crypto_passphrase() {
316  if (crypto_passphrase_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
317  crypto_passphrase_->clear();
318  }
319  clear_has_crypto_passphrase();
320 }
321 inline const ::std::string& DCCLConfig::crypto_passphrase() const {
322  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DCCLConfig.crypto_passphrase)
323  return *crypto_passphrase_;
324 }
325 inline void DCCLConfig::set_crypto_passphrase(const ::std::string& value) {
326  set_has_crypto_passphrase();
327  if (crypto_passphrase_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
328  crypto_passphrase_ = new ::std::string;
329  }
330  crypto_passphrase_->assign(value);
331  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DCCLConfig.crypto_passphrase)
332 }
333 inline void DCCLConfig::set_crypto_passphrase(const char* value) {
334  set_has_crypto_passphrase();
335  if (crypto_passphrase_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
336  crypto_passphrase_ = new ::std::string;
337  }
338  crypto_passphrase_->assign(value);
339  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.DCCLConfig.crypto_passphrase)
340 }
341 inline void DCCLConfig::set_crypto_passphrase(const char* value, size_t size) {
342  set_has_crypto_passphrase();
343  if (crypto_passphrase_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
344  crypto_passphrase_ = new ::std::string;
345  }
346  crypto_passphrase_->assign(reinterpret_cast<const char*>(value), size);
347  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.DCCLConfig.crypto_passphrase)
348 }
349 inline ::std::string* DCCLConfig::mutable_crypto_passphrase() {
350  set_has_crypto_passphrase();
351  if (crypto_passphrase_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
352  crypto_passphrase_ = new ::std::string;
353  }
354  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DCCLConfig.crypto_passphrase)
355  return crypto_passphrase_;
356 }
357 inline ::std::string* DCCLConfig::release_crypto_passphrase() {
358  clear_has_crypto_passphrase();
359  if (crypto_passphrase_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
360  return NULL;
361  } else {
362  ::std::string* temp = crypto_passphrase_;
363  crypto_passphrase_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
364  return temp;
365  }
366 }
367 inline void DCCLConfig::set_allocated_crypto_passphrase(::std::string* crypto_passphrase) {
368  if (crypto_passphrase_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
369  delete crypto_passphrase_;
370  }
371  if (crypto_passphrase) {
372  set_has_crypto_passphrase();
373  crypto_passphrase_ = crypto_passphrase;
374  } else {
375  clear_has_crypto_passphrase();
376  crypto_passphrase_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
377  }
378  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DCCLConfig.crypto_passphrase)
379 }
380 
381 // repeated uint32 skip_crypto_for_id = 3;
382 inline int DCCLConfig::skip_crypto_for_id_size() const {
383  return skip_crypto_for_id_.size();
384 }
385 inline void DCCLConfig::clear_skip_crypto_for_id() {
386  skip_crypto_for_id_.Clear();
387 }
388 inline ::google::protobuf::uint32 DCCLConfig::skip_crypto_for_id(int index) const {
389  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DCCLConfig.skip_crypto_for_id)
390  return skip_crypto_for_id_.Get(index);
391 }
392 inline void DCCLConfig::set_skip_crypto_for_id(int index, ::google::protobuf::uint32 value) {
393  skip_crypto_for_id_.Set(index, value);
394  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DCCLConfig.skip_crypto_for_id)
395 }
396 inline void DCCLConfig::add_skip_crypto_for_id(::google::protobuf::uint32 value) {
397  skip_crypto_for_id_.Add(value);
398  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.DCCLConfig.skip_crypto_for_id)
399 }
400 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
401 DCCLConfig::skip_crypto_for_id() const {
402  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.DCCLConfig.skip_crypto_for_id)
403  return skip_crypto_for_id_;
404 }
405 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
406 DCCLConfig::mutable_skip_crypto_for_id() {
407  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.DCCLConfig.skip_crypto_for_id)
408  return &skip_crypto_for_id_;
409 }
410 
411 // optional string id_codec = 4;
412 inline bool DCCLConfig::has_id_codec() const {
413  return (_has_bits_[0] & 0x00000004u) != 0;
414 }
415 inline void DCCLConfig::set_has_id_codec() {
416  _has_bits_[0] |= 0x00000004u;
417 }
418 inline void DCCLConfig::clear_has_id_codec() {
419  _has_bits_[0] &= ~0x00000004u;
420 }
421 inline void DCCLConfig::clear_id_codec() {
422  if (id_codec_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
423  id_codec_->clear();
424  }
425  clear_has_id_codec();
426 }
427 inline const ::std::string& DCCLConfig::id_codec() const {
428  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DCCLConfig.id_codec)
429  return *id_codec_;
430 }
431 inline void DCCLConfig::set_id_codec(const ::std::string& value) {
432  set_has_id_codec();
433  if (id_codec_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
434  id_codec_ = new ::std::string;
435  }
436  id_codec_->assign(value);
437  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DCCLConfig.id_codec)
438 }
439 inline void DCCLConfig::set_id_codec(const char* value) {
440  set_has_id_codec();
441  if (id_codec_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
442  id_codec_ = new ::std::string;
443  }
444  id_codec_->assign(value);
445  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.DCCLConfig.id_codec)
446 }
447 inline void DCCLConfig::set_id_codec(const char* value, size_t size) {
448  set_has_id_codec();
449  if (id_codec_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
450  id_codec_ = new ::std::string;
451  }
452  id_codec_->assign(reinterpret_cast<const char*>(value), size);
453  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.DCCLConfig.id_codec)
454 }
455 inline ::std::string* DCCLConfig::mutable_id_codec() {
456  set_has_id_codec();
457  if (id_codec_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
458  id_codec_ = new ::std::string;
459  }
460  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DCCLConfig.id_codec)
461  return id_codec_;
462 }
463 inline ::std::string* DCCLConfig::release_id_codec() {
464  clear_has_id_codec();
465  if (id_codec_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
466  return NULL;
467  } else {
468  ::std::string* temp = id_codec_;
469  id_codec_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
470  return temp;
471  }
472 }
473 inline void DCCLConfig::set_allocated_id_codec(::std::string* id_codec) {
474  if (id_codec_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
475  delete id_codec_;
476  }
477  if (id_codec) {
478  set_has_id_codec();
479  id_codec_ = id_codec;
480  } else {
481  clear_has_id_codec();
482  id_codec_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
483  }
484  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DCCLConfig.id_codec)
485 }
486 
487 // -------------------------------------------------------------------
488 
489 // ArithmeticModel
490 
491 // required string name = 1;
492 inline bool ArithmeticModel::has_name() const {
493  return (_has_bits_[0] & 0x00000001u) != 0;
494 }
495 inline void ArithmeticModel::set_has_name() {
496  _has_bits_[0] |= 0x00000001u;
497 }
498 inline void ArithmeticModel::clear_has_name() {
499  _has_bits_[0] &= ~0x00000001u;
500 }
501 inline void ArithmeticModel::clear_name() {
502  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
503  name_->clear();
504  }
505  clear_has_name();
506 }
507 inline const ::std::string& ArithmeticModel::name() const {
508  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ArithmeticModel.name)
509  return *name_;
510 }
511 inline void ArithmeticModel::set_name(const ::std::string& value) {
512  set_has_name();
513  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
514  name_ = new ::std::string;
515  }
516  name_->assign(value);
517  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.ArithmeticModel.name)
518 }
519 inline void ArithmeticModel::set_name(const char* value) {
520  set_has_name();
521  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
522  name_ = new ::std::string;
523  }
524  name_->assign(value);
525  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.ArithmeticModel.name)
526 }
527 inline void ArithmeticModel::set_name(const char* value, size_t size) {
528  set_has_name();
529  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
530  name_ = new ::std::string;
531  }
532  name_->assign(reinterpret_cast<const char*>(value), size);
533  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.ArithmeticModel.name)
534 }
535 inline ::std::string* ArithmeticModel::mutable_name() {
536  set_has_name();
537  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
538  name_ = new ::std::string;
539  }
540  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.ArithmeticModel.name)
541  return name_;
542 }
543 inline ::std::string* ArithmeticModel::release_name() {
544  clear_has_name();
545  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
546  return NULL;
547  } else {
548  ::std::string* temp = name_;
549  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
550  return temp;
551  }
552 }
553 inline void ArithmeticModel::set_allocated_name(::std::string* name) {
554  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
555  delete name_;
556  }
557  if (name) {
558  set_has_name();
559  name_ = name;
560  } else {
561  clear_has_name();
562  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
563  }
564  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.ArithmeticModel.name)
565 }
566 
567 // repeated uint32 frequency = 10;
568 inline int ArithmeticModel::frequency_size() const {
569  return frequency_.size();
570 }
571 inline void ArithmeticModel::clear_frequency() {
572  frequency_.Clear();
573 }
574 inline ::google::protobuf::uint32 ArithmeticModel::frequency(int index) const {
575  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ArithmeticModel.frequency)
576  return frequency_.Get(index);
577 }
578 inline void ArithmeticModel::set_frequency(int index, ::google::protobuf::uint32 value) {
579  frequency_.Set(index, value);
580  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.ArithmeticModel.frequency)
581 }
582 inline void ArithmeticModel::add_frequency(::google::protobuf::uint32 value) {
583  frequency_.Add(value);
584  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.ArithmeticModel.frequency)
585 }
586 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
587 ArithmeticModel::frequency() const {
588  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.ArithmeticModel.frequency)
589  return frequency_;
590 }
591 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
592 ArithmeticModel::mutable_frequency() {
593  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.ArithmeticModel.frequency)
594  return &frequency_;
595 }
596 
597 // optional uint32 eof_frequency = 11 [default = 1];
598 inline bool ArithmeticModel::has_eof_frequency() const {
599  return (_has_bits_[0] & 0x00000004u) != 0;
600 }
601 inline void ArithmeticModel::set_has_eof_frequency() {
602  _has_bits_[0] |= 0x00000004u;
603 }
604 inline void ArithmeticModel::clear_has_eof_frequency() {
605  _has_bits_[0] &= ~0x00000004u;
606 }
607 inline void ArithmeticModel::clear_eof_frequency() {
608  eof_frequency_ = 1u;
609  clear_has_eof_frequency();
610 }
611 inline ::google::protobuf::uint32 ArithmeticModel::eof_frequency() const {
612  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ArithmeticModel.eof_frequency)
613  return eof_frequency_;
614 }
615 inline void ArithmeticModel::set_eof_frequency(::google::protobuf::uint32 value) {
616  set_has_eof_frequency();
617  eof_frequency_ = value;
618  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.ArithmeticModel.eof_frequency)
619 }
620 
621 // optional uint32 out_of_range_frequency = 12 [default = 0];
622 inline bool ArithmeticModel::has_out_of_range_frequency() const {
623  return (_has_bits_[0] & 0x00000008u) != 0;
624 }
625 inline void ArithmeticModel::set_has_out_of_range_frequency() {
626  _has_bits_[0] |= 0x00000008u;
627 }
628 inline void ArithmeticModel::clear_has_out_of_range_frequency() {
629  _has_bits_[0] &= ~0x00000008u;
630 }
631 inline void ArithmeticModel::clear_out_of_range_frequency() {
632  out_of_range_frequency_ = 0u;
633  clear_has_out_of_range_frequency();
634 }
635 inline ::google::protobuf::uint32 ArithmeticModel::out_of_range_frequency() const {
636  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ArithmeticModel.out_of_range_frequency)
637  return out_of_range_frequency_;
638 }
639 inline void ArithmeticModel::set_out_of_range_frequency(::google::protobuf::uint32 value) {
640  set_has_out_of_range_frequency();
641  out_of_range_frequency_ = value;
642  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.ArithmeticModel.out_of_range_frequency)
643 }
644 
645 // repeated double value_bound = 20;
646 inline int ArithmeticModel::value_bound_size() const {
647  return value_bound_.size();
648 }
649 inline void ArithmeticModel::clear_value_bound() {
650  value_bound_.Clear();
651 }
652 inline double ArithmeticModel::value_bound(int index) const {
653  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ArithmeticModel.value_bound)
654  return value_bound_.Get(index);
655 }
656 inline void ArithmeticModel::set_value_bound(int index, double value) {
657  value_bound_.Set(index, value);
658  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.ArithmeticModel.value_bound)
659 }
660 inline void ArithmeticModel::add_value_bound(double value) {
661  value_bound_.Add(value);
662  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.ArithmeticModel.value_bound)
663 }
664 inline const ::google::protobuf::RepeatedField< double >&
665 ArithmeticModel::value_bound() const {
666  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.ArithmeticModel.value_bound)
667  return value_bound_;
668 }
669 inline ::google::protobuf::RepeatedField< double >*
670 ArithmeticModel::mutable_value_bound() {
671  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.ArithmeticModel.value_bound)
672  return &value_bound_;
673 }
674 
675 // optional bool is_adaptive = 30 [default = false];
676 inline bool ArithmeticModel::has_is_adaptive() const {
677  return (_has_bits_[0] & 0x00000020u) != 0;
678 }
679 inline void ArithmeticModel::set_has_is_adaptive() {
680  _has_bits_[0] |= 0x00000020u;
681 }
682 inline void ArithmeticModel::clear_has_is_adaptive() {
683  _has_bits_[0] &= ~0x00000020u;
684 }
685 inline void ArithmeticModel::clear_is_adaptive() {
686  is_adaptive_ = false;
687  clear_has_is_adaptive();
688 }
689 inline bool ArithmeticModel::is_adaptive() const {
690  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ArithmeticModel.is_adaptive)
691  return is_adaptive_;
692 }
693 inline void ArithmeticModel::set_is_adaptive(bool value) {
694  set_has_is_adaptive();
695  is_adaptive_ = value;
696  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.ArithmeticModel.is_adaptive)
697 }
698 
699 
700 // @@protoc_insertion_point(namespace_scope)
701 
702 } // namespace protobuf
703 } // namespace acomms
704 } // namespace goby
705 
706 #ifndef SWIG
707 namespace google {
708 namespace protobuf {
709 
710 
711 } // namespace google
712 } // namespace protobuf
713 #endif // SWIG
714 
715 // @@protoc_insertion_point(global_scope)
716 
717 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fdccl_2eproto__INCLUDED
The global namespace for the Goby project.