4 #ifndef PROTOBUF_INCLUDED_bin_2fdrivers_2fecho_2fconfig_2eproto
5 #define PROTOBUF_INCLUDED_bin_2fdrivers_2fecho_2fconfig_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/middleware/protobuf/app_config.pb.h"
34 #include "goby/zeromq/protobuf/interprocess_config.pb.h"
36 #include "goby/middleware/protobuf/udp_config.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_bin_2fdrivers_2fecho_2fconfig_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];
53 static const ::google::protobuf::uint32
offsets[];
60 class EchoDriverDefaultTypeInternal;
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();
126 return CreateMaybeMessage<EchoDriver>(NULL);
130 return CreateMaybeMessage<EchoDriver>(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;
154 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
157 inline void* MaybeArenaPtr()
const {
162 ::google::protobuf::Metadata
GetMetadata() const final;
173 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
175 const ::
goby::middleware::protobuf::AppConfig&
app() const;
185 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
187 const ::
goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess() const;
197 const ::
goby::middleware::protobuf::UDPPointToPointConfig& _internal_udp_config() const;
199 const ::
goby::middleware::protobuf::UDPPointToPointConfig&
udp_config() const;
235 void clear_has_app();
236 void set_has_interprocess();
237 void clear_has_interprocess();
238 void set_has_udp_config();
239 void clear_has_udp_config();
240 void set_has_echo_report_timeout_seconds();
241 void clear_has_echo_report_timeout_seconds();
242 void set_has_echo_report_in_simulation();
243 void clear_has_echo_report_in_simulation();
244 void set_has_echo_issue_solution();
245 void clear_has_echo_issue_solution();
246 void set_has_echo_trigger_issue_timeout_seconds();
247 void clear_has_echo_trigger_issue_timeout_seconds();
249 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
250 ::
google::protobuf::internal::HasBits<1> _has_bits_;
251 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
252 ::
goby::middleware::protobuf::AppConfig* app_;
253 ::
goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
254 ::
goby::middleware::protobuf::UDPPointToPointConfig* udp_config_;
255 ::
google::protobuf::int32 echo_report_timeout_seconds_;
256 bool echo_report_in_simulation_;
257 int echo_issue_solution_;
258 ::
google::protobuf::int32 echo_trigger_issue_timeout_seconds_;
267 #pragma GCC diagnostic push
268 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
274 return (_has_bits_[0] & 0x00000001u) != 0;
276 inline void EchoDriver::set_has_app() {
277 _has_bits_[0] |= 0x00000001u;
279 inline void EchoDriver::clear_has_app() {
280 _has_bits_[0] &= ~0x00000001u;
282 inline const ::goby::middleware::protobuf::AppConfig& EchoDriver::_internal_app()
const {
286 const ::goby::middleware::protobuf::AppConfig* p = app_;
288 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
289 &::goby::middleware::protobuf::_AppConfig_default_instance_);
294 ::goby::middleware::protobuf::AppConfig* temp = app_;
301 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
308 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
309 if (message_arena == NULL) {
310 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(app_);
313 ::google::protobuf::Arena* submessage_arena = NULL;
314 if (message_arena != submessage_arena) {
315 app = ::google::protobuf::internal::GetOwnedMessage(
316 message_arena,
app, submessage_arena);
328 return (_has_bits_[0] & 0x00000002u) != 0;
330 inline void EchoDriver::set_has_interprocess() {
331 _has_bits_[0] |= 0x00000002u;
333 inline void EchoDriver::clear_has_interprocess() {
334 _has_bits_[0] &= ~0x00000002u;
336 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& EchoDriver::_internal_interprocess()
const {
337 return *interprocess_;
340 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
342 return p != NULL ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
343 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
347 clear_has_interprocess();
348 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
349 interprocess_ = NULL;
353 set_has_interprocess();
354 if (interprocess_ == NULL) {
355 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
359 return interprocess_;
362 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
363 if (message_arena == NULL) {
364 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(interprocess_);
367 ::google::protobuf::Arena* submessage_arena = NULL;
368 if (message_arena != submessage_arena) {
369 interprocess = ::google::protobuf::internal::GetOwnedMessage(
372 set_has_interprocess();
374 clear_has_interprocess();
382 return (_has_bits_[0] & 0x00000004u) != 0;
384 inline void EchoDriver::set_has_udp_config() {
385 _has_bits_[0] |= 0x00000004u;
387 inline void EchoDriver::clear_has_udp_config() {
388 _has_bits_[0] &= ~0x00000004u;
390 inline const ::goby::middleware::protobuf::UDPPointToPointConfig& EchoDriver::_internal_udp_config()
const {
394 const ::goby::middleware::protobuf::UDPPointToPointConfig* p = udp_config_;
396 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::UDPPointToPointConfig*
>(
397 &::goby::middleware::protobuf::_UDPPointToPointConfig_default_instance_);
401 clear_has_udp_config();
402 ::goby::middleware::protobuf::UDPPointToPointConfig* temp = udp_config_;
407 set_has_udp_config();
408 if (udp_config_ == NULL) {
409 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::UDPPointToPointConfig>(GetArenaNoVirtual());
416 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
417 if (message_arena == NULL) {
418 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(udp_config_);
421 ::google::protobuf::Arena* submessage_arena = NULL;
422 if (message_arena != submessage_arena) {
423 udp_config = ::google::protobuf::internal::GetOwnedMessage(
426 set_has_udp_config();
428 clear_has_udp_config();
436 return (_has_bits_[0] & 0x00000008u) != 0;
438 inline void EchoDriver::set_has_echo_report_timeout_seconds() {
439 _has_bits_[0] |= 0x00000008u;
441 inline void EchoDriver::clear_has_echo_report_timeout_seconds() {
442 _has_bits_[0] &= ~0x00000008u;
445 echo_report_timeout_seconds_ = 20;
446 clear_has_echo_report_timeout_seconds();
450 return echo_report_timeout_seconds_;
453 set_has_echo_report_timeout_seconds();
454 echo_report_timeout_seconds_ = value;
460 return (_has_bits_[0] & 0x00000010u) != 0;
462 inline void EchoDriver::set_has_echo_report_in_simulation() {
463 _has_bits_[0] |= 0x00000010u;
465 inline void EchoDriver::clear_has_echo_report_in_simulation() {
466 _has_bits_[0] &= ~0x00000010u;
469 echo_report_in_simulation_ =
true;
470 clear_has_echo_report_in_simulation();
474 return echo_report_in_simulation_;
477 set_has_echo_report_in_simulation();
478 echo_report_in_simulation_ = value;
484 return (_has_bits_[0] & 0x00000020u) != 0;
486 inline void EchoDriver::set_has_echo_issue_solution() {
487 _has_bits_[0] |= 0x00000020u;
489 inline void EchoDriver::clear_has_echo_issue_solution() {
490 _has_bits_[0] &= ~0x00000020u;
493 echo_issue_solution_ = 3;
494 clear_has_echo_issue_solution();
502 set_has_echo_issue_solution();
503 echo_issue_solution_ = value;
509 return (_has_bits_[0] & 0x00000040u) != 0;
511 inline void EchoDriver::set_has_echo_trigger_issue_timeout_seconds() {
512 _has_bits_[0] |= 0x00000040u;
514 inline void EchoDriver::clear_has_echo_trigger_issue_timeout_seconds() {
515 _has_bits_[0] &= ~0x00000040u;
518 echo_trigger_issue_timeout_seconds_ = 20;
519 clear_has_echo_trigger_issue_timeout_seconds();
523 return echo_trigger_issue_timeout_seconds_;
526 set_has_echo_trigger_issue_timeout_seconds();
527 echo_trigger_issue_timeout_seconds_ = value;
532 #pragma GCC diagnostic pop
542 #endif // PROTOBUF_INCLUDED_bin_2fdrivers_2fecho_2fconfig_2eproto