4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fconfiguration_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fconfiguration_2eproto
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
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.
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>
31#include <google/protobuf/extension_set.h>
32#include <google/protobuf/unknown_field_set.h>
34#include "jaiabot/messages/sensor/catalog.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 <boost/units/systems/si.hpp>
43#include <google/protobuf/port_def.inc>
44#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fsensor_2fconfiguration_2eproto
45PROTOBUF_NAMESPACE_OPEN
49PROTOBUF_NAMESPACE_CLOSE
53 static const uint32_t
offsets[];
60struct ConfigurationDefaultTypeInternal;
62class Configuration_Cfg;
63struct Configuration_CfgDefaultTypeInternal;
68PROTOBUF_NAMESPACE_OPEN
71PROTOBUF_NAMESPACE_CLOSE
78class Configuration_Cfg final :
79 public ::PROTOBUF_NAMESPACE_ID::Message {
83 explicit PROTOBUF_CONSTEXPR
Configuration_Cfg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
88 *
this = ::std::move(from);
96 if (
this == &from)
return *
this;
97 if (GetOwningArena() == from.GetOwningArena()
98 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
99 && GetOwningArena() !=
nullptr
109 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet&
unknown_fields()
const {
110 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
113 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
116 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
119 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
GetDescriptor() {
122 static const ::PROTOBUF_NAMESPACE_ID::Reflection*
GetReflection() {
139 if (other ==
this)
return;
140 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
141 if (GetOwningArena() !=
nullptr &&
142 GetOwningArena() == other->GetOwningArena()) {
144 if (GetOwningArena() == other->GetOwningArena()) {
148 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
152 if (other ==
this)
return;
153 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
160 return CreateMaybeMessage<Configuration_Cfg>(arena);
162 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
164 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
166 Configuration_Cfg::MergeImpl(*
this, from);
169 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
171 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
177 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
181 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
183 void SetCachedSize(
int size)
const final;
187 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
188 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
189 return "jaiabot.sensor.protobuf.Configuration.Cfg";
193 bool is_message_owned =
false);
197 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
199 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
212 bool _internal_has_key()
const;
215 const std::string&
key()
const;
216 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
217 void set_key(ArgT0&& arg0, ArgT... args);
222 const std::string& _internal_key()
const;
223 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_key(
const std::string&
value);
224 std::string* _internal_mutable_key();
230 bool _internal_has_value()
const;
233 const std::string&
value()
const;
234 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
235 void set_value(ArgT0&& arg0, ArgT... args);
240 const std::string& _internal_value()
const;
241 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_value(
const std::string&
value);
242 std::string* _internal_mutable_value();
250 size_t RequiredFieldsByteSizeFallback()
const;
252 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
253 typedef void InternalArenaConstructable_;
254 typedef void DestructorSkippable_;
256 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
257 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
258 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_;
259 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_;
262 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fconfiguration_2eproto;
266class Configuration final :
267 public ::PROTOBUF_NAMESPACE_ID::Message {
269 inline Configuration() : Configuration(nullptr) {}
270 ~Configuration()
override;
271 explicit PROTOBUF_CONSTEXPR Configuration(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
273 Configuration(
const Configuration& from);
274 Configuration(Configuration&& from) noexcept
276 *
this = ::std::move(from);
279 inline Configuration& operator=(
const Configuration& from) {
283 inline Configuration& operator=(Configuration&& from)
noexcept {
284 if (
this == &from)
return *
this;
285 if (GetOwningArena() == from.GetOwningArena()
286 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
287 && GetOwningArena() !=
nullptr
297 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields()
const {
298 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
300 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
301 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
304 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
305 return GetDescriptor();
307 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
308 return default_instance().GetMetadata().descriptor;
310 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
311 return default_instance().GetMetadata().reflection;
313 static const Configuration& default_instance() {
314 return *internal_default_instance();
316 static inline const Configuration* internal_default_instance() {
317 return reinterpret_cast<const Configuration*
>(
320 static constexpr int kIndexInFileMessages =
323 friend void swap(Configuration& a, Configuration& b) {
326 inline void Swap(Configuration* other) {
327 if (other ==
this)
return;
328 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
329 if (GetOwningArena() !=
nullptr &&
330 GetOwningArena() == other->GetOwningArena()) {
332 if (GetOwningArena() == other->GetOwningArena()) {
336 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
339 void UnsafeArenaSwap(Configuration* other) {
340 if (other ==
this)
return;
341 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
347 Configuration* New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
348 return CreateMaybeMessage<Configuration>(arena);
350 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
351 void CopyFrom(
const Configuration& from);
352 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
353 void MergeFrom(
const Configuration& from) {
354 Configuration::MergeImpl(*
this, from);
357 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
359 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
360 bool IsInitialized() const final;
362 size_t ByteSizeLong() const final;
363 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
364 uint8_t* _InternalSerialize(
365 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
366 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
369 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
371 void SetCachedSize(
int size)
const final;
372 void InternalSwap(Configuration* other);
375 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
376 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
377 return "jaiabot.sensor.protobuf.Configuration";
380 explicit Configuration(::PROTOBUF_NAMESPACE_ID::Arena* arena,
381 bool is_message_owned =
false);
384 static const ClassData _class_data_;
385 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
387 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
391 typedef Configuration_Cfg Cfg;
397 kSampleFreqFieldNumber = 2,
398 kSensorFieldNumber = 1,
401 int cfg_size()
const;
403 int _internal_cfg_size()
const;
407 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Configuration_Cfg >*
410 const ::jaiabot::sensor::protobuf::Configuration_Cfg& _internal_cfg(
int index)
const;
413 const ::jaiabot::sensor::protobuf::Configuration_Cfg& cfg(
int index)
const;
415 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Configuration_Cfg >&
419 bool has_sample_freq()
const;
421 bool _internal_has_sample_freq()
const;
423 void clear_sample_freq();
424 double sample_freq()
const;
425 void set_sample_freq(
double value);
427 double _internal_sample_freq()
const;
428 void _internal_set_sample_freq(
double value);
432 bool has_sensor()
const;
434 bool _internal_has_sensor()
const;
444 typedef boost::units::frequency_dimension sample_freq_dimension;
446 typedef boost::units::unit<sample_freq_dimension,boost::units::si::system> sample_freq_unit;
448 template<
typename Quantity >
449 void set_sample_freq_with_units(Quantity value_w_units)
450 { set_sample_freq(boost::units::quantity<sample_freq_unit,double >(value_w_units).value() ); };
452 template<
typename Quantity >
453 Quantity sample_freq_with_units()
const
454 {
return Quantity(sample_freq() * sample_freq_unit()); };
456 boost::units::quantity< sample_freq_unit,double > sample_freq_with_units()
const
457 {
return sample_freq_with_units<boost::units::quantity< sample_freq_unit,double > >(); };
463 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
464 typedef void InternalArenaConstructable_;
465 typedef void DestructorSkippable_;
467 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
468 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
469 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Configuration_Cfg > cfg_;
473 union { Impl_ _impl_; };
474 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fconfiguration_2eproto;
482 #pragma GCC diagnostic push
483 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
488inline bool Configuration_Cfg::_internal_has_key()
const {
489 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
492inline bool Configuration_Cfg::has_key()
const {
493 return _internal_has_key();
495inline void Configuration_Cfg::clear_key() {
496 _impl_.key_.ClearToEmpty();
497 _impl_._has_bits_[0] &= ~0x00000001u;
499inline const std::string& Configuration_Cfg::key()
const {
501 return _internal_key();
503template <
typename ArgT0,
typename... ArgT>
504inline PROTOBUF_ALWAYS_INLINE
505void Configuration_Cfg::set_key(ArgT0&& arg0, ArgT... args) {
506 _impl_._has_bits_[0] |= 0x00000001u;
507 _impl_.key_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
510inline std::string* Configuration_Cfg::mutable_key() {
511 std::string* _s = _internal_mutable_key();
515inline const std::string& Configuration_Cfg::_internal_key()
const {
516 return _impl_.key_.Get();
518inline void Configuration_Cfg::_internal_set_key(
const std::string& value) {
519 _impl_._has_bits_[0] |= 0x00000001u;
520 _impl_.key_.Set(value, GetArenaForAllocation());
522inline std::string* Configuration_Cfg::_internal_mutable_key() {
523 _impl_._has_bits_[0] |= 0x00000001u;
524 return _impl_.key_.Mutable(GetArenaForAllocation());
526inline std::string* Configuration_Cfg::release_key() {
528 if (!_internal_has_key()) {
531 _impl_._has_bits_[0] &= ~0x00000001u;
532 auto* p = _impl_.key_.Release();
533#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
534 if (_impl_.key_.IsDefault()) {
535 _impl_.key_.Set(
"", GetArenaForAllocation());
540inline void Configuration_Cfg::set_allocated_key(std::string* key) {
541 if (key !=
nullptr) {
542 _impl_._has_bits_[0] |= 0x00000001u;
544 _impl_._has_bits_[0] &= ~0x00000001u;
546 _impl_.key_.SetAllocated(key, GetArenaForAllocation());
547#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
548 if (_impl_.key_.IsDefault()) {
549 _impl_.key_.Set(
"", GetArenaForAllocation());
556inline bool Configuration_Cfg::_internal_has_value()
const {
557 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
560inline bool Configuration_Cfg::has_value()
const {
561 return _internal_has_value();
563inline void Configuration_Cfg::clear_value() {
564 _impl_.value_.ClearToEmpty();
565 _impl_._has_bits_[0] &= ~0x00000002u;
567inline const std::string& Configuration_Cfg::value()
const {
569 return _internal_value();
571template <
typename ArgT0,
typename... ArgT>
572inline PROTOBUF_ALWAYS_INLINE
573void Configuration_Cfg::set_value(ArgT0&& arg0, ArgT... args) {
574 _impl_._has_bits_[0] |= 0x00000002u;
575 _impl_.value_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
578inline std::string* Configuration_Cfg::mutable_value() {
579 std::string* _s = _internal_mutable_value();
583inline const std::string& Configuration_Cfg::_internal_value()
const {
584 return _impl_.value_.Get();
586inline void Configuration_Cfg::_internal_set_value(
const std::string& value) {
587 _impl_._has_bits_[0] |= 0x00000002u;
588 _impl_.value_.Set(value, GetArenaForAllocation());
590inline std::string* Configuration_Cfg::_internal_mutable_value() {
591 _impl_._has_bits_[0] |= 0x00000002u;
592 return _impl_.value_.Mutable(GetArenaForAllocation());
594inline std::string* Configuration_Cfg::release_value() {
596 if (!_internal_has_value()) {
599 _impl_._has_bits_[0] &= ~0x00000002u;
600 auto* p = _impl_.value_.Release();
601#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
602 if (_impl_.value_.IsDefault()) {
603 _impl_.value_.Set(
"", GetArenaForAllocation());
608inline void Configuration_Cfg::set_allocated_value(std::string* value) {
609 if (value !=
nullptr) {
610 _impl_._has_bits_[0] |= 0x00000002u;
612 _impl_._has_bits_[0] &= ~0x00000002u;
614 _impl_.value_.SetAllocated(value, GetArenaForAllocation());
615#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
616 if (_impl_.value_.IsDefault()) {
617 _impl_.value_.Set(
"", GetArenaForAllocation());
628inline bool Configuration::_internal_has_sensor()
const {
629 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
632inline bool Configuration::has_sensor()
const {
633 return _internal_has_sensor();
635inline void Configuration::clear_sensor() {
637 _impl_._has_bits_[0] &= ~0x00000002u;
639inline ::jaiabot::sensor::protobuf::Sensor Configuration::_internal_sensor()
const {
642inline ::jaiabot::sensor::protobuf::Sensor Configuration::sensor()
const {
644 return _internal_sensor();
648 _impl_._has_bits_[0] |= 0x00000002u;
649 _impl_.sensor_ = value;
652 _internal_set_sensor(value);
657inline bool Configuration::_internal_has_sample_freq()
const {
658 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
661inline bool Configuration::has_sample_freq()
const {
662 return _internal_has_sample_freq();
664inline void Configuration::clear_sample_freq() {
665 _impl_.sample_freq_ = 0;
666 _impl_._has_bits_[0] &= ~0x00000001u;
668inline double Configuration::_internal_sample_freq()
const {
669 return _impl_.sample_freq_;
671inline double Configuration::sample_freq()
const {
673 return _internal_sample_freq();
675inline void Configuration::_internal_set_sample_freq(
double value) {
676 _impl_._has_bits_[0] |= 0x00000001u;
677 _impl_.sample_freq_ = value;
679inline void Configuration::set_sample_freq(
double value) {
680 _internal_set_sample_freq(value);
685inline int Configuration::_internal_cfg_size()
const {
686 return _impl_.cfg_.size();
688inline int Configuration::cfg_size()
const {
689 return _internal_cfg_size();
691inline void Configuration::clear_cfg() {
694inline ::jaiabot::sensor::protobuf::Configuration_Cfg* Configuration::mutable_cfg(
int index) {
696 return _impl_.cfg_.Mutable(index);
698inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Configuration_Cfg >*
699Configuration::mutable_cfg() {
703inline const ::jaiabot::sensor::protobuf::Configuration_Cfg& Configuration::_internal_cfg(
int index)
const {
704 return _impl_.cfg_.Get(index);
706inline const ::jaiabot::sensor::protobuf::Configuration_Cfg& Configuration::cfg(
int index)
const {
708 return _internal_cfg(index);
710inline ::jaiabot::sensor::protobuf::Configuration_Cfg* Configuration::_internal_add_cfg() {
711 return _impl_.cfg_.Add();
713inline ::jaiabot::sensor::protobuf::Configuration_Cfg* Configuration::add_cfg() {
718inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Configuration_Cfg >&
719Configuration::cfg()
const {
725 #pragma GCC diagnostic pop
738#include <google/protobuf/port_undef.inc>
PROTOBUF_NODISCARD std::string * release_key()
static const Configuration_Cfg & default_instance()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_key(ArgT0 &&arg0, ArgT... args)
static constexpr int kIndexInFileMessages
int GetCachedSize() const final
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
const std::string & value() const
~Configuration_Cfg() override
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void Swap(Configuration_Cfg *other)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void set_allocated_value(std::string *value)
std::string * mutable_value()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
PROTOBUF_NODISCARD std::string * release_value()
Configuration_Cfg * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_allocated_key(std::string *key)
void UnsafeArenaSwap(Configuration_Cfg *other)
const std::string & key() const
void MergeFrom(const Configuration_Cfg &from)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
Configuration_Cfg & operator=(const Configuration_Cfg &from)
static const ClassData _class_data_
bool IsInitialized() const final
std::string * mutable_key()
void set_value(ArgT0 &&arg0, ArgT... args)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
size_t ByteSizeLong() const final
friend void swap(Configuration_Cfg &a, Configuration_Cfg &b)
static const Configuration_Cfg * internal_default_instance()
void CopyFrom(const Configuration_Cfg &from)
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 uint32_t offsets[]