JaiaBot 2.6.0
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
aml.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: jaiabot/messages/sensor/aml.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2faml_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2faml_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/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>
39
40#include <boost/units/systems/temperature/celsius.hpp>
41
42#include <boost/units/systems/si.hpp>
43// @@protoc_insertion_point(includes)
44#include <google/protobuf/port_def.inc>
45#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fsensor_2faml_2eproto
46PROTOBUF_NAMESPACE_OPEN
47namespace internal {
48class AnyMetadata;
49} // namespace internal
50PROTOBUF_NAMESPACE_CLOSE
51
52// Internal implementation detail -- do not use these members.
54 static const uint32_t offsets[];
55};
56extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fsensor_2faml_2eproto;
57namespace jaiabot {
58namespace sensor {
59namespace protobuf {
60class AML;
61struct AMLDefaultTypeInternal;
62extern AMLDefaultTypeInternal _AML_default_instance_;
63} // namespace protobuf
64} // namespace sensor
65} // namespace jaiabot
66PROTOBUF_NAMESPACE_OPEN
67template<> ::jaiabot::sensor::protobuf::AML* Arena::CreateMaybeMessage<::jaiabot::sensor::protobuf::AML>(Arena*);
68PROTOBUF_NAMESPACE_CLOSE
69namespace jaiabot {
70namespace sensor {
71namespace protobuf {
72
73enum AML_Sensor : int {
76};
77bool AML_Sensor_IsValid(int value);
81
82const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AML_Sensor_descriptor();
83template<typename T>
84inline const std::string& AML_Sensor_Name(T enum_t_value) {
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(
89 AML_Sensor_descriptor(), enum_t_value);
90}
91inline bool AML_Sensor_Parse(
92 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AML_Sensor* value) {
93 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AML_Sensor>(
94 AML_Sensor_descriptor(), name, value);
95}
96// ===================================================================
97
98class AML final :
99 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.sensor.protobuf.AML) */ {
100 public:
101 inline AML() : AML(nullptr) {}
102 ~AML() override;
103 explicit PROTOBUF_CONSTEXPR AML(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
104
105 AML(const AML& from);
106 AML(AML&& from) noexcept
107 : AML() {
108 *this = ::std::move(from);
109 }
110
111 inline AML& operator=(const AML& from) {
112 CopyFrom(from);
113 return *this;
114 }
115 inline AML& operator=(AML&& from) noexcept {
116 if (this == &from) return *this;
117 if (GetOwningArena() == from.GetOwningArena()
118 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
119 && GetOwningArena() != nullptr
120 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
121 ) {
122 InternalSwap(&from);
123 } else {
124 CopyFrom(from);
125 }
126 return *this;
127 }
128
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);
131 }
132 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
133 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
134 }
135
136 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
137 return GetDescriptor();
138 }
139 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
140 return default_instance().GetMetadata().descriptor;
141 }
142 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
143 return default_instance().GetMetadata().reflection;
144 }
145 static const AML& default_instance() {
147 }
148 static inline const AML* internal_default_instance() {
149 return reinterpret_cast<const AML*>(
151 }
152 static constexpr int kIndexInFileMessages =
153 0;
154
155 friend void swap(AML& a, AML& b) {
156 a.Swap(&b);
157 }
158 inline void Swap(AML* other) {
159 if (other == this) return;
160 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
161 if (GetOwningArena() != nullptr &&
162 GetOwningArena() == other->GetOwningArena()) {
163 #else // PROTOBUF_FORCE_COPY_IN_SWAP
164 if (GetOwningArena() == other->GetOwningArena()) {
165 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
166 InternalSwap(other);
167 } else {
168 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
169 }
170 }
171 void UnsafeArenaSwap(AML* other) {
172 if (other == this) return;
173 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
174 InternalSwap(other);
175 }
176
177 // implements Message ----------------------------------------------
178
179 AML* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
180 return CreateMaybeMessage<AML>(arena);
181 }
182 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
183 void CopyFrom(const AML& from);
184 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
185 void MergeFrom( const AML& from) {
186 AML::MergeImpl(*this, from);
187 }
188 private:
189 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
190 public:
191 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
192 bool IsInitialized() const final;
193
194 size_t ByteSizeLong() const final;
195 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
196 uint8_t* _InternalSerialize(
197 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
198 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
199
200 private:
201 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
202 void SharedDtor();
203 void SetCachedSize(int size) const final;
204 void InternalSwap(AML* other);
205
206 private:
207 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
208 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
209 return "jaiabot.sensor.protobuf.AML";
210 }
211 protected:
212 explicit AML(::PROTOBUF_NAMESPACE_ID::Arena* arena,
213 bool is_message_owned = false);
214 public:
215
216 static const ClassData _class_data_;
217 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
218
219 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
220
221 // nested types ----------------------------------------------------
222
223 typedef AML_Sensor Sensor;
224 static constexpr Sensor DEFAULT =
226 static constexpr Sensor CONDUCTIVITY =
228 static inline bool Sensor_IsValid(int value) {
229 return AML_Sensor_IsValid(value);
230 }
231 static constexpr Sensor Sensor_MIN =
233 static constexpr Sensor Sensor_MAX =
235 static constexpr int Sensor_ARRAYSIZE =
237 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
239 return AML_Sensor_descriptor();
240 }
241 template<typename T>
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.");
246 return AML_Sensor_Name(enum_t_value);
247 }
248 static inline bool Sensor_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
249 Sensor* value) {
250 return AML_Sensor_Parse(name, value);
251 }
252
253 // accessors -------------------------------------------------------
254
255 enum : int {
259 };
260 // optional double conductivity = 2 [(.dccl.field) = {
261 bool has_conductivity() const;
262 private:
263 bool _internal_has_conductivity() const;
264 public:
265 void clear_conductivity();
266 double conductivity() const;
267 void set_conductivity(double value);
268 private:
269 double _internal_conductivity() const;
270 void _internal_set_conductivity(double value);
271 public:
272
273 // optional double temperature = 3 [(.dccl.field) = {
274 bool has_temperature() const;
275 private:
276 bool _internal_has_temperature() const;
277 public:
278 void clear_temperature();
279 double temperature() const;
280 void set_temperature(double value);
281 private:
282 double _internal_temperature() const;
283 void _internal_set_temperature(double value);
284 public:
285
286 // optional .jaiabot.sensor.protobuf.AML.Sensor sensor = 1;
287 bool has_sensor() const;
288 private:
289 bool _internal_has_sensor() const;
290 public:
291 void clear_sensor();
294 private:
295 ::jaiabot::sensor::protobuf::AML_Sensor _internal_sensor() const;
296 void _internal_set_sensor(::jaiabot::sensor::protobuf::AML_Sensor value);
297 public:
298
299 typedef boost::units::conductivity_dimension conductivity_dimension;
300
301 typedef boost::units::unit<conductivity_dimension,boost::units::si::system> conductivity_unit;
302
303 template<typename Quantity >
304 void set_conductivity_with_units(Quantity value_w_units)
305 { set_conductivity(boost::units::quantity<conductivity_unit,double >(value_w_units).value() ); };
306
307 template<typename Quantity >
308 Quantity conductivity_with_units() const
309 { return Quantity(conductivity() * conductivity_unit()); };
310
311 boost::units::quantity< conductivity_unit,double > conductivity_with_units() const
312 { return conductivity_with_units<boost::units::quantity< conductivity_unit,double > >(); };
313
314 typedef boost::units::temperature_dimension temperature_dimension;
315
316 typedef boost::units::absolute<boost::units::unit<temperature_dimension,boost::units::celsius::system> > temperature_unit;
317
318 template<typename Quantity >
319 void set_temperature_with_units(Quantity value_w_units)
320 { set_temperature(boost::units::quantity<temperature_unit,double >(value_w_units).value() ); };
321
322 template<typename Quantity >
323 Quantity temperature_with_units() const
324 { return Quantity(temperature() * temperature_unit()); };
325
326 boost::units::quantity< temperature_unit,double > temperature_with_units() const
327 { return temperature_with_units<boost::units::quantity< temperature_unit,double > >(); };
328
329 // @@protoc_insertion_point(class_scope:jaiabot.sensor.protobuf.AML)
330 private:
331 class _Internal;
332
333 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
334 typedef void InternalArenaConstructable_;
335 typedef void DestructorSkippable_;
336 struct Impl_ {
337 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
338 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
339 double conductivity_;
340 double temperature_;
341 int sensor_;
342 };
343 union { Impl_ _impl_; };
344 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2faml_2eproto;
345};
346// ===================================================================
347
348
349// ===================================================================
350
351#ifdef __GNUC__
352 #pragma GCC diagnostic push
353 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
354#endif // __GNUC__
355// AML
356
357// optional .jaiabot.sensor.protobuf.AML.Sensor sensor = 1;
358inline bool AML::_internal_has_sensor() const {
359 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
360 return value;
361}
362inline bool AML::has_sensor() const {
363 return _internal_has_sensor();
364}
365inline void AML::clear_sensor() {
366 _impl_.sensor_ = 1;
367 _impl_._has_bits_[0] &= ~0x00000004u;
368}
369inline ::jaiabot::sensor::protobuf::AML_Sensor AML::_internal_sensor() const {
370 return static_cast< ::jaiabot::sensor::protobuf::AML_Sensor >(_impl_.sensor_);
371}
372inline ::jaiabot::sensor::protobuf::AML_Sensor AML::sensor() const {
373 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.AML.sensor)
374 return _internal_sensor();
375}
376inline void AML::_internal_set_sensor(::jaiabot::sensor::protobuf::AML_Sensor value) {
378 _impl_._has_bits_[0] |= 0x00000004u;
379 _impl_.sensor_ = value;
380}
382 _internal_set_sensor(value);
383 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.AML.sensor)
384}
385
386// optional double conductivity = 2 [(.dccl.field) = {
387inline bool AML::_internal_has_conductivity() const {
388 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
389 return value;
390}
391inline bool AML::has_conductivity() const {
392 return _internal_has_conductivity();
393}
394inline void AML::clear_conductivity() {
395 _impl_.conductivity_ = 0;
396 _impl_._has_bits_[0] &= ~0x00000001u;
397}
398inline double AML::_internal_conductivity() const {
399 return _impl_.conductivity_;
400}
401inline double AML::conductivity() const {
402 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.AML.conductivity)
403 return _internal_conductivity();
404}
405inline void AML::_internal_set_conductivity(double value) {
406 _impl_._has_bits_[0] |= 0x00000001u;
407 _impl_.conductivity_ = value;
408}
409inline void AML::set_conductivity(double value) {
410 _internal_set_conductivity(value);
411 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.AML.conductivity)
412}
413
414// optional double temperature = 3 [(.dccl.field) = {
415inline bool AML::_internal_has_temperature() const {
416 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
417 return value;
418}
419inline bool AML::has_temperature() const {
420 return _internal_has_temperature();
421}
422inline void AML::clear_temperature() {
423 _impl_.temperature_ = 0;
424 _impl_._has_bits_[0] &= ~0x00000002u;
425}
426inline double AML::_internal_temperature() const {
427 return _impl_.temperature_;
428}
429inline double AML::temperature() const {
430 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.AML.temperature)
431 return _internal_temperature();
432}
433inline void AML::_internal_set_temperature(double value) {
434 _impl_._has_bits_[0] |= 0x00000002u;
435 _impl_.temperature_ = value;
436}
437inline void AML::set_temperature(double value) {
438 _internal_set_temperature(value);
439 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.AML.temperature)
440}
441
442#ifdef __GNUC__
443 #pragma GCC diagnostic pop
444#endif // __GNUC__
445
446// @@protoc_insertion_point(namespace_scope)
447
448} // namespace protobuf
449} // namespace sensor
450} // namespace jaiabot
451
452PROTOBUF_NAMESPACE_OPEN
453
454template <> struct is_proto_enum< ::jaiabot::sensor::protobuf::AML_Sensor> : ::std::true_type {};
455template <>
457 return ::jaiabot::sensor::protobuf::AML_Sensor_descriptor();
458}
459
460PROTOBUF_NAMESPACE_CLOSE
461
462// @@protoc_insertion_point(global_scope)
463
464#include <google/protobuf/port_undef.inc>
465#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2faml_2eproto
void MergeFrom(const AML &from)
Definition aml.pb.h:185
static bool Sensor_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Sensor *value)
Definition aml.pb.h:248
static const std::string & Sensor_Name(T enum_t_value)
Definition aml.pb.h:242
static const AML & default_instance()
Definition aml.pb.h:145
boost::units::temperature_dimension temperature_dimension
Definition aml.pb.h:314
double temperature() const
Definition aml.pb.h:429
static constexpr int Sensor_ARRAYSIZE
Definition aml.pb.h:235
Quantity conductivity_with_units() const
Definition aml.pb.h:308
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Sensor_descriptor()
Definition aml.pb.h:238
static constexpr Sensor Sensor_MIN
Definition aml.pb.h:231
static const ClassData _class_data_
Definition aml.pb.h:216
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_temperature_with_units(Quantity value_w_units)
Definition aml.pb.h:319
void set_conductivity_with_units(Quantity value_w_units)
Definition aml.pb.h:304
double conductivity() const
Definition aml.pb.h:401
static constexpr int kIndexInFileMessages
Definition aml.pb.h:152
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition aml.pb.h:132
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition aml.pb.h:139
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition aml.pb.h:136
bool has_conductivity() const
Definition aml.pb.h:391
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition aml.pb.h:142
::jaiabot::sensor::protobuf::AML_Sensor sensor() const
Definition aml.pb.h:372
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void CopyFrom(const AML &from)
static constexpr Sensor Sensor_MAX
Definition aml.pb.h:233
void set_sensor(::jaiabot::sensor::protobuf::AML_Sensor value)
Definition aml.pb.h:381
size_t ByteSizeLong() const final
bool IsInitialized() const final
int GetCachedSize() const final
Definition aml.pb.h:198
static constexpr Sensor DEFAULT
Definition aml.pb.h:224
void set_conductivity(double value)
Definition aml.pb.h:409
static const AML * internal_default_instance()
Definition aml.pb.h:148
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition aml.pb.h:129
AML & operator=(const AML &from)
Definition aml.pb.h:111
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
friend void swap(AML &a, AML &b)
Definition aml.pb.h:155
void set_temperature(double value)
Definition aml.pb.h:437
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
boost::units::unit< conductivity_dimension, boost::units::si::system > conductivity_unit
Definition aml.pb.h:301
boost::units::absolute< boost::units::unit< temperature_dimension, boost::units::celsius::system > > temperature_unit
Definition aml.pb.h:316
AML * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition aml.pb.h:179
void Swap(AML *other)
Definition aml.pb.h:158
static bool Sensor_IsValid(int value)
Definition aml.pb.h:228
static constexpr Sensor CONDUCTIVITY
Definition aml.pb.h:226
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
Quantity temperature_with_units() const
Definition aml.pb.h:323
boost::units::conductivity_dimension conductivity_dimension
Definition aml.pb.h:299
void UnsafeArenaSwap(AML *other)
Definition aml.pb.h:171
constexpr AML_Sensor AML_Sensor_Sensor_MIN
Definition aml.pb.h:78
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * AML_Sensor_descriptor()
const std::string & AML_Sensor_Name(T enum_t_value)
Definition aml.pb.h:84
constexpr AML_Sensor AML_Sensor_Sensor_MAX
Definition aml.pb.h:79
bool AML_Sensor_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AML_Sensor *value)
Definition aml.pb.h:91
constexpr int AML_Sensor_Sensor_ARRAYSIZE
Definition aml.pb.h:80
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 >()
Definition aml.pb.h:456