DCCL v4
arithmetic.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: dccl/arithmetic/protobuf/arithmetic.proto
3 
4 #ifndef PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
5 #define PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 #include "dccl/option_extensions.pb.h"
34 #include <boost/units/quantity.hpp>
35 #include <boost/units/absolute.hpp>
36 #include <boost/units/dimensionless_type.hpp>
37 #include <boost/units/make_scaled_unit.hpp>
38 // @@protoc_insertion_point(includes)
39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
40 
41 namespace protobuf_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto {
42 // Internal implementation detail -- do not use these members.
43 struct TableStruct {
44  static const ::google::protobuf::internal::ParseTableField entries[];
45  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
46  static const ::google::protobuf::internal::ParseTable schema[1];
47  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
48  static const ::google::protobuf::internal::SerializationTable serialization_table[];
49  static const ::google::protobuf::uint32 offsets[];
50 };
51 void AddDescriptors();
52 } // namespace protobuf_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
53 namespace dccl {
54 namespace arith {
55 namespace protobuf {
56 class ArithmeticModel;
57 class ArithmeticModelDefaultTypeInternal;
58 extern ArithmeticModelDefaultTypeInternal _ArithmeticModel_default_instance_;
59 } // namespace protobuf
60 } // namespace arith
61 } // namespace dccl
62 namespace google {
63 namespace protobuf {
64 template<> ::dccl::arith::protobuf::ArithmeticModel* Arena::CreateMaybeMessage<::dccl::arith::protobuf::ArithmeticModel>(Arena*);
65 } // namespace protobuf
66 } // namespace google
67 namespace dccl {
68 namespace arith {
69 namespace protobuf {
70 
71 // ===================================================================
72 
73 class ArithmeticModel : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dccl.arith.protobuf.ArithmeticModel) */ {
74  public:
76  virtual ~ArithmeticModel();
77 
78  ArithmeticModel(const ArithmeticModel& from);
79 
80  inline ArithmeticModel& operator=(const ArithmeticModel& from) {
81  CopyFrom(from);
82  return *this;
83  }
84  #if LANG_CXX11
85  ArithmeticModel(ArithmeticModel&& from) noexcept
86  : ArithmeticModel() {
87  *this = ::std::move(from);
88  }
89 
90  inline ArithmeticModel& operator=(ArithmeticModel&& from) noexcept {
91  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
92  if (this != &from) InternalSwap(&from);
93  } else {
94  CopyFrom(from);
95  }
96  return *this;
97  }
98  #endif
99  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
100  return _internal_metadata_.unknown_fields();
101  }
102  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
103  return _internal_metadata_.mutable_unknown_fields();
104  }
105 
106  static const ::google::protobuf::Descriptor* descriptor();
107  static const ArithmeticModel& default_instance();
108 
109  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
110  static inline const ArithmeticModel* internal_default_instance() {
111  return reinterpret_cast<const ArithmeticModel*>(
112  &_ArithmeticModel_default_instance_);
113  }
114  static constexpr int kIndexInFileMessages =
115  0;
116 
117  void Swap(ArithmeticModel* other);
118  friend void swap(ArithmeticModel& a, ArithmeticModel& b) {
119  a.Swap(&b);
120  }
121 
122  // implements Message ----------------------------------------------
123 
124  inline ArithmeticModel* New() const final {
125  return CreateMaybeMessage<ArithmeticModel>(NULL);
126  }
127 
128  ArithmeticModel* New(::google::protobuf::Arena* arena) const final {
129  return CreateMaybeMessage<ArithmeticModel>(arena);
130  }
131  void CopyFrom(const ::google::protobuf::Message& from) final;
132  void MergeFrom(const ::google::protobuf::Message& from) final;
133  void CopyFrom(const ArithmeticModel& from);
134  void MergeFrom(const ArithmeticModel& from);
135  void Clear() final;
136  bool IsInitialized() const final;
137 
138  size_t ByteSizeLong() const final;
139  bool MergePartialFromCodedStream(
140  ::google::protobuf::io::CodedInputStream* input) final;
141  void SerializeWithCachedSizes(
142  ::google::protobuf::io::CodedOutputStream* output) const final;
143  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
144  bool deterministic, ::google::protobuf::uint8* target) const final;
145  int GetCachedSize() const final { return _cached_size_.Get(); }
146 
147  private:
148  void SharedCtor();
149  void SharedDtor();
150  void SetCachedSize(int size) const final;
151  void InternalSwap(ArithmeticModel* other);
152  private:
153  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
154  return NULL;
155  }
156  inline void* MaybeArenaPtr() const {
157  return NULL;
158  }
159  public:
160 
161  ::google::protobuf::Metadata GetMetadata() const final;
162 
163  // nested types ----------------------------------------------------
164 
165  // accessors -------------------------------------------------------
166 
167  // repeated uint32 frequency = 10;
168  int frequency_size() const;
169  void clear_frequency();
170  static const int kFrequencyFieldNumber = 10;
171  ::google::protobuf::uint32 frequency(int index) const;
172  void set_frequency(int index, ::google::protobuf::uint32 value);
173  void add_frequency(::google::protobuf::uint32 value);
174  const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
175  frequency() const;
176  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
177  mutable_frequency();
178 
179  // repeated double value_bound = 20;
180  int value_bound_size() const;
181  void clear_value_bound();
182  static const int kValueBoundFieldNumber = 20;
183  double value_bound(int index) const;
184  void set_value_bound(int index, double value);
185  void add_value_bound(double value);
186  const ::google::protobuf::RepeatedField< double >&
187  value_bound() const;
188  ::google::protobuf::RepeatedField< double >*
189  mutable_value_bound();
190 
191  // required string name = 1;
192  bool has_name() const;
193  void clear_name();
194  static const int kNameFieldNumber = 1;
195  const ::std::string& name() const;
196  void set_name(const ::std::string& value);
197  #if LANG_CXX11
198  void set_name(::std::string&& value);
199  #endif
200  void set_name(const char* value);
201  void set_name(const char* value, size_t size);
202  ::std::string* mutable_name();
203  ::std::string* release_name();
204  void set_allocated_name(::std::string* name);
205 
206  // optional uint32 out_of_range_frequency = 12 [default = 0];
207  bool has_out_of_range_frequency() const;
208  void clear_out_of_range_frequency();
209  static const int kOutOfRangeFrequencyFieldNumber = 12;
210  ::google::protobuf::uint32 out_of_range_frequency() const;
211  void set_out_of_range_frequency(::google::protobuf::uint32 value);
212 
213  // optional bool is_adaptive = 30 [default = false];
214  bool has_is_adaptive() const;
215  void clear_is_adaptive();
216  static const int kIsAdaptiveFieldNumber = 30;
217  bool is_adaptive() const;
218  void set_is_adaptive(bool value);
219 
220  // optional uint32 eof_frequency = 11 [default = 1];
221  bool has_eof_frequency() const;
222  void clear_eof_frequency();
223  static const int kEofFrequencyFieldNumber = 11;
224  ::google::protobuf::uint32 eof_frequency() const;
225  void set_eof_frequency(::google::protobuf::uint32 value);
226 
227  // @@protoc_insertion_point(class_scope:dccl.arith.protobuf.ArithmeticModel)
228  private:
229  void set_has_name();
230  void clear_has_name();
231  void set_has_eof_frequency();
232  void clear_has_eof_frequency();
233  void set_has_out_of_range_frequency();
234  void clear_has_out_of_range_frequency();
235  void set_has_is_adaptive();
236  void clear_has_is_adaptive();
237 
238  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
239  ::google::protobuf::internal::HasBits<1> _has_bits_;
240  mutable ::google::protobuf::internal::CachedSize _cached_size_;
241  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > frequency_;
242  ::google::protobuf::RepeatedField< double > value_bound_;
243  ::google::protobuf::internal::ArenaStringPtr name_;
244  ::google::protobuf::uint32 out_of_range_frequency_;
245  bool is_adaptive_;
246  ::google::protobuf::uint32 eof_frequency_;
247  friend struct ::protobuf_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto::TableStruct;
248 };
249 // ===================================================================
250 
251 
252 // ===================================================================
253 
254 #ifdef __GNUC__
255  #pragma GCC diagnostic push
256  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
257 #endif // __GNUC__
258 // ArithmeticModel
259 
260 // required string name = 1;
261 inline bool ArithmeticModel::has_name() const {
262  return (_has_bits_[0] & 0x00000001u) != 0;
263 }
264 inline void ArithmeticModel::set_has_name() {
265  _has_bits_[0] |= 0x00000001u;
266 }
267 inline void ArithmeticModel::clear_has_name() {
268  _has_bits_[0] &= ~0x00000001u;
269 }
270 inline void ArithmeticModel::clear_name() {
271  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
272  clear_has_name();
273 }
274 inline const ::std::string& ArithmeticModel::name() const {
275  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.name)
276  return name_.GetNoArena();
277 }
278 inline void ArithmeticModel::set_name(const ::std::string& value) {
279  set_has_name();
280  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
281  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.name)
282 }
283 #if LANG_CXX11
284 inline void ArithmeticModel::set_name(::std::string&& value) {
285  set_has_name();
286  name_.SetNoArena(
287  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
288  // @@protoc_insertion_point(field_set_rvalue:dccl.arith.protobuf.ArithmeticModel.name)
289 }
290 #endif
291 inline void ArithmeticModel::set_name(const char* value) {
292  GOOGLE_DCHECK(value != NULL);
293  set_has_name();
294  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
295  // @@protoc_insertion_point(field_set_char:dccl.arith.protobuf.ArithmeticModel.name)
296 }
297 inline void ArithmeticModel::set_name(const char* value, size_t size) {
298  set_has_name();
299  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
300  ::std::string(reinterpret_cast<const char*>(value), size));
301  // @@protoc_insertion_point(field_set_pointer:dccl.arith.protobuf.ArithmeticModel.name)
302 }
303 inline ::std::string* ArithmeticModel::mutable_name() {
304  set_has_name();
305  // @@protoc_insertion_point(field_mutable:dccl.arith.protobuf.ArithmeticModel.name)
306  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
307 }
308 inline ::std::string* ArithmeticModel::release_name() {
309  // @@protoc_insertion_point(field_release:dccl.arith.protobuf.ArithmeticModel.name)
310  if (!has_name()) {
311  return NULL;
312  }
313  clear_has_name();
314  return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
315 }
316 inline void ArithmeticModel::set_allocated_name(::std::string* name) {
317  if (name != NULL) {
318  set_has_name();
319  } else {
320  clear_has_name();
321  }
322  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
323  // @@protoc_insertion_point(field_set_allocated:dccl.arith.protobuf.ArithmeticModel.name)
324 }
325 
326 // repeated uint32 frequency = 10;
327 inline int ArithmeticModel::frequency_size() const {
328  return frequency_.size();
329 }
330 inline void ArithmeticModel::clear_frequency() {
331  frequency_.Clear();
332 }
333 inline ::google::protobuf::uint32 ArithmeticModel::frequency(int index) const {
334  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.frequency)
335  return frequency_.Get(index);
336 }
337 inline void ArithmeticModel::set_frequency(int index, ::google::protobuf::uint32 value) {
338  frequency_.Set(index, value);
339  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.frequency)
340 }
341 inline void ArithmeticModel::add_frequency(::google::protobuf::uint32 value) {
342  frequency_.Add(value);
343  // @@protoc_insertion_point(field_add:dccl.arith.protobuf.ArithmeticModel.frequency)
344 }
345 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
346 ArithmeticModel::frequency() const {
347  // @@protoc_insertion_point(field_list:dccl.arith.protobuf.ArithmeticModel.frequency)
348  return frequency_;
349 }
350 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
351 ArithmeticModel::mutable_frequency() {
352  // @@protoc_insertion_point(field_mutable_list:dccl.arith.protobuf.ArithmeticModel.frequency)
353  return &frequency_;
354 }
355 
356 // optional uint32 eof_frequency = 11 [default = 1];
357 inline bool ArithmeticModel::has_eof_frequency() const {
358  return (_has_bits_[0] & 0x00000008u) != 0;
359 }
360 inline void ArithmeticModel::set_has_eof_frequency() {
361  _has_bits_[0] |= 0x00000008u;
362 }
363 inline void ArithmeticModel::clear_has_eof_frequency() {
364  _has_bits_[0] &= ~0x00000008u;
365 }
366 inline void ArithmeticModel::clear_eof_frequency() {
367  eof_frequency_ = 1u;
368  clear_has_eof_frequency();
369 }
370 inline ::google::protobuf::uint32 ArithmeticModel::eof_frequency() const {
371  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.eof_frequency)
372  return eof_frequency_;
373 }
374 inline void ArithmeticModel::set_eof_frequency(::google::protobuf::uint32 value) {
375  set_has_eof_frequency();
376  eof_frequency_ = value;
377  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.eof_frequency)
378 }
379 
380 // optional uint32 out_of_range_frequency = 12 [default = 0];
381 inline bool ArithmeticModel::has_out_of_range_frequency() const {
382  return (_has_bits_[0] & 0x00000002u) != 0;
383 }
384 inline void ArithmeticModel::set_has_out_of_range_frequency() {
385  _has_bits_[0] |= 0x00000002u;
386 }
387 inline void ArithmeticModel::clear_has_out_of_range_frequency() {
388  _has_bits_[0] &= ~0x00000002u;
389 }
390 inline void ArithmeticModel::clear_out_of_range_frequency() {
391  out_of_range_frequency_ = 0u;
392  clear_has_out_of_range_frequency();
393 }
394 inline ::google::protobuf::uint32 ArithmeticModel::out_of_range_frequency() const {
395  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.out_of_range_frequency)
396  return out_of_range_frequency_;
397 }
398 inline void ArithmeticModel::set_out_of_range_frequency(::google::protobuf::uint32 value) {
399  set_has_out_of_range_frequency();
400  out_of_range_frequency_ = value;
401  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.out_of_range_frequency)
402 }
403 
404 // repeated double value_bound = 20;
405 inline int ArithmeticModel::value_bound_size() const {
406  return value_bound_.size();
407 }
408 inline void ArithmeticModel::clear_value_bound() {
409  value_bound_.Clear();
410 }
411 inline double ArithmeticModel::value_bound(int index) const {
412  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.value_bound)
413  return value_bound_.Get(index);
414 }
415 inline void ArithmeticModel::set_value_bound(int index, double value) {
416  value_bound_.Set(index, value);
417  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.value_bound)
418 }
419 inline void ArithmeticModel::add_value_bound(double value) {
420  value_bound_.Add(value);
421  // @@protoc_insertion_point(field_add:dccl.arith.protobuf.ArithmeticModel.value_bound)
422 }
423 inline const ::google::protobuf::RepeatedField< double >&
424 ArithmeticModel::value_bound() const {
425  // @@protoc_insertion_point(field_list:dccl.arith.protobuf.ArithmeticModel.value_bound)
426  return value_bound_;
427 }
428 inline ::google::protobuf::RepeatedField< double >*
429 ArithmeticModel::mutable_value_bound() {
430  // @@protoc_insertion_point(field_mutable_list:dccl.arith.protobuf.ArithmeticModel.value_bound)
431  return &value_bound_;
432 }
433 
434 // optional bool is_adaptive = 30 [default = false];
435 inline bool ArithmeticModel::has_is_adaptive() const {
436  return (_has_bits_[0] & 0x00000004u) != 0;
437 }
438 inline void ArithmeticModel::set_has_is_adaptive() {
439  _has_bits_[0] |= 0x00000004u;
440 }
441 inline void ArithmeticModel::clear_has_is_adaptive() {
442  _has_bits_[0] &= ~0x00000004u;
443 }
444 inline void ArithmeticModel::clear_is_adaptive() {
445  is_adaptive_ = false;
446  clear_has_is_adaptive();
447 }
448 inline bool ArithmeticModel::is_adaptive() const {
449  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.is_adaptive)
450  return is_adaptive_;
451 }
452 inline void ArithmeticModel::set_is_adaptive(bool value) {
453  set_has_is_adaptive();
454  is_adaptive_ = value;
455  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.is_adaptive)
456 }
457 
458 #ifdef __GNUC__
459  #pragma GCC diagnostic pop
460 #endif // __GNUC__
461 
462 // @@protoc_insertion_point(namespace_scope)
463 
464 } // namespace protobuf
465 } // namespace arith
466 } // namespace dccl
467 
468 // @@protoc_insertion_point(global_scope)
469 
470 #endif // PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
dccl
Dynamic Compact Control Language namespace.
Definition: any.h:49
dccl::arith::protobuf::ArithmeticModel
Definition: arithmetic.pb.h:73
protobuf_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto::TableStruct
Definition: arithmetic.pb.h:43