4 #ifndef GOOGLE_PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3012004 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/unknown_field_set.h>
35 #include "dccl/option_extensions.pb.h"
36 #include <boost/units/quantity.hpp>
37 #include <boost/units/absolute.hpp>
38 #include <boost/units/dimensionless_type.hpp>
39 #include <boost/units/make_scaled_unit.hpp>
41 #include <google/protobuf/port_def.inc>
42 #define PROTOBUF_INTERNAL_EXPORT_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
43 PROTOBUF_NAMESPACE_OPEN
47 PROTOBUF_NAMESPACE_CLOSE
51 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
52 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
53 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
54 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
55 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
56 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
57 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
58 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
59 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
61 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto;
65 class ArithmeticModel;
66 class ArithmeticModelDefaultTypeInternal;
67 extern ArithmeticModelDefaultTypeInternal _ArithmeticModel_default_instance_;
71 PROTOBUF_NAMESPACE_OPEN
72 template<> ::dccl::arith::protobuf::ArithmeticModel* Arena::CreateMaybeMessage<::dccl::arith::protobuf::ArithmeticModel>(Arena*);
73 PROTOBUF_NAMESPACE_CLOSE
81 public ::PROTOBUF_NAMESPACE_ID::Message {
83 inline ArithmeticModel() : ArithmeticModel(
nullptr) {};
84 virtual ~ArithmeticModel();
86 ArithmeticModel(
const ArithmeticModel& from);
87 ArithmeticModel(ArithmeticModel&& from) noexcept
89 *
this = ::std::move(from);
92 inline ArithmeticModel& operator=(
const ArithmeticModel& from) {
96 inline ArithmeticModel& operator=(ArithmeticModel&& from) noexcept {
97 if (GetArena() == from.GetArena()) {
98 if (
this != &from) InternalSwap(&from);
105 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields()
const {
106 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
108 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
109 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
112 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
113 return GetDescriptor();
115 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
116 return GetMetadataStatic().descriptor;
118 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
119 return GetMetadataStatic().reflection;
121 static const ArithmeticModel& default_instance();
123 static void InitAsDefaultInstance();
124 static inline const ArithmeticModel* internal_default_instance() {
125 return reinterpret_cast<const ArithmeticModel*
>(
126 &_ArithmeticModel_default_instance_);
128 static constexpr
int kIndexInFileMessages =
131 friend void swap(ArithmeticModel& a, ArithmeticModel& b) {
134 inline void Swap(ArithmeticModel* other) {
135 if (other ==
this)
return;
136 if (GetArena() == other->GetArena()) {
139 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
142 void UnsafeArenaSwap(ArithmeticModel* other) {
143 if (other ==
this)
return;
144 GOOGLE_DCHECK(GetArena() == other->GetArena());
150 inline ArithmeticModel* New()
const final {
151 return CreateMaybeMessage<ArithmeticModel>(
nullptr);
154 ArithmeticModel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
155 return CreateMaybeMessage<ArithmeticModel>(arena);
157 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
158 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
159 void CopyFrom(
const ArithmeticModel& from);
160 void MergeFrom(
const ArithmeticModel& from);
161 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear()
final;
162 bool IsInitialized()
const final;
164 size_t ByteSizeLong()
const final;
165 const char* _InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
final;
166 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
167 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream)
const final;
168 int GetCachedSize()
const final {
return _cached_size_.Get(); }
171 inline void SharedCtor();
172 inline void SharedDtor();
173 void SetCachedSize(
int size)
const final;
174 void InternalSwap(ArithmeticModel* other);
175 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
176 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
177 return "dccl.arith.protobuf.ArithmeticModel";
180 explicit ArithmeticModel(::PROTOBUF_NAMESPACE_ID::Arena* arena);
182 static void ArenaDtor(
void*
object);
183 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
186 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata()
const final;
188 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
189 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto);
190 return ::descriptor_table_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto.file_level_metadata[kIndexInFileMessages];
200 kFrequencyFieldNumber = 10,
201 kValueBoundFieldNumber = 20,
202 kNameFieldNumber = 1,
203 kOutOfRangeFrequencyFieldNumber = 12,
204 kIsAdaptiveFieldNumber = 30,
205 kEofFrequencyFieldNumber = 11,
208 int frequency_size()
const;
210 int _internal_frequency_size()
const;
212 void clear_frequency();
214 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_frequency(
int index)
const;
215 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >&
216 _internal_frequency()
const;
217 void _internal_add_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value);
218 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >*
219 _internal_mutable_frequency();
221 ::PROTOBUF_NAMESPACE_ID::uint32 frequency(
int index)
const;
222 void set_frequency(
int index, ::PROTOBUF_NAMESPACE_ID::uint32 value);
223 void add_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value);
224 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >&
226 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >*
230 int value_bound_size()
const;
232 int _internal_value_bound_size()
const;
234 void clear_value_bound();
236 double _internal_value_bound(
int index)
const;
237 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
238 _internal_value_bound()
const;
239 void _internal_add_value_bound(
double value);
240 ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
241 _internal_mutable_value_bound();
243 double value_bound(
int index)
const;
244 void set_value_bound(
int index,
double value);
245 void add_value_bound(
double value);
246 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
248 ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
249 mutable_value_bound();
252 bool has_name()
const;
254 bool _internal_has_name()
const;
257 const std::string& name()
const;
258 void set_name(
const std::string& value);
259 void set_name(std::string&& value);
260 void set_name(
const char* value);
261 void set_name(
const char* value,
size_t size);
262 std::string* mutable_name();
263 std::string* release_name();
264 void set_allocated_name(std::string* name);
265 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
266 " string fields are deprecated and will be removed in a"
268 std::string* unsafe_arena_release_name();
269 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
270 " string fields are deprecated and will be removed in a"
272 void unsafe_arena_set_allocated_name(
275 const std::string& _internal_name()
const;
276 void _internal_set_name(
const std::string& value);
277 std::string* _internal_mutable_name();
281 bool has_out_of_range_frequency()
const;
283 bool _internal_has_out_of_range_frequency()
const;
285 void clear_out_of_range_frequency();
286 ::PROTOBUF_NAMESPACE_ID::uint32 out_of_range_frequency()
const;
287 void set_out_of_range_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value);
289 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_out_of_range_frequency()
const;
290 void _internal_set_out_of_range_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value);
294 bool has_is_adaptive()
const;
296 bool _internal_has_is_adaptive()
const;
298 void clear_is_adaptive();
299 bool is_adaptive()
const;
300 void set_is_adaptive(
bool value);
302 bool _internal_is_adaptive()
const;
303 void _internal_set_is_adaptive(
bool value);
307 bool has_eof_frequency()
const;
309 bool _internal_has_eof_frequency()
const;
311 void clear_eof_frequency();
312 ::PROTOBUF_NAMESPACE_ID::uint32 eof_frequency()
const;
313 void set_eof_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value);
315 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_eof_frequency()
const;
316 void _internal_set_eof_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value);
323 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
324 typedef void InternalArenaConstructable_;
325 typedef void DestructorSkippable_;
326 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
327 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
328 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 > frequency_;
329 ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > value_bound_;
330 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
331 ::PROTOBUF_NAMESPACE_ID::uint32 out_of_range_frequency_;
333 ::PROTOBUF_NAMESPACE_ID::uint32 eof_frequency_;
334 friend struct ::TableStruct_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto;
342 #pragma GCC diagnostic push
343 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
348 inline bool ArithmeticModel::_internal_has_name()
const {
349 bool value = (_has_bits_[0] & 0x00000001u) != 0;
352 inline bool ArithmeticModel::has_name()
const {
353 return _internal_has_name();
355 inline void ArithmeticModel::clear_name() {
356 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
357 _has_bits_[0] &= ~0x00000001u;
359 inline const std::string& ArithmeticModel::name()
const {
361 return _internal_name();
363 inline void ArithmeticModel::set_name(
const std::string& value) {
364 _internal_set_name(value);
367 inline std::string* ArithmeticModel::mutable_name() {
369 return _internal_mutable_name();
371 inline const std::string& ArithmeticModel::_internal_name()
const {
374 inline void ArithmeticModel::_internal_set_name(
const std::string& value) {
375 _has_bits_[0] |= 0x00000001u;
376 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
378 inline void ArithmeticModel::set_name(std::string&& value) {
379 _has_bits_[0] |= 0x00000001u;
381 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
384 inline void ArithmeticModel::set_name(
const char* value) {
385 GOOGLE_DCHECK(value !=
nullptr);
386 _has_bits_[0] |= 0x00000001u;
387 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
391 inline void ArithmeticModel::set_name(
const char* value,
393 _has_bits_[0] |= 0x00000001u;
394 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
395 reinterpret_cast<const char*
>(value), size), GetArena());
398 inline std::string* ArithmeticModel::_internal_mutable_name() {
399 _has_bits_[0] |= 0x00000001u;
400 return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
402 inline std::string* ArithmeticModel::release_name() {
404 if (!_internal_has_name()) {
407 _has_bits_[0] &= ~0x00000001u;
408 return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
410 inline void ArithmeticModel::set_allocated_name(std::string* name) {
411 if (name !=
nullptr) {
412 _has_bits_[0] |= 0x00000001u;
414 _has_bits_[0] &= ~0x00000001u;
416 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
420 inline std::string* ArithmeticModel::unsafe_arena_release_name() {
422 GOOGLE_DCHECK(GetArena() !=
nullptr);
423 _has_bits_[0] &= ~0x00000001u;
424 return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
427 inline void ArithmeticModel::unsafe_arena_set_allocated_name(
429 GOOGLE_DCHECK(GetArena() !=
nullptr);
430 if (name !=
nullptr) {
431 _has_bits_[0] |= 0x00000001u;
433 _has_bits_[0] &= ~0x00000001u;
435 name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
441 inline int ArithmeticModel::_internal_frequency_size()
const {
442 return frequency_.size();
444 inline int ArithmeticModel::frequency_size()
const {
445 return _internal_frequency_size();
447 inline void ArithmeticModel::clear_frequency() {
450 inline ::PROTOBUF_NAMESPACE_ID::uint32 ArithmeticModel::_internal_frequency(
int index)
const {
451 return frequency_.Get(index);
453 inline ::PROTOBUF_NAMESPACE_ID::uint32 ArithmeticModel::frequency(
int index)
const {
455 return _internal_frequency(index);
457 inline void ArithmeticModel::set_frequency(
int index, ::PROTOBUF_NAMESPACE_ID::uint32 value) {
458 frequency_.Set(index, value);
461 inline void ArithmeticModel::_internal_add_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value) {
462 frequency_.Add(value);
464 inline void ArithmeticModel::add_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value) {
465 _internal_add_frequency(value);
468 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >&
469 ArithmeticModel::_internal_frequency()
const {
472 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >&
473 ArithmeticModel::frequency()
const {
475 return _internal_frequency();
477 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >*
478 ArithmeticModel::_internal_mutable_frequency() {
481 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >*
482 ArithmeticModel::mutable_frequency() {
484 return _internal_mutable_frequency();
488 inline bool ArithmeticModel::_internal_has_eof_frequency()
const {
489 bool value = (_has_bits_[0] & 0x00000008u) != 0;
492 inline bool ArithmeticModel::has_eof_frequency()
const {
493 return _internal_has_eof_frequency();
495 inline void ArithmeticModel::clear_eof_frequency() {
497 _has_bits_[0] &= ~0x00000008u;
499 inline ::PROTOBUF_NAMESPACE_ID::uint32 ArithmeticModel::_internal_eof_frequency()
const {
500 return eof_frequency_;
502 inline ::PROTOBUF_NAMESPACE_ID::uint32 ArithmeticModel::eof_frequency()
const {
504 return _internal_eof_frequency();
506 inline void ArithmeticModel::_internal_set_eof_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value) {
507 _has_bits_[0] |= 0x00000008u;
508 eof_frequency_ = value;
510 inline void ArithmeticModel::set_eof_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value) {
511 _internal_set_eof_frequency(value);
516 inline bool ArithmeticModel::_internal_has_out_of_range_frequency()
const {
517 bool value = (_has_bits_[0] & 0x00000002u) != 0;
520 inline bool ArithmeticModel::has_out_of_range_frequency()
const {
521 return _internal_has_out_of_range_frequency();
523 inline void ArithmeticModel::clear_out_of_range_frequency() {
524 out_of_range_frequency_ = 0u;
525 _has_bits_[0] &= ~0x00000002u;
527 inline ::PROTOBUF_NAMESPACE_ID::uint32 ArithmeticModel::_internal_out_of_range_frequency()
const {
528 return out_of_range_frequency_;
530 inline ::PROTOBUF_NAMESPACE_ID::uint32 ArithmeticModel::out_of_range_frequency()
const {
532 return _internal_out_of_range_frequency();
534 inline void ArithmeticModel::_internal_set_out_of_range_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value) {
535 _has_bits_[0] |= 0x00000002u;
536 out_of_range_frequency_ = value;
538 inline void ArithmeticModel::set_out_of_range_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value) {
539 _internal_set_out_of_range_frequency(value);
544 inline int ArithmeticModel::_internal_value_bound_size()
const {
545 return value_bound_.size();
547 inline int ArithmeticModel::value_bound_size()
const {
548 return _internal_value_bound_size();
550 inline void ArithmeticModel::clear_value_bound() {
551 value_bound_.Clear();
553 inline double ArithmeticModel::_internal_value_bound(
int index)
const {
554 return value_bound_.Get(index);
556 inline double ArithmeticModel::value_bound(
int index)
const {
558 return _internal_value_bound(index);
560 inline void ArithmeticModel::set_value_bound(
int index,
double value) {
561 value_bound_.Set(index, value);
564 inline void ArithmeticModel::_internal_add_value_bound(
double value) {
565 value_bound_.Add(value);
567 inline void ArithmeticModel::add_value_bound(
double value) {
568 _internal_add_value_bound(value);
571 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
572 ArithmeticModel::_internal_value_bound()
const {
575 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
576 ArithmeticModel::value_bound()
const {
578 return _internal_value_bound();
580 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
581 ArithmeticModel::_internal_mutable_value_bound() {
582 return &value_bound_;
584 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
585 ArithmeticModel::mutable_value_bound() {
587 return _internal_mutable_value_bound();
591 inline bool ArithmeticModel::_internal_has_is_adaptive()
const {
592 bool value = (_has_bits_[0] & 0x00000004u) != 0;
595 inline bool ArithmeticModel::has_is_adaptive()
const {
596 return _internal_has_is_adaptive();
598 inline void ArithmeticModel::clear_is_adaptive() {
599 is_adaptive_ =
false;
600 _has_bits_[0] &= ~0x00000004u;
602 inline bool ArithmeticModel::_internal_is_adaptive()
const {
605 inline bool ArithmeticModel::is_adaptive()
const {
607 return _internal_is_adaptive();
609 inline void ArithmeticModel::_internal_set_is_adaptive(
bool value) {
610 _has_bits_[0] |= 0x00000004u;
611 is_adaptive_ = value;
613 inline void ArithmeticModel::set_is_adaptive(
bool value) {
614 _internal_set_is_adaptive(value);
619 #pragma GCC diagnostic pop
630 #include <google/protobuf/port_undef.inc>
Dynamic Compact Control Language namespace.