4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2faml_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2faml_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/generated_enum_reflection.h>
33#include <google/protobuf/unknown_field_set.h>
35#include <boost/units/quantity.hpp>
36#include <boost/units/absolute.hpp>
37#include <boost/units/dimensionless_type.hpp>
38#include <boost/units/make_scaled_unit.hpp>
40#include <boost/units/systems/temperature/celsius.hpp>
42#include <boost/units/systems/si.hpp>
44#include <google/protobuf/port_def.inc>
45#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fsensor_2faml_2eproto
46PROTOBUF_NAMESPACE_OPEN
50PROTOBUF_NAMESPACE_CLOSE
54 static const uint32_t
offsets[];
61struct AMLDefaultTypeInternal;
66PROTOBUF_NAMESPACE_OPEN
68PROTOBUF_NAMESPACE_CLOSE
85 static_assert(::std::is_same<T, AML_Sensor>::value ||
86 ::std::is_integral<T>::value,
87 "Incorrect type passed to function AML_Sensor_Name.");
88 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
92 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
AML_Sensor* value) {
93 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AML_Sensor>(
99 public ::PROTOBUF_NAMESPACE_ID::Message {
101 inline AML() :
AML(nullptr) {}
103 explicit PROTOBUF_CONSTEXPR
AML(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
108 *
this = ::std::move(from);
116 if (
this == &from)
return *
this;
117 if (GetOwningArena() == from.GetOwningArena()
118 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
119 && GetOwningArena() !=
nullptr
129 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet&
unknown_fields()
const {
130 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
133 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
136 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
139 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
GetDescriptor() {
142 static const ::PROTOBUF_NAMESPACE_ID::Reflection*
GetReflection() {
149 return reinterpret_cast<const AML*
>(
159 if (other ==
this)
return;
160 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
161 if (GetOwningArena() !=
nullptr &&
162 GetOwningArena() == other->GetOwningArena()) {
164 if (GetOwningArena() == other->GetOwningArena()) {
168 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
172 if (other ==
this)
return;
173 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
179 AML*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
180 return CreateMaybeMessage<AML>(arena);
182 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
184 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
186 AML::MergeImpl(*
this, from);
189 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
191 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
197 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
201 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
203 void SetCachedSize(
int size)
const final;
204 void InternalSwap(
AML* other);
207 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
208 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
209 return "jaiabot.sensor.protobuf.AML";
212 explicit AML(::PROTOBUF_NAMESPACE_ID::Arena* arena,
213 bool is_message_owned =
false);
217 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
219 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
237 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
242 static inline const std::string&
Sensor_Name(T enum_t_value) {
243 static_assert(::std::is_same<T, Sensor>::value ||
244 ::std::is_integral<T>::value,
245 "Incorrect type passed to function Sensor_Name.");
248 static inline bool Sensor_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
263 bool _internal_has_conductivity()
const;
269 double _internal_conductivity()
const;
270 void _internal_set_conductivity(
double value);
276 bool _internal_has_temperature()
const;
282 double _internal_temperature()
const;
283 void _internal_set_temperature(
double value);
289 bool _internal_has_sensor()
const;
301 typedef boost::units::unit<conductivity_dimension,boost::units::si::system>
conductivity_unit;
303 template<
typename Quantity >
305 {
set_conductivity(boost::units::quantity<conductivity_unit,double >(value_w_units).value() ); };
307 template<
typename Quantity >
312 {
return conductivity_with_units<boost::units::quantity< conductivity_unit,double > >(); };
316 typedef boost::units::absolute<boost::units::unit<temperature_dimension,boost::units::celsius::system> >
temperature_unit;
318 template<
typename Quantity >
320 {
set_temperature(boost::units::quantity<temperature_unit,double >(value_w_units).value() ); };
322 template<
typename Quantity >
327 {
return temperature_with_units<boost::units::quantity< temperature_unit,double > >(); };
333 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
334 typedef void InternalArenaConstructable_;
335 typedef void DestructorSkippable_;
337 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
338 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
339 double conductivity_;
344 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2faml_2eproto;
352 #pragma GCC diagnostic push
353 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
358inline bool AML::_internal_has_sensor()
const {
359 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
363 return _internal_has_sensor();
367 _impl_._has_bits_[0] &= ~0x00000004u;
369inline ::jaiabot::sensor::protobuf::AML_Sensor AML::_internal_sensor()
const {
372inline ::jaiabot::sensor::protobuf::AML_Sensor
AML::sensor()
const {
374 return _internal_sensor();
378 _impl_._has_bits_[0] |= 0x00000004u;
382 _internal_set_sensor(value);
387inline bool AML::_internal_has_conductivity()
const {
388 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
392 return _internal_has_conductivity();
396 _impl_._has_bits_[0] &= ~0x00000001u;
398inline double AML::_internal_conductivity()
const {
399 return _impl_.conductivity_;
403 return _internal_conductivity();
405inline void AML::_internal_set_conductivity(
double value) {
406 _impl_._has_bits_[0] |= 0x00000001u;
407 _impl_.conductivity_ = value;
410 _internal_set_conductivity(value);
415inline bool AML::_internal_has_temperature()
const {
416 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
420 return _internal_has_temperature();
424 _impl_._has_bits_[0] &= ~0x00000002u;
426inline double AML::_internal_temperature()
const {
427 return _impl_.temperature_;
431 return _internal_temperature();
433inline void AML::_internal_set_temperature(
double value) {
434 _impl_._has_bits_[0] |= 0x00000002u;
435 _impl_.temperature_ = value;
438 _internal_set_temperature(value);
443 #pragma GCC diagnostic pop
452PROTOBUF_NAMESPACE_OPEN
457 return ::jaiabot::sensor::protobuf::AML_Sensor_descriptor();
460PROTOBUF_NAMESPACE_CLOSE
464#include <google/protobuf/port_undef.inc>
void MergeFrom(const AML &from)
static bool Sensor_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Sensor *value)
static const std::string & Sensor_Name(T enum_t_value)
static const AML & default_instance()
bool has_temperature() const
boost::units::temperature_dimension temperature_dimension
double temperature() const
static constexpr int Sensor_ARRAYSIZE
Quantity conductivity_with_units() const
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Sensor_descriptor()
static constexpr Sensor Sensor_MIN
static const ClassData _class_data_
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_temperature_with_units(Quantity value_w_units)
void set_conductivity_with_units(Quantity value_w_units)
double conductivity() const
static constexpr int kIndexInFileMessages
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
bool has_conductivity() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
::jaiabot::sensor::protobuf::AML_Sensor sensor() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void CopyFrom(const AML &from)
static constexpr Sensor Sensor_MAX
void set_sensor(::jaiabot::sensor::protobuf::AML_Sensor value)
size_t ByteSizeLong() const final
@ kConductivityFieldNumber
@ kTemperatureFieldNumber
bool IsInitialized() const final
int GetCachedSize() const final
static constexpr Sensor DEFAULT
void set_conductivity(double value)
static const AML * internal_default_instance()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
AML & operator=(const AML &from)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
friend void swap(AML &a, AML &b)
void set_temperature(double value)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
boost::units::unit< conductivity_dimension, boost::units::si::system > conductivity_unit
boost::units::absolute< boost::units::unit< temperature_dimension, boost::units::celsius::system > > temperature_unit
void clear_conductivity()
AML * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static bool Sensor_IsValid(int value)
static constexpr Sensor CONDUCTIVITY
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
Quantity temperature_with_units() const
boost::units::conductivity_dimension conductivity_dimension
void UnsafeArenaSwap(AML *other)
constexpr AML_Sensor AML_Sensor_Sensor_MIN
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * AML_Sensor_descriptor()
const std::string & AML_Sensor_Name(T enum_t_value)
constexpr AML_Sensor AML_Sensor_Sensor_MAX
bool AML_Sensor_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AML_Sensor *value)
constexpr int AML_Sensor_Sensor_ARRAYSIZE
@ AML_Sensor_CONDUCTIVITY
bool AML_Sensor_IsValid(int value)
AMLDefaultTypeInternal _AML_default_instance_
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fsensor_2faml_2eproto
const EnumDescriptor * GetEnumDescriptor< ::jaiabot::sensor::protobuf::AML_Sensor >()
static const uint32_t offsets[]