4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2ftsys01_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2ftsys01_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 <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>
39#include <boost/units/systems/temperature/celsius.hpp>
41#include <boost/units/systems/si.hpp>
43#include <google/protobuf/port_def.inc>
44#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2ftsys01_2eproto
45PROTOBUF_NAMESPACE_OPEN
49PROTOBUF_NAMESPACE_CLOSE
59struct TSYS01DataDefaultTypeInternal;
63PROTOBUF_NAMESPACE_OPEN
65PROTOBUF_NAMESPACE_CLOSE
72 public ::PROTOBUF_NAMESPACE_ID::Message {
76 explicit PROTOBUF_CONSTEXPR
TSYS01Data(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
81 *
this = ::std::move(from);
89 if (
this == &from)
return *
this;
90 if (GetOwningArena() == from.GetOwningArena()
91 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
92 && GetOwningArena() !=
nullptr
103 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
106 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
132 if (other ==
this)
return;
133 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
134 if (GetOwningArena() !=
nullptr &&
135 GetOwningArena() == other->GetOwningArena()) {
137 if (GetOwningArena() == other->GetOwningArena()) {
141 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
145 if (other ==
this)
return;
146 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
152 TSYS01Data*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
153 return CreateMaybeMessage<TSYS01Data>(arena);
155 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
157 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
159 TSYS01Data::MergeImpl(*
this, from);
162 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
164 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
170 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
174 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
176 void SetCachedSize(
int size)
const final;
180 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
181 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
182 return "jaiabot.protobuf.TSYS01Data";
186 bool is_message_owned =
false);
190 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
204 bool _internal_has_temperature()
const;
210 double _internal_temperature()
const;
211 void _internal_set_temperature(
double value);
216 typedef boost::units::absolute<boost::units::unit<temperature_dimension,boost::units::celsius::system> >
temperature_unit;
218 template<
typename Quantity >
220 {
set_temperature(boost::units::quantity<temperature_unit,double >(value_w_units).value() ); };
222 template<
typename Quantity >
227 {
return temperature_with_units<boost::units::quantity< temperature_unit,double > >(); };
233 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
234 typedef void InternalArenaConstructable_;
235 typedef void DestructorSkippable_;
237 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
238 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
242 friend struct ::TableStruct_jaiabot_2fmessages_2ftsys01_2eproto;
250 #pragma GCC diagnostic push
251 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
256inline bool TSYS01Data::_internal_has_temperature()
const {
257 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
261 return _internal_has_temperature();
265 _impl_._has_bits_[0] &= ~0x00000001u;
267inline double TSYS01Data::_internal_temperature()
const {
268 return _impl_.temperature_;
272 return _internal_temperature();
274inline void TSYS01Data::_internal_set_temperature(
double value) {
275 _impl_._has_bits_[0] |= 0x00000001u;
276 _impl_.temperature_ = value;
279 _internal_set_temperature(value);
284 #pragma GCC diagnostic pop
294#include <google/protobuf/port_undef.inc>
static const ClassData _class_data_
boost::units::quantity< temperature_unit, double > temperature_with_units() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
int GetCachedSize() const final
TSYS01Data(const TSYS01Data &from)
TSYS01Data(TSYS01Data &&from) noexcept
void set_temperature_with_units(Quantity value_w_units)
bool has_temperature() const
void UnsafeArenaSwap(TSYS01Data *other)
static const TSYS01Data & default_instance()
@ kTemperatureFieldNumber
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
double temperature() const
friend void swap(TSYS01Data &a, TSYS01Data &b)
boost::units::absolute< boost::units::unit< temperature_dimension, boost::units::celsius::system > > temperature_unit
void CopyFrom(const TSYS01Data &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
size_t ByteSizeLong() const final
boost::units::temperature_dimension temperature_dimension
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
PROTOBUF_CONSTEXPR TSYS01Data(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const TSYS01Data * internal_default_instance()
void set_temperature(double value)
void MergeFrom(const TSYS01Data &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
bool IsInitialized() const final
void Swap(TSYS01Data *other)
TSYS01Data(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
TSYS01Data & operator=(const TSYS01Data &from)
TSYS01Data * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Quantity temperature_with_units() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
TSYS01Data & operator=(TSYS01Data &&from) noexcept
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static constexpr int kIndexInFileMessages
TSYS01DataDefaultTypeInternal _TSYS01Data_default_instance_
static const uint32_t offsets[]
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2ftsys01_2eproto