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"
35 #include "goby/middleware/protobuf/udp_config.pb.h"
37 #include <boost/units/quantity.hpp>
38 #include <boost/units/absolute.hpp>
39 #include <boost/units/dimensionless_type.hpp>
40 #include <boost/units/make_scaled_unit.hpp>
42 #define PROTOBUF_INTERNAL_EXPORT_protobuf_bin_2fdrivers_2fecho_2fconfig_2eproto
47 static const ::google::protobuf::internal::ParseTableField
entries[];
48 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
49 static const ::google::protobuf::internal::ParseTable
schema[1];
52 static const ::google::protobuf::uint32
offsets[];
59 class EchoDriverDefaultTypeInternal;
87 *
this = ::std::move(from);
91 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
92 if (
this != &from) InternalSwap(&from);
100 return _internal_metadata_.unknown_fields();
103 return _internal_metadata_.mutable_unknown_fields();
106 static const ::google::protobuf::Descriptor*
descriptor();
125 return CreateMaybeMessage<EchoDriver>(NULL);
129 return CreateMaybeMessage<EchoDriver>(arena);
131 void CopyFrom(const ::google::protobuf::Message& from)
final;
132 void MergeFrom(const ::google::protobuf::Message& from)
final;
140 ::
google::protobuf::io::CodedInputStream* input) final;
142 ::
google::protobuf::io::CodedOutputStream* output) const final;
144 bool deterministic, ::
google::protobuf::uint8* target) const final;
150 void SetCachedSize(
int size)
const final;
153 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
156 inline void* MaybeArenaPtr()
const {
161 ::google::protobuf::Metadata
GetMetadata() const final;
172 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
174 const ::
goby::middleware::protobuf::AppConfig&
app() const;
184 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
186 const ::
goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess() const;
196 const ::
goby::middleware::protobuf::UDPPointToPointConfig& _internal_udp_config() const;
198 const ::
goby::middleware::protobuf::UDPPointToPointConfig&
udp_config() const;
234 void clear_has_app();
235 void set_has_interprocess();
236 void clear_has_interprocess();
237 void set_has_udp_config();
238 void clear_has_udp_config();
239 void set_has_echo_report_timeout_seconds();
240 void clear_has_echo_report_timeout_seconds();
241 void set_has_echo_report_in_simulation();
242 void clear_has_echo_report_in_simulation();
243 void set_has_echo_issue_solution();
244 void clear_has_echo_issue_solution();
245 void set_has_echo_trigger_issue_timeout_seconds();
246 void clear_has_echo_trigger_issue_timeout_seconds();
248 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
249 ::
google::protobuf::internal::HasBits<1> _has_bits_;
250 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
251 ::
goby::middleware::protobuf::AppConfig* app_;
252 ::
goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
253 ::
goby::middleware::protobuf::UDPPointToPointConfig* udp_config_;
254 ::
google::protobuf::int32 echo_report_timeout_seconds_;
255 bool echo_report_in_simulation_;
256 int echo_issue_solution_;
257 ::
google::protobuf::int32 echo_trigger_issue_timeout_seconds_;
266 #pragma GCC diagnostic push
267 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
273 return (_has_bits_[0] & 0x00000001u) != 0;
275 inline void EchoDriver::set_has_app() {
276 _has_bits_[0] |= 0x00000001u;
278 inline void EchoDriver::clear_has_app() {
279 _has_bits_[0] &= ~0x00000001u;
281 inline const ::goby::middleware::protobuf::AppConfig& EchoDriver::_internal_app()
const {
285 const ::goby::middleware::protobuf::AppConfig* p = app_;
287 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
288 &::goby::middleware::protobuf::_AppConfig_default_instance_);
293 ::goby::middleware::protobuf::AppConfig* temp = app_;
300 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
307 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
308 if (message_arena == NULL) {
309 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(app_);
312 ::google::protobuf::Arena* submessage_arena = NULL;
313 if (message_arena != submessage_arena) {
314 app = ::google::protobuf::internal::GetOwnedMessage(
315 message_arena,
app, submessage_arena);
327 return (_has_bits_[0] & 0x00000002u) != 0;
329 inline void EchoDriver::set_has_interprocess() {
330 _has_bits_[0] |= 0x00000002u;
332 inline void EchoDriver::clear_has_interprocess() {
333 _has_bits_[0] &= ~0x00000002u;
335 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& EchoDriver::_internal_interprocess()
const {
336 return *interprocess_;
339 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
341 return p != NULL ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
342 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
346 clear_has_interprocess();
347 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
348 interprocess_ = NULL;
352 set_has_interprocess();
353 if (interprocess_ == NULL) {
354 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
358 return interprocess_;
361 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
362 if (message_arena == NULL) {
363 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(interprocess_);
366 ::google::protobuf::Arena* submessage_arena = NULL;
367 if (message_arena != submessage_arena) {
368 interprocess = ::google::protobuf::internal::GetOwnedMessage(
371 set_has_interprocess();
373 clear_has_interprocess();
381 return (_has_bits_[0] & 0x00000004u) != 0;
383 inline void EchoDriver::set_has_udp_config() {
384 _has_bits_[0] |= 0x00000004u;
386 inline void EchoDriver::clear_has_udp_config() {
387 _has_bits_[0] &= ~0x00000004u;
389 inline const ::goby::middleware::protobuf::UDPPointToPointConfig& EchoDriver::_internal_udp_config()
const {
393 const ::goby::middleware::protobuf::UDPPointToPointConfig* p = udp_config_;
395 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::UDPPointToPointConfig*
>(
396 &::goby::middleware::protobuf::_UDPPointToPointConfig_default_instance_);
400 clear_has_udp_config();
401 ::goby::middleware::protobuf::UDPPointToPointConfig* temp = udp_config_;
406 set_has_udp_config();
407 if (udp_config_ == NULL) {
408 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::UDPPointToPointConfig>(GetArenaNoVirtual());
415 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
416 if (message_arena == NULL) {
417 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(udp_config_);
420 ::google::protobuf::Arena* submessage_arena = NULL;
421 if (message_arena != submessage_arena) {
422 udp_config = ::google::protobuf::internal::GetOwnedMessage(
425 set_has_udp_config();
427 clear_has_udp_config();
435 return (_has_bits_[0] & 0x00000008u) != 0;
437 inline void EchoDriver::set_has_echo_report_timeout_seconds() {
438 _has_bits_[0] |= 0x00000008u;
440 inline void EchoDriver::clear_has_echo_report_timeout_seconds() {
441 _has_bits_[0] &= ~0x00000008u;
444 echo_report_timeout_seconds_ = 20;
445 clear_has_echo_report_timeout_seconds();
449 return echo_report_timeout_seconds_;
452 set_has_echo_report_timeout_seconds();
453 echo_report_timeout_seconds_ = value;
459 return (_has_bits_[0] & 0x00000010u) != 0;
461 inline void EchoDriver::set_has_echo_report_in_simulation() {
462 _has_bits_[0] |= 0x00000010u;
464 inline void EchoDriver::clear_has_echo_report_in_simulation() {
465 _has_bits_[0] &= ~0x00000010u;
468 echo_report_in_simulation_ =
true;
469 clear_has_echo_report_in_simulation();
473 return echo_report_in_simulation_;
476 set_has_echo_report_in_simulation();
477 echo_report_in_simulation_ = value;
483 return (_has_bits_[0] & 0x00000020u) != 0;
485 inline void EchoDriver::set_has_echo_issue_solution() {
486 _has_bits_[0] |= 0x00000020u;
488 inline void EchoDriver::clear_has_echo_issue_solution() {
489 _has_bits_[0] &= ~0x00000020u;
492 echo_issue_solution_ = 3;
493 clear_has_echo_issue_solution();
501 set_has_echo_issue_solution();
502 echo_issue_solution_ = value;
508 return (_has_bits_[0] & 0x00000040u) != 0;
510 inline void EchoDriver::set_has_echo_trigger_issue_timeout_seconds() {
511 _has_bits_[0] |= 0x00000040u;
513 inline void EchoDriver::clear_has_echo_trigger_issue_timeout_seconds() {
514 _has_bits_[0] &= ~0x00000040u;
517 echo_trigger_issue_timeout_seconds_ = 20;
518 clear_has_echo_trigger_issue_timeout_seconds();
522 return echo_trigger_issue_timeout_seconds_;
525 set_has_echo_trigger_issue_timeout_seconds();
526 echo_trigger_issue_timeout_seconds_ = value;
531 #pragma GCC diagnostic pop
541 #endif // PROTOBUF_INCLUDED_bin_2fdrivers_2fecho_2fconfig_2eproto