JaiaBot 2.7.0
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
udp_gateway.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: jaiabot/messages/udp_gateway.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fudp_5fgateway_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fudp_5fgateway_2eproto
6
7#include <limits>
8#include <string>
9
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
14#error your headers.
15#endif
16#if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
17#error This file was generated by an older version of protoc which is
18#error incompatible with your Protocol Buffer headers. Please
19#error regenerate this file with a newer version of protoc.
20#endif
21
22#include <google/protobuf/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
24#include <google/protobuf/arena.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.h>
29#include <google/protobuf/message.h>
30#include <google/protobuf/repeated_field.h> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
32#include <google/protobuf/unknown_field_set.h>
34#include "jaiabot/messages/sensor/salinity.pb.h"
35#include "jaiabot/messages/sensor/pressure_temperature.pb.h"
39#include <boost/units/quantity.hpp>
40#include <boost/units/absolute.hpp>
41#include <boost/units/dimensionless_type.hpp>
42#include <boost/units/make_scaled_unit.hpp>
43// @@protoc_insertion_point(includes)
44#include <google/protobuf/port_def.inc>
45#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fudp_5fgateway_2eproto
46PROTOBUF_NAMESPACE_OPEN
47namespace internal {
48class AnyMetadata;
49} // namespace internal
50PROTOBUF_NAMESPACE_CLOSE
51
52// Internal implementation detail -- do not use these members.
56extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fudp_5fgateway_2eproto;
57namespace jaiabot {
58namespace protobuf {
59class UDPGatewayEnvelope;
60struct UDPGatewayEnvelopeDefaultTypeInternal;
61extern UDPGatewayEnvelopeDefaultTypeInternal _UDPGatewayEnvelope_default_instance_;
62} // namespace protobuf
63} // namespace jaiabot
64PROTOBUF_NAMESPACE_OPEN
65template<> ::jaiabot::protobuf::UDPGatewayEnvelope* Arena::CreateMaybeMessage<::jaiabot::protobuf::UDPGatewayEnvelope>(Arena*);
66PROTOBUF_NAMESPACE_CLOSE
67namespace jaiabot {
68namespace protobuf {
69
70// ===================================================================
71
72class UDPGatewayEnvelope final :
73 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.UDPGatewayEnvelope) */ {
74 public:
77 explicit PROTOBUF_CONSTEXPR UDPGatewayEnvelope(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
78
82 *this = ::std::move(from);
83 }
84
86 CopyFrom(from);
87 return *this;
88 }
90 if (this == &from) return *this;
91 if (GetOwningArena() == from.GetOwningArena()
92 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
93 && GetOwningArena() != nullptr
94 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
95 ) {
96 InternalSwap(&from);
97 } else {
98 CopyFrom(from);
99 }
100 return *this;
101 }
102
103 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
104 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
105 }
106 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
107 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
108 }
109
110 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
111 return GetDescriptor();
112 }
113 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
114 return default_instance().GetMetadata().descriptor;
115 }
116 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
117 return default_instance().GetMetadata().reflection;
118 }
121 }
133
135 return reinterpret_cast<const UDPGatewayEnvelope*>(
137 }
138 static constexpr int kIndexInFileMessages =
139 0;
140
142 a.Swap(&b);
143 }
144 inline void Swap(UDPGatewayEnvelope* other) {
145 if (other == this) return;
146 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
147 if (GetOwningArena() != nullptr &&
148 GetOwningArena() == other->GetOwningArena()) {
149 #else // PROTOBUF_FORCE_COPY_IN_SWAP
150 if (GetOwningArena() == other->GetOwningArena()) {
151 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
152 InternalSwap(other);
153 } else {
154 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
155 }
156 }
158 if (other == this) return;
159 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
160 InternalSwap(other);
161 }
162
163 // implements Message ----------------------------------------------
164
165 UDPGatewayEnvelope* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
166 return CreateMaybeMessage<UDPGatewayEnvelope>(arena);
167 }
168 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
169 void CopyFrom(const UDPGatewayEnvelope& from);
170 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
171 void MergeFrom( const UDPGatewayEnvelope& from) {
172 UDPGatewayEnvelope::MergeImpl(*this, from);
173 }
174 private:
175 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
176 public:
177 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
178 bool IsInitialized() const final;
179
180 size_t ByteSizeLong() const final;
181 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
183 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
184 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
185
186 private:
187 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
188 void SharedDtor();
189 void SetCachedSize(int size) const final;
190 void InternalSwap(UDPGatewayEnvelope* other);
191
192 private:
193 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
194 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
195 return "jaiabot.protobuf.UDPGatewayEnvelope";
196 }
197 protected:
198 explicit UDPGatewayEnvelope(::PROTOBUF_NAMESPACE_ID::Arena* arena,
199 bool is_message_owned = false);
200 public:
201
202 static const ClassData _class_data_;
203 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
204
205 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
206
207 // nested types ----------------------------------------------------
208
209 // accessors -------------------------------------------------------
210
211 enum : int {
220 };
221 // .jaiabot.protobuf.IMUCommand imu_command = 1;
222 bool has_imu_command() const;
223 private:
224 bool _internal_has_imu_command() const;
225 public:
227 const ::jaiabot::protobuf::IMUCommand& imu_command() const;
228 PROTOBUF_NODISCARD ::jaiabot::protobuf::IMUCommand* release_imu_command();
231 private:
232 const ::jaiabot::protobuf::IMUCommand& _internal_imu_command() const;
233 ::jaiabot::protobuf::IMUCommand* _internal_mutable_imu_command();
234 public:
238
239 // .jaiabot.protobuf.IMUData imu_data = 2;
240 bool has_imu_data() const;
241 private:
242 bool _internal_has_imu_data() const;
243 public:
245 const ::jaiabot::protobuf::IMUData& imu_data() const;
246 PROTOBUF_NODISCARD ::jaiabot::protobuf::IMUData* release_imu_data();
249 private:
250 const ::jaiabot::protobuf::IMUData& _internal_imu_data() const;
251 ::jaiabot::protobuf::IMUData* _internal_mutable_imu_data();
252 public:
256
257 // .jaiabot.protobuf.SalinityData salinity_data = 3;
258 bool has_salinity_data() const;
259 private:
260 bool _internal_has_salinity_data() const;
261 public:
263 const ::jaiabot::protobuf::SalinityData& salinity_data() const;
264 PROTOBUF_NODISCARD ::jaiabot::protobuf::SalinityData* release_salinity_data();
267 private:
268 const ::jaiabot::protobuf::SalinityData& _internal_salinity_data() const;
269 ::jaiabot::protobuf::SalinityData* _internal_mutable_salinity_data();
270 public:
274
275 // .jaiabot.protobuf.PressureTemperatureData pressure_temperature_data = 4;
277 private:
278 bool _internal_has_pressure_temperature_data() const;
279 public:
281 const ::jaiabot::protobuf::PressureTemperatureData& pressure_temperature_data() const;
282 PROTOBUF_NODISCARD ::jaiabot::protobuf::PressureTemperatureData* release_pressure_temperature_data();
285 private:
286 const ::jaiabot::protobuf::PressureTemperatureData& _internal_pressure_temperature_data() const;
287 ::jaiabot::protobuf::PressureTemperatureData* _internal_mutable_pressure_temperature_data();
288 public:
292
293 // .jaiabot.protobuf.TSYS01Data tsys01_data = 5;
294 bool has_tsys01_data() const;
295 private:
296 bool _internal_has_tsys01_data() const;
297 public:
299 const ::jaiabot::protobuf::TSYS01Data& tsys01_data() const;
300 PROTOBUF_NODISCARD ::jaiabot::protobuf::TSYS01Data* release_tsys01_data();
303 private:
304 const ::jaiabot::protobuf::TSYS01Data& _internal_tsys01_data() const;
305 ::jaiabot::protobuf::TSYS01Data* _internal_mutable_tsys01_data();
306 public:
310
311 // .jaiabot.protobuf.EchoCommand echo_command = 6;
312 bool has_echo_command() const;
313 private:
314 bool _internal_has_echo_command() const;
315 public:
317 const ::jaiabot::protobuf::EchoCommand& echo_command() const;
318 PROTOBUF_NODISCARD ::jaiabot::protobuf::EchoCommand* release_echo_command();
321 private:
322 const ::jaiabot::protobuf::EchoCommand& _internal_echo_command() const;
323 ::jaiabot::protobuf::EchoCommand* _internal_mutable_echo_command();
324 public:
328
329 // .jaiabot.protobuf.EchoData echo_data = 7;
330 bool has_echo_data() const;
331 private:
332 bool _internal_has_echo_data() const;
333 public:
335 const ::jaiabot::protobuf::EchoData& echo_data() const;
336 PROTOBUF_NODISCARD ::jaiabot::protobuf::EchoData* release_echo_data();
339 private:
340 const ::jaiabot::protobuf::EchoData& _internal_echo_data() const;
341 ::jaiabot::protobuf::EchoData* _internal_mutable_echo_data();
342 public:
346
347 // .jaiabot.protobuf.UBXChunk ubx_chunk = 8;
348 bool has_ubx_chunk() const;
349 private:
350 bool _internal_has_ubx_chunk() const;
351 public:
353 const ::jaiabot::protobuf::UBXChunk& ubx_chunk() const;
354 PROTOBUF_NODISCARD ::jaiabot::protobuf::UBXChunk* release_ubx_chunk();
357 private:
358 const ::jaiabot::protobuf::UBXChunk& _internal_ubx_chunk() const;
359 ::jaiabot::protobuf::UBXChunk* _internal_mutable_ubx_chunk();
360 public:
364
367 // @@protoc_insertion_point(class_scope:jaiabot.protobuf.UDPGatewayEnvelope)
368 private:
369 class _Internal;
370 void set_has_imu_command();
371 void set_has_imu_data();
372 void set_has_salinity_data();
373 void set_has_pressure_temperature_data();
374 void set_has_tsys01_data();
375 void set_has_echo_command();
376 void set_has_echo_data();
377 void set_has_ubx_chunk();
378
379 inline bool has_payload() const;
380 inline void clear_has_payload();
381
382 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
383 typedef void InternalArenaConstructable_;
384 typedef void DestructorSkippable_;
385 struct Impl_ {
398 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
399 uint32_t _oneof_case_[1];
400
401 };
402 union { Impl_ _impl_; };
403 friend struct ::TableStruct_jaiabot_2fmessages_2fudp_5fgateway_2eproto;
404};
405// ===================================================================
406
407
408// ===================================================================
409
410#ifdef __GNUC__
411 #pragma GCC diagnostic push
412 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
413#endif // __GNUC__
414// UDPGatewayEnvelope
415
416// .jaiabot.protobuf.IMUCommand imu_command = 1;
417inline bool UDPGatewayEnvelope::_internal_has_imu_command() const {
418 return payload_case() == kImuCommand;
419}
421 return _internal_has_imu_command();
422}
423inline void UDPGatewayEnvelope::set_has_imu_command() {
424 _impl_._oneof_case_[0] = kImuCommand;
425}
426inline ::jaiabot::protobuf::IMUCommand* UDPGatewayEnvelope::release_imu_command() {
427 // @@protoc_insertion_point(field_release:jaiabot.protobuf.UDPGatewayEnvelope.imu_command)
428 if (_internal_has_imu_command()) {
429 clear_has_payload();
430 ::jaiabot::protobuf::IMUCommand* temp = _impl_.payload_.imu_command_;
431 if (GetArenaForAllocation() != nullptr) {
432 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
433 }
434 _impl_.payload_.imu_command_ = nullptr;
435 return temp;
436 } else {
437 return nullptr;
438 }
439}
440inline const ::jaiabot::protobuf::IMUCommand& UDPGatewayEnvelope::_internal_imu_command() const {
441 return _internal_has_imu_command()
442 ? *_impl_.payload_.imu_command_
444}
445inline const ::jaiabot::protobuf::IMUCommand& UDPGatewayEnvelope::imu_command() const {
446 // @@protoc_insertion_point(field_get:jaiabot.protobuf.UDPGatewayEnvelope.imu_command)
447 return _internal_imu_command();
448}
449inline ::jaiabot::protobuf::IMUCommand* UDPGatewayEnvelope::unsafe_arena_release_imu_command() {
450 // @@protoc_insertion_point(field_unsafe_arena_release:jaiabot.protobuf.UDPGatewayEnvelope.imu_command)
451 if (_internal_has_imu_command()) {
452 clear_has_payload();
453 ::jaiabot::protobuf::IMUCommand* temp = _impl_.payload_.imu_command_;
454 _impl_.payload_.imu_command_ = nullptr;
455 return temp;
456 } else {
457 return nullptr;
458 }
459}
462 if (imu_command) {
463 set_has_imu_command();
464 _impl_.payload_.imu_command_ = imu_command;
465 }
466 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.protobuf.UDPGatewayEnvelope.imu_command)
467}
468inline ::jaiabot::protobuf::IMUCommand* UDPGatewayEnvelope::_internal_mutable_imu_command() {
469 if (!_internal_has_imu_command()) {
471 set_has_imu_command();
472 _impl_.payload_.imu_command_ = CreateMaybeMessage< ::jaiabot::protobuf::IMUCommand >(GetArenaForAllocation());
473 }
474 return _impl_.payload_.imu_command_;
475}
476inline ::jaiabot::protobuf::IMUCommand* UDPGatewayEnvelope::mutable_imu_command() {
477 ::jaiabot::protobuf::IMUCommand* _msg = _internal_mutable_imu_command();
478 // @@protoc_insertion_point(field_mutable:jaiabot.protobuf.UDPGatewayEnvelope.imu_command)
479 return _msg;
480}
481
482// .jaiabot.protobuf.IMUData imu_data = 2;
483inline bool UDPGatewayEnvelope::_internal_has_imu_data() const {
484 return payload_case() == kImuData;
485}
487 return _internal_has_imu_data();
488}
489inline void UDPGatewayEnvelope::set_has_imu_data() {
490 _impl_._oneof_case_[0] = kImuData;
491}
492inline ::jaiabot::protobuf::IMUData* UDPGatewayEnvelope::release_imu_data() {
493 // @@protoc_insertion_point(field_release:jaiabot.protobuf.UDPGatewayEnvelope.imu_data)
494 if (_internal_has_imu_data()) {
495 clear_has_payload();
496 ::jaiabot::protobuf::IMUData* temp = _impl_.payload_.imu_data_;
497 if (GetArenaForAllocation() != nullptr) {
498 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
499 }
500 _impl_.payload_.imu_data_ = nullptr;
501 return temp;
502 } else {
503 return nullptr;
504 }
505}
506inline const ::jaiabot::protobuf::IMUData& UDPGatewayEnvelope::_internal_imu_data() const {
507 return _internal_has_imu_data()
508 ? *_impl_.payload_.imu_data_
510}
511inline const ::jaiabot::protobuf::IMUData& UDPGatewayEnvelope::imu_data() const {
512 // @@protoc_insertion_point(field_get:jaiabot.protobuf.UDPGatewayEnvelope.imu_data)
513 return _internal_imu_data();
514}
515inline ::jaiabot::protobuf::IMUData* UDPGatewayEnvelope::unsafe_arena_release_imu_data() {
516 // @@protoc_insertion_point(field_unsafe_arena_release:jaiabot.protobuf.UDPGatewayEnvelope.imu_data)
517 if (_internal_has_imu_data()) {
518 clear_has_payload();
519 ::jaiabot::protobuf::IMUData* temp = _impl_.payload_.imu_data_;
520 _impl_.payload_.imu_data_ = nullptr;
521 return temp;
522 } else {
523 return nullptr;
524 }
525}
528 if (imu_data) {
529 set_has_imu_data();
530 _impl_.payload_.imu_data_ = imu_data;
531 }
532 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.protobuf.UDPGatewayEnvelope.imu_data)
533}
534inline ::jaiabot::protobuf::IMUData* UDPGatewayEnvelope::_internal_mutable_imu_data() {
535 if (!_internal_has_imu_data()) {
537 set_has_imu_data();
538 _impl_.payload_.imu_data_ = CreateMaybeMessage< ::jaiabot::protobuf::IMUData >(GetArenaForAllocation());
539 }
540 return _impl_.payload_.imu_data_;
541}
542inline ::jaiabot::protobuf::IMUData* UDPGatewayEnvelope::mutable_imu_data() {
543 ::jaiabot::protobuf::IMUData* _msg = _internal_mutable_imu_data();
544 // @@protoc_insertion_point(field_mutable:jaiabot.protobuf.UDPGatewayEnvelope.imu_data)
545 return _msg;
546}
547
548// .jaiabot.protobuf.SalinityData salinity_data = 3;
549inline bool UDPGatewayEnvelope::_internal_has_salinity_data() const {
550 return payload_case() == kSalinityData;
551}
553 return _internal_has_salinity_data();
554}
555inline void UDPGatewayEnvelope::set_has_salinity_data() {
556 _impl_._oneof_case_[0] = kSalinityData;
557}
558inline ::jaiabot::protobuf::SalinityData* UDPGatewayEnvelope::release_salinity_data() {
559 // @@protoc_insertion_point(field_release:jaiabot.protobuf.UDPGatewayEnvelope.salinity_data)
560 if (_internal_has_salinity_data()) {
561 clear_has_payload();
562 ::jaiabot::protobuf::SalinityData* temp = _impl_.payload_.salinity_data_;
563 if (GetArenaForAllocation() != nullptr) {
564 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
565 }
566 _impl_.payload_.salinity_data_ = nullptr;
567 return temp;
568 } else {
569 return nullptr;
570 }
571}
572inline const ::jaiabot::protobuf::SalinityData& UDPGatewayEnvelope::_internal_salinity_data() const {
573 return _internal_has_salinity_data()
574 ? *_impl_.payload_.salinity_data_
576}
577inline const ::jaiabot::protobuf::SalinityData& UDPGatewayEnvelope::salinity_data() const {
578 // @@protoc_insertion_point(field_get:jaiabot.protobuf.UDPGatewayEnvelope.salinity_data)
579 return _internal_salinity_data();
580}
581inline ::jaiabot::protobuf::SalinityData* UDPGatewayEnvelope::unsafe_arena_release_salinity_data() {
582 // @@protoc_insertion_point(field_unsafe_arena_release:jaiabot.protobuf.UDPGatewayEnvelope.salinity_data)
583 if (_internal_has_salinity_data()) {
584 clear_has_payload();
585 ::jaiabot::protobuf::SalinityData* temp = _impl_.payload_.salinity_data_;
586 _impl_.payload_.salinity_data_ = nullptr;
587 return temp;
588 } else {
589 return nullptr;
590 }
591}
594 if (salinity_data) {
595 set_has_salinity_data();
596 _impl_.payload_.salinity_data_ = salinity_data;
597 }
598 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.protobuf.UDPGatewayEnvelope.salinity_data)
599}
600inline ::jaiabot::protobuf::SalinityData* UDPGatewayEnvelope::_internal_mutable_salinity_data() {
601 if (!_internal_has_salinity_data()) {
603 set_has_salinity_data();
604 _impl_.payload_.salinity_data_ = CreateMaybeMessage< ::jaiabot::protobuf::SalinityData >(GetArenaForAllocation());
605 }
606 return _impl_.payload_.salinity_data_;
607}
608inline ::jaiabot::protobuf::SalinityData* UDPGatewayEnvelope::mutable_salinity_data() {
609 ::jaiabot::protobuf::SalinityData* _msg = _internal_mutable_salinity_data();
610 // @@protoc_insertion_point(field_mutable:jaiabot.protobuf.UDPGatewayEnvelope.salinity_data)
611 return _msg;
612}
613
614// .jaiabot.protobuf.PressureTemperatureData pressure_temperature_data = 4;
615inline bool UDPGatewayEnvelope::_internal_has_pressure_temperature_data() const {
617}
619 return _internal_has_pressure_temperature_data();
620}
621inline void UDPGatewayEnvelope::set_has_pressure_temperature_data() {
622 _impl_._oneof_case_[0] = kPressureTemperatureData;
623}
624inline ::jaiabot::protobuf::PressureTemperatureData* UDPGatewayEnvelope::release_pressure_temperature_data() {
625 // @@protoc_insertion_point(field_release:jaiabot.protobuf.UDPGatewayEnvelope.pressure_temperature_data)
626 if (_internal_has_pressure_temperature_data()) {
627 clear_has_payload();
628 ::jaiabot::protobuf::PressureTemperatureData* temp = _impl_.payload_.pressure_temperature_data_;
629 if (GetArenaForAllocation() != nullptr) {
630 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
631 }
632 _impl_.payload_.pressure_temperature_data_ = nullptr;
633 return temp;
634 } else {
635 return nullptr;
636 }
637}
638inline const ::jaiabot::protobuf::PressureTemperatureData& UDPGatewayEnvelope::_internal_pressure_temperature_data() const {
639 return _internal_has_pressure_temperature_data()
640 ? *_impl_.payload_.pressure_temperature_data_
642}
643inline const ::jaiabot::protobuf::PressureTemperatureData& UDPGatewayEnvelope::pressure_temperature_data() const {
644 // @@protoc_insertion_point(field_get:jaiabot.protobuf.UDPGatewayEnvelope.pressure_temperature_data)
645 return _internal_pressure_temperature_data();
646}
647inline ::jaiabot::protobuf::PressureTemperatureData* UDPGatewayEnvelope::unsafe_arena_release_pressure_temperature_data() {
648 // @@protoc_insertion_point(field_unsafe_arena_release:jaiabot.protobuf.UDPGatewayEnvelope.pressure_temperature_data)
649 if (_internal_has_pressure_temperature_data()) {
650 clear_has_payload();
651 ::jaiabot::protobuf::PressureTemperatureData* temp = _impl_.payload_.pressure_temperature_data_;
652 _impl_.payload_.pressure_temperature_data_ = nullptr;
653 return temp;
654 } else {
655 return nullptr;
656 }
657}
661 set_has_pressure_temperature_data();
662 _impl_.payload_.pressure_temperature_data_ = pressure_temperature_data;
663 }
664 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.protobuf.UDPGatewayEnvelope.pressure_temperature_data)
665}
666inline ::jaiabot::protobuf::PressureTemperatureData* UDPGatewayEnvelope::_internal_mutable_pressure_temperature_data() {
667 if (!_internal_has_pressure_temperature_data()) {
669 set_has_pressure_temperature_data();
670 _impl_.payload_.pressure_temperature_data_ = CreateMaybeMessage< ::jaiabot::protobuf::PressureTemperatureData >(GetArenaForAllocation());
671 }
672 return _impl_.payload_.pressure_temperature_data_;
673}
674inline ::jaiabot::protobuf::PressureTemperatureData* UDPGatewayEnvelope::mutable_pressure_temperature_data() {
675 ::jaiabot::protobuf::PressureTemperatureData* _msg = _internal_mutable_pressure_temperature_data();
676 // @@protoc_insertion_point(field_mutable:jaiabot.protobuf.UDPGatewayEnvelope.pressure_temperature_data)
677 return _msg;
678}
679
680// .jaiabot.protobuf.TSYS01Data tsys01_data = 5;
681inline bool UDPGatewayEnvelope::_internal_has_tsys01_data() const {
682 return payload_case() == kTsys01Data;
683}
685 return _internal_has_tsys01_data();
686}
687inline void UDPGatewayEnvelope::set_has_tsys01_data() {
688 _impl_._oneof_case_[0] = kTsys01Data;
689}
690inline ::jaiabot::protobuf::TSYS01Data* UDPGatewayEnvelope::release_tsys01_data() {
691 // @@protoc_insertion_point(field_release:jaiabot.protobuf.UDPGatewayEnvelope.tsys01_data)
692 if (_internal_has_tsys01_data()) {
693 clear_has_payload();
694 ::jaiabot::protobuf::TSYS01Data* temp = _impl_.payload_.tsys01_data_;
695 if (GetArenaForAllocation() != nullptr) {
696 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
697 }
698 _impl_.payload_.tsys01_data_ = nullptr;
699 return temp;
700 } else {
701 return nullptr;
702 }
703}
704inline const ::jaiabot::protobuf::TSYS01Data& UDPGatewayEnvelope::_internal_tsys01_data() const {
705 return _internal_has_tsys01_data()
706 ? *_impl_.payload_.tsys01_data_
708}
709inline const ::jaiabot::protobuf::TSYS01Data& UDPGatewayEnvelope::tsys01_data() const {
710 // @@protoc_insertion_point(field_get:jaiabot.protobuf.UDPGatewayEnvelope.tsys01_data)
711 return _internal_tsys01_data();
712}
713inline ::jaiabot::protobuf::TSYS01Data* UDPGatewayEnvelope::unsafe_arena_release_tsys01_data() {
714 // @@protoc_insertion_point(field_unsafe_arena_release:jaiabot.protobuf.UDPGatewayEnvelope.tsys01_data)
715 if (_internal_has_tsys01_data()) {
716 clear_has_payload();
717 ::jaiabot::protobuf::TSYS01Data* temp = _impl_.payload_.tsys01_data_;
718 _impl_.payload_.tsys01_data_ = nullptr;
719 return temp;
720 } else {
721 return nullptr;
722 }
723}
726 if (tsys01_data) {
727 set_has_tsys01_data();
728 _impl_.payload_.tsys01_data_ = tsys01_data;
729 }
730 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.protobuf.UDPGatewayEnvelope.tsys01_data)
731}
732inline ::jaiabot::protobuf::TSYS01Data* UDPGatewayEnvelope::_internal_mutable_tsys01_data() {
733 if (!_internal_has_tsys01_data()) {
735 set_has_tsys01_data();
736 _impl_.payload_.tsys01_data_ = CreateMaybeMessage< ::jaiabot::protobuf::TSYS01Data >(GetArenaForAllocation());
737 }
738 return _impl_.payload_.tsys01_data_;
739}
740inline ::jaiabot::protobuf::TSYS01Data* UDPGatewayEnvelope::mutable_tsys01_data() {
741 ::jaiabot::protobuf::TSYS01Data* _msg = _internal_mutable_tsys01_data();
742 // @@protoc_insertion_point(field_mutable:jaiabot.protobuf.UDPGatewayEnvelope.tsys01_data)
743 return _msg;
744}
745
746// .jaiabot.protobuf.EchoCommand echo_command = 6;
747inline bool UDPGatewayEnvelope::_internal_has_echo_command() const {
748 return payload_case() == kEchoCommand;
749}
751 return _internal_has_echo_command();
752}
753inline void UDPGatewayEnvelope::set_has_echo_command() {
754 _impl_._oneof_case_[0] = kEchoCommand;
755}
756inline ::jaiabot::protobuf::EchoCommand* UDPGatewayEnvelope::release_echo_command() {
757 // @@protoc_insertion_point(field_release:jaiabot.protobuf.UDPGatewayEnvelope.echo_command)
758 if (_internal_has_echo_command()) {
759 clear_has_payload();
760 ::jaiabot::protobuf::EchoCommand* temp = _impl_.payload_.echo_command_;
761 if (GetArenaForAllocation() != nullptr) {
762 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
763 }
764 _impl_.payload_.echo_command_ = nullptr;
765 return temp;
766 } else {
767 return nullptr;
768 }
769}
770inline const ::jaiabot::protobuf::EchoCommand& UDPGatewayEnvelope::_internal_echo_command() const {
771 return _internal_has_echo_command()
772 ? *_impl_.payload_.echo_command_
774}
775inline const ::jaiabot::protobuf::EchoCommand& UDPGatewayEnvelope::echo_command() const {
776 // @@protoc_insertion_point(field_get:jaiabot.protobuf.UDPGatewayEnvelope.echo_command)
777 return _internal_echo_command();
778}
779inline ::jaiabot::protobuf::EchoCommand* UDPGatewayEnvelope::unsafe_arena_release_echo_command() {
780 // @@protoc_insertion_point(field_unsafe_arena_release:jaiabot.protobuf.UDPGatewayEnvelope.echo_command)
781 if (_internal_has_echo_command()) {
782 clear_has_payload();
783 ::jaiabot::protobuf::EchoCommand* temp = _impl_.payload_.echo_command_;
784 _impl_.payload_.echo_command_ = nullptr;
785 return temp;
786 } else {
787 return nullptr;
788 }
789}
792 if (echo_command) {
793 set_has_echo_command();
794 _impl_.payload_.echo_command_ = echo_command;
795 }
796 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.protobuf.UDPGatewayEnvelope.echo_command)
797}
798inline ::jaiabot::protobuf::EchoCommand* UDPGatewayEnvelope::_internal_mutable_echo_command() {
799 if (!_internal_has_echo_command()) {
801 set_has_echo_command();
802 _impl_.payload_.echo_command_ = CreateMaybeMessage< ::jaiabot::protobuf::EchoCommand >(GetArenaForAllocation());
803 }
804 return _impl_.payload_.echo_command_;
805}
806inline ::jaiabot::protobuf::EchoCommand* UDPGatewayEnvelope::mutable_echo_command() {
807 ::jaiabot::protobuf::EchoCommand* _msg = _internal_mutable_echo_command();
808 // @@protoc_insertion_point(field_mutable:jaiabot.protobuf.UDPGatewayEnvelope.echo_command)
809 return _msg;
810}
811
812// .jaiabot.protobuf.EchoData echo_data = 7;
813inline bool UDPGatewayEnvelope::_internal_has_echo_data() const {
814 return payload_case() == kEchoData;
815}
817 return _internal_has_echo_data();
818}
819inline void UDPGatewayEnvelope::set_has_echo_data() {
820 _impl_._oneof_case_[0] = kEchoData;
821}
822inline ::jaiabot::protobuf::EchoData* UDPGatewayEnvelope::release_echo_data() {
823 // @@protoc_insertion_point(field_release:jaiabot.protobuf.UDPGatewayEnvelope.echo_data)
824 if (_internal_has_echo_data()) {
825 clear_has_payload();
826 ::jaiabot::protobuf::EchoData* temp = _impl_.payload_.echo_data_;
827 if (GetArenaForAllocation() != nullptr) {
828 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
829 }
830 _impl_.payload_.echo_data_ = nullptr;
831 return temp;
832 } else {
833 return nullptr;
834 }
835}
836inline const ::jaiabot::protobuf::EchoData& UDPGatewayEnvelope::_internal_echo_data() const {
837 return _internal_has_echo_data()
838 ? *_impl_.payload_.echo_data_
840}
841inline const ::jaiabot::protobuf::EchoData& UDPGatewayEnvelope::echo_data() const {
842 // @@protoc_insertion_point(field_get:jaiabot.protobuf.UDPGatewayEnvelope.echo_data)
843 return _internal_echo_data();
844}
845inline ::jaiabot::protobuf::EchoData* UDPGatewayEnvelope::unsafe_arena_release_echo_data() {
846 // @@protoc_insertion_point(field_unsafe_arena_release:jaiabot.protobuf.UDPGatewayEnvelope.echo_data)
847 if (_internal_has_echo_data()) {
848 clear_has_payload();
849 ::jaiabot::protobuf::EchoData* temp = _impl_.payload_.echo_data_;
850 _impl_.payload_.echo_data_ = nullptr;
851 return temp;
852 } else {
853 return nullptr;
854 }
855}
858 if (echo_data) {
859 set_has_echo_data();
860 _impl_.payload_.echo_data_ = echo_data;
861 }
862 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.protobuf.UDPGatewayEnvelope.echo_data)
863}
864inline ::jaiabot::protobuf::EchoData* UDPGatewayEnvelope::_internal_mutable_echo_data() {
865 if (!_internal_has_echo_data()) {
867 set_has_echo_data();
868 _impl_.payload_.echo_data_ = CreateMaybeMessage< ::jaiabot::protobuf::EchoData >(GetArenaForAllocation());
869 }
870 return _impl_.payload_.echo_data_;
871}
872inline ::jaiabot::protobuf::EchoData* UDPGatewayEnvelope::mutable_echo_data() {
873 ::jaiabot::protobuf::EchoData* _msg = _internal_mutable_echo_data();
874 // @@protoc_insertion_point(field_mutable:jaiabot.protobuf.UDPGatewayEnvelope.echo_data)
875 return _msg;
876}
877
878// .jaiabot.protobuf.UBXChunk ubx_chunk = 8;
879inline bool UDPGatewayEnvelope::_internal_has_ubx_chunk() const {
880 return payload_case() == kUbxChunk;
881}
883 return _internal_has_ubx_chunk();
884}
885inline void UDPGatewayEnvelope::set_has_ubx_chunk() {
886 _impl_._oneof_case_[0] = kUbxChunk;
887}
888inline ::jaiabot::protobuf::UBXChunk* UDPGatewayEnvelope::release_ubx_chunk() {
889 // @@protoc_insertion_point(field_release:jaiabot.protobuf.UDPGatewayEnvelope.ubx_chunk)
890 if (_internal_has_ubx_chunk()) {
891 clear_has_payload();
892 ::jaiabot::protobuf::UBXChunk* temp = _impl_.payload_.ubx_chunk_;
893 if (GetArenaForAllocation() != nullptr) {
894 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
895 }
896 _impl_.payload_.ubx_chunk_ = nullptr;
897 return temp;
898 } else {
899 return nullptr;
900 }
901}
902inline const ::jaiabot::protobuf::UBXChunk& UDPGatewayEnvelope::_internal_ubx_chunk() const {
903 return _internal_has_ubx_chunk()
904 ? *_impl_.payload_.ubx_chunk_
906}
907inline const ::jaiabot::protobuf::UBXChunk& UDPGatewayEnvelope::ubx_chunk() const {
908 // @@protoc_insertion_point(field_get:jaiabot.protobuf.UDPGatewayEnvelope.ubx_chunk)
909 return _internal_ubx_chunk();
910}
911inline ::jaiabot::protobuf::UBXChunk* UDPGatewayEnvelope::unsafe_arena_release_ubx_chunk() {
912 // @@protoc_insertion_point(field_unsafe_arena_release:jaiabot.protobuf.UDPGatewayEnvelope.ubx_chunk)
913 if (_internal_has_ubx_chunk()) {
914 clear_has_payload();
915 ::jaiabot::protobuf::UBXChunk* temp = _impl_.payload_.ubx_chunk_;
916 _impl_.payload_.ubx_chunk_ = nullptr;
917 return temp;
918 } else {
919 return nullptr;
920 }
921}
924 if (ubx_chunk) {
925 set_has_ubx_chunk();
926 _impl_.payload_.ubx_chunk_ = ubx_chunk;
927 }
928 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.protobuf.UDPGatewayEnvelope.ubx_chunk)
929}
930inline ::jaiabot::protobuf::UBXChunk* UDPGatewayEnvelope::_internal_mutable_ubx_chunk() {
931 if (!_internal_has_ubx_chunk()) {
933 set_has_ubx_chunk();
934 _impl_.payload_.ubx_chunk_ = CreateMaybeMessage< ::jaiabot::protobuf::UBXChunk >(GetArenaForAllocation());
935 }
936 return _impl_.payload_.ubx_chunk_;
937}
938inline ::jaiabot::protobuf::UBXChunk* UDPGatewayEnvelope::mutable_ubx_chunk() {
939 ::jaiabot::protobuf::UBXChunk* _msg = _internal_mutable_ubx_chunk();
940 // @@protoc_insertion_point(field_mutable:jaiabot.protobuf.UDPGatewayEnvelope.ubx_chunk)
941 return _msg;
942}
943
944inline bool UDPGatewayEnvelope::has_payload() const {
945 return payload_case() != PAYLOAD_NOT_SET;
946}
947inline void UDPGatewayEnvelope::clear_has_payload() {
948 _impl_._oneof_case_[0] = PAYLOAD_NOT_SET;
949}
953#ifdef __GNUC__
954 #pragma GCC diagnostic pop
955#endif // __GNUC__
956
957// @@protoc_insertion_point(namespace_scope)
958
959} // namespace protobuf
960} // namespace jaiabot
961
962// @@protoc_insertion_point(global_scope)
963
964#include <google/protobuf/port_undef.inc>
965#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fudp_5fgateway_2eproto
::jaiabot::protobuf::IMUCommand * mutable_imu_command()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void Swap(UDPGatewayEnvelope *other)
PROTOBUF_NODISCARD::jaiabot::protobuf::UBXChunk * release_ubx_chunk()
void set_allocated_imu_command(::jaiabot::protobuf::IMUCommand *imu_command)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
const ::jaiabot::protobuf::IMUCommand & imu_command() const
void set_allocated_ubx_chunk(::jaiabot::protobuf::UBXChunk *ubx_chunk)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
::jaiabot::protobuf::UBXChunk * mutable_ubx_chunk()
UDPGatewayEnvelope(UDPGatewayEnvelope &&from) noexcept
const ::jaiabot::protobuf::SalinityData & salinity_data() const
UDPGatewayEnvelope(const UDPGatewayEnvelope &from)
void set_allocated_tsys01_data(::jaiabot::protobuf::TSYS01Data *tsys01_data)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
::jaiabot::protobuf::EchoCommand * unsafe_arena_release_echo_command()
::jaiabot::protobuf::PressureTemperatureData * mutable_pressure_temperature_data()
PROTOBUF_NODISCARD::jaiabot::protobuf::EchoCommand * release_echo_command()
::jaiabot::protobuf::TSYS01Data * mutable_tsys01_data()
::jaiabot::protobuf::SalinityData * unsafe_arena_release_salinity_data()
void unsafe_arena_set_allocated_tsys01_data(::jaiabot::protobuf::TSYS01Data *tsys01_data)
friend void swap(UDPGatewayEnvelope &a, UDPGatewayEnvelope &b)
::jaiabot::protobuf::SalinityData * mutable_salinity_data()
PROTOBUF_NODISCARD::jaiabot::protobuf::IMUData * release_imu_data()
PROTOBUF_NODISCARD::jaiabot::protobuf::IMUCommand * release_imu_command()
const ::jaiabot::protobuf::PressureTemperatureData & pressure_temperature_data() const
const ::jaiabot::protobuf::IMUData & imu_data() const
void unsafe_arena_set_allocated_echo_data(::jaiabot::protobuf::EchoData *echo_data)
void unsafe_arena_set_allocated_ubx_chunk(::jaiabot::protobuf::UBXChunk *ubx_chunk)
::jaiabot::protobuf::EchoCommand * mutable_echo_command()
static const UDPGatewayEnvelope * internal_default_instance()
PROTOBUF_NODISCARD::jaiabot::protobuf::TSYS01Data * release_tsys01_data()
UDPGatewayEnvelope(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static const UDPGatewayEnvelope & default_instance()
const ::jaiabot::protobuf::EchoCommand & echo_command() const
void CopyFrom(const UDPGatewayEnvelope &from)
UDPGatewayEnvelope & operator=(const UDPGatewayEnvelope &from)
UDPGatewayEnvelope * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void unsafe_arena_set_allocated_imu_command(::jaiabot::protobuf::IMUCommand *imu_command)
const ::jaiabot::protobuf::TSYS01Data & tsys01_data() const
void unsafe_arena_set_allocated_salinity_data(::jaiabot::protobuf::SalinityData *salinity_data)
void set_allocated_echo_command(::jaiabot::protobuf::EchoCommand *echo_command)
::jaiabot::protobuf::PressureTemperatureData * unsafe_arena_release_pressure_temperature_data()
::jaiabot::protobuf::TSYS01Data * unsafe_arena_release_tsys01_data()
const ::jaiabot::protobuf::UBXChunk & ubx_chunk() const
void unsafe_arena_set_allocated_echo_command(::jaiabot::protobuf::EchoCommand *echo_command)
UDPGatewayEnvelope & operator=(UDPGatewayEnvelope &&from) noexcept
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_allocated_imu_data(::jaiabot::protobuf::IMUData *imu_data)
void unsafe_arena_set_allocated_imu_data(::jaiabot::protobuf::IMUData *imu_data)
const ::jaiabot::protobuf::EchoData & echo_data() const
void set_allocated_echo_data(::jaiabot::protobuf::EchoData *echo_data)
::jaiabot::protobuf::EchoData * mutable_echo_data()
void set_allocated_pressure_temperature_data(::jaiabot::protobuf::PressureTemperatureData *pressure_temperature_data)
::jaiabot::protobuf::EchoData * unsafe_arena_release_echo_data()
::jaiabot::protobuf::IMUData * unsafe_arena_release_imu_data()
void set_allocated_salinity_data(::jaiabot::protobuf::SalinityData *salinity_data)
PROTOBUF_CONSTEXPR UDPGatewayEnvelope(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
PROTOBUF_NODISCARD::jaiabot::protobuf::PressureTemperatureData * release_pressure_temperature_data()
::jaiabot::protobuf::IMUCommand * unsafe_arena_release_imu_command()
void UnsafeArenaSwap(UDPGatewayEnvelope *other)
PROTOBUF_NODISCARD::jaiabot::protobuf::EchoData * release_echo_data()
void unsafe_arena_set_allocated_pressure_temperature_data(::jaiabot::protobuf::PressureTemperatureData *pressure_temperature_data)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void MergeFrom(const UDPGatewayEnvelope &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::jaiabot::protobuf::IMUData * mutable_imu_data()
::jaiabot::protobuf::UBXChunk * unsafe_arena_release_ubx_chunk()
PROTOBUF_NODISCARD::jaiabot::protobuf::SalinityData * release_salinity_data()
UDPGatewayEnvelopeDefaultTypeInternal _UDPGatewayEnvelope_default_instance_
SalinityDataDefaultTypeInternal _SalinityData_default_instance_
IMUDataDefaultTypeInternal _IMUData_default_instance_
EchoCommandDefaultTypeInternal _EchoCommand_default_instance_
PressureTemperatureDataDefaultTypeInternal _PressureTemperatureData_default_instance_
TSYS01DataDefaultTypeInternal _TSYS01Data_default_instance_
EchoDataDefaultTypeInternal _EchoData_default_instance_
UBXChunkDefaultTypeInternal _UBXChunk_default_instance_
IMUCommandDefaultTypeInternal _IMUCommand_default_instance_
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fudp_5fgateway_2eproto
::jaiabot::protobuf::PressureTemperatureData * pressure_temperature_data_
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_