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 PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto
5 #define PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // 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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto
40 
41 namespace protobuf_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto {
42 // Internal implementation detail -- do not use these members.
43 struct TableStruct {
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[];
50 };
51 void AddDescriptors();
52 } // namespace protobuf_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto
53 class ArithmeticOptions;
54 class ArithmeticOptionsDefaultTypeInternal;
55 extern ArithmeticOptionsDefaultTypeInternal _ArithmeticOptions_default_instance_;
56 namespace google {
57 namespace protobuf {
58 template<> ::ArithmeticOptions* Arena::CreateMaybeMessage<::ArithmeticOptions>(Arena*);
59 } // namespace protobuf
60 } // namespace google
61 
62 // ===================================================================
63 
64 class ArithmeticOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ArithmeticOptions) */ {
65  public:
67  virtual ~ArithmeticOptions();
68 
70 
71  inline ArithmeticOptions& operator=(const ArithmeticOptions& from) {
72  CopyFrom(from);
73  return *this;
74  }
75  #if LANG_CXX11
76  ArithmeticOptions(ArithmeticOptions&& from) noexcept
77  : ArithmeticOptions() {
78  *this = ::std::move(from);
79  }
80 
81  inline ArithmeticOptions& operator=(ArithmeticOptions&& from) noexcept {
82  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
83  if (this != &from) InternalSwap(&from);
84  } else {
85  CopyFrom(from);
86  }
87  return *this;
88  }
89  #endif
90  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
91  return _internal_metadata_.unknown_fields();
92  }
93  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
94  return _internal_metadata_.mutable_unknown_fields();
95  }
96 
97  static const ::google::protobuf::Descriptor* descriptor();
98  static const ArithmeticOptions& default_instance();
99 
100  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
101  static inline const ArithmeticOptions* internal_default_instance() {
102  return reinterpret_cast<const ArithmeticOptions*>(
103  &_ArithmeticOptions_default_instance_);
104  }
105  static constexpr int kIndexInFileMessages =
106  0;
107 
108  void Swap(ArithmeticOptions* other);
109  friend void swap(ArithmeticOptions& a, ArithmeticOptions& b) {
110  a.Swap(&b);
111  }
112 
113  // implements Message ----------------------------------------------
114 
115  inline ArithmeticOptions* New() const final {
116  return CreateMaybeMessage<ArithmeticOptions>(NULL);
117  }
118 
119  ArithmeticOptions* New(::google::protobuf::Arena* arena) const final {
120  return CreateMaybeMessage<ArithmeticOptions>(arena);
121  }
122  void CopyFrom(const ::google::protobuf::Message& from) final;
123  void MergeFrom(const ::google::protobuf::Message& from) final;
124  void CopyFrom(const ArithmeticOptions& from);
125  void MergeFrom(const ArithmeticOptions& from);
126  void Clear() final;
127  bool IsInitialized() const final;
128 
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(); }
137 
138  private:
139  void SharedCtor();
140  void SharedDtor();
141  void SetCachedSize(int size) const final;
142  void InternalSwap(ArithmeticOptions* other);
143  private:
144  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
145  return NULL;
146  }
147  inline void* MaybeArenaPtr() const {
148  return NULL;
149  }
150  public:
151 
152  ::google::protobuf::Metadata GetMetadata() const final;
153 
154  // nested types ----------------------------------------------------
155 
156  // accessors -------------------------------------------------------
157 
158  // required string model = 1;
159  bool has_model() const;
160  void clear_model();
161  static const int kModelFieldNumber = 1;
162  const ::std::string& model() const;
163  void set_model(const ::std::string& value);
164  #if LANG_CXX11
165  void set_model(::std::string&& value);
166  #endif
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);
172 
173  // optional bool debug_assert = 2 [default = false];
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);
179 
180  // @@protoc_insertion_point(class_scope:ArithmeticOptions)
181  private:
182  void set_has_model();
183  void clear_has_model();
184  void set_has_debug_assert();
185  void clear_has_debug_assert();
186 
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_;
191  bool debug_assert_;
192  friend struct ::protobuf_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto::TableStruct;
193 };
194 // ===================================================================
195 
196 static const int kArithmeticFieldNumber = 1001;
197 extern ::google::protobuf::internal::ExtensionIdentifier< ::dccl::DCCLFieldOptions,
198  ::google::protobuf::internal::MessageTypeTraits< ::ArithmeticOptions >, 11, false >
199  arithmetic;
200 
201 // ===================================================================
202 
203 #ifdef __GNUC__
204  #pragma GCC diagnostic push
205  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
206 #endif // __GNUC__
207 // ArithmeticOptions
208 
209 // required string model = 1;
210 inline bool ArithmeticOptions::has_model() const {
211  return (_has_bits_[0] & 0x00000001u) != 0;
212 }
213 inline void ArithmeticOptions::set_has_model() {
214  _has_bits_[0] |= 0x00000001u;
215 }
216 inline void ArithmeticOptions::clear_has_model() {
217  _has_bits_[0] &= ~0x00000001u;
218 }
219 inline void ArithmeticOptions::clear_model() {
220  model_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
221  clear_has_model();
222 }
223 inline const ::std::string& ArithmeticOptions::model() const {
224  // @@protoc_insertion_point(field_get:ArithmeticOptions.model)
225  return model_.GetNoArena();
226 }
227 inline void ArithmeticOptions::set_model(const ::std::string& value) {
228  set_has_model();
229  model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
230  // @@protoc_insertion_point(field_set:ArithmeticOptions.model)
231 }
232 #if LANG_CXX11
233 inline void ArithmeticOptions::set_model(::std::string&& value) {
234  set_has_model();
235  model_.SetNoArena(
236  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
237  // @@protoc_insertion_point(field_set_rvalue:ArithmeticOptions.model)
238 }
239 #endif
240 inline void ArithmeticOptions::set_model(const char* value) {
241  GOOGLE_DCHECK(value != NULL);
242  set_has_model();
243  model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
244  // @@protoc_insertion_point(field_set_char:ArithmeticOptions.model)
245 }
246 inline void ArithmeticOptions::set_model(const char* value, size_t size) {
247  set_has_model();
248  model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
249  ::std::string(reinterpret_cast<const char*>(value), size));
250  // @@protoc_insertion_point(field_set_pointer:ArithmeticOptions.model)
251 }
252 inline ::std::string* ArithmeticOptions::mutable_model() {
253  set_has_model();
254  // @@protoc_insertion_point(field_mutable:ArithmeticOptions.model)
255  return model_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
256 }
257 inline ::std::string* ArithmeticOptions::release_model() {
258  // @@protoc_insertion_point(field_release:ArithmeticOptions.model)
259  if (!has_model()) {
260  return NULL;
261  }
262  clear_has_model();
263  return model_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
264 }
265 inline void ArithmeticOptions::set_allocated_model(::std::string* model) {
266  if (model != NULL) {
267  set_has_model();
268  } else {
269  clear_has_model();
270  }
271  model_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), model);
272  // @@protoc_insertion_point(field_set_allocated:ArithmeticOptions.model)
273 }
274 
275 // optional bool debug_assert = 2 [default = false];
276 inline bool ArithmeticOptions::has_debug_assert() const {
277  return (_has_bits_[0] & 0x00000002u) != 0;
278 }
279 inline void ArithmeticOptions::set_has_debug_assert() {
280  _has_bits_[0] |= 0x00000002u;
281 }
282 inline void ArithmeticOptions::clear_has_debug_assert() {
283  _has_bits_[0] &= ~0x00000002u;
284 }
285 inline void ArithmeticOptions::clear_debug_assert() {
286  debug_assert_ = false;
287  clear_has_debug_assert();
288 }
289 inline bool ArithmeticOptions::debug_assert() const {
290  // @@protoc_insertion_point(field_get:ArithmeticOptions.debug_assert)
291  return debug_assert_;
292 }
293 inline void ArithmeticOptions::set_debug_assert(bool value) {
294  set_has_debug_assert();
295  debug_assert_ = value;
296  // @@protoc_insertion_point(field_set:ArithmeticOptions.debug_assert)
297 }
298 
299 #ifdef __GNUC__
300  #pragma GCC diagnostic pop
301 #endif // __GNUC__
302 
303 // @@protoc_insertion_point(namespace_scope)
304 
305 
306 // @@protoc_insertion_point(global_scope)
307 
308 #endif // PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto
dccl::DCCLFieldOptions
Definition: option_extensions.pb.h:476
protobuf_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto::TableStruct
Definition: arithmetic_extensions.pb.h:43
ArithmeticOptions
Definition: arithmetic_extensions.pb.h:64