JaiaBot  1.20.0
JaiaBot micro-AUV software
blue_robotics__bar30.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: jaiabot/messages/sensor/blue_robotics__bar30.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fblue_5frobotics_5f_5fbar30_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fblue_5frobotics_5f_5fbar30_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
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 3012004 < 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_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
34 #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 // @@protoc_insertion_point(includes)
40 #include <google/protobuf/port_def.inc>
41 #define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fsensor_2fblue_5frobotics_5f_5fbar30_2eproto
42 PROTOBUF_NAMESPACE_OPEN
43 namespace internal {
44 class AnyMetadata;
45 } // namespace internal
46 PROTOBUF_NAMESPACE_CLOSE
47 
48 // Internal implementation detail -- do not use these members.
50  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
51  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
52  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
53  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
54  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
55  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
56  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
57  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
58  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
59 };
60 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fsensor_2fblue_5frobotics_5f_5fbar30_2eproto;
61 namespace jaiabot {
62 namespace sensor {
63 namespace protobuf {
64 class BlueRoboticsBar30;
65 class BlueRoboticsBar30DefaultTypeInternal;
66 extern BlueRoboticsBar30DefaultTypeInternal _BlueRoboticsBar30_default_instance_;
67 } // namespace protobuf
68 } // namespace sensor
69 } // namespace jaiabot
70 PROTOBUF_NAMESPACE_OPEN
71 template<> ::jaiabot::sensor::protobuf::BlueRoboticsBar30* Arena::CreateMaybeMessage<::jaiabot::sensor::protobuf::BlueRoboticsBar30>(Arena*);
72 PROTOBUF_NAMESPACE_CLOSE
73 namespace jaiabot {
74 namespace sensor {
75 namespace protobuf {
76 
77 // ===================================================================
78 
79 class BlueRoboticsBar30 PROTOBUF_FINAL :
80  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.sensor.protobuf.BlueRoboticsBar30) */ {
81  public:
82  inline BlueRoboticsBar30() : BlueRoboticsBar30(nullptr) {};
83  virtual ~BlueRoboticsBar30();
84 
85  BlueRoboticsBar30(const BlueRoboticsBar30& from);
86  BlueRoboticsBar30(BlueRoboticsBar30&& from) noexcept
87  : BlueRoboticsBar30() {
88  *this = ::std::move(from);
89  }
90 
91  inline BlueRoboticsBar30& operator=(const BlueRoboticsBar30& from) {
92  CopyFrom(from);
93  return *this;
94  }
95  inline BlueRoboticsBar30& operator=(BlueRoboticsBar30&& from) noexcept {
96  if (GetArena() == from.GetArena()) {
97  if (this != &from) InternalSwap(&from);
98  } else {
99  CopyFrom(from);
100  }
101  return *this;
102  }
103 
104  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
105  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
106  }
107  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
108  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
109  }
110 
111  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
112  return GetDescriptor();
113  }
114  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
115  return GetMetadataStatic().descriptor;
116  }
117  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
118  return GetMetadataStatic().reflection;
119  }
120  static const BlueRoboticsBar30& default_instance();
121 
122  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
123  static inline const BlueRoboticsBar30* internal_default_instance() {
124  return reinterpret_cast<const BlueRoboticsBar30*>(
126  }
127  static constexpr int kIndexInFileMessages =
128  0;
129 
130  friend void swap(BlueRoboticsBar30& a, BlueRoboticsBar30& b) {
131  a.Swap(&b);
132  }
133  inline void Swap(BlueRoboticsBar30* other) {
134  if (other == this) return;
135  if (GetArena() == other->GetArena()) {
136  InternalSwap(other);
137  } else {
138  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
139  }
140  }
141  void UnsafeArenaSwap(BlueRoboticsBar30* other) {
142  if (other == this) return;
143  GOOGLE_DCHECK(GetArena() == other->GetArena());
144  InternalSwap(other);
145  }
146 
147  // implements Message ----------------------------------------------
148 
149  inline BlueRoboticsBar30* New() const final {
150  return CreateMaybeMessage<BlueRoboticsBar30>(nullptr);
151  }
152 
153  BlueRoboticsBar30* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
154  return CreateMaybeMessage<BlueRoboticsBar30>(arena);
155  }
156  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
157  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
158  void CopyFrom(const BlueRoboticsBar30& from);
159  void MergeFrom(const BlueRoboticsBar30& from);
160  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
161  bool IsInitialized() const final;
162 
163  size_t ByteSizeLong() const final;
164  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
165  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
166  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
167  int GetCachedSize() const final { return _cached_size_.Get(); }
168 
169  private:
170  inline void SharedCtor();
171  inline void SharedDtor();
172  void SetCachedSize(int size) const final;
173  void InternalSwap(BlueRoboticsBar30* other);
174  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
175  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
176  return "jaiabot.sensor.protobuf.BlueRoboticsBar30";
177  }
178  protected:
179  explicit BlueRoboticsBar30(::PROTOBUF_NAMESPACE_ID::Arena* arena);
180  private:
181  static void ArenaDtor(void* object);
182  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
183  public:
184 
185  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
186  private:
187  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
188  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_jaiabot_2fmessages_2fsensor_2fblue_5frobotics_5f_5fbar30_2eproto);
190  }
191 
192  public:
193 
194  // nested types ----------------------------------------------------
195 
196  // accessors -------------------------------------------------------
197 
198  enum : int {
199  kPressureFieldNumber = 1,
200  kTemperatureFieldNumber = 2,
201  };
202  // optional double pressure = 1;
203  bool has_pressure() const;
204  private:
205  bool _internal_has_pressure() const;
206  public:
207  void clear_pressure();
208  double pressure() const;
209  void set_pressure(double value);
210  private:
211  double _internal_pressure() const;
212  void _internal_set_pressure(double value);
213  public:
214 
215  // optional double temperature = 2;
216  bool has_temperature() const;
217  private:
218  bool _internal_has_temperature() const;
219  public:
220  void clear_temperature();
221  double temperature() const;
222  void set_temperature(double value);
223  private:
224  double _internal_temperature() const;
225  void _internal_set_temperature(double value);
226  public:
227 
228  // @@protoc_insertion_point(class_scope:jaiabot.sensor.protobuf.BlueRoboticsBar30)
229  private:
230  class _Internal;
231 
232  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
233  typedef void InternalArenaConstructable_;
234  typedef void DestructorSkippable_;
235  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
236  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
237  double pressure_;
238  double temperature_;
239  friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fblue_5frobotics_5f_5fbar30_2eproto;
240 };
241 // ===================================================================
242 
243 
244 // ===================================================================
245 
246 #ifdef __GNUC__
247  #pragma GCC diagnostic push
248  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
249 #endif // __GNUC__
250 // BlueRoboticsBar30
251 
252 // optional double pressure = 1;
253 inline bool BlueRoboticsBar30::_internal_has_pressure() const {
254  bool value = (_has_bits_[0] & 0x00000001u) != 0;
255  return value;
256 }
257 inline bool BlueRoboticsBar30::has_pressure() const {
258  return _internal_has_pressure();
259 }
260 inline void BlueRoboticsBar30::clear_pressure() {
261  pressure_ = 0;
262  _has_bits_[0] &= ~0x00000001u;
263 }
264 inline double BlueRoboticsBar30::_internal_pressure() const {
265  return pressure_;
266 }
267 inline double BlueRoboticsBar30::pressure() const {
268  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.BlueRoboticsBar30.pressure)
269  return _internal_pressure();
270 }
271 inline void BlueRoboticsBar30::_internal_set_pressure(double value) {
272  _has_bits_[0] |= 0x00000001u;
273  pressure_ = value;
274 }
275 inline void BlueRoboticsBar30::set_pressure(double value) {
276  _internal_set_pressure(value);
277  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.BlueRoboticsBar30.pressure)
278 }
279 
280 // optional double temperature = 2;
281 inline bool BlueRoboticsBar30::_internal_has_temperature() const {
282  bool value = (_has_bits_[0] & 0x00000002u) != 0;
283  return value;
284 }
285 inline bool BlueRoboticsBar30::has_temperature() const {
286  return _internal_has_temperature();
287 }
288 inline void BlueRoboticsBar30::clear_temperature() {
289  temperature_ = 0;
290  _has_bits_[0] &= ~0x00000002u;
291 }
292 inline double BlueRoboticsBar30::_internal_temperature() const {
293  return temperature_;
294 }
295 inline double BlueRoboticsBar30::temperature() const {
296  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.BlueRoboticsBar30.temperature)
297  return _internal_temperature();
298 }
299 inline void BlueRoboticsBar30::_internal_set_temperature(double value) {
300  _has_bits_[0] |= 0x00000002u;
301  temperature_ = value;
302 }
303 inline void BlueRoboticsBar30::set_temperature(double value) {
304  _internal_set_temperature(value);
305  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.BlueRoboticsBar30.temperature)
306 }
307 
308 #ifdef __GNUC__
309  #pragma GCC diagnostic pop
310 #endif // __GNUC__
311 
312 // @@protoc_insertion_point(namespace_scope)
313 
314 } // namespace protobuf
315 } // namespace sensor
316 } // namespace jaiabot
317 
318 // @@protoc_insertion_point(global_scope)
319 
320 #include <google/protobuf/port_undef.inc>
321 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fblue_5frobotics_5f_5fbar30_2eproto
BlueRoboticsBar30DefaultTypeInternal _BlueRoboticsBar30_default_instance_
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fsensor_2fblue_5frobotics_5f_5fbar30_2eproto
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]