JaiaBot  1.19.0
JaiaBot micro-AUV software
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 PROTOBUF_INCLUDED_jaiabot_2fmessages_2ftsys01_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2ftsys01_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
38 
39 #include <boost/units/systems/temperature/celsius.hpp>
40 
41 #include <boost/units/systems/si.hpp>
42 // @@protoc_insertion_point(includes)
43 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2ftsys01_2eproto
44 
46 // Internal implementation detail -- do not use these members.
47 struct TableStruct {
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];
51  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
52  static const ::google::protobuf::internal::SerializationTable serialization_table[];
53  static const ::google::protobuf::uint32 offsets[];
54 };
55 void AddDescriptors();
56 } // namespace protobuf_jaiabot_2fmessages_2ftsys01_2eproto
57 namespace jaiabot {
58 namespace protobuf {
59 class TSYS01Data;
60 class TSYS01DataDefaultTypeInternal;
61 extern TSYS01DataDefaultTypeInternal _TSYS01Data_default_instance_;
62 } // namespace protobuf
63 } // namespace jaiabot
64 namespace google {
65 namespace protobuf {
66 template<> ::jaiabot::protobuf::TSYS01Data* Arena::CreateMaybeMessage<::jaiabot::protobuf::TSYS01Data>(Arena*);
67 } // namespace protobuf
68 } // namespace google
69 namespace jaiabot {
70 namespace protobuf {
71 
72 // ===================================================================
73 
74 class TSYS01Data : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.TSYS01Data) */ {
75  public:
76  TSYS01Data();
77  virtual ~TSYS01Data();
78 
79  TSYS01Data(const TSYS01Data& from);
80 
81  inline TSYS01Data& operator=(const TSYS01Data& from) {
82  CopyFrom(from);
83  return *this;
84  }
85  #if LANG_CXX11
86  TSYS01Data(TSYS01Data&& from) noexcept
87  : TSYS01Data() {
88  *this = ::std::move(from);
89  }
90 
91  inline TSYS01Data& operator=(TSYS01Data&& from) noexcept {
92  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
93  if (this != &from) InternalSwap(&from);
94  } else {
95  CopyFrom(from);
96  }
97  return *this;
98  }
99  #endif
100  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
101  return _internal_metadata_.unknown_fields();
102  }
103  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
104  return _internal_metadata_.mutable_unknown_fields();
105  }
106 
107  static const ::google::protobuf::Descriptor* descriptor();
108  static const TSYS01Data& default_instance();
109 
110  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
111  static inline const TSYS01Data* internal_default_instance() {
112  return reinterpret_cast<const TSYS01Data*>(
114  }
115  static constexpr int kIndexInFileMessages =
116  0;
117 
118  void Swap(TSYS01Data* other);
119  friend void swap(TSYS01Data& a, TSYS01Data& b) {
120  a.Swap(&b);
121  }
122 
123  // implements Message ----------------------------------------------
124 
125  inline TSYS01Data* New() const final {
126  return CreateMaybeMessage<TSYS01Data>(NULL);
127  }
128 
129  TSYS01Data* New(::google::protobuf::Arena* arena) const final {
130  return CreateMaybeMessage<TSYS01Data>(arena);
131  }
132  void CopyFrom(const ::google::protobuf::Message& from) final;
133  void MergeFrom(const ::google::protobuf::Message& from) final;
134  void CopyFrom(const TSYS01Data& from);
135  void MergeFrom(const TSYS01Data& from);
136  void Clear() final;
137  bool IsInitialized() const final;
138 
139  size_t ByteSizeLong() const 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;
146  int GetCachedSize() const final { return _cached_size_.Get(); }
147 
148  private:
149  void SharedCtor();
150  void SharedDtor();
151  void SetCachedSize(int size) const final;
152  void InternalSwap(TSYS01Data* other);
153  private:
154  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
155  return NULL;
156  }
157  inline void* MaybeArenaPtr() const {
158  return NULL;
159  }
160  public:
161 
162  ::google::protobuf::Metadata GetMetadata() const final;
163 
164  // nested types ----------------------------------------------------
165 
166  // accessors -------------------------------------------------------
167 
168  // optional double temperature = 1 [(.dccl.field) = {
169  bool has_temperature() const;
170  void clear_temperature();
171  static const int kTemperatureFieldNumber = 1;
172  double temperature() const;
173  void set_temperature(double value);
174 
176 
177  typedef boost::units::absolute<boost::units::unit<temperature_dimension,boost::units::celsius::system> > temperature_unit;
178 
179  template<typename Quantity >
180  void set_temperature_with_units(Quantity value_w_units)
181  { set_temperature(boost::units::quantity<temperature_unit,double >(value_w_units).value() ); };
182 
183  template<typename Quantity >
184  Quantity temperature_with_units() const
185  { return Quantity(temperature() * temperature_unit()); };
186 
187  boost::units::quantity< temperature_unit,double > temperature_with_units() const
188  { return temperature_with_units<boost::units::quantity< temperature_unit,double > >(); };
189 
190  // @@protoc_insertion_point(class_scope:jaiabot.protobuf.TSYS01Data)
191  private:
192  void set_has_temperature();
193  void clear_has_temperature();
194 
195  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
196  ::google::protobuf::internal::HasBits<1> _has_bits_;
197  mutable ::google::protobuf::internal::CachedSize _cached_size_;
198  double temperature_;
199  friend struct ::protobuf_jaiabot_2fmessages_2ftsys01_2eproto::TableStruct;
200 };
201 // ===================================================================
202 
203 
204 // ===================================================================
205 
206 #ifdef __GNUC__
207  #pragma GCC diagnostic push
208  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
209 #endif // __GNUC__
210 // TSYS01Data
211 
212 // optional double temperature = 1 [(.dccl.field) = {
213 inline bool TSYS01Data::has_temperature() const {
214  return (_has_bits_[0] & 0x00000001u) != 0;
215 }
216 inline void TSYS01Data::set_has_temperature() {
217  _has_bits_[0] |= 0x00000001u;
218 }
219 inline void TSYS01Data::clear_has_temperature() {
220  _has_bits_[0] &= ~0x00000001u;
221 }
223  temperature_ = 0;
224  clear_has_temperature();
225 }
226 inline double TSYS01Data::temperature() const {
227  // @@protoc_insertion_point(field_get:jaiabot.protobuf.TSYS01Data.temperature)
228  return temperature_;
229 }
230 inline void TSYS01Data::set_temperature(double value) {
231  set_has_temperature();
232  temperature_ = value;
233  // @@protoc_insertion_point(field_set:jaiabot.protobuf.TSYS01Data.temperature)
234 }
235 
236 #ifdef __GNUC__
237  #pragma GCC diagnostic pop
238 #endif // __GNUC__
239 
240 // @@protoc_insertion_point(namespace_scope)
241 
242 } // namespace protobuf
243 } // namespace jaiabot
244 
245 // @@protoc_insertion_point(global_scope)
246 
247 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2ftsys01_2eproto
jaiabot::protobuf::TSYS01Data::temperature
double temperature() const
Definition: tsys01.pb.h:226
jaiabot::protobuf::TSYS01Data::IsInitialized
bool IsInitialized() const final
jaiabot::protobuf::TSYS01Data::New
TSYS01Data * New(::google::protobuf::Arena *arena) const final
Definition: tsys01.pb.h:129
jaiabot::protobuf::TSYS01Data::New
TSYS01Data * New() const final
Definition: tsys01.pb.h:125
jaiabot::protobuf::TSYS01Data::Swap
void Swap(TSYS01Data *other)
jaiabot::protobuf::TSYS01Data::mutable_unknown_fields
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: tsys01.pb.h:103
protobuf_jaiabot_2fmessages_2ftsys01_2eproto::TableStruct::schema
static const ::google::protobuf::internal::ParseTable schema[1]
Definition: tsys01.pb.h:50
protobuf_jaiabot_2fmessages_2ftsys01_2eproto::TableStruct::offsets
static const ::google::protobuf::uint32 offsets[]
Definition: tsys01.pb.h:53
jaiabot::protobuf::TSYS01Data::internal_default_instance
static const TSYS01Data * internal_default_instance()
Definition: tsys01.pb.h:111
jaiabot::protobuf::TSYS01Data::has_temperature
bool has_temperature() const
Definition: tsys01.pb.h:213
jaiabot::protobuf::TSYS01Data::MergeFrom
void MergeFrom(const ::google::protobuf::Message &from) final
jaiabot::protobuf::TSYS01Data::default_instance
static const TSYS01Data & default_instance()
boost
Definition: udp_driver.h:51
jaiabot::protobuf::TSYS01Data::clear_temperature
void clear_temperature()
Definition: tsys01.pb.h:222
jaiabot::protobuf::TSYS01Data::kIndexInFileMessages
static constexpr int kIndexInFileMessages
Definition: tsys01.pb.h:115
jaiabot::protobuf::TSYS01Data::swap
friend void swap(TSYS01Data &a, TSYS01Data &b)
Definition: tsys01.pb.h:119
jaiabot::protobuf::TSYS01Data::GetCachedSize
int GetCachedSize() const final
Definition: tsys01.pb.h:146
jaiabot::protobuf::_TSYS01Data_default_instance_
TSYS01DataDefaultTypeInternal _TSYS01Data_default_instance_
protobuf_jaiabot_2fmessages_2ftsys01_2eproto::TableStruct::aux
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
Definition: tsys01.pb.h:49
jaiabot::protobuf::TSYS01Data::TSYS01Data
TSYS01Data()
jaiabot::protobuf::TSYS01Data::CopyFrom
void CopyFrom(const ::google::protobuf::Message &from) final
protobuf_jaiabot_2fmessages_2ftsys01_2eproto::TableStruct::field_metadata
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
Definition: tsys01.pb.h:51
jaiabot::protobuf::TSYS01Data::Clear
void Clear() final
jaiabot::protobuf::TSYS01Data::temperature_dimension
boost::units::temperature_dimension temperature_dimension
Definition: tsys01.pb.h:175
jaiabot::protobuf::TSYS01Data::unknown_fields
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: tsys01.pb.h:100
jaiabot::protobuf::TSYS01Data::~TSYS01Data
virtual ~TSYS01Data()
jaiabot::protobuf::TSYS01Data::SerializeWithCachedSizes
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
protobuf_jaiabot_2fmessages_2ftsys01_2eproto::TableStruct::serialization_table
static const ::google::protobuf::internal::SerializationTable serialization_table[]
Definition: tsys01.pb.h:52
jaiabot::protobuf::TSYS01Data::descriptor
static const ::google::protobuf::Descriptor * descriptor()
protobuf_jaiabot_2fmessages_2ftsys01_2eproto
Definition: tsys01.pb.h:45
jaiabot
Definition: config.pb.h:56
jaiabot::protobuf::TSYS01Data::operator=
TSYS01Data & operator=(const TSYS01Data &from)
Definition: tsys01.pb.h:81
jaiabot::protobuf::TSYS01Data::temperature_unit
boost::units::absolute< boost::units::unit< temperature_dimension, boost::units::celsius::system > > temperature_unit
Definition: tsys01.pb.h:177
jaiabot::protobuf::TSYS01Data::GetMetadata
::google::protobuf::Metadata GetMetadata() const final
jaiabot::protobuf::TSYS01Data::set_temperature_with_units
void set_temperature_with_units(Quantity value_w_units)
Definition: tsys01.pb.h:180
jaiabot::protobuf::TSYS01Data::ByteSizeLong
size_t ByteSizeLong() const final
protobuf_jaiabot_2fmessages_2ftsys01_2eproto::TableStruct::entries
static const ::google::protobuf::internal::ParseTableField entries[]
Definition: tsys01.pb.h:48
jaiabot::protobuf::TSYS01Data::InternalSerializeWithCachedSizesToArray
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const final
jaiabot::protobuf::TSYS01Data::set_temperature
void set_temperature(double value)
Definition: tsys01.pb.h:230
protobuf_jaiabot_2fmessages_2ftsys01_2eproto::TableStruct
Definition: tsys01.pb.h:47
jaiabot::protobuf::TSYS01Data::temperature_with_units
Quantity temperature_with_units() const
Definition: tsys01.pb.h:184
protobuf_jaiabot_2fmessages_2ftsys01_2eproto::AddDescriptors
void AddDescriptors()
jaiabot::protobuf::TSYS01Data::temperature_with_units
boost::units::quantity< temperature_unit, double > temperature_with_units() const
Definition: tsys01.pb.h:187
jaiabot::protobuf::TSYS01Data::MergePartialFromCodedStream
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
jaiabot::protobuf::TSYS01Data::kTemperatureFieldNumber
static const int kTemperatureFieldNumber
Definition: tsys01.pb.h:171
google
Definition: config.pb.h:63
jaiabot::protobuf::TSYS01Data
Definition: tsys01.pb.h:74
jaiabot::protobuf::TSYS01Data::InitAsDefaultInstance
static void InitAsDefaultInstance()