4 #ifndef PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmodemdriver_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmodemdriver_5fconfig_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>
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>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
36 #include "dccl/option_extensions.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>
43 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fzeromq_2fprotobuf_2fmodemdriver_5fconfig_2eproto
48 static const ::google::protobuf::internal::ParseTableField
entries[];
49 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
50 static const ::google::protobuf::internal::ParseTable
schema[1];
62 class ModemDriverConfig;
63 class ModemDriverConfigDefaultTypeInternal;
97 *
this = ::std::move(from);
101 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
102 if (
this != &from) InternalSwap(&from);
110 return _internal_metadata_.unknown_fields();
113 return _internal_metadata_.mutable_unknown_fields();
116 static const ::google::protobuf::Descriptor*
descriptor();
135 return CreateMaybeMessage<ModemDriverConfig>(NULL);
139 return CreateMaybeMessage<ModemDriverConfig>(arena);
141 void CopyFrom(const ::google::protobuf::Message& from)
final;
142 void MergeFrom(const ::google::protobuf::Message& from)
final;
150 ::
google::protobuf::io::CodedInputStream* input) final;
152 ::
google::protobuf::io::CodedOutputStream* output) const final;
154 bool deterministic, ::
google::protobuf::uint8* target) const final;
160 void SetCachedSize(
int size)
const final;
163 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
166 inline void* MaybeArenaPtr()
const {
182 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
184 const ::
goby::middleware::protobuf::AppConfig&
app() const;
194 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
196 const ::
goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess() const;
206 const ::
goby::acomms::protobuf::DriverConfig& _internal_driver_cfg() const;
230 void clear_has_app();
231 void set_has_interprocess();
232 void clear_has_interprocess();
233 void set_has_driver_cfg();
234 void clear_has_driver_cfg();
235 void set_has_data_request_timeout();
236 void clear_has_data_request_timeout();
237 void set_has_status_period_s();
238 void clear_has_status_period_s();
240 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
241 ::
google::protobuf::internal::HasBits<1> _has_bits_;
242 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
243 ::
goby::middleware::protobuf::AppConfig* app_;
244 ::
goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
245 ::
goby::acomms::protobuf::DriverConfig* driver_cfg_;
246 float data_request_timeout_;
256 #pragma GCC diagnostic push
257 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
263 return (_has_bits_[0] & 0x00000001u) != 0;
265 inline void ModemDriverConfig::set_has_app() {
266 _has_bits_[0] |= 0x00000001u;
268 inline void ModemDriverConfig::clear_has_app() {
269 _has_bits_[0] &= ~0x00000001u;
271 inline const ::goby::middleware::protobuf::AppConfig& ModemDriverConfig::_internal_app()
const {
275 const ::goby::middleware::protobuf::AppConfig* p = app_;
290 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
298 if (message_arena == NULL) {
303 if (message_arena != submessage_arena) {
304 app = ::google::protobuf::internal::GetOwnedMessage(
305 message_arena,
app, submessage_arena);
317 return (_has_bits_[0] & 0x00000002u) != 0;
319 inline void ModemDriverConfig::set_has_interprocess() {
320 _has_bits_[0] |= 0x00000002u;
322 inline void ModemDriverConfig::clear_has_interprocess() {
323 _has_bits_[0] &= ~0x00000002u;
325 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& ModemDriverConfig::_internal_interprocess()
const {
326 return *interprocess_;
329 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
336 clear_has_interprocess();
338 interprocess_ = NULL;
342 set_has_interprocess();
343 if (interprocess_ == NULL) {
344 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
348 return interprocess_;
352 if (message_arena == NULL) {
357 if (message_arena != submessage_arena) {
358 interprocess = ::google::protobuf::internal::GetOwnedMessage(
361 set_has_interprocess();
363 clear_has_interprocess();
371 return (_has_bits_[0] & 0x00000004u) != 0;
373 inline void ModemDriverConfig::set_has_driver_cfg() {
374 _has_bits_[0] |= 0x00000004u;
376 inline void ModemDriverConfig::clear_has_driver_cfg() {
377 _has_bits_[0] &= ~0x00000004u;
379 inline const ::goby::acomms::protobuf::DriverConfig& ModemDriverConfig::_internal_driver_cfg()
const {
383 const ::goby::acomms::protobuf::DriverConfig* p = driver_cfg_;
390 clear_has_driver_cfg();
396 set_has_driver_cfg();
397 if (driver_cfg_ == NULL) {
398 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::DriverConfig>(GetArenaNoVirtual());
406 if (message_arena == NULL) {
411 if (message_arena != submessage_arena) {
412 driver_cfg = ::google::protobuf::internal::GetOwnedMessage(
415 set_has_driver_cfg();
417 clear_has_driver_cfg();
425 return (_has_bits_[0] & 0x00000008u) != 0;
427 inline void ModemDriverConfig::set_has_data_request_timeout() {
428 _has_bits_[0] |= 0x00000008u;
430 inline void ModemDriverConfig::clear_has_data_request_timeout() {
431 _has_bits_[0] &= ~0x00000008u;
434 data_request_timeout_ = 1;
435 clear_has_data_request_timeout();
439 return data_request_timeout_;
442 set_has_data_request_timeout();
443 data_request_timeout_ = value;
449 return (_has_bits_[0] & 0x00000010u) != 0;
451 inline void ModemDriverConfig::set_has_status_period_s() {
452 _has_bits_[0] |= 0x00000010u;
454 inline void ModemDriverConfig::clear_has_status_period_s() {
455 _has_bits_[0] &= ~0x00000010u;
458 status_period_s_ = 300;
459 clear_has_status_period_s();
463 return status_period_s_;
466 set_has_status_period_s();
467 status_period_s_ = value;
472 #pragma GCC diagnostic pop
485 #endif // PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmodemdriver_5fconfig_2eproto