4 #ifndef GOOGLE_PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_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_5fextensions_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_5fextensions_2eproto;
62 class ArithmeticOptions;
63 class ArithmeticOptionsDefaultTypeInternal;
64 extern ArithmeticOptionsDefaultTypeInternal _ArithmeticOptions_default_instance_;
65 PROTOBUF_NAMESPACE_OPEN
66 template<> ::ArithmeticOptions* Arena::CreateMaybeMessage<::ArithmeticOptions>(Arena*);
67 PROTOBUF_NAMESPACE_CLOSE
72 public ::PROTOBUF_NAMESPACE_ID::Message {
74 inline ArithmeticOptions() : ArithmeticOptions(
nullptr) {};
75 virtual ~ArithmeticOptions();
77 ArithmeticOptions(
const ArithmeticOptions& from);
78 ArithmeticOptions(ArithmeticOptions&& from) noexcept
79 : ArithmeticOptions() {
80 *
this = ::std::move(from);
83 inline ArithmeticOptions& operator=(
const ArithmeticOptions& from) {
87 inline ArithmeticOptions& operator=(ArithmeticOptions&& from) noexcept {
88 if (GetArena() == from.GetArena()) {
89 if (
this != &from) InternalSwap(&from);
96 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields()
const {
97 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
99 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
100 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
103 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
104 return GetDescriptor();
106 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
107 return GetMetadataStatic().descriptor;
109 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
110 return GetMetadataStatic().reflection;
112 static const ArithmeticOptions& default_instance();
114 static void InitAsDefaultInstance();
115 static inline const ArithmeticOptions* internal_default_instance() {
116 return reinterpret_cast<const ArithmeticOptions*
>(
117 &_ArithmeticOptions_default_instance_);
119 static constexpr
int kIndexInFileMessages =
122 friend void swap(ArithmeticOptions& a, ArithmeticOptions& b) {
125 inline void Swap(ArithmeticOptions* other) {
126 if (other ==
this)
return;
127 if (GetArena() == other->GetArena()) {
130 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
133 void UnsafeArenaSwap(ArithmeticOptions* other) {
134 if (other ==
this)
return;
135 GOOGLE_DCHECK(GetArena() == other->GetArena());
141 inline ArithmeticOptions* New()
const final {
142 return CreateMaybeMessage<ArithmeticOptions>(
nullptr);
145 ArithmeticOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
146 return CreateMaybeMessage<ArithmeticOptions>(arena);
148 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
149 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
150 void CopyFrom(
const ArithmeticOptions& from);
151 void MergeFrom(
const ArithmeticOptions& from);
152 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear()
final;
153 bool IsInitialized()
const final;
155 size_t ByteSizeLong()
const final;
156 const char* _InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
final;
157 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
158 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream)
const final;
159 int GetCachedSize()
const final {
return _cached_size_.Get(); }
162 inline void SharedCtor();
163 inline void SharedDtor();
164 void SetCachedSize(
int size)
const final;
165 void InternalSwap(ArithmeticOptions* other);
166 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
167 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
168 return "ArithmeticOptions";
171 explicit ArithmeticOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena);
173 static void ArenaDtor(
void*
object);
174 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
177 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata()
const final;
179 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
180 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto);
181 return ::descriptor_table_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto.file_level_metadata[kIndexInFileMessages];
191 kModelFieldNumber = 1,
192 kDebugAssertFieldNumber = 2,
195 bool has_model()
const;
197 bool _internal_has_model()
const;
200 const std::string& model()
const;
201 void set_model(
const std::string& value);
202 void set_model(std::string&& value);
203 void set_model(
const char* value);
204 void set_model(
const char* value,
size_t size);
205 std::string* mutable_model();
206 std::string* release_model();
207 void set_allocated_model(std::string* model);
208 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
209 " string fields are deprecated and will be removed in a"
211 std::string* unsafe_arena_release_model();
212 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
213 " string fields are deprecated and will be removed in a"
215 void unsafe_arena_set_allocated_model(
218 const std::string& _internal_model()
const;
219 void _internal_set_model(
const std::string& value);
220 std::string* _internal_mutable_model();
224 bool has_debug_assert()
const;
226 bool _internal_has_debug_assert()
const;
228 void clear_debug_assert();
229 bool debug_assert()
const;
230 void set_debug_assert(
bool value);
232 bool _internal_debug_assert()
const;
233 void _internal_set_debug_assert(
bool value);
240 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
241 typedef void InternalArenaConstructable_;
242 typedef void DestructorSkippable_;
243 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
244 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
245 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_;
247 friend struct ::TableStruct_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto;
251 static const int kArithmeticFieldNumber = 1001;
252 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::dccl::DCCLFieldOptions,
253 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::ArithmeticOptions >, 11,
false >
259 #pragma GCC diagnostic push
260 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
265 inline bool ArithmeticOptions::_internal_has_model()
const {
266 bool value = (_has_bits_[0] & 0x00000001u) != 0;
269 inline bool ArithmeticOptions::has_model()
const {
270 return _internal_has_model();
272 inline void ArithmeticOptions::clear_model() {
273 model_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
274 _has_bits_[0] &= ~0x00000001u;
276 inline const std::string& ArithmeticOptions::model()
const {
278 return _internal_model();
280 inline void ArithmeticOptions::set_model(
const std::string& value) {
281 _internal_set_model(value);
284 inline std::string* ArithmeticOptions::mutable_model() {
286 return _internal_mutable_model();
288 inline const std::string& ArithmeticOptions::_internal_model()
const {
291 inline void ArithmeticOptions::_internal_set_model(
const std::string& value) {
292 _has_bits_[0] |= 0x00000001u;
293 model_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
295 inline void ArithmeticOptions::set_model(std::string&& value) {
296 _has_bits_[0] |= 0x00000001u;
298 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
301 inline void ArithmeticOptions::set_model(
const char* value) {
302 GOOGLE_DCHECK(value !=
nullptr);
303 _has_bits_[0] |= 0x00000001u;
304 model_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
308 inline void ArithmeticOptions::set_model(
const char* value,
310 _has_bits_[0] |= 0x00000001u;
311 model_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
312 reinterpret_cast<const char*
>(value), size), GetArena());
315 inline std::string* ArithmeticOptions::_internal_mutable_model() {
316 _has_bits_[0] |= 0x00000001u;
317 return model_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
319 inline std::string* ArithmeticOptions::release_model() {
321 if (!_internal_has_model()) {
324 _has_bits_[0] &= ~0x00000001u;
325 return model_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
327 inline void ArithmeticOptions::set_allocated_model(std::string* model) {
328 if (model !=
nullptr) {
329 _has_bits_[0] |= 0x00000001u;
331 _has_bits_[0] &= ~0x00000001u;
333 model_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), model,
337 inline std::string* ArithmeticOptions::unsafe_arena_release_model() {
339 GOOGLE_DCHECK(GetArena() !=
nullptr);
340 _has_bits_[0] &= ~0x00000001u;
341 return model_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
344 inline void ArithmeticOptions::unsafe_arena_set_allocated_model(
345 std::string* model) {
346 GOOGLE_DCHECK(GetArena() !=
nullptr);
347 if (model !=
nullptr) {
348 _has_bits_[0] |= 0x00000001u;
350 _has_bits_[0] &= ~0x00000001u;
352 model_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
358 inline bool ArithmeticOptions::_internal_has_debug_assert()
const {
359 bool value = (_has_bits_[0] & 0x00000002u) != 0;
362 inline bool ArithmeticOptions::has_debug_assert()
const {
363 return _internal_has_debug_assert();
365 inline void ArithmeticOptions::clear_debug_assert() {
366 debug_assert_ =
false;
367 _has_bits_[0] &= ~0x00000002u;
369 inline bool ArithmeticOptions::_internal_debug_assert()
const {
370 return debug_assert_;
372 inline bool ArithmeticOptions::debug_assert()
const {
374 return _internal_debug_assert();
376 inline void ArithmeticOptions::_internal_set_debug_assert(
bool value) {
377 _has_bits_[0] |= 0x00000002u;
378 debug_assert_ = value;
380 inline void ArithmeticOptions::set_debug_assert(
bool value) {
381 _internal_set_debug_assert(value);
386 #pragma GCC diagnostic pop
394 #include <google/protobuf/port_undef.inc>