JaiaBot  1.20.0
JaiaBot micro-AUV software
configuration.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: jaiabot/messages/sensor/configuration.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fconfiguration_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fconfiguration_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 "nanopb.pb.h"
36 #include "jaiabot/messages/sensor/catalog.pb.h"
38 #include <boost/units/quantity.hpp>
39 #include <boost/units/absolute.hpp>
40 #include <boost/units/dimensionless_type.hpp>
41 #include <boost/units/make_scaled_unit.hpp>
42 
43 #include <boost/units/systems/si.hpp>
44 // @@protoc_insertion_point(includes)
45 #include <google/protobuf/port_def.inc>
46 #define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fsensor_2fconfiguration_2eproto
47 PROTOBUF_NAMESPACE_OPEN
48 namespace internal {
49 class AnyMetadata;
50 } // namespace internal
51 PROTOBUF_NAMESPACE_CLOSE
52 
53 // Internal implementation detail -- do not use these members.
55  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
56  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
57  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
58  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
59  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
60  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
61  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
62  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
63  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
64 };
65 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fsensor_2fconfiguration_2eproto;
66 namespace jaiabot {
67 namespace sensor {
68 namespace protobuf {
69 class Configuration;
70 class ConfigurationDefaultTypeInternal;
71 extern ConfigurationDefaultTypeInternal _Configuration_default_instance_;
72 class Configuration_Cfg;
73 class Configuration_CfgDefaultTypeInternal;
74 extern Configuration_CfgDefaultTypeInternal _Configuration_Cfg_default_instance_;
75 } // namespace protobuf
76 } // namespace sensor
77 } // namespace jaiabot
78 PROTOBUF_NAMESPACE_OPEN
79 template<> ::jaiabot::sensor::protobuf::Configuration* Arena::CreateMaybeMessage<::jaiabot::sensor::protobuf::Configuration>(Arena*);
80 template<> ::jaiabot::sensor::protobuf::Configuration_Cfg* Arena::CreateMaybeMessage<::jaiabot::sensor::protobuf::Configuration_Cfg>(Arena*);
81 PROTOBUF_NAMESPACE_CLOSE
82 namespace jaiabot {
83 namespace sensor {
84 namespace protobuf {
85 
86 // ===================================================================
87 
88 class Configuration_Cfg PROTOBUF_FINAL :
89  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.sensor.protobuf.Configuration.Cfg) */ {
90  public:
91  inline Configuration_Cfg() : Configuration_Cfg(nullptr) {};
92  virtual ~Configuration_Cfg();
93 
94  Configuration_Cfg(const Configuration_Cfg& from);
95  Configuration_Cfg(Configuration_Cfg&& from) noexcept
96  : Configuration_Cfg() {
97  *this = ::std::move(from);
98  }
99 
100  inline Configuration_Cfg& operator=(const Configuration_Cfg& from) {
101  CopyFrom(from);
102  return *this;
103  }
104  inline Configuration_Cfg& operator=(Configuration_Cfg&& from) noexcept {
105  if (GetArena() == from.GetArena()) {
106  if (this != &from) InternalSwap(&from);
107  } else {
108  CopyFrom(from);
109  }
110  return *this;
111  }
112 
113  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
114  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
115  }
116  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
117  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
118  }
119 
120  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
121  return GetDescriptor();
122  }
123  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
124  return GetMetadataStatic().descriptor;
125  }
126  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
127  return GetMetadataStatic().reflection;
128  }
129  static const Configuration_Cfg& default_instance();
130 
131  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
132  static inline const Configuration_Cfg* internal_default_instance() {
133  return reinterpret_cast<const Configuration_Cfg*>(
135  }
136  static constexpr int kIndexInFileMessages =
137  0;
138 
139  friend void swap(Configuration_Cfg& a, Configuration_Cfg& b) {
140  a.Swap(&b);
141  }
142  inline void Swap(Configuration_Cfg* other) {
143  if (other == this) return;
144  if (GetArena() == other->GetArena()) {
145  InternalSwap(other);
146  } else {
147  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
148  }
149  }
150  void UnsafeArenaSwap(Configuration_Cfg* other) {
151  if (other == this) return;
152  GOOGLE_DCHECK(GetArena() == other->GetArena());
153  InternalSwap(other);
154  }
155 
156  // implements Message ----------------------------------------------
157 
158  inline Configuration_Cfg* New() const final {
159  return CreateMaybeMessage<Configuration_Cfg>(nullptr);
160  }
161 
162  Configuration_Cfg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
163  return CreateMaybeMessage<Configuration_Cfg>(arena);
164  }
165  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
166  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
167  void CopyFrom(const Configuration_Cfg& from);
168  void MergeFrom(const Configuration_Cfg& from);
169  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
170  bool IsInitialized() const final;
171 
172  size_t ByteSizeLong() const final;
173  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
174  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
175  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
176  int GetCachedSize() const final { return _cached_size_.Get(); }
177 
178  private:
179  inline void SharedCtor();
180  inline void SharedDtor();
181  void SetCachedSize(int size) const final;
182  void InternalSwap(Configuration_Cfg* other);
183  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
184  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
185  return "jaiabot.sensor.protobuf.Configuration.Cfg";
186  }
187  protected:
188  explicit Configuration_Cfg(::PROTOBUF_NAMESPACE_ID::Arena* arena);
189  private:
190  static void ArenaDtor(void* object);
191  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
192  public:
193 
194  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
195  private:
196  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
197  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_jaiabot_2fmessages_2fsensor_2fconfiguration_2eproto);
199  }
200 
201  public:
202 
203  // nested types ----------------------------------------------------
204 
205  // accessors -------------------------------------------------------
206 
207  enum : int {
208  kKeyFieldNumber = 1,
209  kValueFieldNumber = 2,
210  };
211  // required string key = 1 [(.nanopb) = {
212  bool has_key() const;
213  private:
214  bool _internal_has_key() const;
215  public:
216  void clear_key();
217  const std::string& key() const;
218  void set_key(const std::string& value);
219  void set_key(std::string&& value);
220  void set_key(const char* value);
221  void set_key(const char* value, size_t size);
222  std::string* mutable_key();
223  std::string* release_key();
224  void set_allocated_key(std::string* key);
225  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
226  " string fields are deprecated and will be removed in a"
227  " future release.")
228  std::string* unsafe_arena_release_key();
229  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
230  " string fields are deprecated and will be removed in a"
231  " future release.")
232  void unsafe_arena_set_allocated_key(
233  std::string* key);
234  private:
235  const std::string& _internal_key() const;
236  void _internal_set_key(const std::string& value);
237  std::string* _internal_mutable_key();
238  public:
239 
240  // required string value = 2 [(.nanopb) = {
241  bool has_value() const;
242  private:
243  bool _internal_has_value() const;
244  public:
245  void clear_value();
246  const std::string& value() const;
247  void set_value(const std::string& value);
248  void set_value(std::string&& value);
249  void set_value(const char* value);
250  void set_value(const char* value, size_t size);
251  std::string* mutable_value();
252  std::string* release_value();
253  void set_allocated_value(std::string* value);
254  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
255  " string fields are deprecated and will be removed in a"
256  " future release.")
257  std::string* unsafe_arena_release_value();
258  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
259  " string fields are deprecated and will be removed in a"
260  " future release.")
261  void unsafe_arena_set_allocated_value(
262  std::string* value);
263  private:
264  const std::string& _internal_value() const;
265  void _internal_set_value(const std::string& value);
266  std::string* _internal_mutable_value();
267  public:
268 
269  // @@protoc_insertion_point(class_scope:jaiabot.sensor.protobuf.Configuration.Cfg)
270  private:
271  class _Internal;
272 
273  // helper for ByteSizeLong()
274  size_t RequiredFieldsByteSizeFallback() const;
275 
276  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
277  typedef void InternalArenaConstructable_;
278  typedef void DestructorSkippable_;
279  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
280  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
281  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_;
282  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_;
284 };
285 // -------------------------------------------------------------------
286 
287 class Configuration PROTOBUF_FINAL :
288  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.sensor.protobuf.Configuration) */ {
289  public:
290  inline Configuration() : Configuration(nullptr) {};
291  virtual ~Configuration();
292 
293  Configuration(const Configuration& from);
294  Configuration(Configuration&& from) noexcept
295  : Configuration() {
296  *this = ::std::move(from);
297  }
298 
299  inline Configuration& operator=(const Configuration& from) {
300  CopyFrom(from);
301  return *this;
302  }
303  inline Configuration& operator=(Configuration&& from) noexcept {
304  if (GetArena() == from.GetArena()) {
305  if (this != &from) InternalSwap(&from);
306  } else {
307  CopyFrom(from);
308  }
309  return *this;
310  }
311 
312  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
313  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
314  }
315  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
316  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
317  }
318 
319  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
320  return GetDescriptor();
321  }
322  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
323  return GetMetadataStatic().descriptor;
324  }
325  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
326  return GetMetadataStatic().reflection;
327  }
328  static const Configuration& default_instance();
329 
330  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
331  static inline const Configuration* internal_default_instance() {
332  return reinterpret_cast<const Configuration*>(
334  }
335  static constexpr int kIndexInFileMessages =
336  1;
337 
338  friend void swap(Configuration& a, Configuration& b) {
339  a.Swap(&b);
340  }
341  inline void Swap(Configuration* other) {
342  if (other == this) return;
343  if (GetArena() == other->GetArena()) {
344  InternalSwap(other);
345  } else {
346  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
347  }
348  }
349  void UnsafeArenaSwap(Configuration* other) {
350  if (other == this) return;
351  GOOGLE_DCHECK(GetArena() == other->GetArena());
352  InternalSwap(other);
353  }
354 
355  // implements Message ----------------------------------------------
356 
357  inline Configuration* New() const final {
358  return CreateMaybeMessage<Configuration>(nullptr);
359  }
360 
361  Configuration* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
362  return CreateMaybeMessage<Configuration>(arena);
363  }
364  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
365  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
366  void CopyFrom(const Configuration& from);
367  void MergeFrom(const Configuration& from);
368  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
369  bool IsInitialized() const final;
370 
371  size_t ByteSizeLong() const final;
372  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
373  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
374  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
375  int GetCachedSize() const final { return _cached_size_.Get(); }
376 
377  private:
378  inline void SharedCtor();
379  inline void SharedDtor();
380  void SetCachedSize(int size) const final;
381  void InternalSwap(Configuration* other);
382  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
383  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
384  return "jaiabot.sensor.protobuf.Configuration";
385  }
386  protected:
387  explicit Configuration(::PROTOBUF_NAMESPACE_ID::Arena* arena);
388  private:
389  static void ArenaDtor(void* object);
390  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
391  public:
392 
393  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
394  private:
395  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
396  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_jaiabot_2fmessages_2fsensor_2fconfiguration_2eproto);
398  }
399 
400  public:
401 
402  // nested types ----------------------------------------------------
403 
404  typedef Configuration_Cfg Cfg;
405 
406  // accessors -------------------------------------------------------
407 
408  enum : int {
409  kCfgFieldNumber = 3,
410  kSampleFreqFieldNumber = 2,
411  kSensorFieldNumber = 1,
412  };
413  // repeated .jaiabot.sensor.protobuf.Configuration.Cfg cfg = 3 [(.nanopb) = {
414  int cfg_size() const;
415  private:
416  int _internal_cfg_size() const;
417  public:
418  void clear_cfg();
419  ::jaiabot::sensor::protobuf::Configuration_Cfg* mutable_cfg(int index);
420  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Configuration_Cfg >*
421  mutable_cfg();
422  private:
423  const ::jaiabot::sensor::protobuf::Configuration_Cfg& _internal_cfg(int index) const;
424  ::jaiabot::sensor::protobuf::Configuration_Cfg* _internal_add_cfg();
425  public:
426  const ::jaiabot::sensor::protobuf::Configuration_Cfg& cfg(int index) const;
427  ::jaiabot::sensor::protobuf::Configuration_Cfg* add_cfg();
428  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Configuration_Cfg >&
429  cfg() const;
430 
431  // optional double sample_freq = 2 [(.dccl.field) = {
432  bool has_sample_freq() const;
433  private:
434  bool _internal_has_sample_freq() const;
435  public:
436  void clear_sample_freq();
437  double sample_freq() const;
438  void set_sample_freq(double value);
439  private:
440  double _internal_sample_freq() const;
441  void _internal_set_sample_freq(double value);
442  public:
443 
444  // required .jaiabot.sensor.protobuf.Sensor sensor = 1;
445  bool has_sensor() const;
446  private:
447  bool _internal_has_sensor() const;
448  public:
449  void clear_sensor();
451  void set_sensor(::jaiabot::sensor::protobuf::Sensor value);
452  private:
453  ::jaiabot::sensor::protobuf::Sensor _internal_sensor() const;
454  void _internal_set_sensor(::jaiabot::sensor::protobuf::Sensor value);
455  public:
456 
457  typedef boost::units::frequency_dimension sample_freq_dimension;
458 
459  typedef boost::units::unit<sample_freq_dimension,boost::units::si::system> sample_freq_unit;
460 
461  template<typename Quantity >
462  void set_sample_freq_with_units(Quantity value_w_units)
463  { set_sample_freq(boost::units::quantity<sample_freq_unit,double >(value_w_units).value() ); };
464 
465  template<typename Quantity >
466  Quantity sample_freq_with_units() const
467  { return Quantity(sample_freq() * sample_freq_unit()); };
468 
469  boost::units::quantity< sample_freq_unit,double > sample_freq_with_units() const
470  { return sample_freq_with_units<boost::units::quantity< sample_freq_unit,double > >(); };
471 
472  // @@protoc_insertion_point(class_scope:jaiabot.sensor.protobuf.Configuration)
473  private:
474  class _Internal;
475 
476  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
477  typedef void InternalArenaConstructable_;
478  typedef void DestructorSkippable_;
479  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
480  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
481  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Configuration_Cfg > cfg_;
482  double sample_freq_;
483  int sensor_;
484  friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fconfiguration_2eproto;
485 };
486 // ===================================================================
487 
488 
489 // ===================================================================
490 
491 #ifdef __GNUC__
492  #pragma GCC diagnostic push
493  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
494 #endif // __GNUC__
495 // Configuration_Cfg
496 
497 // required string key = 1 [(.nanopb) = {
498 inline bool Configuration_Cfg::_internal_has_key() const {
499  bool value = (_has_bits_[0] & 0x00000001u) != 0;
500  return value;
501 }
502 inline bool Configuration_Cfg::has_key() const {
503  return _internal_has_key();
504 }
505 inline void Configuration_Cfg::clear_key() {
506  key_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
507  _has_bits_[0] &= ~0x00000001u;
508 }
509 inline const std::string& Configuration_Cfg::key() const {
510  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Configuration.Cfg.key)
511  return _internal_key();
512 }
513 inline void Configuration_Cfg::set_key(const std::string& value) {
514  _internal_set_key(value);
515  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Configuration.Cfg.key)
516 }
517 inline std::string* Configuration_Cfg::mutable_key() {
518  // @@protoc_insertion_point(field_mutable:jaiabot.sensor.protobuf.Configuration.Cfg.key)
519  return _internal_mutable_key();
520 }
521 inline const std::string& Configuration_Cfg::_internal_key() const {
522  return key_.Get();
523 }
524 inline void Configuration_Cfg::_internal_set_key(const std::string& value) {
525  _has_bits_[0] |= 0x00000001u;
526  key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
527 }
528 inline void Configuration_Cfg::set_key(std::string&& value) {
529  _has_bits_[0] |= 0x00000001u;
530  key_.Set(
531  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
532  // @@protoc_insertion_point(field_set_rvalue:jaiabot.sensor.protobuf.Configuration.Cfg.key)
533 }
534 inline void Configuration_Cfg::set_key(const char* value) {
535  GOOGLE_DCHECK(value != nullptr);
536  _has_bits_[0] |= 0x00000001u;
537  key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
538  GetArena());
539  // @@protoc_insertion_point(field_set_char:jaiabot.sensor.protobuf.Configuration.Cfg.key)
540 }
541 inline void Configuration_Cfg::set_key(const char* value,
542  size_t size) {
543  _has_bits_[0] |= 0x00000001u;
544  key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
545  reinterpret_cast<const char*>(value), size), GetArena());
546  // @@protoc_insertion_point(field_set_pointer:jaiabot.sensor.protobuf.Configuration.Cfg.key)
547 }
548 inline std::string* Configuration_Cfg::_internal_mutable_key() {
549  _has_bits_[0] |= 0x00000001u;
550  return key_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
551 }
552 inline std::string* Configuration_Cfg::release_key() {
553  // @@protoc_insertion_point(field_release:jaiabot.sensor.protobuf.Configuration.Cfg.key)
554  if (!_internal_has_key()) {
555  return nullptr;
556  }
557  _has_bits_[0] &= ~0x00000001u;
558  return key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
559 }
560 inline void Configuration_Cfg::set_allocated_key(std::string* key) {
561  if (key != nullptr) {
562  _has_bits_[0] |= 0x00000001u;
563  } else {
564  _has_bits_[0] &= ~0x00000001u;
565  }
566  key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key,
567  GetArena());
568  // @@protoc_insertion_point(field_set_allocated:jaiabot.sensor.protobuf.Configuration.Cfg.key)
569 }
570 inline std::string* Configuration_Cfg::unsafe_arena_release_key() {
571  // @@protoc_insertion_point(field_unsafe_arena_release:jaiabot.sensor.protobuf.Configuration.Cfg.key)
572  GOOGLE_DCHECK(GetArena() != nullptr);
573  _has_bits_[0] &= ~0x00000001u;
574  return key_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
575  GetArena());
576 }
577 inline void Configuration_Cfg::unsafe_arena_set_allocated_key(
578  std::string* key) {
579  GOOGLE_DCHECK(GetArena() != nullptr);
580  if (key != nullptr) {
581  _has_bits_[0] |= 0x00000001u;
582  } else {
583  _has_bits_[0] &= ~0x00000001u;
584  }
585  key_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
586  key, GetArena());
587  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.sensor.protobuf.Configuration.Cfg.key)
588 }
589 
590 // required string value = 2 [(.nanopb) = {
591 inline bool Configuration_Cfg::_internal_has_value() const {
592  bool value = (_has_bits_[0] & 0x00000002u) != 0;
593  return value;
594 }
595 inline bool Configuration_Cfg::has_value() const {
596  return _internal_has_value();
597 }
598 inline void Configuration_Cfg::clear_value() {
599  value_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
600  _has_bits_[0] &= ~0x00000002u;
601 }
602 inline const std::string& Configuration_Cfg::value() const {
603  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Configuration.Cfg.value)
604  return _internal_value();
605 }
606 inline void Configuration_Cfg::set_value(const std::string& value) {
607  _internal_set_value(value);
608  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Configuration.Cfg.value)
609 }
610 inline std::string* Configuration_Cfg::mutable_value() {
611  // @@protoc_insertion_point(field_mutable:jaiabot.sensor.protobuf.Configuration.Cfg.value)
612  return _internal_mutable_value();
613 }
614 inline const std::string& Configuration_Cfg::_internal_value() const {
615  return value_.Get();
616 }
617 inline void Configuration_Cfg::_internal_set_value(const std::string& value) {
618  _has_bits_[0] |= 0x00000002u;
619  value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
620 }
621 inline void Configuration_Cfg::set_value(std::string&& value) {
622  _has_bits_[0] |= 0x00000002u;
623  value_.Set(
624  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
625  // @@protoc_insertion_point(field_set_rvalue:jaiabot.sensor.protobuf.Configuration.Cfg.value)
626 }
627 inline void Configuration_Cfg::set_value(const char* value) {
628  GOOGLE_DCHECK(value != nullptr);
629  _has_bits_[0] |= 0x00000002u;
630  value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
631  GetArena());
632  // @@protoc_insertion_point(field_set_char:jaiabot.sensor.protobuf.Configuration.Cfg.value)
633 }
634 inline void Configuration_Cfg::set_value(const char* value,
635  size_t size) {
636  _has_bits_[0] |= 0x00000002u;
637  value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
638  reinterpret_cast<const char*>(value), size), GetArena());
639  // @@protoc_insertion_point(field_set_pointer:jaiabot.sensor.protobuf.Configuration.Cfg.value)
640 }
641 inline std::string* Configuration_Cfg::_internal_mutable_value() {
642  _has_bits_[0] |= 0x00000002u;
643  return value_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
644 }
645 inline std::string* Configuration_Cfg::release_value() {
646  // @@protoc_insertion_point(field_release:jaiabot.sensor.protobuf.Configuration.Cfg.value)
647  if (!_internal_has_value()) {
648  return nullptr;
649  }
650  _has_bits_[0] &= ~0x00000002u;
651  return value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
652 }
653 inline void Configuration_Cfg::set_allocated_value(std::string* value) {
654  if (value != nullptr) {
655  _has_bits_[0] |= 0x00000002u;
656  } else {
657  _has_bits_[0] &= ~0x00000002u;
658  }
659  value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value,
660  GetArena());
661  // @@protoc_insertion_point(field_set_allocated:jaiabot.sensor.protobuf.Configuration.Cfg.value)
662 }
663 inline std::string* Configuration_Cfg::unsafe_arena_release_value() {
664  // @@protoc_insertion_point(field_unsafe_arena_release:jaiabot.sensor.protobuf.Configuration.Cfg.value)
665  GOOGLE_DCHECK(GetArena() != nullptr);
666  _has_bits_[0] &= ~0x00000002u;
667  return value_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
668  GetArena());
669 }
670 inline void Configuration_Cfg::unsafe_arena_set_allocated_value(
671  std::string* value) {
672  GOOGLE_DCHECK(GetArena() != nullptr);
673  if (value != nullptr) {
674  _has_bits_[0] |= 0x00000002u;
675  } else {
676  _has_bits_[0] &= ~0x00000002u;
677  }
678  value_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
679  value, GetArena());
680  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.sensor.protobuf.Configuration.Cfg.value)
681 }
682 
683 // -------------------------------------------------------------------
684 
685 // Configuration
686 
687 // required .jaiabot.sensor.protobuf.Sensor sensor = 1;
688 inline bool Configuration::_internal_has_sensor() const {
689  bool value = (_has_bits_[0] & 0x00000002u) != 0;
690  return value;
691 }
692 inline bool Configuration::has_sensor() const {
693  return _internal_has_sensor();
694 }
695 inline void Configuration::clear_sensor() {
696  sensor_ = 1;
697  _has_bits_[0] &= ~0x00000002u;
698 }
699 inline ::jaiabot::sensor::protobuf::Sensor Configuration::_internal_sensor() const {
700  return static_cast< ::jaiabot::sensor::protobuf::Sensor >(sensor_);
701 }
702 inline ::jaiabot::sensor::protobuf::Sensor Configuration::sensor() const {
703  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Configuration.sensor)
704  return _internal_sensor();
705 }
706 inline void Configuration::_internal_set_sensor(::jaiabot::sensor::protobuf::Sensor value) {
708  _has_bits_[0] |= 0x00000002u;
709  sensor_ = value;
710 }
711 inline void Configuration::set_sensor(::jaiabot::sensor::protobuf::Sensor value) {
712  _internal_set_sensor(value);
713  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Configuration.sensor)
714 }
715 
716 // optional double sample_freq = 2 [(.dccl.field) = {
717 inline bool Configuration::_internal_has_sample_freq() const {
718  bool value = (_has_bits_[0] & 0x00000001u) != 0;
719  return value;
720 }
721 inline bool Configuration::has_sample_freq() const {
722  return _internal_has_sample_freq();
723 }
724 inline void Configuration::clear_sample_freq() {
725  sample_freq_ = 0;
726  _has_bits_[0] &= ~0x00000001u;
727 }
728 inline double Configuration::_internal_sample_freq() const {
729  return sample_freq_;
730 }
731 inline double Configuration::sample_freq() const {
732  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Configuration.sample_freq)
733  return _internal_sample_freq();
734 }
735 inline void Configuration::_internal_set_sample_freq(double value) {
736  _has_bits_[0] |= 0x00000001u;
737  sample_freq_ = value;
738 }
739 inline void Configuration::set_sample_freq(double value) {
740  _internal_set_sample_freq(value);
741  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Configuration.sample_freq)
742 }
743 
744 // repeated .jaiabot.sensor.protobuf.Configuration.Cfg cfg = 3 [(.nanopb) = {
745 inline int Configuration::_internal_cfg_size() const {
746  return cfg_.size();
747 }
748 inline int Configuration::cfg_size() const {
749  return _internal_cfg_size();
750 }
751 inline void Configuration::clear_cfg() {
752  cfg_.Clear();
753 }
754 inline ::jaiabot::sensor::protobuf::Configuration_Cfg* Configuration::mutable_cfg(int index) {
755  // @@protoc_insertion_point(field_mutable:jaiabot.sensor.protobuf.Configuration.cfg)
756  return cfg_.Mutable(index);
757 }
758 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Configuration_Cfg >*
759 Configuration::mutable_cfg() {
760  // @@protoc_insertion_point(field_mutable_list:jaiabot.sensor.protobuf.Configuration.cfg)
761  return &cfg_;
762 }
763 inline const ::jaiabot::sensor::protobuf::Configuration_Cfg& Configuration::_internal_cfg(int index) const {
764  return cfg_.Get(index);
765 }
766 inline const ::jaiabot::sensor::protobuf::Configuration_Cfg& Configuration::cfg(int index) const {
767  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Configuration.cfg)
768  return _internal_cfg(index);
769 }
770 inline ::jaiabot::sensor::protobuf::Configuration_Cfg* Configuration::_internal_add_cfg() {
771  return cfg_.Add();
772 }
773 inline ::jaiabot::sensor::protobuf::Configuration_Cfg* Configuration::add_cfg() {
774  // @@protoc_insertion_point(field_add:jaiabot.sensor.protobuf.Configuration.cfg)
775  return _internal_add_cfg();
776 }
777 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Configuration_Cfg >&
778 Configuration::cfg() const {
779  // @@protoc_insertion_point(field_list:jaiabot.sensor.protobuf.Configuration.cfg)
780  return cfg_;
781 }
782 
783 #ifdef __GNUC__
784  #pragma GCC diagnostic pop
785 #endif // __GNUC__
786 // -------------------------------------------------------------------
787 
788 
789 // @@protoc_insertion_point(namespace_scope)
790 
791 } // namespace protobuf
792 } // namespace sensor
793 } // namespace jaiabot
794 
795 // @@protoc_insertion_point(global_scope)
796 
797 #include <google/protobuf/port_undef.inc>
798 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fconfiguration_2eproto
ConfigurationDefaultTypeInternal _Configuration_default_instance_
bool Sensor_IsValid(int value)
Configuration_CfgDefaultTypeInternal _Configuration_Cfg_default_instance_
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fsensor_2fconfiguration_2eproto
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]