4 #ifndef PROTOBUF_INCLUDED_bin_2fmission_5frepeater_2fconfig_2eproto
5 #define PROTOBUF_INCLUDED_bin_2fmission_5frepeater_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 "dccl/option_extensions.pb.h"
34 #include "goby/middleware/protobuf/app_config.pb.h"
35 #include "goby/zeromq/protobuf/interprocess_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 #include <boost/units/systems/si.hpp>
45 #define PROTOBUF_INTERNAL_EXPORT_protobuf_bin_2fmission_5frepeater_2fconfig_2eproto
50 static const ::google::protobuf::internal::ParseTableField
entries[];
51 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
52 static const ::google::protobuf::internal::ParseTable
schema[3];
55 static const ::google::protobuf::uint32
offsets[];
61 class MissionRepeater;
62 class MissionRepeaterDefaultTypeInternal;
64 class MissionRepeater_Script;
65 class MissionRepeater_ScriptDefaultTypeInternal;
67 class MissionRepeater_Script_Step;
68 class MissionRepeater_Script_StepDefaultTypeInternal;
98 *
this = ::std::move(from);
102 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
103 if (
this != &from) InternalSwap(&from);
111 return _internal_metadata_.unknown_fields();
114 return _internal_metadata_.mutable_unknown_fields();
117 static const ::google::protobuf::Descriptor*
descriptor();
142 return CreateMaybeMessage<MissionRepeater_Script_Step>(NULL);
146 return CreateMaybeMessage<MissionRepeater_Script_Step>(arena);
148 void CopyFrom(const ::google::protobuf::Message& from)
final;
149 void MergeFrom(const ::google::protobuf::Message& from)
final;
157 ::
google::protobuf::io::CodedInputStream* input) final;
159 ::
google::protobuf::io::CodedOutputStream* output) const final;
161 bool deterministic, ::
google::protobuf::uint8* target) const final;
167 void SetCachedSize(
int size)
const final;
170 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
173 inline void* MaybeArenaPtr()
const {
178 ::google::protobuf::Metadata
GetMetadata() const final;
210 const ::
jaiabot::protobuf::DesiredSetpoints& _internal_desired_setpoints() const;
222 const ::
jaiabot::protobuf::LowControl& _internal_low_control() const;
235 template<typename Quantity >
237 {
set_duration(boost::units::quantity<duration_unit,double >(value_w_units).value() ); };
239 template<
typename Quantity >
244 {
return duration_with_units<boost::units::quantity< duration_unit,double > >(); };
250 template<
typename Quantity >
252 {
set_repeat_interval(boost::units::quantity<repeat_interval_unit,double >(value_w_units).value() ); };
254 template<
typename Quantity >
259 {
return repeat_interval_with_units<boost::units::quantity< repeat_interval_unit,double > >(); };
263 void set_has_duration();
264 void clear_has_duration();
265 void set_has_step_marker();
266 void clear_has_step_marker();
267 void set_has_repeat_interval();
268 void clear_has_repeat_interval();
269 void set_has_desired_setpoints();
270 void set_has_low_control();
272 inline bool has_publication()
const;
273 inline void clear_has_publication();
276 size_t RequiredFieldsByteSizeFallback()
const;
278 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
279 ::google::protobuf::internal::HasBits<1> _has_bits_;
280 mutable ::google::protobuf::internal::CachedSize _cached_size_;
282 double repeat_interval_;
283 ::google::protobuf::int32 step_marker_;
284 union PublicationUnion {
285 PublicationUnion() {}
289 ::google::protobuf::uint32 _oneof_case_[1];
291 friend struct ::protobuf_bin_2fmission_5frepeater_2fconfig_2eproto::TableStruct;
309 *
this = ::std::move(from);
313 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
314 if (
this != &from) InternalSwap(&from);
322 return _internal_metadata_.unknown_fields();
325 return _internal_metadata_.mutable_unknown_fields();
328 static const ::google::protobuf::Descriptor*
descriptor();
347 return CreateMaybeMessage<MissionRepeater_Script>(NULL);
351 return CreateMaybeMessage<MissionRepeater_Script>(arena);
353 void CopyFrom(const ::google::protobuf::Message& from)
final;
354 void MergeFrom(const ::google::protobuf::Message& from)
final;
362 ::
google::protobuf::io::CodedInputStream* input) final;
364 ::
google::protobuf::io::CodedOutputStream* output) const final;
366 bool deterministic, ::
google::protobuf::uint8* target) const final;
372 void SetCachedSize(
int size)
const final;
375 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
378 inline void* MaybeArenaPtr()
const {
383 ::google::protobuf::Metadata
GetMetadata() const final;
406 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
407 ::
google::protobuf::internal::HasBits<1> _has_bits_;
408 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
428 *
this = ::std::move(from);
431 inline MissionRepeater&
operator=(MissionRepeater&& from) noexcept {
432 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
433 if (
this != &from) InternalSwap(&from);
441 return _internal_metadata_.unknown_fields();
444 return _internal_metadata_.mutable_unknown_fields();
447 static const ::google::protobuf::Descriptor*
descriptor();
466 return CreateMaybeMessage<MissionRepeater>(NULL);
470 return CreateMaybeMessage<MissionRepeater>(arena);
472 void CopyFrom(const ::google::protobuf::Message& from)
final;
473 void MergeFrom(const ::google::protobuf::Message& from)
final;
481 ::
google::protobuf::io::CodedInputStream* input) final;
483 ::
google::protobuf::io::CodedOutputStream* output) const final;
485 bool deterministic, ::
google::protobuf::uint8* target) const final;
491 void SetCachedSize(
int size)
const final;
494 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
497 inline void* MaybeArenaPtr()
const {
502 ::google::protobuf::Metadata
GetMetadata() const final;
511 bool has_app() const;
513 static const
int kAppFieldNumber = 1;
515 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
517 const ::
goby::middleware::protobuf::AppConfig& app() const;
518 ::
goby::middleware::protobuf::AppConfig* release_app();
519 ::
goby::middleware::protobuf::AppConfig* mutable_app();
520 void set_allocated_app(::
goby::middleware::protobuf::AppConfig* app);
523 bool has_interprocess() const;
524 void clear_interprocess();
525 static const
int kInterprocessFieldNumber = 2;
527 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
529 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
530 ::
goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
531 ::
goby::zeromq::protobuf::InterProcessPortalConfig* mutable_interprocess();
532 void set_allocated_interprocess(::
goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
535 bool has_script() const;
537 static const
int kScriptFieldNumber = 20;
547 bool has_bot_id() const;
549 static const
int kBotIdFieldNumber = 10;
550 ::
google::protobuf::int32 bot_id() const;
551 void set_bot_id(::
google::protobuf::int32 value);
556 void clear_has_app();
557 void set_has_interprocess();
558 void clear_has_interprocess();
559 void set_has_bot_id();
560 void clear_has_bot_id();
561 void set_has_script();
562 void clear_has_script();
565 size_t RequiredFieldsByteSizeFallback() const;
567 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
568 ::
google::protobuf::internal::HasBits<1> _has_bits_;
569 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
570 ::
goby::middleware::protobuf::AppConfig* app_;
571 ::
goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
573 ::
google::protobuf::int32 bot_id_;
582 #pragma GCC diagnostic push
583 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
589 return (_has_bits_[0] & 0x00000001u) != 0;
591 inline void MissionRepeater_Script_Step::set_has_duration() {
592 _has_bits_[0] |= 0x00000001u;
594 inline void MissionRepeater_Script_Step::clear_has_duration() {
595 _has_bits_[0] &= ~0x00000001u;
599 clear_has_duration();
613 return (_has_bits_[0] & 0x00000004u) != 0;
615 inline void MissionRepeater_Script_Step::set_has_step_marker() {
616 _has_bits_[0] |= 0x00000004u;
618 inline void MissionRepeater_Script_Step::clear_has_step_marker() {
619 _has_bits_[0] &= ~0x00000004u;
623 clear_has_step_marker();
630 set_has_step_marker();
631 step_marker_ = value;
637 return (_has_bits_[0] & 0x00000002u) != 0;
639 inline void MissionRepeater_Script_Step::set_has_repeat_interval() {
640 _has_bits_[0] |= 0x00000002u;
642 inline void MissionRepeater_Script_Step::clear_has_repeat_interval() {
643 _has_bits_[0] &= ~0x00000002u;
646 repeat_interval_ = 0;
647 clear_has_repeat_interval();
651 return repeat_interval_;
654 set_has_repeat_interval();
655 repeat_interval_ = value;
661 return publication_case() == kDesiredSetpoints;
663 inline void MissionRepeater_Script_Step::set_has_desired_setpoints() {
664 _oneof_case_[0] = kDesiredSetpoints;
666 inline const ::jaiabot::protobuf::DesiredSetpoints& MissionRepeater_Script_Step::_internal_desired_setpoints()
const {
667 return *publication_.desired_setpoints_;
671 if (has_desired_setpoints()) {
672 clear_has_publication();
674 publication_.desired_setpoints_ = NULL;
682 return has_desired_setpoints()
683 ? *publication_.desired_setpoints_
687 if (!has_desired_setpoints()) {
689 set_has_desired_setpoints();
690 publication_.desired_setpoints_ = CreateMaybeMessage< ::jaiabot::protobuf::DesiredSetpoints >(
691 GetArenaNoVirtual());
694 return publication_.desired_setpoints_;
699 return publication_case() == kLowControl;
701 inline void MissionRepeater_Script_Step::set_has_low_control() {
702 _oneof_case_[0] = kLowControl;
704 inline const ::jaiabot::protobuf::LowControl& MissionRepeater_Script_Step::_internal_low_control()
const {
705 return *publication_.low_control_;
709 if (has_low_control()) {
710 clear_has_publication();
712 publication_.low_control_ = NULL;
720 return has_low_control()
721 ? *publication_.low_control_
725 if (!has_low_control()) {
727 set_has_low_control();
728 publication_.low_control_ = CreateMaybeMessage< ::jaiabot::protobuf::LowControl >(
729 GetArenaNoVirtual());
732 return publication_.low_control_;
735 inline bool MissionRepeater_Script_Step::has_publication()
const {
736 return publication_case() != PUBLICATION_NOT_SET;
738 inline void MissionRepeater_Script_Step::clear_has_publication() {
739 _oneof_case_[0] = PUBLICATION_NOT_SET;
757 return step_.Mutable(index);
759 inline ::google::protobuf::RepeatedPtrField< ::jaiabot::config::MissionRepeater_Script_Step >*
766 return step_.Get(index);
772 inline const ::google::protobuf::RepeatedPtrField< ::jaiabot::config::MissionRepeater_Script_Step >&
784 return (_has_bits_[0] & 0x00000001u) != 0;
786 inline void MissionRepeater::set_has_app() {
787 _has_bits_[0] |= 0x00000001u;
789 inline void MissionRepeater::clear_has_app() {
790 _has_bits_[0] &= ~0x00000001u;
792 inline const ::goby::middleware::protobuf::AppConfig& MissionRepeater::_internal_app()
const {
796 const ::goby::middleware::protobuf::AppConfig* p = app_;
798 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
799 &::goby::middleware::protobuf::_AppConfig_default_instance_);
804 ::goby::middleware::protobuf::AppConfig* temp = app_;
811 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
818 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
819 if (message_arena == NULL) {
820 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(app_);
823 ::google::protobuf::Arena* submessage_arena = NULL;
824 if (message_arena != submessage_arena) {
825 app = ::google::protobuf::internal::GetOwnedMessage(
826 message_arena, app, submessage_arena);
838 return (_has_bits_[0] & 0x00000002u) != 0;
840 inline void MissionRepeater::set_has_interprocess() {
841 _has_bits_[0] |= 0x00000002u;
843 inline void MissionRepeater::clear_has_interprocess() {
844 _has_bits_[0] &= ~0x00000002u;
846 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& MissionRepeater::_internal_interprocess()
const {
847 return *interprocess_;
850 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
852 return p != NULL ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
853 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
857 clear_has_interprocess();
858 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
859 interprocess_ = NULL;
863 set_has_interprocess();
864 if (interprocess_ == NULL) {
865 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
869 return interprocess_;
872 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
873 if (message_arena == NULL) {
874 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(interprocess_);
877 ::google::protobuf::Arena* submessage_arena = NULL;
878 if (message_arena != submessage_arena) {
879 interprocess = ::google::protobuf::internal::GetOwnedMessage(
880 message_arena, interprocess, submessage_arena);
882 set_has_interprocess();
884 clear_has_interprocess();
886 interprocess_ = interprocess;
892 return (_has_bits_[0] & 0x00000008u) != 0;
894 inline void MissionRepeater::set_has_bot_id() {
895 _has_bits_[0] |= 0x00000008u;
897 inline void MissionRepeater::clear_has_bot_id() {
898 _has_bits_[0] &= ~0x00000008u;
916 return (_has_bits_[0] & 0x00000004u) != 0;
918 inline void MissionRepeater::set_has_script() {
919 _has_bits_[0] |= 0x00000004u;
921 inline void MissionRepeater::clear_has_script() {
922 _has_bits_[0] &= ~0x00000004u;
925 if (script_ != NULL) script_->Clear();
928 inline const ::jaiabot::config::MissionRepeater_Script& MissionRepeater::_internal_script()
const {
932 const ::jaiabot::config::MissionRepeater_Script* p = script_;
946 if (script_ == NULL) {
947 auto* p = CreateMaybeMessage<::jaiabot::config::MissionRepeater_Script>(GetArenaNoVirtual());
954 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
955 if (message_arena == NULL) {
959 ::google::protobuf::Arena* submessage_arena = NULL;
960 if (message_arena != submessage_arena) {
961 script = ::google::protobuf::internal::GetOwnedMessage(
962 message_arena, script, submessage_arena);
973 #pragma GCC diagnostic pop
987 #endif // PROTOBUF_INCLUDED_bin_2fmission_5frepeater_2fconfig_2eproto