4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2ffrontseat_2fsimulator_2fbasic_2fbasic_5fsimulator_5ffrontseat_5fdriver_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2ffrontseat_2fsimulator_2fbasic_2fbasic_5fsimulator_5ffrontseat_5fdriver_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>
35 #include <boost/units/quantity.hpp>
36 #include <boost/units/absolute.hpp>
37 #include <boost/units/dimensionless_type.hpp>
38 #include <boost/units/make_scaled_unit.hpp>
40 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmiddleware_2ffrontseat_2fsimulator_2fbasic_2fbasic_5fsimulator_5ffrontseat_5fdriver_5fconfig_2eproto
45 static const ::google::protobuf::internal::ParseTableField
entries[];
46 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
47 static const ::google::protobuf::internal::ParseTable
schema[3];
55 namespace middleware {
58 class BasicSimulatorFrontSeatConfig;
59 class BasicSimulatorFrontSeatConfigDefaultTypeInternal;
61 class BasicSimulatorFrontSeatConfig_StartParams;
62 class BasicSimulatorFrontSeatConfig_StartParamsDefaultTypeInternal;
64 class BasicSimulatorFrontSeatConfig_StartParams_VehicleConfig;
65 class BasicSimulatorFrontSeatConfig_StartParams_VehicleConfigDefaultTypeInternal;
79 namespace middleware {
99 *
this = ::std::move(from);
103 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
104 if (
this != &from) InternalSwap(&from);
112 return _internal_metadata_.unknown_fields();
115 return _internal_metadata_.mutable_unknown_fields();
118 static const ::google::protobuf::Descriptor*
descriptor();
137 return CreateMaybeMessage<BasicSimulatorFrontSeatConfig_StartParams_VehicleConfig>(NULL);
141 return CreateMaybeMessage<BasicSimulatorFrontSeatConfig_StartParams_VehicleConfig>(arena);
143 void CopyFrom(const ::google::protobuf::Message& from)
final;
144 void MergeFrom(const ::google::protobuf::Message& from)
final;
152 ::
google::protobuf::io::CodedInputStream* input) final;
154 ::
google::protobuf::io::CodedOutputStream* output) const final;
156 bool deterministic, ::
google::protobuf::uint8* target) const final;
162 void SetCachedSize(
int size)
const final;
165 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
168 inline void* MaybeArenaPtr()
const {
183 double accel() const;
202 void set_has_accel();
203 void clear_has_accel();
204 void set_has_hdg_rate();
205 void clear_has_hdg_rate();
206 void set_has_z_rate();
207 void clear_has_z_rate();
209 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
210 ::
google::protobuf::internal::HasBits<1> _has_bits_;
211 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
233 *
this = ::std::move(from);
236 inline BasicSimulatorFrontSeatConfig_StartParams&
operator=(BasicSimulatorFrontSeatConfig_StartParams&& from) noexcept {
237 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
238 if (
this != &from) InternalSwap(&from);
246 return _internal_metadata_.unknown_fields();
249 return _internal_metadata_.mutable_unknown_fields();
252 static const ::google::protobuf::Descriptor*
descriptor();
271 return CreateMaybeMessage<BasicSimulatorFrontSeatConfig_StartParams>(NULL);
275 return CreateMaybeMessage<BasicSimulatorFrontSeatConfig_StartParams>(arena);
277 void CopyFrom(const ::google::protobuf::Message& from)
final;
278 void MergeFrom(const ::google::protobuf::Message& from)
final;
286 ::
google::protobuf::io::CodedInputStream* input) final;
288 ::
google::protobuf::io::CodedOutputStream* output) const final;
290 bool deterministic, ::
google::protobuf::uint8* target) const final;
296 void SetCachedSize(
int size)
const final;
299 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
302 inline void* MaybeArenaPtr()
const {
316 bool has_vehicle() const;
317 void clear_vehicle();
318 static const
int kVehicleFieldNumber = 5;
328 bool has_lat() const;
330 static const
int kLatFieldNumber = 1;
332 void set_lat(
double value);
335 bool has_lon() const;
337 static const
int kLonFieldNumber = 2;
339 void set_lon(
double value);
342 bool has_duration() const;
343 void clear_duration();
344 static const
int kDurationFieldNumber = 3;
346 void set_duration(::
google::protobuf::
int32 value);
349 bool has_control_freq() const;
350 void clear_control_freq();
351 static const
int kControlFreqFieldNumber = 4;
353 void set_control_freq(::
google::protobuf::
int32 value);
358 void clear_has_lat();
360 void clear_has_lon();
361 void set_has_duration();
362 void clear_has_duration();
363 void set_has_control_freq();
364 void clear_has_control_freq();
365 void set_has_vehicle();
366 void clear_has_vehicle();
369 size_t RequiredFieldsByteSizeFallback() const;
371 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
372 ::
google::protobuf::internal::HasBits<1> _has_bits_;
373 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
397 *
this = ::std::move(from);
400 inline BasicSimulatorFrontSeatConfig&
operator=(BasicSimulatorFrontSeatConfig&& from) noexcept {
401 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
402 if (
this != &from) InternalSwap(&from);
410 return _internal_metadata_.unknown_fields();
413 return _internal_metadata_.mutable_unknown_fields();
416 static const ::google::protobuf::Descriptor*
descriptor();
435 return CreateMaybeMessage<BasicSimulatorFrontSeatConfig>(NULL);
439 return CreateMaybeMessage<BasicSimulatorFrontSeatConfig>(arena);
441 void CopyFrom(const ::google::protobuf::Message& from)
final;
442 void MergeFrom(const ::google::protobuf::Message& from)
final;
450 ::
google::protobuf::io::CodedInputStream* input) final;
452 ::
google::protobuf::io::CodedOutputStream* output) const final;
454 bool deterministic, ::
google::protobuf::uint8* target) const final;
460 void SetCachedSize(
int size)
const final;
463 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
466 inline void* MaybeArenaPtr()
const {
480 bool has_tcp_address() const;
481 void clear_tcp_address();
482 static const
int kTcpAddressFieldNumber = 1;
483 const ::std::
string& tcp_address() const;
484 void set_tcp_address(const ::std::
string& value);
486 void set_tcp_address(::std::string&& value);
488 void set_tcp_address(
const char* value);
489 void set_tcp_address(
const char* value,
size_t size);
490 ::std::string* mutable_tcp_address();
491 ::std::string* release_tcp_address();
492 void set_allocated_tcp_address(::std::string* tcp_address);
495 bool has_start()
const;
497 static const int kStartFieldNumber = 3;
499 const ::goby::middleware::frontseat::protobuf::BasicSimulatorFrontSeatConfig_StartParams& _internal_start()
const;
501 const ::goby::middleware::frontseat::protobuf::BasicSimulatorFrontSeatConfig_StartParams& start()
const;
507 bool has_tcp_port()
const;
508 void clear_tcp_port();
509 static const int kTcpPortFieldNumber = 2;
515 void set_has_tcp_address();
516 void clear_has_tcp_address();
517 void set_has_tcp_port();
518 void clear_has_tcp_port();
519 void set_has_start();
520 void clear_has_start();
523 size_t RequiredFieldsByteSizeFallback()
const;
525 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
526 ::google::protobuf::internal::HasBits<1> _has_bits_;
527 mutable ::google::protobuf::internal::CachedSize _cached_size_;
528 ::google::protobuf::internal::ArenaStringPtr tcp_address_;
531 friend struct ::protobuf_goby_2fmiddleware_2ffrontseat_2fsimulator_2fbasic_2fbasic_5fsimulator_5ffrontseat_5fdriver_5fconfig_2eproto::TableStruct;
537 ::google::protobuf::internal::MessageTypeTraits< ::goby::middleware::frontseat::protobuf::BasicSimulatorFrontSeatConfig >, 11,
false >
543 #pragma GCC diagnostic push
544 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
550 return (_has_bits_[0] & 0x00000001u) != 0;
552 inline void BasicSimulatorFrontSeatConfig_StartParams_VehicleConfig::set_has_accel() {
553 _has_bits_[0] |= 0x00000001u;
555 inline void BasicSimulatorFrontSeatConfig_StartParams_VehicleConfig::clear_has_accel() {
556 _has_bits_[0] &= ~0x00000001u;
574 return (_has_bits_[0] & 0x00000002u) != 0;
576 inline void BasicSimulatorFrontSeatConfig_StartParams_VehicleConfig::set_has_hdg_rate() {
577 _has_bits_[0] |= 0x00000002u;
579 inline void BasicSimulatorFrontSeatConfig_StartParams_VehicleConfig::clear_has_hdg_rate() {
580 _has_bits_[0] &= ~0x00000002u;
584 clear_has_hdg_rate();
598 return (_has_bits_[0] & 0x00000004u) != 0;
600 inline void BasicSimulatorFrontSeatConfig_StartParams_VehicleConfig::set_has_z_rate() {
601 _has_bits_[0] |= 0x00000004u;
603 inline void BasicSimulatorFrontSeatConfig_StartParams_VehicleConfig::clear_has_z_rate() {
604 _has_bits_[0] &= ~0x00000004u;
626 return (_has_bits_[0] & 0x00000002u) != 0;
628 inline void BasicSimulatorFrontSeatConfig_StartParams::set_has_lat() {
629 _has_bits_[0] |= 0x00000002u;
631 inline void BasicSimulatorFrontSeatConfig_StartParams::clear_has_lat() {
632 _has_bits_[0] &= ~0x00000002u;
650 return (_has_bits_[0] & 0x00000004u) != 0;
652 inline void BasicSimulatorFrontSeatConfig_StartParams::set_has_lon() {
653 _has_bits_[0] |= 0x00000004u;
655 inline void BasicSimulatorFrontSeatConfig_StartParams::clear_has_lon() {
656 _has_bits_[0] &= ~0x00000004u;
674 return (_has_bits_[0] & 0x00000008u) != 0;
676 inline void BasicSimulatorFrontSeatConfig_StartParams::set_has_duration() {
677 _has_bits_[0] |= 0x00000008u;
679 inline void BasicSimulatorFrontSeatConfig_StartParams::clear_has_duration() {
680 _has_bits_[0] &= ~0x00000008u;
684 clear_has_duration();
698 return (_has_bits_[0] & 0x00000010u) != 0;
700 inline void BasicSimulatorFrontSeatConfig_StartParams::set_has_control_freq() {
701 _has_bits_[0] |= 0x00000010u;
703 inline void BasicSimulatorFrontSeatConfig_StartParams::clear_has_control_freq() {
704 _has_bits_[0] &= ~0x00000010u;
708 clear_has_control_freq();
712 return control_freq_;
715 set_has_control_freq();
716 control_freq_ = value;
722 return (_has_bits_[0] & 0x00000001u) != 0;
724 inline void BasicSimulatorFrontSeatConfig_StartParams::set_has_vehicle() {
725 _has_bits_[0] |= 0x00000001u;
727 inline void BasicSimulatorFrontSeatConfig_StartParams::clear_has_vehicle() {
728 _has_bits_[0] &= ~0x00000001u;
731 if (vehicle_ != NULL) vehicle_->Clear();
734 inline const ::goby::middleware::frontseat::protobuf::BasicSimulatorFrontSeatConfig_StartParams_VehicleConfig& BasicSimulatorFrontSeatConfig_StartParams::_internal_vehicle()
const {
738 const ::goby::middleware::frontseat::protobuf::BasicSimulatorFrontSeatConfig_StartParams_VehicleConfig* p = vehicle_;
752 if (vehicle_ == NULL) {
753 auto* p = CreateMaybeMessage<::goby::middleware::frontseat::protobuf::BasicSimulatorFrontSeatConfig_StartParams_VehicleConfig>(GetArenaNoVirtual());
761 if (message_arena == NULL) {
766 if (message_arena != submessage_arena) {
767 vehicle = ::google::protobuf::internal::GetOwnedMessage(
768 message_arena, vehicle, submessage_arena);
784 return (_has_bits_[0] & 0x00000001u) != 0;
786 inline void BasicSimulatorFrontSeatConfig::set_has_tcp_address() {
787 _has_bits_[0] |= 0x00000001u;
789 inline void BasicSimulatorFrontSeatConfig::clear_has_tcp_address() {
790 _has_bits_[0] &= ~0x00000001u;
794 clear_has_tcp_address();
798 return tcp_address_.GetNoArena();
801 set_has_tcp_address();
807 set_has_tcp_address();
808 tcp_address_.SetNoArena(
814 GOOGLE_DCHECK(value != NULL);
815 set_has_tcp_address();
820 set_has_tcp_address();
822 ::std::string(
reinterpret_cast<const char*
>(value), size));
826 set_has_tcp_address();
832 if (!has_tcp_address()) {
835 clear_has_tcp_address();
839 if (tcp_address != NULL) {
840 set_has_tcp_address();
842 clear_has_tcp_address();
850 return (_has_bits_[0] & 0x00000004u) != 0;
852 inline void BasicSimulatorFrontSeatConfig::set_has_tcp_port() {
853 _has_bits_[0] |= 0x00000004u;
855 inline void BasicSimulatorFrontSeatConfig::clear_has_tcp_port() {
856 _has_bits_[0] &= ~0x00000004u;
860 clear_has_tcp_port();
874 return (_has_bits_[0] & 0x00000002u) != 0;
876 inline void BasicSimulatorFrontSeatConfig::set_has_start() {
877 _has_bits_[0] |= 0x00000002u;
879 inline void BasicSimulatorFrontSeatConfig::clear_has_start() {
880 _has_bits_[0] &= ~0x00000002u;
883 if (start_ != NULL) start_->Clear();
886 inline const ::goby::middleware::frontseat::protobuf::BasicSimulatorFrontSeatConfig_StartParams& BasicSimulatorFrontSeatConfig::_internal_start()
const {
890 const ::goby::middleware::frontseat::protobuf::BasicSimulatorFrontSeatConfig_StartParams* p = start_;
904 if (start_ == NULL) {
905 auto* p = CreateMaybeMessage<::goby::middleware::frontseat::protobuf::BasicSimulatorFrontSeatConfig_StartParams>(GetArenaNoVirtual());
913 if (message_arena == NULL) {
918 if (message_arena != submessage_arena) {
919 start = ::google::protobuf::internal::GetOwnedMessage(
920 message_arena, start, submessage_arena);
931 #pragma GCC diagnostic pop
947 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2ffrontseat_2fsimulator_2fbasic_2fbasic_5fsimulator_5ffrontseat_5fdriver_5fconfig_2eproto