DCCL v4
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 < 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
14 #error your headers.
15 #endif
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.
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_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> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
40 // @@protoc_insertion_point(includes)
41 #include <google/protobuf/port_def.inc>
42 #define PROTOBUF_INTERNAL_EXPORT_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto
43 PROTOBUF_NAMESPACE_OPEN
44 namespace internal {
45 class AnyMetadata;
46 } // namespace internal
47 PROTOBUF_NAMESPACE_CLOSE
48 
49 // Internal implementation detail -- do not use these members.
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[];
60 };
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
68 
69 // ===================================================================
70 
71 class ArithmeticOptions PROTOBUF_FINAL :
72  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ArithmeticOptions) */ {
73  public:
74  inline ArithmeticOptions() : ArithmeticOptions(nullptr) {};
75  virtual ~ArithmeticOptions();
76 
77  ArithmeticOptions(const ArithmeticOptions& from);
78  ArithmeticOptions(ArithmeticOptions&& from) noexcept
79  : ArithmeticOptions() {
80  *this = ::std::move(from);
81  }
82 
83  inline ArithmeticOptions& operator=(const ArithmeticOptions& from) {
84  CopyFrom(from);
85  return *this;
86  }
87  inline ArithmeticOptions& operator=(ArithmeticOptions&& from) noexcept {
88  if (GetArena() == from.GetArena()) {
89  if (this != &from) InternalSwap(&from);
90  } else {
91  CopyFrom(from);
92  }
93  return *this;
94  }
95 
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);
98  }
99  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
100  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
101  }
102 
103  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
104  return GetDescriptor();
105  }
106  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
107  return GetMetadataStatic().descriptor;
108  }
109  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
110  return GetMetadataStatic().reflection;
111  }
112  static const ArithmeticOptions& default_instance();
113 
114  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
115  static inline const ArithmeticOptions* internal_default_instance() {
116  return reinterpret_cast<const ArithmeticOptions*>(
117  &_ArithmeticOptions_default_instance_);
118  }
119  static constexpr int kIndexInFileMessages =
120  0;
121 
122  friend void swap(ArithmeticOptions& a, ArithmeticOptions& b) {
123  a.Swap(&b);
124  }
125  inline void Swap(ArithmeticOptions* other) {
126  if (other == this) return;
127  if (GetArena() == other->GetArena()) {
128  InternalSwap(other);
129  } else {
130  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
131  }
132  }
133  void UnsafeArenaSwap(ArithmeticOptions* other) {
134  if (other == this) return;
135  GOOGLE_DCHECK(GetArena() == other->GetArena());
136  InternalSwap(other);
137  }
138 
139  // implements Message ----------------------------------------------
140 
141  inline ArithmeticOptions* New() const final {
142  return CreateMaybeMessage<ArithmeticOptions>(nullptr);
143  }
144 
145  ArithmeticOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
146  return CreateMaybeMessage<ArithmeticOptions>(arena);
147  }
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;
154 
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(); }
160 
161  private:
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";
169  }
170  protected:
171  explicit ArithmeticOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena);
172  private:
173  static void ArenaDtor(void* object);
174  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
175  public:
176 
177  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
178  private:
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];
182  }
183 
184  public:
185 
186  // nested types ----------------------------------------------------
187 
188  // accessors -------------------------------------------------------
189 
190  enum : int {
191  kModelFieldNumber = 1,
192  kDebugAssertFieldNumber = 2,
193  };
194  // required string model = 1;
195  bool has_model() const;
196  private:
197  bool _internal_has_model() const;
198  public:
199  void clear_model();
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"
210  " future release.")
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"
214  " future release.")
215  void unsafe_arena_set_allocated_model(
216  std::string* model);
217  private:
218  const std::string& _internal_model() const;
219  void _internal_set_model(const std::string& value);
220  std::string* _internal_mutable_model();
221  public:
222 
223  // optional bool debug_assert = 2 [default = false];
224  bool has_debug_assert() const;
225  private:
226  bool _internal_has_debug_assert() const;
227  public:
228  void clear_debug_assert();
229  bool debug_assert() const;
230  void set_debug_assert(bool value);
231  private:
232  bool _internal_debug_assert() const;
233  void _internal_set_debug_assert(bool value);
234  public:
235 
236  // @@protoc_insertion_point(class_scope:ArithmeticOptions)
237  private:
238  class _Internal;
239 
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_;
246  bool debug_assert_;
247  friend struct ::TableStruct_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto;
248 };
249 // ===================================================================
250 
251 static const int kArithmeticFieldNumber = 1001;
252 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::dccl::DCCLFieldOptions,
253  ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::ArithmeticOptions >, 11, false >
254  arithmetic;
255 
256 // ===================================================================
257 
258 #ifdef __GNUC__
259  #pragma GCC diagnostic push
260  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
261 #endif // __GNUC__
262 // ArithmeticOptions
263 
264 // required string model = 1;
265 inline bool ArithmeticOptions::_internal_has_model() const {
266  bool value = (_has_bits_[0] & 0x00000001u) != 0;
267  return value;
268 }
269 inline bool ArithmeticOptions::has_model() const {
270  return _internal_has_model();
271 }
272 inline void ArithmeticOptions::clear_model() {
273  model_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
274  _has_bits_[0] &= ~0x00000001u;
275 }
276 inline const std::string& ArithmeticOptions::model() const {
277  // @@protoc_insertion_point(field_get:ArithmeticOptions.model)
278  return _internal_model();
279 }
280 inline void ArithmeticOptions::set_model(const std::string& value) {
281  _internal_set_model(value);
282  // @@protoc_insertion_point(field_set:ArithmeticOptions.model)
283 }
284 inline std::string* ArithmeticOptions::mutable_model() {
285  // @@protoc_insertion_point(field_mutable:ArithmeticOptions.model)
286  return _internal_mutable_model();
287 }
288 inline const std::string& ArithmeticOptions::_internal_model() const {
289  return model_.Get();
290 }
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());
294 }
295 inline void ArithmeticOptions::set_model(std::string&& value) {
296  _has_bits_[0] |= 0x00000001u;
297  model_.Set(
298  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
299  // @@protoc_insertion_point(field_set_rvalue:ArithmeticOptions.model)
300 }
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),
305  GetArena());
306  // @@protoc_insertion_point(field_set_char:ArithmeticOptions.model)
307 }
308 inline void ArithmeticOptions::set_model(const char* value,
309  size_t size) {
310  _has_bits_[0] |= 0x00000001u;
311  model_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
312  reinterpret_cast<const char*>(value), size), GetArena());
313  // @@protoc_insertion_point(field_set_pointer:ArithmeticOptions.model)
314 }
315 inline std::string* ArithmeticOptions::_internal_mutable_model() {
316  _has_bits_[0] |= 0x00000001u;
317  return model_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
318 }
319 inline std::string* ArithmeticOptions::release_model() {
320  // @@protoc_insertion_point(field_release:ArithmeticOptions.model)
321  if (!_internal_has_model()) {
322  return nullptr;
323  }
324  _has_bits_[0] &= ~0x00000001u;
325  return model_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
326 }
327 inline void ArithmeticOptions::set_allocated_model(std::string* model) {
328  if (model != nullptr) {
329  _has_bits_[0] |= 0x00000001u;
330  } else {
331  _has_bits_[0] &= ~0x00000001u;
332  }
333  model_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), model,
334  GetArena());
335  // @@protoc_insertion_point(field_set_allocated:ArithmeticOptions.model)
336 }
337 inline std::string* ArithmeticOptions::unsafe_arena_release_model() {
338  // @@protoc_insertion_point(field_unsafe_arena_release:ArithmeticOptions.model)
339  GOOGLE_DCHECK(GetArena() != nullptr);
340  _has_bits_[0] &= ~0x00000001u;
341  return model_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
342  GetArena());
343 }
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;
349  } else {
350  _has_bits_[0] &= ~0x00000001u;
351  }
352  model_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
353  model, GetArena());
354  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ArithmeticOptions.model)
355 }
356 
357 // optional bool debug_assert = 2 [default = false];
358 inline bool ArithmeticOptions::_internal_has_debug_assert() const {
359  bool value = (_has_bits_[0] & 0x00000002u) != 0;
360  return value;
361 }
362 inline bool ArithmeticOptions::has_debug_assert() const {
363  return _internal_has_debug_assert();
364 }
365 inline void ArithmeticOptions::clear_debug_assert() {
366  debug_assert_ = false;
367  _has_bits_[0] &= ~0x00000002u;
368 }
369 inline bool ArithmeticOptions::_internal_debug_assert() const {
370  return debug_assert_;
371 }
372 inline bool ArithmeticOptions::debug_assert() const {
373  // @@protoc_insertion_point(field_get:ArithmeticOptions.debug_assert)
374  return _internal_debug_assert();
375 }
376 inline void ArithmeticOptions::_internal_set_debug_assert(bool value) {
377  _has_bits_[0] |= 0x00000002u;
378  debug_assert_ = value;
379 }
380 inline void ArithmeticOptions::set_debug_assert(bool value) {
381  _internal_set_debug_assert(value);
382  // @@protoc_insertion_point(field_set:ArithmeticOptions.debug_assert)
383 }
384 
385 #ifdef __GNUC__
386  #pragma GCC diagnostic pop
387 #endif // __GNUC__
388 
389 // @@protoc_insertion_point(namespace_scope)
390 
391 
392 // @@protoc_insertion_point(global_scope)
393 
394 #include <google/protobuf/port_undef.inc>
395 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto