JaiaBot 2.1.1
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
tsys01.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: jaiabot/messages/tsys01.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2ftsys01_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2ftsys01_2eproto
6
7#include <limits>
8#include <string>
9
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
14#error your headers.
15#endif
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.
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_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> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
38
39#include <boost/units/systems/temperature/celsius.hpp>
40
41#include <boost/units/systems/si.hpp>
42// @@protoc_insertion_point(includes)
43#include <google/protobuf/port_def.inc>
44#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2ftsys01_2eproto
45PROTOBUF_NAMESPACE_OPEN
46namespace internal {
47class AnyMetadata;
48} // namespace internal
49PROTOBUF_NAMESPACE_CLOSE
50
51// Internal implementation detail -- do not use these members.
53 static const uint32_t offsets[];
54};
55extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2ftsys01_2eproto;
56namespace jaiabot {
57namespace protobuf {
58class TSYS01Data;
59struct TSYS01DataDefaultTypeInternal;
60extern TSYS01DataDefaultTypeInternal _TSYS01Data_default_instance_;
61} // namespace protobuf
62} // namespace jaiabot
63PROTOBUF_NAMESPACE_OPEN
64template<> ::jaiabot::protobuf::TSYS01Data* Arena::CreateMaybeMessage<::jaiabot::protobuf::TSYS01Data>(Arena*);
65PROTOBUF_NAMESPACE_CLOSE
66namespace jaiabot {
67namespace protobuf {
68
69// ===================================================================
70
71class TSYS01Data final :
72 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.TSYS01Data) */ {
73 public:
74 inline TSYS01Data() : TSYS01Data(nullptr) {}
75 ~TSYS01Data() override;
76 explicit PROTOBUF_CONSTEXPR TSYS01Data(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
77
78 TSYS01Data(const TSYS01Data& from);
79 TSYS01Data(TSYS01Data&& from) noexcept
80 : TSYS01Data() {
81 *this = ::std::move(from);
82 }
83
84 inline TSYS01Data& operator=(const TSYS01Data& from) {
85 CopyFrom(from);
86 return *this;
87 }
88 inline TSYS01Data& operator=(TSYS01Data&& from) noexcept {
89 if (this == &from) return *this;
90 if (GetOwningArena() == from.GetOwningArena()
91 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
92 && GetOwningArena() != nullptr
93 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
94 ) {
95 InternalSwap(&from);
96 } else {
97 CopyFrom(from);
98 }
99 return *this;
100 }
101
102 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
103 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
104 }
105 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
106 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
107 }
108
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
110 return GetDescriptor();
111 }
112 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
113 return default_instance().GetMetadata().descriptor;
114 }
115 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
116 return default_instance().GetMetadata().reflection;
117 }
118 static const TSYS01Data& default_instance() {
120 }
121 static inline const TSYS01Data* internal_default_instance() {
122 return reinterpret_cast<const TSYS01Data*>(
124 }
125 static constexpr int kIndexInFileMessages =
126 0;
127
128 friend void swap(TSYS01Data& a, TSYS01Data& b) {
129 a.Swap(&b);
130 }
131 inline void Swap(TSYS01Data* other) {
132 if (other == this) return;
133 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
134 if (GetOwningArena() != nullptr &&
135 GetOwningArena() == other->GetOwningArena()) {
136 #else // PROTOBUF_FORCE_COPY_IN_SWAP
137 if (GetOwningArena() == other->GetOwningArena()) {
138 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
139 InternalSwap(other);
140 } else {
141 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
142 }
143 }
145 if (other == this) return;
146 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
147 InternalSwap(other);
148 }
149
150 // implements Message ----------------------------------------------
151
152 TSYS01Data* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
153 return CreateMaybeMessage<TSYS01Data>(arena);
154 }
155 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
156 void CopyFrom(const TSYS01Data& from);
157 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
158 void MergeFrom( const TSYS01Data& from) {
159 TSYS01Data::MergeImpl(*this, from);
160 }
161 private:
162 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
163 public:
164 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
165 bool IsInitialized() const final;
166
167 size_t ByteSizeLong() const final;
168 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
170 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
171 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
172
173 private:
174 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
175 void SharedDtor();
176 void SetCachedSize(int size) const final;
177 void InternalSwap(TSYS01Data* other);
178
179 private:
180 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
181 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
182 return "jaiabot.protobuf.TSYS01Data";
183 }
184 protected:
185 explicit TSYS01Data(::PROTOBUF_NAMESPACE_ID::Arena* arena,
186 bool is_message_owned = false);
187 public:
188
189 static const ClassData _class_data_;
190 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
191
192 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
193
194 // nested types ----------------------------------------------------
195
196 // accessors -------------------------------------------------------
197
198 enum : int {
200 };
201 // optional double temperature = 1 [(.dccl.field) = {
202 bool has_temperature() const;
203 private:
204 bool _internal_has_temperature() const;
205 public:
206 void clear_temperature();
207 double temperature() const;
208 void set_temperature(double value);
209 private:
210 double _internal_temperature() const;
211 void _internal_set_temperature(double value);
212 public:
213
214 typedef boost::units::temperature_dimension temperature_dimension;
215
216 typedef boost::units::absolute<boost::units::unit<temperature_dimension,boost::units::celsius::system> > temperature_unit;
217
218 template<typename Quantity >
219 void set_temperature_with_units(Quantity value_w_units)
220 { set_temperature(boost::units::quantity<temperature_unit,double >(value_w_units).value() ); };
221
222 template<typename Quantity >
223 Quantity temperature_with_units() const
224 { return Quantity(temperature() * temperature_unit()); };
225
226 boost::units::quantity< temperature_unit,double > temperature_with_units() const
227 { return temperature_with_units<boost::units::quantity< temperature_unit,double > >(); };
228
229 // @@protoc_insertion_point(class_scope:jaiabot.protobuf.TSYS01Data)
230 private:
231 class _Internal;
232
233 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
234 typedef void InternalArenaConstructable_;
235 typedef void DestructorSkippable_;
236 struct Impl_ {
237 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
238 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
239 double temperature_;
240 };
241 union { Impl_ _impl_; };
242 friend struct ::TableStruct_jaiabot_2fmessages_2ftsys01_2eproto;
243};
244// ===================================================================
245
246
247// ===================================================================
248
249#ifdef __GNUC__
250 #pragma GCC diagnostic push
251 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
252#endif // __GNUC__
253// TSYS01Data
254
255// optional double temperature = 1 [(.dccl.field) = {
256inline bool TSYS01Data::_internal_has_temperature() const {
257 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
258 return value;
259}
260inline bool TSYS01Data::has_temperature() const {
261 return _internal_has_temperature();
262}
264 _impl_.temperature_ = 0;
265 _impl_._has_bits_[0] &= ~0x00000001u;
266}
267inline double TSYS01Data::_internal_temperature() const {
268 return _impl_.temperature_;
269}
270inline double TSYS01Data::temperature() const {
271 // @@protoc_insertion_point(field_get:jaiabot.protobuf.TSYS01Data.temperature)
272 return _internal_temperature();
273}
274inline void TSYS01Data::_internal_set_temperature(double value) {
275 _impl_._has_bits_[0] |= 0x00000001u;
276 _impl_.temperature_ = value;
277}
278inline void TSYS01Data::set_temperature(double value) {
279 _internal_set_temperature(value);
280 // @@protoc_insertion_point(field_set:jaiabot.protobuf.TSYS01Data.temperature)
281}
282
283#ifdef __GNUC__
284 #pragma GCC diagnostic pop
285#endif // __GNUC__
286
287// @@protoc_insertion_point(namespace_scope)
288
289} // namespace protobuf
290} // namespace jaiabot
291
292// @@protoc_insertion_point(global_scope)
293
294#include <google/protobuf/port_undef.inc>
295#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2ftsys01_2eproto
static const ClassData _class_data_
Definition tsys01.pb.h:189
boost::units::quantity< temperature_unit, double > temperature_with_units() const
Definition tsys01.pb.h:226
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
int GetCachedSize() const final
Definition tsys01.pb.h:171
TSYS01Data(const TSYS01Data &from)
TSYS01Data(TSYS01Data &&from) noexcept
Definition tsys01.pb.h:79
void set_temperature_with_units(Quantity value_w_units)
Definition tsys01.pb.h:219
void UnsafeArenaSwap(TSYS01Data *other)
Definition tsys01.pb.h:144
static const TSYS01Data & default_instance()
Definition tsys01.pb.h:118
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition tsys01.pb.h:102
friend void swap(TSYS01Data &a, TSYS01Data &b)
Definition tsys01.pb.h:128
boost::units::absolute< boost::units::unit< temperature_dimension, boost::units::celsius::system > > temperature_unit
Definition tsys01.pb.h:216
void CopyFrom(const TSYS01Data &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition tsys01.pb.h:105
size_t ByteSizeLong() const final
boost::units::temperature_dimension temperature_dimension
Definition tsys01.pb.h:214
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()
Definition tsys01.pb.h:121
void set_temperature(double value)
Definition tsys01.pb.h:278
void MergeFrom(const TSYS01Data &from)
Definition tsys01.pb.h:158
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition tsys01.pb.h:109
bool IsInitialized() const final
void Swap(TSYS01Data *other)
Definition tsys01.pb.h:131
TSYS01Data(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition tsys01.pb.h:112
TSYS01Data & operator=(const TSYS01Data &from)
Definition tsys01.pb.h:84
TSYS01Data * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition tsys01.pb.h:152
Quantity temperature_with_units() const
Definition tsys01.pb.h:223
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition tsys01.pb.h:115
TSYS01Data & operator=(TSYS01Data &&from) noexcept
Definition tsys01.pb.h:88
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static constexpr int kIndexInFileMessages
Definition tsys01.pb.h:125
TSYS01DataDefaultTypeInternal _TSYS01Data_default_instance_
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2ftsys01_2eproto