4 #ifndef PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto
5 #define PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_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_5fextensions_2eproto
41 namespace protobuf_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_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();
54 class ArithmeticOptionsDefaultTypeInternal;
55 extern ArithmeticOptionsDefaultTypeInternal _ArithmeticOptions_default_instance_;
78 *
this = ::std::move(from);
82 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
83 if (
this != &from) InternalSwap(&from);
90 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
91 return _internal_metadata_.unknown_fields();
93 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
94 return _internal_metadata_.mutable_unknown_fields();
97 static const ::google::protobuf::Descriptor* descriptor();
100 static void InitAsDefaultInstance();
103 &_ArithmeticOptions_default_instance_);
105 static constexpr
int kIndexInFileMessages =
116 return CreateMaybeMessage<ArithmeticOptions>(NULL);
120 return CreateMaybeMessage<ArithmeticOptions>(arena);
122 void CopyFrom(const ::google::protobuf::Message& from)
final;
123 void MergeFrom(const ::google::protobuf::Message& from)
final;
127 bool IsInitialized()
const final;
129 size_t ByteSizeLong()
const final;
130 bool MergePartialFromCodedStream(
131 ::google::protobuf::io::CodedInputStream* input)
final;
132 void SerializeWithCachedSizes(
133 ::google::protobuf::io::CodedOutputStream* output)
const final;
134 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
135 bool deterministic, ::google::protobuf::uint8* target)
const final;
136 int GetCachedSize()
const final {
return _cached_size_.Get(); }
141 void SetCachedSize(
int size)
const final;
144 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
147 inline void* MaybeArenaPtr()
const {
152 ::google::protobuf::Metadata GetMetadata()
const final;
159 bool has_model()
const;
161 static const int kModelFieldNumber = 1;
162 const ::std::string& model()
const;
163 void set_model(const ::std::string& value);
165 void set_model(::std::string&& value);
167 void set_model(
const char* value);
168 void set_model(
const char* value,
size_t size);
169 ::std::string* mutable_model();
170 ::std::string* release_model();
171 void set_allocated_model(::std::string* model);
174 bool has_debug_assert()
const;
175 void clear_debug_assert();
176 static const int kDebugAssertFieldNumber = 2;
177 bool debug_assert()
const;
178 void set_debug_assert(
bool value);
182 void set_has_model();
183 void clear_has_model();
184 void set_has_debug_assert();
185 void clear_has_debug_assert();
187 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
188 ::google::protobuf::internal::HasBits<1> _has_bits_;
189 mutable ::google::protobuf::internal::CachedSize _cached_size_;
190 ::google::protobuf::internal::ArenaStringPtr model_;
192 friend struct ::protobuf_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto::TableStruct;
196 static const int kArithmeticFieldNumber = 1001;
198 ::google::protobuf::internal::MessageTypeTraits< ::ArithmeticOptions >, 11,
false >
204 #pragma GCC diagnostic push
205 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
210 inline bool ArithmeticOptions::has_model()
const {
211 return (_has_bits_[0] & 0x00000001u) != 0;
213 inline void ArithmeticOptions::set_has_model() {
214 _has_bits_[0] |= 0x00000001u;
216 inline void ArithmeticOptions::clear_has_model() {
217 _has_bits_[0] &= ~0x00000001u;
219 inline void ArithmeticOptions::clear_model() {
220 model_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
223 inline const ::std::string& ArithmeticOptions::model()
const {
225 return model_.GetNoArena();
227 inline void ArithmeticOptions::set_model(const ::std::string& value) {
229 model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
233 inline void ArithmeticOptions::set_model(::std::string&& value) {
236 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
240 inline void ArithmeticOptions::set_model(
const char* value) {
241 GOOGLE_DCHECK(value != NULL);
243 model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
246 inline void ArithmeticOptions::set_model(
const char* value,
size_t size) {
248 model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
249 ::std::string(
reinterpret_cast<const char*
>(value), size));
252 inline ::std::string* ArithmeticOptions::mutable_model() {
255 return model_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
257 inline ::std::string* ArithmeticOptions::release_model() {
263 return model_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
265 inline void ArithmeticOptions::set_allocated_model(::std::string* model) {
271 model_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), model);
276 inline bool ArithmeticOptions::has_debug_assert()
const {
277 return (_has_bits_[0] & 0x00000002u) != 0;
279 inline void ArithmeticOptions::set_has_debug_assert() {
280 _has_bits_[0] |= 0x00000002u;
282 inline void ArithmeticOptions::clear_has_debug_assert() {
283 _has_bits_[0] &= ~0x00000002u;
285 inline void ArithmeticOptions::clear_debug_assert() {
286 debug_assert_ =
false;
287 clear_has_debug_assert();
289 inline bool ArithmeticOptions::debug_assert()
const {
291 return debug_assert_;
293 inline void ArithmeticOptions::set_debug_assert(
bool value) {
294 set_has_debug_assert();
295 debug_assert_ = value;
300 #pragma GCC diagnostic pop
308 #endif // PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto