4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ffrontseat_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ffrontseat_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>
33 #include "dccl/option_extensions.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 #include <boost/units/systems/si.hpp>
44 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmiddleware_2fprotobuf_2ffrontseat_5fconfig_2eproto
49 static const ::google::protobuf::internal::ParseTableField
entries[];
50 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
51 static const ::google::protobuf::internal::ParseTable
schema[1];
59 namespace middleware {
63 class ConfigDefaultTypeInternal;
75 namespace middleware {
95 *
this = ::std::move(from);
99 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
100 if (
this != &from) InternalSwap(&from);
108 return _internal_metadata_.unknown_fields();
111 return _internal_metadata_.mutable_unknown_fields();
114 static const ::google::protobuf::Descriptor*
descriptor();
119 return reinterpret_cast<const Config*
>(
133 return CreateMaybeMessage<Config>(NULL);
137 return CreateMaybeMessage<Config>(arena);
139 void CopyFrom(const ::google::protobuf::Message& from)
final;
140 void MergeFrom(const ::google::protobuf::Message& from)
final;
148 ::
google::protobuf::io::CodedInputStream* input) final;
150 ::
google::protobuf::io::CodedOutputStream* output) const final;
152 bool deterministic, ::
google::protobuf::uint8* target) const final;
158 void SetCachedSize(
int size)
const final;
159 void InternalSwap(
Config* other);
161 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
164 inline void* MaybeArenaPtr()
const {
179 const ::std::
string&
name() const;
180 void set_name(const ::std::
string& value);
182 void set_name(::std::string&& value);
185 void set_name(
const char* value,
size_t size);
195 const ::goby::middleware::protobuf::LatLonPoint& _internal_origin()
const;
197 const ::goby::middleware::protobuf::LatLonPoint&
origin()
const;
251 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(
Config)
256 template<typename Quantity >
260 template<
typename Quantity >
265 {
return helm_running_timeout_with_units<boost::units::quantity< helm_running_timeout_unit,double > >(); };
271 template<
typename Quantity >
275 template<
typename Quantity >
280 {
return frontseat_connected_timeout_with_units<boost::units::quantity< frontseat_connected_timeout_unit,double > >(); };
286 template<
typename Quantity >
288 {
set_status_period(boost::units::quantity<status_period_unit,google::protobuf::uint32 >(value_w_units).value() ); };
290 template<
typename Quantity >
295 {
return status_period_with_units<boost::units::quantity< status_period_unit,google::protobuf::uint32 > >(); };
300 void clear_has_name();
301 void set_has_origin();
302 void clear_has_origin();
304 void clear_has_type();
305 void set_has_require_helm();
306 void clear_has_require_helm();
307 void set_has_helm_running_timeout();
308 void clear_has_helm_running_timeout();
309 void set_has_frontseat_connected_timeout();
310 void clear_has_frontseat_connected_timeout();
311 void set_has_status_period();
312 void clear_has_status_period();
313 void set_has_exit_on_error();
314 void clear_has_exit_on_error();
315 void set_has_sim_warp_factor();
316 void clear_has_sim_warp_factor();
318 ::google::protobuf::internal::ExtensionSet _extensions_;
320 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
321 ::google::protobuf::internal::HasBits<1> _has_bits_;
322 mutable ::google::protobuf::internal::CachedSize _cached_size_;
323 ::google::protobuf::internal::ArenaStringPtr name_;
328 double helm_running_timeout_;
329 double frontseat_connected_timeout_;
332 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2ffrontseat_5fconfig_2eproto::TableStruct;
340 #pragma GCC diagnostic push
341 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
347 return (_has_bits_[0] & 0x00000001u) != 0;
349 inline void Config::set_has_name() {
350 _has_bits_[0] |= 0x00000001u;
352 inline void Config::clear_has_name() {
353 _has_bits_[0] &= ~0x00000001u;
361 return name_.GetNoArena();
377 GOOGLE_DCHECK(value != NULL);
385 ::std::string(
reinterpret_cast<const char*
>(value), size));
413 return (_has_bits_[0] & 0x00000002u) != 0;
415 inline void Config::set_has_origin() {
416 _has_bits_[0] |= 0x00000002u;
418 inline void Config::clear_has_origin() {
419 _has_bits_[0] &= ~0x00000002u;
421 inline const ::goby::middleware::protobuf::LatLonPoint& Config::_internal_origin()
const {
425 const ::goby::middleware::protobuf::LatLonPoint* p = origin_;
439 if (origin_ == NULL) {
440 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::LatLonPoint>(GetArenaNoVirtual());
448 if (message_arena == NULL) {
453 if (message_arena != submessage_arena) {
454 origin = ::google::protobuf::internal::GetOwnedMessage(
455 message_arena,
origin, submessage_arena);
467 return (_has_bits_[0] & 0x00000008u) != 0;
469 inline void Config::set_has_type() {
470 _has_bits_[0] |= 0x00000008u;
472 inline void Config::clear_has_type() {
473 _has_bits_[0] &= ~0x00000008u;
492 return (_has_bits_[0] & 0x00000010u) != 0;
494 inline void Config::set_has_require_helm() {
495 _has_bits_[0] |= 0x00000010u;
497 inline void Config::clear_has_require_helm() {
498 _has_bits_[0] &= ~0x00000010u;
501 require_helm_ =
true;
502 clear_has_require_helm();
506 return require_helm_;
509 set_has_require_helm();
510 require_helm_ = value;
516 return (_has_bits_[0] & 0x00000020u) != 0;
518 inline void Config::set_has_helm_running_timeout() {
519 _has_bits_[0] |= 0x00000020u;
521 inline void Config::clear_has_helm_running_timeout() {
522 _has_bits_[0] &= ~0x00000020u;
525 helm_running_timeout_ = 10;
526 clear_has_helm_running_timeout();
530 return helm_running_timeout_;
533 set_has_helm_running_timeout();
534 helm_running_timeout_ = value;
540 return (_has_bits_[0] & 0x00000040u) != 0;
542 inline void Config::set_has_frontseat_connected_timeout() {
543 _has_bits_[0] |= 0x00000040u;
545 inline void Config::clear_has_frontseat_connected_timeout() {
546 _has_bits_[0] &= ~0x00000040u;
549 frontseat_connected_timeout_ = 10;
550 clear_has_frontseat_connected_timeout();
554 return frontseat_connected_timeout_;
557 set_has_frontseat_connected_timeout();
558 frontseat_connected_timeout_ = value;
564 return (_has_bits_[0] & 0x00000080u) != 0;
566 inline void Config::set_has_status_period() {
567 _has_bits_[0] |= 0x00000080u;
569 inline void Config::clear_has_status_period() {
570 _has_bits_[0] &= ~0x00000080u;
574 clear_has_status_period();
578 return status_period_;
581 set_has_status_period();
582 status_period_ = value;
588 return (_has_bits_[0] & 0x00000004u) != 0;
590 inline void Config::set_has_exit_on_error() {
591 _has_bits_[0] |= 0x00000004u;
593 inline void Config::clear_has_exit_on_error() {
594 _has_bits_[0] &= ~0x00000004u;
597 exit_on_error_ =
false;
598 clear_has_exit_on_error();
602 return exit_on_error_;
605 set_has_exit_on_error();
606 exit_on_error_ = value;
612 return (_has_bits_[0] & 0x00000100u) != 0;
614 inline void Config::set_has_sim_warp_factor() {
615 _has_bits_[0] |= 0x00000100u;
617 inline void Config::clear_has_sim_warp_factor() {
618 _has_bits_[0] &= ~0x00000100u;
621 sim_warp_factor_ = 1;
622 clear_has_sim_warp_factor();
626 return sim_warp_factor_;
629 set_has_sim_warp_factor();
630 sim_warp_factor_ = value;
635 #pragma GCC diagnostic pop
647 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ffrontseat_5fconfig_2eproto