4 #ifndef PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
5 #define PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
41 namespace protobuf_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto {
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[];
51 void AddDescriptors();
56 class ArithmeticModel;
57 class ArithmeticModelDefaultTypeInternal;
58 extern ArithmeticModelDefaultTypeInternal _ArithmeticModel_default_instance_;
87 *
this = ::std::move(from);
91 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
92 if (
this != &from) InternalSwap(&from);
99 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
100 return _internal_metadata_.unknown_fields();
102 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
103 return _internal_metadata_.mutable_unknown_fields();
106 static const ::google::protobuf::Descriptor* descriptor();
109 static void InitAsDefaultInstance();
112 &_ArithmeticModel_default_instance_);
114 static constexpr
int kIndexInFileMessages =
125 return CreateMaybeMessage<ArithmeticModel>(NULL);
129 return CreateMaybeMessage<ArithmeticModel>(arena);
131 void CopyFrom(const ::google::protobuf::Message& from)
final;
132 void MergeFrom(const ::google::protobuf::Message& from)
final;
136 bool IsInitialized()
const final;
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(); }
150 void SetCachedSize(
int size)
const final;
153 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
156 inline void* MaybeArenaPtr()
const {
161 ::google::protobuf::Metadata GetMetadata()
const final;
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 >&
176 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
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 >&
188 ::google::protobuf::RepeatedField< double >*
189 mutable_value_bound();
192 bool has_name()
const;
194 static const int kNameFieldNumber = 1;
195 const ::std::string& name()
const;
196 void set_name(const ::std::string& value);
198 void set_name(::std::string&& value);
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);
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);
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);
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);
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();
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_;
246 ::google::protobuf::uint32 eof_frequency_;
247 friend struct ::protobuf_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto::TableStruct;
255 #pragma GCC diagnostic push
256 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
261 inline bool ArithmeticModel::has_name()
const {
262 return (_has_bits_[0] & 0x00000001u) != 0;
264 inline void ArithmeticModel::set_has_name() {
265 _has_bits_[0] |= 0x00000001u;
267 inline void ArithmeticModel::clear_has_name() {
268 _has_bits_[0] &= ~0x00000001u;
270 inline void ArithmeticModel::clear_name() {
271 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
274 inline const ::std::string& ArithmeticModel::name()
const {
276 return name_.GetNoArena();
278 inline void ArithmeticModel::set_name(const ::std::string& value) {
280 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
284 inline void ArithmeticModel::set_name(::std::string&& value) {
287 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
291 inline void ArithmeticModel::set_name(
const char* value) {
292 GOOGLE_DCHECK(value != NULL);
294 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
297 inline void ArithmeticModel::set_name(
const char* value,
size_t size) {
299 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
300 ::std::string(
reinterpret_cast<const char*
>(value), size));
303 inline ::std::string* ArithmeticModel::mutable_name() {
306 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
308 inline ::std::string* ArithmeticModel::release_name() {
314 return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
316 inline void ArithmeticModel::set_allocated_name(::std::string* name) {
322 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
327 inline int ArithmeticModel::frequency_size()
const {
328 return frequency_.size();
330 inline void ArithmeticModel::clear_frequency() {
333 inline ::google::protobuf::uint32 ArithmeticModel::frequency(
int index)
const {
335 return frequency_.Get(index);
337 inline void ArithmeticModel::set_frequency(
int index, ::google::protobuf::uint32 value) {
338 frequency_.Set(index, value);
341 inline void ArithmeticModel::add_frequency(::google::protobuf::uint32 value) {
342 frequency_.Add(value);
345 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
346 ArithmeticModel::frequency()
const {
350 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
351 ArithmeticModel::mutable_frequency() {
357 inline bool ArithmeticModel::has_eof_frequency()
const {
358 return (_has_bits_[0] & 0x00000008u) != 0;
360 inline void ArithmeticModel::set_has_eof_frequency() {
361 _has_bits_[0] |= 0x00000008u;
363 inline void ArithmeticModel::clear_has_eof_frequency() {
364 _has_bits_[0] &= ~0x00000008u;
366 inline void ArithmeticModel::clear_eof_frequency() {
368 clear_has_eof_frequency();
370 inline ::google::protobuf::uint32 ArithmeticModel::eof_frequency()
const {
372 return eof_frequency_;
374 inline void ArithmeticModel::set_eof_frequency(::google::protobuf::uint32 value) {
375 set_has_eof_frequency();
376 eof_frequency_ = value;
381 inline bool ArithmeticModel::has_out_of_range_frequency()
const {
382 return (_has_bits_[0] & 0x00000002u) != 0;
384 inline void ArithmeticModel::set_has_out_of_range_frequency() {
385 _has_bits_[0] |= 0x00000002u;
387 inline void ArithmeticModel::clear_has_out_of_range_frequency() {
388 _has_bits_[0] &= ~0x00000002u;
390 inline void ArithmeticModel::clear_out_of_range_frequency() {
391 out_of_range_frequency_ = 0u;
392 clear_has_out_of_range_frequency();
394 inline ::google::protobuf::uint32 ArithmeticModel::out_of_range_frequency()
const {
396 return out_of_range_frequency_;
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;
405 inline int ArithmeticModel::value_bound_size()
const {
406 return value_bound_.size();
408 inline void ArithmeticModel::clear_value_bound() {
409 value_bound_.Clear();
411 inline double ArithmeticModel::value_bound(
int index)
const {
413 return value_bound_.Get(index);
415 inline void ArithmeticModel::set_value_bound(
int index,
double value) {
416 value_bound_.Set(index, value);
419 inline void ArithmeticModel::add_value_bound(
double value) {
420 value_bound_.Add(value);
423 inline const ::google::protobuf::RepeatedField< double >&
424 ArithmeticModel::value_bound()
const {
428 inline ::google::protobuf::RepeatedField< double >*
429 ArithmeticModel::mutable_value_bound() {
431 return &value_bound_;
435 inline bool ArithmeticModel::has_is_adaptive()
const {
436 return (_has_bits_[0] & 0x00000004u) != 0;
438 inline void ArithmeticModel::set_has_is_adaptive() {
439 _has_bits_[0] |= 0x00000004u;
441 inline void ArithmeticModel::clear_has_is_adaptive() {
442 _has_bits_[0] &= ~0x00000004u;
444 inline void ArithmeticModel::clear_is_adaptive() {
445 is_adaptive_ =
false;
446 clear_has_is_adaptive();
448 inline bool ArithmeticModel::is_adaptive()
const {
452 inline void ArithmeticModel::set_is_adaptive(
bool value) {
453 set_has_is_adaptive();
454 is_adaptive_ = value;
459 #pragma GCC diagnostic pop
470 #endif // PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto