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 < 3021000
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 3021012 < 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_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.h>
29#include <google/protobuf/message.h>
30#include <google/protobuf/repeated_field.h>
31#include <google/protobuf/extension_set.h>
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>
39#include <google/protobuf/port_def.inc>
40#define PROTOBUF_INTERNAL_EXPORT_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
41PROTOBUF_NAMESPACE_OPEN
45PROTOBUF_NAMESPACE_CLOSE
49 static const uint32_t offsets[];
51extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto;
56struct ArithmeticModelDefaultTypeInternal;
57extern ArithmeticModelDefaultTypeInternal _ArithmeticModel_default_instance_;
61PROTOBUF_NAMESPACE_OPEN
63PROTOBUF_NAMESPACE_CLOSE
71 public ::PROTOBUF_NAMESPACE_ID::Message {
75 explicit PROTOBUF_CONSTEXPR
ArithmeticModel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
80 *
this = ::std::move(from);
88 if (
this == &from)
return *
this;
89 if (GetOwningArena() == from.GetOwningArena()
90 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
91 && GetOwningArena() !=
nullptr
101 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields()
const {
102 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
104 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
105 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
108 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
109 return GetDescriptor();
111 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
112 return default_instance().GetMetadata().descriptor;
114 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
115 return default_instance().GetMetadata().reflection;
118 return *internal_default_instance();
122 &_ArithmeticModel_default_instance_);
124 static constexpr int kIndexInFileMessages =
131 if (other ==
this)
return;
132 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
133 if (GetOwningArena() !=
nullptr &&
134 GetOwningArena() == other->GetOwningArena()) {
136 if (GetOwningArena() == other->GetOwningArena()) {
140 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
144 if (other ==
this)
return;
145 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
151 ArithmeticModel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr)
const final {
152 return CreateMaybeMessage<ArithmeticModel>(arena);
154 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
156 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
158 ArithmeticModel::MergeImpl(*
this, from);
161 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
163 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear()
final;
164 bool IsInitialized()
const final;
166 size_t ByteSizeLong()
const final;
167 const char* _InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
final;
168 uint8_t* _InternalSerialize(
169 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream)
const final;
170 int GetCachedSize()
const final {
return _impl_._cached_size_.Get(); }
173 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
175 void SetCachedSize(
int size)
const final;
179 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
180 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
181 return "dccl.arith.protobuf.ArithmeticModel";
185 bool is_message_owned =
false);
188 static const ClassData _class_data_;
189 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData()
const final;
191 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata()
const final;
198 kFrequencyFieldNumber = 10,
199 kValueBoundFieldNumber = 20,
200 kNameFieldNumber = 1,
201 kOutOfRangeFrequencyFieldNumber = 12,
202 kIsAdaptiveFieldNumber = 30,
203 kEofFrequencyFieldNumber = 11,
206 int frequency_size()
const;
208 int _internal_frequency_size()
const;
210 void clear_frequency();
212 uint32_t _internal_frequency(
int index)
const;
213 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
214 _internal_frequency()
const;
215 void _internal_add_frequency(uint32_t value);
216 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
217 _internal_mutable_frequency();
219 uint32_t frequency(
int index)
const;
220 void set_frequency(
int index, uint32_t value);
221 void add_frequency(uint32_t value);
222 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
224 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
228 int value_bound_size()
const;
230 int _internal_value_bound_size()
const;
232 void clear_value_bound();
234 double _internal_value_bound(
int index)
const;
235 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
236 _internal_value_bound()
const;
237 void _internal_add_value_bound(
double value);
238 ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
239 _internal_mutable_value_bound();
241 double value_bound(
int index)
const;
242 void set_value_bound(
int index,
double value);
243 void add_value_bound(
double value);
244 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
246 ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
247 mutable_value_bound();
250 bool has_name()
const;
252 bool _internal_has_name()
const;
255 const std::string& name()
const;
256 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
257 void set_name(ArgT0&& arg0, ArgT... args);
258 std::string* mutable_name();
259 PROTOBUF_NODISCARD std::string* release_name();
260 void set_allocated_name(std::string* name);
262 const std::string& _internal_name()
const;
263 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_name(
const std::string& value);
264 std::string* _internal_mutable_name();
268 bool has_out_of_range_frequency()
const;
270 bool _internal_has_out_of_range_frequency()
const;
272 void clear_out_of_range_frequency();
273 uint32_t out_of_range_frequency()
const;
274 void set_out_of_range_frequency(uint32_t value);
276 uint32_t _internal_out_of_range_frequency()
const;
277 void _internal_set_out_of_range_frequency(uint32_t value);
281 bool has_is_adaptive()
const;
283 bool _internal_has_is_adaptive()
const;
285 void clear_is_adaptive();
286 bool is_adaptive()
const;
287 void set_is_adaptive(
bool value);
289 bool _internal_is_adaptive()
const;
290 void _internal_set_is_adaptive(
bool value);
294 bool has_eof_frequency()
const;
296 bool _internal_has_eof_frequency()
const;
298 void clear_eof_frequency();
299 uint32_t eof_frequency()
const;
300 void set_eof_frequency(uint32_t value);
302 uint32_t _internal_eof_frequency()
const;
303 void _internal_set_eof_frequency(uint32_t value);
310 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
311 typedef void InternalArenaConstructable_;
312 typedef void DestructorSkippable_;
314 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
315 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
316 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > frequency_;
317 ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > value_bound_;
318 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
319 uint32_t out_of_range_frequency_;
321 uint32_t eof_frequency_;
323 union { Impl_ _impl_; };
324 friend struct ::TableStruct_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto;
332 #pragma GCC diagnostic push
333 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
338inline bool ArithmeticModel::_internal_has_name()
const {
339 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
342inline bool ArithmeticModel::has_name()
const {
343 return _internal_has_name();
345inline void ArithmeticModel::clear_name() {
346 _impl_.name_.ClearToEmpty();
347 _impl_._has_bits_[0] &= ~0x00000001u;
349inline const std::string& ArithmeticModel::name()
const {
351 return _internal_name();
353template <
typename ArgT0,
typename... ArgT>
354inline PROTOBUF_ALWAYS_INLINE
355void ArithmeticModel::set_name(ArgT0&& arg0, ArgT... args) {
356 _impl_._has_bits_[0] |= 0x00000001u;
357 _impl_.name_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
360inline std::string* ArithmeticModel::mutable_name() {
361 std::string* _s = _internal_mutable_name();
365inline const std::string& ArithmeticModel::_internal_name()
const {
366 return _impl_.name_.Get();
368inline void ArithmeticModel::_internal_set_name(
const std::string& value) {
369 _impl_._has_bits_[0] |= 0x00000001u;
370 _impl_.name_.Set(value, GetArenaForAllocation());
372inline std::string* ArithmeticModel::_internal_mutable_name() {
373 _impl_._has_bits_[0] |= 0x00000001u;
374 return _impl_.name_.Mutable(GetArenaForAllocation());
376inline std::string* ArithmeticModel::release_name() {
378 if (!_internal_has_name()) {
381 _impl_._has_bits_[0] &= ~0x00000001u;
382 auto* p = _impl_.name_.Release();
383#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
384 if (_impl_.name_.IsDefault()) {
385 _impl_.name_.Set(
"", GetArenaForAllocation());
390inline void ArithmeticModel::set_allocated_name(std::string* name) {
391 if (name !=
nullptr) {
392 _impl_._has_bits_[0] |= 0x00000001u;
394 _impl_._has_bits_[0] &= ~0x00000001u;
396 _impl_.name_.SetAllocated(name, GetArenaForAllocation());
397#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
398 if (_impl_.name_.IsDefault()) {
399 _impl_.name_.Set(
"", GetArenaForAllocation());
406inline int ArithmeticModel::_internal_frequency_size()
const {
407 return _impl_.frequency_.size();
409inline int ArithmeticModel::frequency_size()
const {
410 return _internal_frequency_size();
412inline void ArithmeticModel::clear_frequency() {
413 _impl_.frequency_.Clear();
415inline uint32_t ArithmeticModel::_internal_frequency(
int index)
const {
416 return _impl_.frequency_.Get(index);
418inline uint32_t ArithmeticModel::frequency(
int index)
const {
420 return _internal_frequency(index);
422inline void ArithmeticModel::set_frequency(
int index, uint32_t value) {
423 _impl_.frequency_.Set(index, value);
426inline void ArithmeticModel::_internal_add_frequency(uint32_t value) {
427 _impl_.frequency_.Add(value);
429inline void ArithmeticModel::add_frequency(uint32_t value) {
430 _internal_add_frequency(value);
433inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
434ArithmeticModel::_internal_frequency()
const {
435 return _impl_.frequency_;
437inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
438ArithmeticModel::frequency()
const {
440 return _internal_frequency();
442inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
443ArithmeticModel::_internal_mutable_frequency() {
444 return &_impl_.frequency_;
446inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
447ArithmeticModel::mutable_frequency() {
449 return _internal_mutable_frequency();
453inline bool ArithmeticModel::_internal_has_eof_frequency()
const {
454 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
457inline bool ArithmeticModel::has_eof_frequency()
const {
458 return _internal_has_eof_frequency();
460inline void ArithmeticModel::clear_eof_frequency() {
461 _impl_.eof_frequency_ = 1u;
462 _impl_._has_bits_[0] &= ~0x00000008u;
464inline uint32_t ArithmeticModel::_internal_eof_frequency()
const {
465 return _impl_.eof_frequency_;
467inline uint32_t ArithmeticModel::eof_frequency()
const {
469 return _internal_eof_frequency();
471inline void ArithmeticModel::_internal_set_eof_frequency(uint32_t value) {
472 _impl_._has_bits_[0] |= 0x00000008u;
473 _impl_.eof_frequency_ = value;
475inline void ArithmeticModel::set_eof_frequency(uint32_t value) {
476 _internal_set_eof_frequency(value);
481inline bool ArithmeticModel::_internal_has_out_of_range_frequency()
const {
482 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
485inline bool ArithmeticModel::has_out_of_range_frequency()
const {
486 return _internal_has_out_of_range_frequency();
488inline void ArithmeticModel::clear_out_of_range_frequency() {
489 _impl_.out_of_range_frequency_ = 0u;
490 _impl_._has_bits_[0] &= ~0x00000002u;
492inline uint32_t ArithmeticModel::_internal_out_of_range_frequency()
const {
493 return _impl_.out_of_range_frequency_;
495inline uint32_t ArithmeticModel::out_of_range_frequency()
const {
497 return _internal_out_of_range_frequency();
499inline void ArithmeticModel::_internal_set_out_of_range_frequency(uint32_t value) {
500 _impl_._has_bits_[0] |= 0x00000002u;
501 _impl_.out_of_range_frequency_ = value;
503inline void ArithmeticModel::set_out_of_range_frequency(uint32_t value) {
504 _internal_set_out_of_range_frequency(value);
509inline int ArithmeticModel::_internal_value_bound_size()
const {
510 return _impl_.value_bound_.size();
512inline int ArithmeticModel::value_bound_size()
const {
513 return _internal_value_bound_size();
515inline void ArithmeticModel::clear_value_bound() {
516 _impl_.value_bound_.Clear();
518inline double ArithmeticModel::_internal_value_bound(
int index)
const {
519 return _impl_.value_bound_.Get(index);
521inline double ArithmeticModel::value_bound(
int index)
const {
523 return _internal_value_bound(index);
525inline void ArithmeticModel::set_value_bound(
int index,
double value) {
526 _impl_.value_bound_.Set(index, value);
529inline void ArithmeticModel::_internal_add_value_bound(
double value) {
530 _impl_.value_bound_.Add(value);
532inline void ArithmeticModel::add_value_bound(
double value) {
533 _internal_add_value_bound(value);
536inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
537ArithmeticModel::_internal_value_bound()
const {
538 return _impl_.value_bound_;
540inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
541ArithmeticModel::value_bound()
const {
543 return _internal_value_bound();
545inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
546ArithmeticModel::_internal_mutable_value_bound() {
547 return &_impl_.value_bound_;
549inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
550ArithmeticModel::mutable_value_bound() {
552 return _internal_mutable_value_bound();
556inline bool ArithmeticModel::_internal_has_is_adaptive()
const {
557 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
560inline bool ArithmeticModel::has_is_adaptive()
const {
561 return _internal_has_is_adaptive();
563inline void ArithmeticModel::clear_is_adaptive() {
564 _impl_.is_adaptive_ =
false;
565 _impl_._has_bits_[0] &= ~0x00000004u;
567inline bool ArithmeticModel::_internal_is_adaptive()
const {
568 return _impl_.is_adaptive_;
570inline bool ArithmeticModel::is_adaptive()
const {
572 return _internal_is_adaptive();
574inline void ArithmeticModel::_internal_set_is_adaptive(
bool value) {
575 _impl_._has_bits_[0] |= 0x00000004u;
576 _impl_.is_adaptive_ = value;
578inline void ArithmeticModel::set_is_adaptive(
bool value) {
579 _internal_set_is_adaptive(value);
584 #pragma GCC diagnostic pop
595#include <google/protobuf/port_undef.inc>
Dynamic Compact Control Language namespace.