JaiaBot  1.20.0
JaiaBot micro-AUV software
metadata.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: jaiabot/messages/sensor/metadata.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fmetadata_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>
36 #include "jaiabot/messages/sensor/catalog.pb.h"
37 #include "nanopb.pb.h"
38 #include <boost/units/quantity.hpp>
39 #include <boost/units/absolute.hpp>
40 #include <boost/units/dimensionless_type.hpp>
41 #include <boost/units/make_scaled_unit.hpp>
42 
43 #include <boost/units/systems/si.hpp>
44 // @@protoc_insertion_point(includes)
45 #include <google/protobuf/port_def.inc>
46 #define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto
47 PROTOBUF_NAMESPACE_OPEN
48 namespace internal {
49 class AnyMetadata;
50 } // namespace internal
51 PROTOBUF_NAMESPACE_CLOSE
52 
53 // Internal implementation detail -- do not use these members.
55  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
56  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
57  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
58  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
59  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
60  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
61  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
62  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
63  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
64 };
65 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto;
66 namespace jaiabot {
67 namespace sensor {
68 namespace protobuf {
69 class Metadata;
70 class MetadataDefaultTypeInternal;
71 extern MetadataDefaultTypeInternal _Metadata_default_instance_;
72 class Metadata_Calibration;
73 class Metadata_CalibrationDefaultTypeInternal;
74 extern Metadata_CalibrationDefaultTypeInternal _Metadata_Calibration_default_instance_;
75 class Metadata_MetadataValue;
76 class Metadata_MetadataValueDefaultTypeInternal;
77 extern Metadata_MetadataValueDefaultTypeInternal _Metadata_MetadataValue_default_instance_;
78 } // namespace protobuf
79 } // namespace sensor
80 } // namespace jaiabot
81 PROTOBUF_NAMESPACE_OPEN
82 template<> ::jaiabot::sensor::protobuf::Metadata* Arena::CreateMaybeMessage<::jaiabot::sensor::protobuf::Metadata>(Arena*);
83 template<> ::jaiabot::sensor::protobuf::Metadata_Calibration* Arena::CreateMaybeMessage<::jaiabot::sensor::protobuf::Metadata_Calibration>(Arena*);
84 template<> ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Arena::CreateMaybeMessage<::jaiabot::sensor::protobuf::Metadata_MetadataValue>(Arena*);
85 PROTOBUF_NAMESPACE_CLOSE
86 namespace jaiabot {
87 namespace sensor {
88 namespace protobuf {
89 
90 // ===================================================================
91 
92 class Metadata_Calibration PROTOBUF_FINAL :
93  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.sensor.protobuf.Metadata.Calibration) */ {
94  public:
95  inline Metadata_Calibration() : Metadata_Calibration(nullptr) {};
96  virtual ~Metadata_Calibration();
97 
98  Metadata_Calibration(const Metadata_Calibration& from);
99  Metadata_Calibration(Metadata_Calibration&& from) noexcept
100  : Metadata_Calibration() {
101  *this = ::std::move(from);
102  }
103 
104  inline Metadata_Calibration& operator=(const Metadata_Calibration& from) {
105  CopyFrom(from);
106  return *this;
107  }
108  inline Metadata_Calibration& operator=(Metadata_Calibration&& from) noexcept {
109  if (GetArena() == from.GetArena()) {
110  if (this != &from) InternalSwap(&from);
111  } else {
112  CopyFrom(from);
113  }
114  return *this;
115  }
116 
117  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
118  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
119  }
120  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
121  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
122  }
123 
124  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
125  return GetDescriptor();
126  }
127  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
128  return GetMetadataStatic().descriptor;
129  }
130  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
131  return GetMetadataStatic().reflection;
132  }
133  static const Metadata_Calibration& default_instance();
134 
135  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
136  static inline const Metadata_Calibration* internal_default_instance() {
137  return reinterpret_cast<const Metadata_Calibration*>(
139  }
140  static constexpr int kIndexInFileMessages =
141  0;
142 
143  friend void swap(Metadata_Calibration& a, Metadata_Calibration& b) {
144  a.Swap(&b);
145  }
146  inline void Swap(Metadata_Calibration* other) {
147  if (other == this) return;
148  if (GetArena() == other->GetArena()) {
149  InternalSwap(other);
150  } else {
151  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
152  }
153  }
154  void UnsafeArenaSwap(Metadata_Calibration* other) {
155  if (other == this) return;
156  GOOGLE_DCHECK(GetArena() == other->GetArena());
157  InternalSwap(other);
158  }
159 
160  // implements Message ----------------------------------------------
161 
162  inline Metadata_Calibration* New() const final {
163  return CreateMaybeMessage<Metadata_Calibration>(nullptr);
164  }
165 
166  Metadata_Calibration* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
167  return CreateMaybeMessage<Metadata_Calibration>(arena);
168  }
169  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
170  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
171  void CopyFrom(const Metadata_Calibration& from);
172  void MergeFrom(const Metadata_Calibration& from);
173  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
174  bool IsInitialized() const final;
175 
176  size_t ByteSizeLong() const final;
177  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
178  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
179  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
180  int GetCachedSize() const final { return _cached_size_.Get(); }
181 
182  private:
183  inline void SharedCtor();
184  inline void SharedDtor();
185  void SetCachedSize(int size) const final;
186  void InternalSwap(Metadata_Calibration* other);
187  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
188  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
189  return "jaiabot.sensor.protobuf.Metadata.Calibration";
190  }
191  protected:
192  explicit Metadata_Calibration(::PROTOBUF_NAMESPACE_ID::Arena* arena);
193  private:
194  static void ArenaDtor(void* object);
195  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
196  public:
197 
198  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
199  private:
200  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
201  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto);
202  return ::descriptor_table_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto.file_level_metadata[kIndexInFileMessages];
203  }
204 
205  public:
206 
207  // nested types ----------------------------------------------------
208 
209  // accessors -------------------------------------------------------
210 
211  enum : int {
212  kTimePerformedFieldNumber = 1,
213  kTimeToRecalibrateFieldNumber = 2,
214  kConfirmationFieldNumber = 3,
215  };
216  // optional uint64 time_performed = 1 [(.dccl.field) = {
217  bool has_time_performed() const;
218  private:
219  bool _internal_has_time_performed() const;
220  public:
221  void clear_time_performed();
222  ::PROTOBUF_NAMESPACE_ID::uint64 time_performed() const;
223  void set_time_performed(::PROTOBUF_NAMESPACE_ID::uint64 value);
224  private:
225  ::PROTOBUF_NAMESPACE_ID::uint64 _internal_time_performed() const;
226  void _internal_set_time_performed(::PROTOBUF_NAMESPACE_ID::uint64 value);
227  public:
228 
229  // optional uint64 time_to_recalibrate = 2 [(.dccl.field) = {
230  bool has_time_to_recalibrate() const;
231  private:
232  bool _internal_has_time_to_recalibrate() const;
233  public:
234  void clear_time_to_recalibrate();
235  ::PROTOBUF_NAMESPACE_ID::uint64 time_to_recalibrate() const;
236  void set_time_to_recalibrate(::PROTOBUF_NAMESPACE_ID::uint64 value);
237  private:
238  ::PROTOBUF_NAMESPACE_ID::uint64 _internal_time_to_recalibrate() const;
239  void _internal_set_time_to_recalibrate(::PROTOBUF_NAMESPACE_ID::uint64 value);
240  public:
241 
242  // optional int32 confirmation = 3;
243  bool has_confirmation() const;
244  private:
245  bool _internal_has_confirmation() const;
246  public:
247  void clear_confirmation();
248  ::PROTOBUF_NAMESPACE_ID::int32 confirmation() const;
249  void set_confirmation(::PROTOBUF_NAMESPACE_ID::int32 value);
250  private:
251  ::PROTOBUF_NAMESPACE_ID::int32 _internal_confirmation() const;
252  void _internal_set_confirmation(::PROTOBUF_NAMESPACE_ID::int32 value);
253  public:
254 
255  typedef boost::units::time_dimension time_performed_dimension;
256 
257  typedef boost::units::make_scaled_unit<boost::units::unit<time_performed_dimension,boost::units::si::system> , boost::units::scale<10, boost::units::static_rational<-6> > >::type time_performed_unit;
258 
259  template<typename Quantity >
260  void set_time_performed_with_units(Quantity value_w_units)
261  { set_time_performed(boost::units::quantity<time_performed_unit,google::protobuf::uint64 >(value_w_units).value() ); };
262 
263  template<typename Quantity >
264  Quantity time_performed_with_units() const
265  { return Quantity(time_performed() * time_performed_unit()); };
266 
267  boost::units::quantity< time_performed_unit,google::protobuf::uint64 > time_performed_with_units() const
268  { return time_performed_with_units<boost::units::quantity< time_performed_unit,google::protobuf::uint64 > >(); };
269 
270  typedef boost::units::time_dimension time_to_recalibrate_dimension;
271 
272  typedef boost::units::make_scaled_unit<boost::units::unit<time_to_recalibrate_dimension,boost::units::si::system> , boost::units::scale<10, boost::units::static_rational<-6> > >::type time_to_recalibrate_unit;
273 
274  template<typename Quantity >
275  void set_time_to_recalibrate_with_units(Quantity value_w_units)
276  { set_time_to_recalibrate(boost::units::quantity<time_to_recalibrate_unit,google::protobuf::uint64 >(value_w_units).value() ); };
277 
278  template<typename Quantity >
279  Quantity time_to_recalibrate_with_units() const
280  { return Quantity(time_to_recalibrate() * time_to_recalibrate_unit()); };
281 
282  boost::units::quantity< time_to_recalibrate_unit,google::protobuf::uint64 > time_to_recalibrate_with_units() const
283  { return time_to_recalibrate_with_units<boost::units::quantity< time_to_recalibrate_unit,google::protobuf::uint64 > >(); };
284 
285  // @@protoc_insertion_point(class_scope:jaiabot.sensor.protobuf.Metadata.Calibration)
286  private:
287  class _Internal;
288 
289  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
290  typedef void InternalArenaConstructable_;
291  typedef void DestructorSkippable_;
292  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
293  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
294  ::PROTOBUF_NAMESPACE_ID::uint64 time_performed_;
295  ::PROTOBUF_NAMESPACE_ID::uint64 time_to_recalibrate_;
296  ::PROTOBUF_NAMESPACE_ID::int32 confirmation_;
297  friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto;
298 };
299 // -------------------------------------------------------------------
300 
301 class Metadata_MetadataValue PROTOBUF_FINAL :
302  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.sensor.protobuf.Metadata.MetadataValue) */ {
303  public:
304  inline Metadata_MetadataValue() : Metadata_MetadataValue(nullptr) {};
305  virtual ~Metadata_MetadataValue();
306 
307  Metadata_MetadataValue(const Metadata_MetadataValue& from);
308  Metadata_MetadataValue(Metadata_MetadataValue&& from) noexcept
309  : Metadata_MetadataValue() {
310  *this = ::std::move(from);
311  }
312 
313  inline Metadata_MetadataValue& operator=(const Metadata_MetadataValue& from) {
314  CopyFrom(from);
315  return *this;
316  }
317  inline Metadata_MetadataValue& operator=(Metadata_MetadataValue&& from) noexcept {
318  if (GetArena() == from.GetArena()) {
319  if (this != &from) InternalSwap(&from);
320  } else {
321  CopyFrom(from);
322  }
323  return *this;
324  }
325 
326  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
327  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
328  }
329  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
330  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
331  }
332 
333  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
334  return GetDescriptor();
335  }
336  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
337  return GetMetadataStatic().descriptor;
338  }
339  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
340  return GetMetadataStatic().reflection;
341  }
342  static const Metadata_MetadataValue& default_instance();
343 
344  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
345  static inline const Metadata_MetadataValue* internal_default_instance() {
346  return reinterpret_cast<const Metadata_MetadataValue*>(
348  }
349  static constexpr int kIndexInFileMessages =
350  1;
351 
352  friend void swap(Metadata_MetadataValue& a, Metadata_MetadataValue& b) {
353  a.Swap(&b);
354  }
355  inline void Swap(Metadata_MetadataValue* other) {
356  if (other == this) return;
357  if (GetArena() == other->GetArena()) {
358  InternalSwap(other);
359  } else {
360  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
361  }
362  }
363  void UnsafeArenaSwap(Metadata_MetadataValue* other) {
364  if (other == this) return;
365  GOOGLE_DCHECK(GetArena() == other->GetArena());
366  InternalSwap(other);
367  }
368 
369  // implements Message ----------------------------------------------
370 
371  inline Metadata_MetadataValue* New() const final {
372  return CreateMaybeMessage<Metadata_MetadataValue>(nullptr);
373  }
374 
375  Metadata_MetadataValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
376  return CreateMaybeMessage<Metadata_MetadataValue>(arena);
377  }
378  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
379  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
380  void CopyFrom(const Metadata_MetadataValue& from);
381  void MergeFrom(const Metadata_MetadataValue& from);
382  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
383  bool IsInitialized() const final;
384 
385  size_t ByteSizeLong() const final;
386  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
387  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
388  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
389  int GetCachedSize() const final { return _cached_size_.Get(); }
390 
391  private:
392  inline void SharedCtor();
393  inline void SharedDtor();
394  void SetCachedSize(int size) const final;
395  void InternalSwap(Metadata_MetadataValue* other);
396  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
397  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
398  return "jaiabot.sensor.protobuf.Metadata.MetadataValue";
399  }
400  protected:
401  explicit Metadata_MetadataValue(::PROTOBUF_NAMESPACE_ID::Arena* arena);
402  private:
403  static void ArenaDtor(void* object);
404  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
405  public:
406 
407  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
408  private:
409  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
410  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto);
411  return ::descriptor_table_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto.file_level_metadata[kIndexInFileMessages];
412  }
413 
414  public:
415 
416  // nested types ----------------------------------------------------
417 
418  // accessors -------------------------------------------------------
419 
420  enum : int {
421  kKeyFieldNumber = 1,
422  kValueFieldNumber = 2,
423  };
424  // required string key = 1 [(.nanopb) = {
425  bool has_key() const;
426  private:
427  bool _internal_has_key() const;
428  public:
429  void clear_key();
430  const std::string& key() const;
431  void set_key(const std::string& value);
432  void set_key(std::string&& value);
433  void set_key(const char* value);
434  void set_key(const char* value, size_t size);
435  std::string* mutable_key();
436  std::string* release_key();
437  void set_allocated_key(std::string* key);
438  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
439  " string fields are deprecated and will be removed in a"
440  " future release.")
441  std::string* unsafe_arena_release_key();
442  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
443  " string fields are deprecated and will be removed in a"
444  " future release.")
445  void unsafe_arena_set_allocated_key(
446  std::string* key);
447  private:
448  const std::string& _internal_key() const;
449  void _internal_set_key(const std::string& value);
450  std::string* _internal_mutable_key();
451  public:
452 
453  // required string value = 2 [(.nanopb) = {
454  bool has_value() const;
455  private:
456  bool _internal_has_value() const;
457  public:
458  void clear_value();
459  const std::string& value() const;
460  void set_value(const std::string& value);
461  void set_value(std::string&& value);
462  void set_value(const char* value);
463  void set_value(const char* value, size_t size);
464  std::string* mutable_value();
465  std::string* release_value();
466  void set_allocated_value(std::string* value);
467  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
468  " string fields are deprecated and will be removed in a"
469  " future release.")
470  std::string* unsafe_arena_release_value();
471  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
472  " string fields are deprecated and will be removed in a"
473  " future release.")
474  void unsafe_arena_set_allocated_value(
475  std::string* value);
476  private:
477  const std::string& _internal_value() const;
478  void _internal_set_value(const std::string& value);
479  std::string* _internal_mutable_value();
480  public:
481 
482  // @@protoc_insertion_point(class_scope:jaiabot.sensor.protobuf.Metadata.MetadataValue)
483  private:
484  class _Internal;
485 
486  // helper for ByteSizeLong()
487  size_t RequiredFieldsByteSizeFallback() const;
488 
489  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
490  typedef void InternalArenaConstructable_;
491  typedef void DestructorSkippable_;
492  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
493  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
494  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_;
495  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_;
497 };
498 // -------------------------------------------------------------------
499 
500 class Metadata PROTOBUF_FINAL :
501  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.sensor.protobuf.Metadata) */ {
502  public:
503  inline Metadata() : Metadata(nullptr) {};
504  virtual ~Metadata();
505 
506  Metadata(const Metadata& from);
507  Metadata(Metadata&& from) noexcept
508  : Metadata() {
509  *this = ::std::move(from);
510  }
511 
512  inline Metadata& operator=(const Metadata& from) {
513  CopyFrom(from);
514  return *this;
515  }
516  inline Metadata& operator=(Metadata&& from) noexcept {
517  if (GetArena() == from.GetArena()) {
518  if (this != &from) InternalSwap(&from);
519  } else {
520  CopyFrom(from);
521  }
522  return *this;
523  }
524 
525  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
526  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
527  }
528  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
529  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
530  }
531 
532  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
533  return GetDescriptor();
534  }
535  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
536  return GetMetadataStatic().descriptor;
537  }
538  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
539  return GetMetadataStatic().reflection;
540  }
541  static const Metadata& default_instance();
542 
543  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
544  static inline const Metadata* internal_default_instance() {
545  return reinterpret_cast<const Metadata*>(
547  }
548  static constexpr int kIndexInFileMessages =
549  2;
550 
551  friend void swap(Metadata& a, Metadata& b) {
552  a.Swap(&b);
553  }
554  inline void Swap(Metadata* other) {
555  if (other == this) return;
556  if (GetArena() == other->GetArena()) {
557  InternalSwap(other);
558  } else {
559  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
560  }
561  }
562  void UnsafeArenaSwap(Metadata* other) {
563  if (other == this) return;
564  GOOGLE_DCHECK(GetArena() == other->GetArena());
565  InternalSwap(other);
566  }
567 
568  // implements Message ----------------------------------------------
569 
570  inline Metadata* New() const final {
571  return CreateMaybeMessage<Metadata>(nullptr);
572  }
573 
574  Metadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
575  return CreateMaybeMessage<Metadata>(arena);
576  }
577  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
578  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
579  void CopyFrom(const Metadata& from);
580  void MergeFrom(const Metadata& from);
581  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
582  bool IsInitialized() const final;
583 
584  size_t ByteSizeLong() const final;
585  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
586  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
587  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
588  int GetCachedSize() const final { return _cached_size_.Get(); }
589 
590  private:
591  inline void SharedCtor();
592  inline void SharedDtor();
593  void SetCachedSize(int size) const final;
594  void InternalSwap(Metadata* other);
595  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
596  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
597  return "jaiabot.sensor.protobuf.Metadata";
598  }
599  protected:
600  explicit Metadata(::PROTOBUF_NAMESPACE_ID::Arena* arena);
601  private:
602  static void ArenaDtor(void* object);
603  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
604  public:
605 
606  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
607  private:
608  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
609  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto);
610  return ::descriptor_table_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto.file_level_metadata[kIndexInFileMessages];
611  }
612 
613  public:
614 
615  // nested types ----------------------------------------------------
616 
617  typedef Metadata_Calibration Calibration;
618  typedef Metadata_MetadataValue MetadataValue;
619 
620  // accessors -------------------------------------------------------
621 
622  enum : int {
623  kMetadataFieldNumber = 5,
624  kCalibrationFieldNumber = 3,
625  kTimePurchasedFieldNumber = 4,
626  kSensorVersionFieldNumber = 2,
627  kPayloadBoardVersionFieldNumber = 6,
628  kInitFailedFieldNumber = 7,
629  kSensorFieldNumber = 1,
630  };
631  // repeated .jaiabot.sensor.protobuf.Metadata.MetadataValue metadata = 5 [(.nanopb) = {
632  int metadata_size() const;
633  private:
634  int _internal_metadata_size() const;
635  public:
636  void clear_metadata();
637  ::jaiabot::sensor::protobuf::Metadata_MetadataValue* mutable_metadata(int index);
638  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >*
639  mutable_metadata();
640  private:
641  const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& _internal_metadata(int index) const;
642  ::jaiabot::sensor::protobuf::Metadata_MetadataValue* _internal_add_metadata();
643  public:
644  const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& metadata(int index) const;
645  ::jaiabot::sensor::protobuf::Metadata_MetadataValue* add_metadata();
646  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >&
647  metadata() const;
648 
649  // optional .jaiabot.sensor.protobuf.Metadata.Calibration calibration = 3;
650  bool has_calibration() const;
651  private:
652  bool _internal_has_calibration() const;
653  public:
654  void clear_calibration();
655  const ::jaiabot::sensor::protobuf::Metadata_Calibration& calibration() const;
656  ::jaiabot::sensor::protobuf::Metadata_Calibration* release_calibration();
657  ::jaiabot::sensor::protobuf::Metadata_Calibration* mutable_calibration();
658  void set_allocated_calibration(::jaiabot::sensor::protobuf::Metadata_Calibration* calibration);
659  private:
660  const ::jaiabot::sensor::protobuf::Metadata_Calibration& _internal_calibration() const;
661  ::jaiabot::sensor::protobuf::Metadata_Calibration* _internal_mutable_calibration();
662  public:
663  void unsafe_arena_set_allocated_calibration(
664  ::jaiabot::sensor::protobuf::Metadata_Calibration* calibration);
665  ::jaiabot::sensor::protobuf::Metadata_Calibration* unsafe_arena_release_calibration();
666 
667  // optional uint64 time_purchased = 4 [(.dccl.field) = {
668  bool has_time_purchased() const;
669  private:
670  bool _internal_has_time_purchased() const;
671  public:
672  void clear_time_purchased();
673  ::PROTOBUF_NAMESPACE_ID::uint64 time_purchased() const;
674  void set_time_purchased(::PROTOBUF_NAMESPACE_ID::uint64 value);
675  private:
676  ::PROTOBUF_NAMESPACE_ID::uint64 _internal_time_purchased() const;
677  void _internal_set_time_purchased(::PROTOBUF_NAMESPACE_ID::uint64 value);
678  public:
679 
680  // optional int32 sensor_version = 2;
681  bool has_sensor_version() const;
682  private:
683  bool _internal_has_sensor_version() const;
684  public:
685  void clear_sensor_version();
686  ::PROTOBUF_NAMESPACE_ID::int32 sensor_version() const;
687  void set_sensor_version(::PROTOBUF_NAMESPACE_ID::int32 value);
688  private:
689  ::PROTOBUF_NAMESPACE_ID::int32 _internal_sensor_version() const;
690  void _internal_set_sensor_version(::PROTOBUF_NAMESPACE_ID::int32 value);
691  public:
692 
693  // optional int32 payload_board_version = 6;
694  bool has_payload_board_version() const;
695  private:
696  bool _internal_has_payload_board_version() const;
697  public:
698  void clear_payload_board_version();
699  ::PROTOBUF_NAMESPACE_ID::int32 payload_board_version() const;
700  void set_payload_board_version(::PROTOBUF_NAMESPACE_ID::int32 value);
701  private:
702  ::PROTOBUF_NAMESPACE_ID::int32 _internal_payload_board_version() const;
703  void _internal_set_payload_board_version(::PROTOBUF_NAMESPACE_ID::int32 value);
704  public:
705 
706  // optional bool init_failed = 7;
707  bool has_init_failed() const;
708  private:
709  bool _internal_has_init_failed() const;
710  public:
711  void clear_init_failed();
712  bool init_failed() const;
713  void set_init_failed(bool value);
714  private:
715  bool _internal_init_failed() const;
716  void _internal_set_init_failed(bool value);
717  public:
718 
719  // required .jaiabot.sensor.protobuf.Sensor sensor = 1;
720  bool has_sensor() const;
721  private:
722  bool _internal_has_sensor() const;
723  public:
724  void clear_sensor();
726  void set_sensor(::jaiabot::sensor::protobuf::Sensor value);
727  private:
728  ::jaiabot::sensor::protobuf::Sensor _internal_sensor() const;
729  void _internal_set_sensor(::jaiabot::sensor::protobuf::Sensor value);
730  public:
731 
732  typedef boost::units::time_dimension time_purchased_dimension;
733 
734  typedef boost::units::make_scaled_unit<boost::units::unit<time_purchased_dimension,boost::units::si::system> , boost::units::scale<10, boost::units::static_rational<-6> > >::type time_purchased_unit;
735 
736  template<typename Quantity >
737  void set_time_purchased_with_units(Quantity value_w_units)
738  { set_time_purchased(boost::units::quantity<time_purchased_unit,google::protobuf::uint64 >(value_w_units).value() ); };
739 
740  template<typename Quantity >
741  Quantity time_purchased_with_units() const
742  { return Quantity(time_purchased() * time_purchased_unit()); };
743 
744  boost::units::quantity< time_purchased_unit,google::protobuf::uint64 > time_purchased_with_units() const
745  { return time_purchased_with_units<boost::units::quantity< time_purchased_unit,google::protobuf::uint64 > >(); };
746 
747  // @@protoc_insertion_point(class_scope:jaiabot.sensor.protobuf.Metadata)
748  private:
749  class _Internal;
750 
751  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
752  typedef void InternalArenaConstructable_;
753  typedef void DestructorSkippable_;
754  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
755  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
756  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue > metadata_;
757  ::jaiabot::sensor::protobuf::Metadata_Calibration* calibration_;
758  ::PROTOBUF_NAMESPACE_ID::uint64 time_purchased_;
759  ::PROTOBUF_NAMESPACE_ID::int32 sensor_version_;
760  ::PROTOBUF_NAMESPACE_ID::int32 payload_board_version_;
761  bool init_failed_;
762  int sensor_;
763  friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto;
764 };
765 // ===================================================================
766 
767 
768 // ===================================================================
769 
770 #ifdef __GNUC__
771  #pragma GCC diagnostic push
772  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
773 #endif // __GNUC__
774 // Metadata_Calibration
775 
776 // optional uint64 time_performed = 1 [(.dccl.field) = {
777 inline bool Metadata_Calibration::_internal_has_time_performed() const {
778  bool value = (_has_bits_[0] & 0x00000001u) != 0;
779  return value;
780 }
781 inline bool Metadata_Calibration::has_time_performed() const {
782  return _internal_has_time_performed();
783 }
784 inline void Metadata_Calibration::clear_time_performed() {
785  time_performed_ = PROTOBUF_ULONGLONG(0);
786  _has_bits_[0] &= ~0x00000001u;
787 }
788 inline ::PROTOBUF_NAMESPACE_ID::uint64 Metadata_Calibration::_internal_time_performed() const {
789  return time_performed_;
790 }
791 inline ::PROTOBUF_NAMESPACE_ID::uint64 Metadata_Calibration::time_performed() const {
792  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.Calibration.time_performed)
793  return _internal_time_performed();
794 }
795 inline void Metadata_Calibration::_internal_set_time_performed(::PROTOBUF_NAMESPACE_ID::uint64 value) {
796  _has_bits_[0] |= 0x00000001u;
797  time_performed_ = value;
798 }
799 inline void Metadata_Calibration::set_time_performed(::PROTOBUF_NAMESPACE_ID::uint64 value) {
800  _internal_set_time_performed(value);
801  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.Calibration.time_performed)
802 }
803 
804 // optional uint64 time_to_recalibrate = 2 [(.dccl.field) = {
805 inline bool Metadata_Calibration::_internal_has_time_to_recalibrate() const {
806  bool value = (_has_bits_[0] & 0x00000002u) != 0;
807  return value;
808 }
809 inline bool Metadata_Calibration::has_time_to_recalibrate() const {
810  return _internal_has_time_to_recalibrate();
811 }
812 inline void Metadata_Calibration::clear_time_to_recalibrate() {
813  time_to_recalibrate_ = PROTOBUF_ULONGLONG(0);
814  _has_bits_[0] &= ~0x00000002u;
815 }
816 inline ::PROTOBUF_NAMESPACE_ID::uint64 Metadata_Calibration::_internal_time_to_recalibrate() const {
817  return time_to_recalibrate_;
818 }
819 inline ::PROTOBUF_NAMESPACE_ID::uint64 Metadata_Calibration::time_to_recalibrate() const {
820  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.Calibration.time_to_recalibrate)
821  return _internal_time_to_recalibrate();
822 }
823 inline void Metadata_Calibration::_internal_set_time_to_recalibrate(::PROTOBUF_NAMESPACE_ID::uint64 value) {
824  _has_bits_[0] |= 0x00000002u;
825  time_to_recalibrate_ = value;
826 }
827 inline void Metadata_Calibration::set_time_to_recalibrate(::PROTOBUF_NAMESPACE_ID::uint64 value) {
828  _internal_set_time_to_recalibrate(value);
829  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.Calibration.time_to_recalibrate)
830 }
831 
832 // optional int32 confirmation = 3;
833 inline bool Metadata_Calibration::_internal_has_confirmation() const {
834  bool value = (_has_bits_[0] & 0x00000004u) != 0;
835  return value;
836 }
837 inline bool Metadata_Calibration::has_confirmation() const {
838  return _internal_has_confirmation();
839 }
840 inline void Metadata_Calibration::clear_confirmation() {
841  confirmation_ = 0;
842  _has_bits_[0] &= ~0x00000004u;
843 }
844 inline ::PROTOBUF_NAMESPACE_ID::int32 Metadata_Calibration::_internal_confirmation() const {
845  return confirmation_;
846 }
847 inline ::PROTOBUF_NAMESPACE_ID::int32 Metadata_Calibration::confirmation() const {
848  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.Calibration.confirmation)
849  return _internal_confirmation();
850 }
851 inline void Metadata_Calibration::_internal_set_confirmation(::PROTOBUF_NAMESPACE_ID::int32 value) {
852  _has_bits_[0] |= 0x00000004u;
853  confirmation_ = value;
854 }
855 inline void Metadata_Calibration::set_confirmation(::PROTOBUF_NAMESPACE_ID::int32 value) {
856  _internal_set_confirmation(value);
857  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.Calibration.confirmation)
858 }
859 
860 // -------------------------------------------------------------------
861 
862 // Metadata_MetadataValue
863 
864 // required string key = 1 [(.nanopb) = {
865 inline bool Metadata_MetadataValue::_internal_has_key() const {
866  bool value = (_has_bits_[0] & 0x00000001u) != 0;
867  return value;
868 }
869 inline bool Metadata_MetadataValue::has_key() const {
870  return _internal_has_key();
871 }
872 inline void Metadata_MetadataValue::clear_key() {
873  key_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
874  _has_bits_[0] &= ~0x00000001u;
875 }
876 inline const std::string& Metadata_MetadataValue::key() const {
877  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
878  return _internal_key();
879 }
880 inline void Metadata_MetadataValue::set_key(const std::string& value) {
881  _internal_set_key(value);
882  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
883 }
884 inline std::string* Metadata_MetadataValue::mutable_key() {
885  // @@protoc_insertion_point(field_mutable:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
886  return _internal_mutable_key();
887 }
888 inline const std::string& Metadata_MetadataValue::_internal_key() const {
889  return key_.Get();
890 }
891 inline void Metadata_MetadataValue::_internal_set_key(const std::string& value) {
892  _has_bits_[0] |= 0x00000001u;
893  key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
894 }
895 inline void Metadata_MetadataValue::set_key(std::string&& value) {
896  _has_bits_[0] |= 0x00000001u;
897  key_.Set(
898  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
899  // @@protoc_insertion_point(field_set_rvalue:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
900 }
901 inline void Metadata_MetadataValue::set_key(const char* value) {
902  GOOGLE_DCHECK(value != nullptr);
903  _has_bits_[0] |= 0x00000001u;
904  key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
905  GetArena());
906  // @@protoc_insertion_point(field_set_char:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
907 }
908 inline void Metadata_MetadataValue::set_key(const char* value,
909  size_t size) {
910  _has_bits_[0] |= 0x00000001u;
911  key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
912  reinterpret_cast<const char*>(value), size), GetArena());
913  // @@protoc_insertion_point(field_set_pointer:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
914 }
915 inline std::string* Metadata_MetadataValue::_internal_mutable_key() {
916  _has_bits_[0] |= 0x00000001u;
917  return key_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
918 }
919 inline std::string* Metadata_MetadataValue::release_key() {
920  // @@protoc_insertion_point(field_release:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
921  if (!_internal_has_key()) {
922  return nullptr;
923  }
924  _has_bits_[0] &= ~0x00000001u;
925  return key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
926 }
927 inline void Metadata_MetadataValue::set_allocated_key(std::string* key) {
928  if (key != nullptr) {
929  _has_bits_[0] |= 0x00000001u;
930  } else {
931  _has_bits_[0] &= ~0x00000001u;
932  }
933  key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key,
934  GetArena());
935  // @@protoc_insertion_point(field_set_allocated:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
936 }
937 inline std::string* Metadata_MetadataValue::unsafe_arena_release_key() {
938  // @@protoc_insertion_point(field_unsafe_arena_release:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
939  GOOGLE_DCHECK(GetArena() != nullptr);
940  _has_bits_[0] &= ~0x00000001u;
941  return key_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
942  GetArena());
943 }
944 inline void Metadata_MetadataValue::unsafe_arena_set_allocated_key(
945  std::string* key) {
946  GOOGLE_DCHECK(GetArena() != nullptr);
947  if (key != nullptr) {
948  _has_bits_[0] |= 0x00000001u;
949  } else {
950  _has_bits_[0] &= ~0x00000001u;
951  }
952  key_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
953  key, GetArena());
954  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
955 }
956 
957 // required string value = 2 [(.nanopb) = {
958 inline bool Metadata_MetadataValue::_internal_has_value() const {
959  bool value = (_has_bits_[0] & 0x00000002u) != 0;
960  return value;
961 }
962 inline bool Metadata_MetadataValue::has_value() const {
963  return _internal_has_value();
964 }
965 inline void Metadata_MetadataValue::clear_value() {
966  value_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
967  _has_bits_[0] &= ~0x00000002u;
968 }
969 inline const std::string& Metadata_MetadataValue::value() const {
970  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
971  return _internal_value();
972 }
973 inline void Metadata_MetadataValue::set_value(const std::string& value) {
974  _internal_set_value(value);
975  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
976 }
977 inline std::string* Metadata_MetadataValue::mutable_value() {
978  // @@protoc_insertion_point(field_mutable:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
979  return _internal_mutable_value();
980 }
981 inline const std::string& Metadata_MetadataValue::_internal_value() const {
982  return value_.Get();
983 }
984 inline void Metadata_MetadataValue::_internal_set_value(const std::string& value) {
985  _has_bits_[0] |= 0x00000002u;
986  value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
987 }
988 inline void Metadata_MetadataValue::set_value(std::string&& value) {
989  _has_bits_[0] |= 0x00000002u;
990  value_.Set(
991  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
992  // @@protoc_insertion_point(field_set_rvalue:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
993 }
994 inline void Metadata_MetadataValue::set_value(const char* value) {
995  GOOGLE_DCHECK(value != nullptr);
996  _has_bits_[0] |= 0x00000002u;
997  value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
998  GetArena());
999  // @@protoc_insertion_point(field_set_char:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
1000 }
1001 inline void Metadata_MetadataValue::set_value(const char* value,
1002  size_t size) {
1003  _has_bits_[0] |= 0x00000002u;
1004  value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1005  reinterpret_cast<const char*>(value), size), GetArena());
1006  // @@protoc_insertion_point(field_set_pointer:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
1007 }
1008 inline std::string* Metadata_MetadataValue::_internal_mutable_value() {
1009  _has_bits_[0] |= 0x00000002u;
1010  return value_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1011 }
1012 inline std::string* Metadata_MetadataValue::release_value() {
1013  // @@protoc_insertion_point(field_release:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
1014  if (!_internal_has_value()) {
1015  return nullptr;
1016  }
1017  _has_bits_[0] &= ~0x00000002u;
1018  return value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1019 }
1020 inline void Metadata_MetadataValue::set_allocated_value(std::string* value) {
1021  if (value != nullptr) {
1022  _has_bits_[0] |= 0x00000002u;
1023  } else {
1024  _has_bits_[0] &= ~0x00000002u;
1025  }
1026  value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value,
1027  GetArena());
1028  // @@protoc_insertion_point(field_set_allocated:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
1029 }
1030 inline std::string* Metadata_MetadataValue::unsafe_arena_release_value() {
1031  // @@protoc_insertion_point(field_unsafe_arena_release:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
1032  GOOGLE_DCHECK(GetArena() != nullptr);
1033  _has_bits_[0] &= ~0x00000002u;
1034  return value_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1035  GetArena());
1036 }
1037 inline void Metadata_MetadataValue::unsafe_arena_set_allocated_value(
1038  std::string* value) {
1039  GOOGLE_DCHECK(GetArena() != nullptr);
1040  if (value != nullptr) {
1041  _has_bits_[0] |= 0x00000002u;
1042  } else {
1043  _has_bits_[0] &= ~0x00000002u;
1044  }
1045  value_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1046  value, GetArena());
1047  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
1048 }
1049 
1050 // -------------------------------------------------------------------
1051 
1052 // Metadata
1053 
1054 // required .jaiabot.sensor.protobuf.Sensor sensor = 1;
1055 inline bool Metadata::_internal_has_sensor() const {
1056  bool value = (_has_bits_[0] & 0x00000020u) != 0;
1057  return value;
1058 }
1059 inline bool Metadata::has_sensor() const {
1060  return _internal_has_sensor();
1061 }
1062 inline void Metadata::clear_sensor() {
1063  sensor_ = 1;
1064  _has_bits_[0] &= ~0x00000020u;
1065 }
1066 inline ::jaiabot::sensor::protobuf::Sensor Metadata::_internal_sensor() const {
1067  return static_cast< ::jaiabot::sensor::protobuf::Sensor >(sensor_);
1068 }
1069 inline ::jaiabot::sensor::protobuf::Sensor Metadata::sensor() const {
1070  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.sensor)
1071  return _internal_sensor();
1072 }
1073 inline void Metadata::_internal_set_sensor(::jaiabot::sensor::protobuf::Sensor value) {
1075  _has_bits_[0] |= 0x00000020u;
1076  sensor_ = value;
1077 }
1078 inline void Metadata::set_sensor(::jaiabot::sensor::protobuf::Sensor value) {
1079  _internal_set_sensor(value);
1080  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.sensor)
1081 }
1082 
1083 // optional int32 sensor_version = 2;
1084 inline bool Metadata::_internal_has_sensor_version() const {
1085  bool value = (_has_bits_[0] & 0x00000004u) != 0;
1086  return value;
1087 }
1088 inline bool Metadata::has_sensor_version() const {
1089  return _internal_has_sensor_version();
1090 }
1091 inline void Metadata::clear_sensor_version() {
1092  sensor_version_ = 0;
1093  _has_bits_[0] &= ~0x00000004u;
1094 }
1095 inline ::PROTOBUF_NAMESPACE_ID::int32 Metadata::_internal_sensor_version() const {
1096  return sensor_version_;
1097 }
1098 inline ::PROTOBUF_NAMESPACE_ID::int32 Metadata::sensor_version() const {
1099  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.sensor_version)
1100  return _internal_sensor_version();
1101 }
1102 inline void Metadata::_internal_set_sensor_version(::PROTOBUF_NAMESPACE_ID::int32 value) {
1103  _has_bits_[0] |= 0x00000004u;
1104  sensor_version_ = value;
1105 }
1106 inline void Metadata::set_sensor_version(::PROTOBUF_NAMESPACE_ID::int32 value) {
1107  _internal_set_sensor_version(value);
1108  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.sensor_version)
1109 }
1110 
1111 // optional int32 payload_board_version = 6;
1112 inline bool Metadata::_internal_has_payload_board_version() const {
1113  bool value = (_has_bits_[0] & 0x00000008u) != 0;
1114  return value;
1115 }
1116 inline bool Metadata::has_payload_board_version() const {
1117  return _internal_has_payload_board_version();
1118 }
1119 inline void Metadata::clear_payload_board_version() {
1120  payload_board_version_ = 0;
1121  _has_bits_[0] &= ~0x00000008u;
1122 }
1123 inline ::PROTOBUF_NAMESPACE_ID::int32 Metadata::_internal_payload_board_version() const {
1124  return payload_board_version_;
1125 }
1126 inline ::PROTOBUF_NAMESPACE_ID::int32 Metadata::payload_board_version() const {
1127  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.payload_board_version)
1128  return _internal_payload_board_version();
1129 }
1130 inline void Metadata::_internal_set_payload_board_version(::PROTOBUF_NAMESPACE_ID::int32 value) {
1131  _has_bits_[0] |= 0x00000008u;
1132  payload_board_version_ = value;
1133 }
1134 inline void Metadata::set_payload_board_version(::PROTOBUF_NAMESPACE_ID::int32 value) {
1135  _internal_set_payload_board_version(value);
1136  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.payload_board_version)
1137 }
1138 
1139 // optional .jaiabot.sensor.protobuf.Metadata.Calibration calibration = 3;
1140 inline bool Metadata::_internal_has_calibration() const {
1141  bool value = (_has_bits_[0] & 0x00000001u) != 0;
1142  PROTOBUF_ASSUME(!value || calibration_ != nullptr);
1143  return value;
1144 }
1145 inline bool Metadata::has_calibration() const {
1146  return _internal_has_calibration();
1147 }
1148 inline void Metadata::clear_calibration() {
1149  if (calibration_ != nullptr) calibration_->Clear();
1150  _has_bits_[0] &= ~0x00000001u;
1151 }
1152 inline const ::jaiabot::sensor::protobuf::Metadata_Calibration& Metadata::_internal_calibration() const {
1153  const ::jaiabot::sensor::protobuf::Metadata_Calibration* p = calibration_;
1154  return p != nullptr ? *p : *reinterpret_cast<const ::jaiabot::sensor::protobuf::Metadata_Calibration*>(
1156 }
1157 inline const ::jaiabot::sensor::protobuf::Metadata_Calibration& Metadata::calibration() const {
1158  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.calibration)
1159  return _internal_calibration();
1160 }
1161 inline void Metadata::unsafe_arena_set_allocated_calibration(
1162  ::jaiabot::sensor::protobuf::Metadata_Calibration* calibration) {
1163  if (GetArena() == nullptr) {
1164  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(calibration_);
1165  }
1166  calibration_ = calibration;
1167  if (calibration) {
1168  _has_bits_[0] |= 0x00000001u;
1169  } else {
1170  _has_bits_[0] &= ~0x00000001u;
1171  }
1172  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.sensor.protobuf.Metadata.calibration)
1173 }
1174 inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::release_calibration() {
1175  auto temp = unsafe_arena_release_calibration();
1176  if (GetArena() != nullptr) {
1177  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1178  }
1179  return temp;
1180 }
1181 inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::unsafe_arena_release_calibration() {
1182  // @@protoc_insertion_point(field_release:jaiabot.sensor.protobuf.Metadata.calibration)
1183  _has_bits_[0] &= ~0x00000001u;
1184  ::jaiabot::sensor::protobuf::Metadata_Calibration* temp = calibration_;
1185  calibration_ = nullptr;
1186  return temp;
1187 }
1188 inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::_internal_mutable_calibration() {
1189  _has_bits_[0] |= 0x00000001u;
1190  if (calibration_ == nullptr) {
1191  auto* p = CreateMaybeMessage<::jaiabot::sensor::protobuf::Metadata_Calibration>(GetArena());
1192  calibration_ = p;
1193  }
1194  return calibration_;
1195 }
1196 inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::mutable_calibration() {
1197  // @@protoc_insertion_point(field_mutable:jaiabot.sensor.protobuf.Metadata.calibration)
1198  return _internal_mutable_calibration();
1199 }
1200 inline void Metadata::set_allocated_calibration(::jaiabot::sensor::protobuf::Metadata_Calibration* calibration) {
1201  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1202  if (message_arena == nullptr) {
1203  delete calibration_;
1204  }
1205  if (calibration) {
1206  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1207  ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(calibration);
1208  if (message_arena != submessage_arena) {
1209  calibration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1210  message_arena, calibration, submessage_arena);
1211  }
1212  _has_bits_[0] |= 0x00000001u;
1213  } else {
1214  _has_bits_[0] &= ~0x00000001u;
1215  }
1216  calibration_ = calibration;
1217  // @@protoc_insertion_point(field_set_allocated:jaiabot.sensor.protobuf.Metadata.calibration)
1218 }
1219 
1220 // optional uint64 time_purchased = 4 [(.dccl.field) = {
1221 inline bool Metadata::_internal_has_time_purchased() const {
1222  bool value = (_has_bits_[0] & 0x00000002u) != 0;
1223  return value;
1224 }
1225 inline bool Metadata::has_time_purchased() const {
1226  return _internal_has_time_purchased();
1227 }
1228 inline void Metadata::clear_time_purchased() {
1229  time_purchased_ = PROTOBUF_ULONGLONG(0);
1230  _has_bits_[0] &= ~0x00000002u;
1231 }
1232 inline ::PROTOBUF_NAMESPACE_ID::uint64 Metadata::_internal_time_purchased() const {
1233  return time_purchased_;
1234 }
1235 inline ::PROTOBUF_NAMESPACE_ID::uint64 Metadata::time_purchased() const {
1236  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.time_purchased)
1237  return _internal_time_purchased();
1238 }
1239 inline void Metadata::_internal_set_time_purchased(::PROTOBUF_NAMESPACE_ID::uint64 value) {
1240  _has_bits_[0] |= 0x00000002u;
1241  time_purchased_ = value;
1242 }
1243 inline void Metadata::set_time_purchased(::PROTOBUF_NAMESPACE_ID::uint64 value) {
1244  _internal_set_time_purchased(value);
1245  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.time_purchased)
1246 }
1247 
1248 // repeated .jaiabot.sensor.protobuf.Metadata.MetadataValue metadata = 5 [(.nanopb) = {
1249 inline int Metadata::_internal_metadata_size() const {
1250  return metadata_.size();
1251 }
1252 inline int Metadata::metadata_size() const {
1253  return _internal_metadata_size();
1254 }
1255 inline void Metadata::clear_metadata() {
1256  metadata_.Clear();
1257 }
1258 inline ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Metadata::mutable_metadata(int index) {
1259  // @@protoc_insertion_point(field_mutable:jaiabot.sensor.protobuf.Metadata.metadata)
1260  return metadata_.Mutable(index);
1261 }
1262 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >*
1263 Metadata::mutable_metadata() {
1264  // @@protoc_insertion_point(field_mutable_list:jaiabot.sensor.protobuf.Metadata.metadata)
1265  return &metadata_;
1266 }
1267 inline const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& Metadata::_internal_metadata(int index) const {
1268  return metadata_.Get(index);
1269 }
1270 inline const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& Metadata::metadata(int index) const {
1271  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.metadata)
1272  return _internal_metadata(index);
1273 }
1274 inline ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Metadata::_internal_add_metadata() {
1275  return metadata_.Add();
1276 }
1277 inline ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Metadata::add_metadata() {
1278  // @@protoc_insertion_point(field_add:jaiabot.sensor.protobuf.Metadata.metadata)
1279  return _internal_add_metadata();
1280 }
1281 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >&
1282 Metadata::metadata() const {
1283  // @@protoc_insertion_point(field_list:jaiabot.sensor.protobuf.Metadata.metadata)
1284  return metadata_;
1285 }
1286 
1287 // optional bool init_failed = 7;
1288 inline bool Metadata::_internal_has_init_failed() const {
1289  bool value = (_has_bits_[0] & 0x00000010u) != 0;
1290  return value;
1291 }
1292 inline bool Metadata::has_init_failed() const {
1293  return _internal_has_init_failed();
1294 }
1295 inline void Metadata::clear_init_failed() {
1296  init_failed_ = false;
1297  _has_bits_[0] &= ~0x00000010u;
1298 }
1299 inline bool Metadata::_internal_init_failed() const {
1300  return init_failed_;
1301 }
1302 inline bool Metadata::init_failed() const {
1303  // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.init_failed)
1304  return _internal_init_failed();
1305 }
1306 inline void Metadata::_internal_set_init_failed(bool value) {
1307  _has_bits_[0] |= 0x00000010u;
1308  init_failed_ = value;
1309 }
1310 inline void Metadata::set_init_failed(bool value) {
1311  _internal_set_init_failed(value);
1312  // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.init_failed)
1313 }
1314 
1315 #ifdef __GNUC__
1316  #pragma GCC diagnostic pop
1317 #endif // __GNUC__
1318 // -------------------------------------------------------------------
1319 
1320 // -------------------------------------------------------------------
1321 
1322 
1323 // @@protoc_insertion_point(namespace_scope)
1324 
1325 } // namespace protobuf
1326 } // namespace sensor
1327 } // namespace jaiabot
1328 
1329 // @@protoc_insertion_point(global_scope)
1330 
1331 #include <google/protobuf/port_undef.inc>
1332 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto
constexpr goby::middleware::Group metadata
Definition: groups.h:114
Metadata_CalibrationDefaultTypeInternal _Metadata_Calibration_default_instance_
bool Sensor_IsValid(int value)
Metadata_MetadataValueDefaultTypeInternal _Metadata_MetadataValue_default_instance_
MetadataDefaultTypeInternal _Metadata_default_instance_
protobuf::DeviceMetadata metadata()
Definition: metadata.h:39
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
Definition: metadata.pb.h:61
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: metadata.pb.h:63
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: metadata.pb.h:62