4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2ftsys01_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2ftsys01_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
31 #include <google/protobuf/extension_set.h>
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>
39 #include <boost/units/systems/temperature/celsius.hpp>
41 #include <boost/units/systems/si.hpp>
43 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2ftsys01_2eproto
48 static const ::google::protobuf::internal::ParseTableField
entries[];
49 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
50 static const ::google::protobuf::internal::ParseTable
schema[1];
53 static const ::google::protobuf::uint32
offsets[];
60 class TSYS01DataDefaultTypeInternal;
88 *
this = ::std::move(from);
92 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
93 if (
this != &from) InternalSwap(&from);
101 return _internal_metadata_.unknown_fields();
104 return _internal_metadata_.mutable_unknown_fields();
107 static const ::google::protobuf::Descriptor*
descriptor();
126 return CreateMaybeMessage<TSYS01Data>(NULL);
130 return CreateMaybeMessage<TSYS01Data>(arena);
132 void CopyFrom(const ::google::protobuf::Message& from)
final;
133 void MergeFrom(const ::google::protobuf::Message& from)
final;
141 ::
google::protobuf::io::CodedInputStream* input) final;
143 ::
google::protobuf::io::CodedOutputStream* output) const final;
145 bool deterministic, ::
google::protobuf::uint8* target) const final;
151 void SetCachedSize(
int size)
const final;
154 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
157 inline void* MaybeArenaPtr()
const {
162 ::google::protobuf::Metadata
GetMetadata() const final;
179 template<typename Quantity >
181 {
set_temperature(boost::units::quantity<temperature_unit,double >(value_w_units).value() ); };
183 template<
typename Quantity >
188 {
return temperature_with_units<boost::units::quantity< temperature_unit,double > >(); };
192 void set_has_temperature();
193 void clear_has_temperature();
195 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
196 ::google::protobuf::internal::HasBits<1> _has_bits_;
197 mutable ::google::protobuf::internal::CachedSize _cached_size_;
199 friend struct ::protobuf_jaiabot_2fmessages_2ftsys01_2eproto::TableStruct;
207 #pragma GCC diagnostic push
208 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
214 return (_has_bits_[0] & 0x00000001u) != 0;
216 inline void TSYS01Data::set_has_temperature() {
217 _has_bits_[0] |= 0x00000001u;
219 inline void TSYS01Data::clear_has_temperature() {
220 _has_bits_[0] &= ~0x00000001u;
224 clear_has_temperature();
231 set_has_temperature();
232 temperature_ = value;
237 #pragma GCC diagnostic pop
247 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2ftsys01_2eproto