4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2fmodem_5fmessage_5fextensions_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2fmodem_5fmessage_5fextensions_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
33 #include "goby/acomms/protobuf/modem_message.pb.h"
34 #include <boost/units/quantity.hpp>
35 #include <boost/units/absolute.hpp>
36 #include <boost/units/dimensionless_type.hpp>
37 #include <boost/units/make_scaled_unit.hpp>
39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2fmodem_5fmessage_5fextensions_2eproto
44 static const ::google::protobuf::internal::ParseTableField
entries[];
45 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
46 static const ::google::protobuf::internal::ParseTable
schema[2];
49 static const ::google::protobuf::uint32
offsets[];
56 class HubInfoDefaultTypeInternal;
59 class TransmissionDefaultTypeInternal;
74 class HubInfo :
public ::google::protobuf::Message {
88 *
this = ::std::move(from);
92 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
93 if (
this != &from) InternalSwap(&from);
101 return _internal_metadata_.unknown_fields();
104 return _internal_metadata_.mutable_unknown_fields();
107 static const ::google::protobuf::Descriptor*
descriptor();
112 return reinterpret_cast<const HubInfo*
>(
126 return CreateMaybeMessage<HubInfo>(NULL);
130 return CreateMaybeMessage<HubInfo>(arena);
132 void CopyFrom(const ::google::protobuf::Message& from)
final;
133 void MergeFrom(const ::google::protobuf::Message& from)
final;
141 ::
google::protobuf::io::CodedInputStream* input) final;
143 ::
google::protobuf::io::CodedOutputStream* output) const final;
145 bool deterministic, ::
google::protobuf::uint8* target) const final;
151 void SetCachedSize(
int size)
const final;
152 void InternalSwap(
HubInfo* other);
154 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
157 inline void* MaybeArenaPtr()
const {
162 ::google::protobuf::Metadata
GetMetadata() const final;
191 void set_has_hub_id();
192 void clear_has_hub_id();
193 void set_has_modem_id();
194 void clear_has_modem_id();
195 void set_has_changed();
196 void clear_has_changed();
198 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
199 ::
google::protobuf::internal::HasBits<1> _has_bits_;
200 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
201 ::
google::protobuf::int32 hub_id_;
202 ::
google::protobuf::int32 modem_id_;
222 *
this = ::std::move(from);
225 inline Transmission&
operator=(Transmission&& from) noexcept {
226 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
227 if (
this != &from) InternalSwap(&from);
235 return _internal_metadata_.unknown_fields();
238 return _internal_metadata_.mutable_unknown_fields();
241 static const ::google::protobuf::Descriptor*
descriptor();
260 return CreateMaybeMessage<Transmission>(NULL);
264 return CreateMaybeMessage<Transmission>(arena);
266 void CopyFrom(const ::google::protobuf::Message& from)
final;
267 void MergeFrom(const ::google::protobuf::Message& from)
final;
275 ::
google::protobuf::io::CodedInputStream* input) final;
277 ::
google::protobuf::io::CodedOutputStream* output) const final;
279 bool deterministic, ::
google::protobuf::uint8* target) const final;
285 void SetCachedSize(
int size)
const final;
288 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
291 inline void* MaybeArenaPtr()
const {
296 ::google::protobuf::Metadata
GetMetadata() const final;
303 bool has_hub() const;
305 static const
int kHubFieldNumber = 1;
317 void clear_has_hub();
319 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
320 ::
google::protobuf::internal::HasBits<1> _has_bits_;
321 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
328 extern ::
google::protobuf::internal::ExtensionIdentifier< ::
goby::acomms::protobuf::ModemTransmission,
335 #pragma GCC diagnostic push
336 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
342 return (_has_bits_[0] & 0x00000001u) != 0;
344 inline void HubInfo::set_has_hub_id() {
345 _has_bits_[0] |= 0x00000001u;
347 inline void HubInfo::clear_has_hub_id() {
348 _has_bits_[0] &= ~0x00000001u;
366 return (_has_bits_[0] & 0x00000002u) != 0;
368 inline void HubInfo::set_has_modem_id() {
369 _has_bits_[0] |= 0x00000002u;
371 inline void HubInfo::clear_has_modem_id() {
372 _has_bits_[0] &= ~0x00000002u;
376 clear_has_modem_id();
390 return (_has_bits_[0] & 0x00000004u) != 0;
392 inline void HubInfo::set_has_changed() {
393 _has_bits_[0] |= 0x00000004u;
395 inline void HubInfo::clear_has_changed() {
396 _has_bits_[0] &= ~0x00000004u;
418 return (_has_bits_[0] & 0x00000001u) != 0;
420 inline void Transmission::set_has_hub() {
421 _has_bits_[0] |= 0x00000001u;
423 inline void Transmission::clear_has_hub() {
424 _has_bits_[0] &= ~0x00000001u;
427 if (hub_ != NULL) hub_->Clear();
430 inline const ::jaiabot::protobuf::HubInfo& Transmission::_internal_hub()
const {
434 const ::jaiabot::protobuf::HubInfo* p = hub_;
449 auto* p = CreateMaybeMessage<::jaiabot::protobuf::HubInfo>(GetArenaNoVirtual());
456 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
457 if (message_arena == NULL) {
461 ::google::protobuf::Arena* submessage_arena = NULL;
462 if (message_arena != submessage_arena) {
463 hub = ::google::protobuf::internal::GetOwnedMessage(
464 message_arena, hub, submessage_arena);
475 #pragma GCC diagnostic pop
487 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fmodem_5fmessage_5fextensions_2eproto