DCCL v4
Loading...
Searching...
No Matches
arithmetic_extensions.pb.h
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: dccl/arithmetic/protobuf/arithmetic_extensions.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto
6
7#include <limits>
8#include <string>
9
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
14#error your headers.
15#endif
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.
20#endif
21
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> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
38// @@protoc_insertion_point(includes)
39#include <google/protobuf/port_def.inc>
40#define PROTOBUF_INTERNAL_EXPORT_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto
41PROTOBUF_NAMESPACE_OPEN
42namespace internal {
43class AnyMetadata;
44} // namespace internal
45PROTOBUF_NAMESPACE_CLOSE
46
47// Internal implementation detail -- do not use these members.
51extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto;
53struct ArithmeticOptionsDefaultTypeInternal;
54extern ArithmeticOptionsDefaultTypeInternal _ArithmeticOptions_default_instance_;
55PROTOBUF_NAMESPACE_OPEN
56template<> ::ArithmeticOptions* Arena::CreateMaybeMessage<::ArithmeticOptions>(Arena*);
57PROTOBUF_NAMESPACE_CLOSE
58
59// ===================================================================
60
61class ArithmeticOptions final :
62 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ArithmeticOptions) */ {
63 public:
64 inline ArithmeticOptions() : ArithmeticOptions(nullptr) {}
65 ~ArithmeticOptions() override;
66 explicit PROTOBUF_CONSTEXPR ArithmeticOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
67
71 *this = ::std::move(from);
72 }
73
74 inline ArithmeticOptions& operator=(const ArithmeticOptions& from) {
75 CopyFrom(from);
76 return *this;
77 }
78 inline ArithmeticOptions& operator=(ArithmeticOptions&& from) noexcept {
79 if (this == &from) return *this;
80 if (GetOwningArena() == from.GetOwningArena()
81 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
82 && GetOwningArena() != nullptr
83 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
84 ) {
85 InternalSwap(&from);
86 } else {
87 CopyFrom(from);
88 }
89 return *this;
90 }
91
92 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
93 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
94 }
95 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
96 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
97 }
98
99 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
100 return GetDescriptor();
101 }
102 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
103 return default_instance().GetMetadata().descriptor;
104 }
105 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
106 return default_instance().GetMetadata().reflection;
107 }
108 static const ArithmeticOptions& default_instance() {
109 return *internal_default_instance();
110 }
111 static inline const ArithmeticOptions* internal_default_instance() {
112 return reinterpret_cast<const ArithmeticOptions*>(
113 &_ArithmeticOptions_default_instance_);
114 }
115 static constexpr int kIndexInFileMessages =
116 0;
117
118 friend void swap(ArithmeticOptions& a, ArithmeticOptions& b) {
119 a.Swap(&b);
120 }
121 inline void Swap(ArithmeticOptions* other) {
122 if (other == this) return;
123 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
124 if (GetOwningArena() != nullptr &&
125 GetOwningArena() == other->GetOwningArena()) {
126 #else // PROTOBUF_FORCE_COPY_IN_SWAP
127 if (GetOwningArena() == other->GetOwningArena()) {
128 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
129 InternalSwap(other);
130 } else {
131 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
132 }
133 }
134 void UnsafeArenaSwap(ArithmeticOptions* other) {
135 if (other == this) return;
136 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
137 InternalSwap(other);
138 }
139
140 // implements Message ----------------------------------------------
141
142 ArithmeticOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
143 return CreateMaybeMessage<ArithmeticOptions>(arena);
144 }
145 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
146 void CopyFrom(const ArithmeticOptions& from);
147 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
148 void MergeFrom( const ArithmeticOptions& from) {
149 ArithmeticOptions::MergeImpl(*this, from);
150 }
151 private:
152 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
153 public:
154 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
155 bool IsInitialized() const final;
156
157 size_t ByteSizeLong() const final;
158 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
159 uint8_t* _InternalSerialize(
160 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
161 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
162
163 private:
164 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
165 void SharedDtor();
166 void SetCachedSize(int size) const final;
167 void InternalSwap(ArithmeticOptions* other);
168
169 private:
170 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
171 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
172 return "ArithmeticOptions";
173 }
174 protected:
175 explicit ArithmeticOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
176 bool is_message_owned = false);
177 public:
178
179 static const ClassData _class_data_;
180 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
181
182 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
183
184 // nested types ----------------------------------------------------
185
186 // accessors -------------------------------------------------------
187
188 enum : int {
189 kModelFieldNumber = 1,
190 kDebugAssertFieldNumber = 2,
191 };
192 // required string model = 1;
193 bool has_model() const;
194 private:
195 bool _internal_has_model() const;
196 public:
197 void clear_model();
198 const std::string& model() const;
199 template <typename ArgT0 = const std::string&, typename... ArgT>
200 void set_model(ArgT0&& arg0, ArgT... args);
201 std::string* mutable_model();
202 PROTOBUF_NODISCARD std::string* release_model();
203 void set_allocated_model(std::string* model);
204 private:
205 const std::string& _internal_model() const;
206 inline PROTOBUF_ALWAYS_INLINE void _internal_set_model(const std::string& value);
207 std::string* _internal_mutable_model();
208 public:
209
210 // optional bool debug_assert = 2 [default = false];
211 bool has_debug_assert() const;
212 private:
213 bool _internal_has_debug_assert() const;
214 public:
215 void clear_debug_assert();
216 bool debug_assert() const;
217 void set_debug_assert(bool value);
218 private:
219 bool _internal_debug_assert() const;
220 void _internal_set_debug_assert(bool value);
221 public:
222
223 // @@protoc_insertion_point(class_scope:ArithmeticOptions)
224 private:
225 class _Internal;
226
227 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
228 typedef void InternalArenaConstructable_;
229 typedef void DestructorSkippable_;
230 struct Impl_ {
231 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
232 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
233 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_;
234 bool debug_assert_;
235 };
236 union { Impl_ _impl_; };
237 friend struct ::TableStruct_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto;
238};
239// ===================================================================
240
241static const int kArithmeticFieldNumber = 1001;
242extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::dccl::DCCLFieldOptions,
243 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::ArithmeticOptions >, 11, false >
244 arithmetic;
245
246// ===================================================================
247
248#ifdef __GNUC__
249 #pragma GCC diagnostic push
250 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
251#endif // __GNUC__
252// ArithmeticOptions
253
254// required string model = 1;
255inline bool ArithmeticOptions::_internal_has_model() const {
256 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
257 return value;
258}
259inline bool ArithmeticOptions::has_model() const {
260 return _internal_has_model();
261}
262inline void ArithmeticOptions::clear_model() {
263 _impl_.model_.ClearToEmpty();
264 _impl_._has_bits_[0] &= ~0x00000001u;
265}
266inline const std::string& ArithmeticOptions::model() const {
267 // @@protoc_insertion_point(field_get:ArithmeticOptions.model)
268 return _internal_model();
269}
270template <typename ArgT0, typename... ArgT>
271inline PROTOBUF_ALWAYS_INLINE
272void ArithmeticOptions::set_model(ArgT0&& arg0, ArgT... args) {
273 _impl_._has_bits_[0] |= 0x00000001u;
274 _impl_.model_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
275 // @@protoc_insertion_point(field_set:ArithmeticOptions.model)
276}
277inline std::string* ArithmeticOptions::mutable_model() {
278 std::string* _s = _internal_mutable_model();
279 // @@protoc_insertion_point(field_mutable:ArithmeticOptions.model)
280 return _s;
281}
282inline const std::string& ArithmeticOptions::_internal_model() const {
283 return _impl_.model_.Get();
284}
285inline void ArithmeticOptions::_internal_set_model(const std::string& value) {
286 _impl_._has_bits_[0] |= 0x00000001u;
287 _impl_.model_.Set(value, GetArenaForAllocation());
288}
289inline std::string* ArithmeticOptions::_internal_mutable_model() {
290 _impl_._has_bits_[0] |= 0x00000001u;
291 return _impl_.model_.Mutable(GetArenaForAllocation());
292}
293inline std::string* ArithmeticOptions::release_model() {
294 // @@protoc_insertion_point(field_release:ArithmeticOptions.model)
295 if (!_internal_has_model()) {
296 return nullptr;
297 }
298 _impl_._has_bits_[0] &= ~0x00000001u;
299 auto* p = _impl_.model_.Release();
300#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
301 if (_impl_.model_.IsDefault()) {
302 _impl_.model_.Set("", GetArenaForAllocation());
303 }
304#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
305 return p;
306}
307inline void ArithmeticOptions::set_allocated_model(std::string* model) {
308 if (model != nullptr) {
309 _impl_._has_bits_[0] |= 0x00000001u;
310 } else {
311 _impl_._has_bits_[0] &= ~0x00000001u;
312 }
313 _impl_.model_.SetAllocated(model, GetArenaForAllocation());
314#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
315 if (_impl_.model_.IsDefault()) {
316 _impl_.model_.Set("", GetArenaForAllocation());
317 }
318#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
319 // @@protoc_insertion_point(field_set_allocated:ArithmeticOptions.model)
320}
321
322// optional bool debug_assert = 2 [default = false];
323inline bool ArithmeticOptions::_internal_has_debug_assert() const {
324 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
325 return value;
326}
327inline bool ArithmeticOptions::has_debug_assert() const {
328 return _internal_has_debug_assert();
329}
330inline void ArithmeticOptions::clear_debug_assert() {
331 _impl_.debug_assert_ = false;
332 _impl_._has_bits_[0] &= ~0x00000002u;
333}
334inline bool ArithmeticOptions::_internal_debug_assert() const {
335 return _impl_.debug_assert_;
336}
337inline bool ArithmeticOptions::debug_assert() const {
338 // @@protoc_insertion_point(field_get:ArithmeticOptions.debug_assert)
339 return _internal_debug_assert();
340}
341inline void ArithmeticOptions::_internal_set_debug_assert(bool value) {
342 _impl_._has_bits_[0] |= 0x00000002u;
343 _impl_.debug_assert_ = value;
344}
345inline void ArithmeticOptions::set_debug_assert(bool value) {
346 _internal_set_debug_assert(value);
347 // @@protoc_insertion_point(field_set:ArithmeticOptions.debug_assert)
348}
349
350#ifdef __GNUC__
351 #pragma GCC diagnostic pop
352#endif // __GNUC__
353
354// @@protoc_insertion_point(namespace_scope)
355
356
357// @@protoc_insertion_point(global_scope)
358
359#include <google/protobuf/port_undef.inc>
360#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto