diff --git a/src/mavsdk_server/src/generated/action/action.pb.cc b/src/mavsdk_server/src/generated/action/action.pb.cc index 61a9ed2ecf..b157009c14 100644 --- a/src/mavsdk_server/src/generated/action/action.pb.cc +++ b/src/mavsdk_server/src/generated/action/action.pb.cc @@ -1,17 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: action/action.proto +// Protobuf C++ Version: 5.29.1 #include "action/action.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -23,951 +27,1403 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace mavsdk { namespace rpc { namespace action { - template -PROTOBUF_CONSTEXPR TransitionToMulticopterRequest::TransitionToMulticopterRequest(::_pbi::ConstantInitialized) {} -struct TransitionToMulticopterRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransitionToMulticopterRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransitionToMulticopterRequestDefaultTypeInternal() {} - union { - TransitionToMulticopterRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToMulticopterRequestDefaultTypeInternal _TransitionToMulticopterRequest_default_instance_; - template -PROTOBUF_CONSTEXPR TransitionToFixedwingRequest::TransitionToFixedwingRequest(::_pbi::ConstantInitialized) {} -struct TransitionToFixedwingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransitionToFixedwingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransitionToFixedwingRequestDefaultTypeInternal() {} - union { - TransitionToFixedwingRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToFixedwingRequestDefaultTypeInternal _TransitionToFixedwingRequest_default_instance_; - template -PROTOBUF_CONSTEXPR TerminateRequest::TerminateRequest(::_pbi::ConstantInitialized) {} -struct TerminateRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TerminateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TerminateRequestDefaultTypeInternal() {} - union { - TerminateRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminateRequestDefaultTypeInternal _TerminateRequest_default_instance_; - template -PROTOBUF_CONSTEXPR TakeoffRequest::TakeoffRequest(::_pbi::ConstantInitialized) {} -struct TakeoffRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TakeoffRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TakeoffRequestDefaultTypeInternal() {} - union { - TakeoffRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakeoffRequestDefaultTypeInternal _TakeoffRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ShutdownRequest::ShutdownRequest(::_pbi::ConstantInitialized) {} -struct ShutdownRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShutdownRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShutdownRequestDefaultTypeInternal() {} - union { - ShutdownRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownRequestDefaultTypeInternal _ShutdownRequest_default_instance_; - -inline constexpr SetTakeoffAltitudeRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : altitude_{0}, - _cached_size_{0} {} - -template +template +PROTOBUF_CONSTEXPR +TransitionToMulticopterRequest::TransitionToMulticopterRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct TransitionToMulticopterRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TransitionToMulticopterRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TransitionToMulticopterRequestDefaultTypeInternal() {} + union { + TransitionToMulticopterRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TransitionToMulticopterRequestDefaultTypeInternal + _TransitionToMulticopterRequest_default_instance_; +template +PROTOBUF_CONSTEXPR +TransitionToFixedwingRequest::TransitionToFixedwingRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct TransitionToFixedwingRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TransitionToFixedwingRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TransitionToFixedwingRequestDefaultTypeInternal() {} + union { + TransitionToFixedwingRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TransitionToFixedwingRequestDefaultTypeInternal _TransitionToFixedwingRequest_default_instance_; +template +PROTOBUF_CONSTEXPR TerminateRequest::TerminateRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct TerminateRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TerminateRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TerminateRequestDefaultTypeInternal() {} + union { + TerminateRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TerminateRequestDefaultTypeInternal _TerminateRequest_default_instance_; +template +PROTOBUF_CONSTEXPR TakeoffRequest::TakeoffRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct TakeoffRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TakeoffRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TakeoffRequestDefaultTypeInternal() {} + union { + TakeoffRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TakeoffRequestDefaultTypeInternal _TakeoffRequest_default_instance_; +template +PROTOBUF_CONSTEXPR ShutdownRequest::ShutdownRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct ShutdownRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ShutdownRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ShutdownRequestDefaultTypeInternal() {} + union { + ShutdownRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ShutdownRequestDefaultTypeInternal _ShutdownRequest_default_instance_; + +inline constexpr SetTakeoffAltitudeRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + altitude_{0}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequest::SetTakeoffAltitudeRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetTakeoffAltitudeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetTakeoffAltitudeRequestDefaultTypeInternal() {} - union { - SetTakeoffAltitudeRequest _instance; - }; + PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetTakeoffAltitudeRequestDefaultTypeInternal() {} + union { + SetTakeoffAltitudeRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTakeoffAltitudeRequestDefaultTypeInternal _SetTakeoffAltitudeRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetTakeoffAltitudeRequestDefaultTypeInternal _SetTakeoffAltitudeRequest_default_instance_; inline constexpr SetReturnToLaunchAltitudeRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : relative_altitude_m_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} + ::_pbi::ConstantInitialized) noexcept : + relative_altitude_m_{0}, + _cached_size_{0} +{} + +template +PROTOBUF_CONSTEXPR + SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetReturnToLaunchAltitudeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetReturnToLaunchAltitudeRequestDefaultTypeInternal() {} - union { - SetReturnToLaunchAltitudeRequest _instance; - }; + PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetReturnToLaunchAltitudeRequestDefaultTypeInternal() {} + union { + SetReturnToLaunchAltitudeRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetReturnToLaunchAltitudeRequestDefaultTypeInternal _SetReturnToLaunchAltitudeRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetReturnToLaunchAltitudeRequestDefaultTypeInternal + _SetReturnToLaunchAltitudeRequest_default_instance_; -inline constexpr SetCurrentSpeedRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : speed_m_s_{0}, - _cached_size_{0} {} +inline constexpr SetCurrentSpeedRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + speed_m_s_{0}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR SetCurrentSpeedRequest::SetCurrentSpeedRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetCurrentSpeedRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetCurrentSpeedRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetCurrentSpeedRequestDefaultTypeInternal() {} - union { - SetCurrentSpeedRequest _instance; - }; + PROTOBUF_CONSTEXPR SetCurrentSpeedRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetCurrentSpeedRequestDefaultTypeInternal() {} + union { + SetCurrentSpeedRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetCurrentSpeedRequestDefaultTypeInternal _SetCurrentSpeedRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetCurrentSpeedRequestDefaultTypeInternal _SetCurrentSpeedRequest_default_instance_; -inline constexpr SetActuatorRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : index_{0}, - value_{0}, - _cached_size_{0} {} +inline constexpr SetActuatorRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + index_{0}, + value_{0}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR SetActuatorRequest::SetActuatorRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetActuatorRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetActuatorRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetActuatorRequestDefaultTypeInternal() {} - union { - SetActuatorRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetActuatorRequestDefaultTypeInternal _SetActuatorRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ReturnToLaunchRequest::ReturnToLaunchRequest(::_pbi::ConstantInitialized) {} -struct ReturnToLaunchRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ReturnToLaunchRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ReturnToLaunchRequestDefaultTypeInternal() {} - union { - ReturnToLaunchRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReturnToLaunchRequestDefaultTypeInternal _ReturnToLaunchRequest_default_instance_; - template -PROTOBUF_CONSTEXPR RebootRequest::RebootRequest(::_pbi::ConstantInitialized) {} -struct RebootRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RebootRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RebootRequestDefaultTypeInternal() {} - union { - RebootRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RebootRequestDefaultTypeInternal _RebootRequest_default_instance_; - template -PROTOBUF_CONSTEXPR LandRequest::LandRequest(::_pbi::ConstantInitialized) {} -struct LandRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR LandRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LandRequestDefaultTypeInternal() {} - union { - LandRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandRequestDefaultTypeInternal _LandRequest_default_instance_; - template -PROTOBUF_CONSTEXPR KillRequest::KillRequest(::_pbi::ConstantInitialized) {} -struct KillRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR KillRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~KillRequestDefaultTypeInternal() {} - union { - KillRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KillRequestDefaultTypeInternal _KillRequest_default_instance_; - template -PROTOBUF_CONSTEXPR HoldRequest::HoldRequest(::_pbi::ConstantInitialized) {} -struct HoldRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR HoldRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HoldRequestDefaultTypeInternal() {} - union { - HoldRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HoldRequestDefaultTypeInternal _HoldRequest_default_instance_; - -inline constexpr GotoLocationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : latitude_deg_{0}, - longitude_deg_{0}, - absolute_altitude_m_{0}, - yaw_deg_{0}, - _cached_size_{0} {} - -template + PROTOBUF_CONSTEXPR SetActuatorRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetActuatorRequestDefaultTypeInternal() {} + union { + SetActuatorRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetActuatorRequestDefaultTypeInternal _SetActuatorRequest_default_instance_; +template +PROTOBUF_CONSTEXPR ReturnToLaunchRequest::ReturnToLaunchRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct ReturnToLaunchRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ReturnToLaunchRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ReturnToLaunchRequestDefaultTypeInternal() {} + union { + ReturnToLaunchRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ReturnToLaunchRequestDefaultTypeInternal _ReturnToLaunchRequest_default_instance_; +template +PROTOBUF_CONSTEXPR RebootRequest::RebootRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct RebootRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RebootRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~RebootRequestDefaultTypeInternal() {} + union { + RebootRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + RebootRequestDefaultTypeInternal _RebootRequest_default_instance_; +template +PROTOBUF_CONSTEXPR LandRequest::LandRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct LandRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR LandRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~LandRequestDefaultTypeInternal() {} + union { + LandRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + LandRequestDefaultTypeInternal _LandRequest_default_instance_; +template +PROTOBUF_CONSTEXPR KillRequest::KillRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct KillRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR KillRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~KillRequestDefaultTypeInternal() {} + union { + KillRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + KillRequestDefaultTypeInternal _KillRequest_default_instance_; +template +PROTOBUF_CONSTEXPR HoldRequest::HoldRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct HoldRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR HoldRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~HoldRequestDefaultTypeInternal() {} + union { + HoldRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + HoldRequestDefaultTypeInternal _HoldRequest_default_instance_; + +inline constexpr GotoLocationRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + latitude_deg_{0}, + longitude_deg_{0}, + absolute_altitude_m_{0}, + yaw_deg_{0}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR GotoLocationRequest::GotoLocationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct GotoLocationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GotoLocationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GotoLocationRequestDefaultTypeInternal() {} - union { - GotoLocationRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GotoLocationRequestDefaultTypeInternal _GotoLocationRequest_default_instance_; - template -PROTOBUF_CONSTEXPR GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest(::_pbi::ConstantInitialized) {} -struct GetTakeoffAltitudeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTakeoffAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetTakeoffAltitudeRequestDefaultTypeInternal() {} - union { - GetTakeoffAltitudeRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTakeoffAltitudeRequestDefaultTypeInternal _GetTakeoffAltitudeRequest_default_instance_; - template -PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest(::_pbi::ConstantInitialized) {} -struct GetReturnToLaunchAltitudeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetReturnToLaunchAltitudeRequestDefaultTypeInternal() {} - union { - GetReturnToLaunchAltitudeRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReturnToLaunchAltitudeRequestDefaultTypeInternal _GetReturnToLaunchAltitudeRequest_default_instance_; - -inline constexpr DoOrbitRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : radius_m_{0}, - velocity_ms_{0}, - latitude_deg_{0}, - longitude_deg_{0}, - absolute_altitude_m_{0}, - yaw_behavior_{static_cast< ::mavsdk::rpc::action::OrbitYawBehavior >(0)}, - _cached_size_{0} {} - -template + PROTOBUF_CONSTEXPR GotoLocationRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~GotoLocationRequestDefaultTypeInternal() {} + union { + GotoLocationRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + GotoLocationRequestDefaultTypeInternal _GotoLocationRequest_default_instance_; +template +PROTOBUF_CONSTEXPR GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct GetTakeoffAltitudeRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetTakeoffAltitudeRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~GetTakeoffAltitudeRequestDefaultTypeInternal() {} + union { + GetTakeoffAltitudeRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + GetTakeoffAltitudeRequestDefaultTypeInternal _GetTakeoffAltitudeRequest_default_instance_; +template +PROTOBUF_CONSTEXPR +GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct GetReturnToLaunchAltitudeRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~GetReturnToLaunchAltitudeRequestDefaultTypeInternal() {} + union { + GetReturnToLaunchAltitudeRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + GetReturnToLaunchAltitudeRequestDefaultTypeInternal + _GetReturnToLaunchAltitudeRequest_default_instance_; + +inline constexpr DoOrbitRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + radius_m_{0}, + velocity_ms_{0}, + latitude_deg_{0}, + longitude_deg_{0}, + absolute_altitude_m_{0}, + yaw_behavior_{static_cast<::mavsdk::rpc::action::OrbitYawBehavior>(0)}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR DoOrbitRequest::DoOrbitRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct DoOrbitRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DoOrbitRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DoOrbitRequestDefaultTypeInternal() {} - union { - DoOrbitRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoOrbitRequestDefaultTypeInternal _DoOrbitRequest_default_instance_; - template -PROTOBUF_CONSTEXPR DisarmRequest::DisarmRequest(::_pbi::ConstantInitialized) {} -struct DisarmRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DisarmRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DisarmRequestDefaultTypeInternal() {} - union { - DisarmRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisarmRequestDefaultTypeInternal _DisarmRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ArmRequest::ArmRequest(::_pbi::ConstantInitialized) {} -struct ArmRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArmRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ArmRequestDefaultTypeInternal() {} - union { - ArmRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmRequestDefaultTypeInternal _ArmRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ArmForceRequest::ArmForceRequest(::_pbi::ConstantInitialized) {} -struct ArmForceRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArmForceRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ArmForceRequestDefaultTypeInternal() {} - union { - ArmForceRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmForceRequestDefaultTypeInternal _ArmForceRequest_default_instance_; - -inline constexpr ActionResult::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : result_str_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - result_{static_cast< ::mavsdk::rpc::action::ActionResult_Result >(0)}, - _cached_size_{0} {} - -template + PROTOBUF_CONSTEXPR DoOrbitRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~DoOrbitRequestDefaultTypeInternal() {} + union { + DoOrbitRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + DoOrbitRequestDefaultTypeInternal _DoOrbitRequest_default_instance_; +template +PROTOBUF_CONSTEXPR DisarmRequest::DisarmRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct DisarmRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DisarmRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~DisarmRequestDefaultTypeInternal() {} + union { + DisarmRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + DisarmRequestDefaultTypeInternal _DisarmRequest_default_instance_; +template +PROTOBUF_CONSTEXPR ArmRequest::ArmRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct ArmRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ArmRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ArmRequestDefaultTypeInternal() {} + union { + ArmRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ArmRequestDefaultTypeInternal _ArmRequest_default_instance_; +template +PROTOBUF_CONSTEXPR ArmForceRequest::ArmForceRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct ArmForceRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ArmForceRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ArmForceRequestDefaultTypeInternal() {} + union { + ArmForceRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ArmForceRequestDefaultTypeInternal _ArmForceRequest_default_instance_; + +inline constexpr ActionResult::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + result_str_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + result_{static_cast<::mavsdk::rpc::action::ActionResult_Result>(0)}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR ActionResult::ActionResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ActionResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR ActionResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ActionResultDefaultTypeInternal() {} - union { - ActionResult _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ActionResultDefaultTypeInternal _ActionResult_default_instance_; - -inline constexpr TransitionToMulticopterResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} - -template -PROTOBUF_CONSTEXPR TransitionToMulticopterResponse::TransitionToMulticopterResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} + PROTOBUF_CONSTEXPR ActionResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~ActionResultDefaultTypeInternal() {} + union { + ActionResult _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ActionResultDefaultTypeInternal _ActionResult_default_instance_; + +inline constexpr TransitionToMulticopterResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept + : + _cached_size_{0}, + action_result_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR + TransitionToMulticopterResponse::TransitionToMulticopterResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct TransitionToMulticopterResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransitionToMulticopterResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransitionToMulticopterResponseDefaultTypeInternal() {} - union { - TransitionToMulticopterResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToMulticopterResponseDefaultTypeInternal _TransitionToMulticopterResponse_default_instance_; - -inline constexpr TransitionToFixedwingResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} - -template -PROTOBUF_CONSTEXPR TransitionToFixedwingResponse::TransitionToFixedwingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} + PROTOBUF_CONSTEXPR TransitionToMulticopterResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TransitionToMulticopterResponseDefaultTypeInternal() {} + union { + TransitionToMulticopterResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TransitionToMulticopterResponseDefaultTypeInternal + _TransitionToMulticopterResponse_default_instance_; + +inline constexpr TransitionToFixedwingResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR + TransitionToFixedwingResponse::TransitionToFixedwingResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct TransitionToFixedwingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransitionToFixedwingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransitionToFixedwingResponseDefaultTypeInternal() {} - union { - TransitionToFixedwingResponse _instance; - }; + PROTOBUF_CONSTEXPR TransitionToFixedwingResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TransitionToFixedwingResponseDefaultTypeInternal() {} + union { + TransitionToFixedwingResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToFixedwingResponseDefaultTypeInternal _TransitionToFixedwingResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TransitionToFixedwingResponseDefaultTypeInternal + _TransitionToFixedwingResponse_default_instance_; -inline constexpr TerminateResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} +inline constexpr TerminateResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR TerminateResponse::TerminateResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct TerminateResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TerminateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TerminateResponseDefaultTypeInternal() {} - union { - TerminateResponse _instance; - }; + PROTOBUF_CONSTEXPR TerminateResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TerminateResponseDefaultTypeInternal() {} + union { + TerminateResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminateResponseDefaultTypeInternal _TerminateResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TerminateResponseDefaultTypeInternal _TerminateResponse_default_instance_; -inline constexpr TakeoffResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} +inline constexpr TakeoffResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR TakeoffResponse::TakeoffResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct TakeoffResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TakeoffResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TakeoffResponseDefaultTypeInternal() {} - union { - TakeoffResponse _instance; - }; + PROTOBUF_CONSTEXPR TakeoffResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TakeoffResponseDefaultTypeInternal() {} + union { + TakeoffResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakeoffResponseDefaultTypeInternal _TakeoffResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TakeoffResponseDefaultTypeInternal _TakeoffResponse_default_instance_; -inline constexpr ShutdownResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} +inline constexpr ShutdownResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR ShutdownResponse::ShutdownResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ShutdownResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShutdownResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShutdownResponseDefaultTypeInternal() {} - union { - ShutdownResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownResponseDefaultTypeInternal _ShutdownResponse_default_instance_; - -inline constexpr SetTakeoffAltitudeResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} - -template -PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} + PROTOBUF_CONSTEXPR ShutdownResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ShutdownResponseDefaultTypeInternal() {} + union { + ShutdownResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ShutdownResponseDefaultTypeInternal _ShutdownResponse_default_instance_; + +inline constexpr SetTakeoffAltitudeResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR + SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetTakeoffAltitudeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetTakeoffAltitudeResponseDefaultTypeInternal() {} - union { - SetTakeoffAltitudeResponse _instance; - }; + PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetTakeoffAltitudeResponseDefaultTypeInternal() {} + union { + SetTakeoffAltitudeResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTakeoffAltitudeResponseDefaultTypeInternal _SetTakeoffAltitudeResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetTakeoffAltitudeResponseDefaultTypeInternal _SetTakeoffAltitudeResponse_default_instance_; inline constexpr SetReturnToLaunchAltitudeResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} - -template -PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} + ::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse( + ::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetReturnToLaunchAltitudeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetReturnToLaunchAltitudeResponseDefaultTypeInternal() {} - union { - SetReturnToLaunchAltitudeResponse _instance; - }; + PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetReturnToLaunchAltitudeResponseDefaultTypeInternal() {} + union { + SetReturnToLaunchAltitudeResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetReturnToLaunchAltitudeResponseDefaultTypeInternal _SetReturnToLaunchAltitudeResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetReturnToLaunchAltitudeResponseDefaultTypeInternal + _SetReturnToLaunchAltitudeResponse_default_instance_; -inline constexpr SetCurrentSpeedResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} +inline constexpr SetCurrentSpeedResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR SetCurrentSpeedResponse::SetCurrentSpeedResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetCurrentSpeedResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetCurrentSpeedResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetCurrentSpeedResponseDefaultTypeInternal() {} - union { - SetCurrentSpeedResponse _instance; - }; + PROTOBUF_CONSTEXPR SetCurrentSpeedResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetCurrentSpeedResponseDefaultTypeInternal() {} + union { + SetCurrentSpeedResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetCurrentSpeedResponseDefaultTypeInternal _SetCurrentSpeedResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetCurrentSpeedResponseDefaultTypeInternal _SetCurrentSpeedResponse_default_instance_; -inline constexpr SetActuatorResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} +inline constexpr SetActuatorResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR SetActuatorResponse::SetActuatorResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetActuatorResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetActuatorResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetActuatorResponseDefaultTypeInternal() {} - union { - SetActuatorResponse _instance; - }; + PROTOBUF_CONSTEXPR SetActuatorResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetActuatorResponseDefaultTypeInternal() {} + union { + SetActuatorResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetActuatorResponseDefaultTypeInternal _SetActuatorResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetActuatorResponseDefaultTypeInternal _SetActuatorResponse_default_instance_; -inline constexpr ReturnToLaunchResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} +inline constexpr ReturnToLaunchResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR ReturnToLaunchResponse::ReturnToLaunchResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ReturnToLaunchResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ReturnToLaunchResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ReturnToLaunchResponseDefaultTypeInternal() {} - union { - ReturnToLaunchResponse _instance; - }; + PROTOBUF_CONSTEXPR ReturnToLaunchResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ReturnToLaunchResponseDefaultTypeInternal() {} + union { + ReturnToLaunchResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReturnToLaunchResponseDefaultTypeInternal _ReturnToLaunchResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ReturnToLaunchResponseDefaultTypeInternal _ReturnToLaunchResponse_default_instance_; -inline constexpr RebootResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} +inline constexpr RebootResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR RebootResponse::RebootResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct RebootResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RebootResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RebootResponseDefaultTypeInternal() {} - union { - RebootResponse _instance; - }; + PROTOBUF_CONSTEXPR RebootResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~RebootResponseDefaultTypeInternal() {} + union { + RebootResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RebootResponseDefaultTypeInternal _RebootResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + RebootResponseDefaultTypeInternal _RebootResponse_default_instance_; -inline constexpr LandResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} +inline constexpr LandResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR LandResponse::LandResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct LandResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR LandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LandResponseDefaultTypeInternal() {} - union { - LandResponse _instance; - }; + PROTOBUF_CONSTEXPR LandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~LandResponseDefaultTypeInternal() {} + union { + LandResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandResponseDefaultTypeInternal _LandResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + LandResponseDefaultTypeInternal _LandResponse_default_instance_; -inline constexpr KillResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} +inline constexpr KillResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR KillResponse::KillResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct KillResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR KillResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~KillResponseDefaultTypeInternal() {} - union { - KillResponse _instance; - }; + PROTOBUF_CONSTEXPR KillResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~KillResponseDefaultTypeInternal() {} + union { + KillResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KillResponseDefaultTypeInternal _KillResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + KillResponseDefaultTypeInternal _KillResponse_default_instance_; -inline constexpr HoldResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} +inline constexpr HoldResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR HoldResponse::HoldResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct HoldResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR HoldResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HoldResponseDefaultTypeInternal() {} - union { - HoldResponse _instance; - }; + PROTOBUF_CONSTEXPR HoldResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~HoldResponseDefaultTypeInternal() {} + union { + HoldResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HoldResponseDefaultTypeInternal _HoldResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + HoldResponseDefaultTypeInternal _HoldResponse_default_instance_; -inline constexpr GotoLocationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} +inline constexpr GotoLocationResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR GotoLocationResponse::GotoLocationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct GotoLocationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GotoLocationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GotoLocationResponseDefaultTypeInternal() {} - union { - GotoLocationResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GotoLocationResponseDefaultTypeInternal _GotoLocationResponse_default_instance_; - -inline constexpr GetTakeoffAltitudeResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr}, - altitude_{0} {} - -template -PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} + PROTOBUF_CONSTEXPR GotoLocationResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~GotoLocationResponseDefaultTypeInternal() {} + union { + GotoLocationResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + GotoLocationResponseDefaultTypeInternal _GotoLocationResponse_default_instance_; + +inline constexpr GetTakeoffAltitudeResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr}, + altitude_{0} +{} + +template +PROTOBUF_CONSTEXPR + GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct GetTakeoffAltitudeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetTakeoffAltitudeResponseDefaultTypeInternal() {} - union { - GetTakeoffAltitudeResponse _instance; - }; + PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~GetTakeoffAltitudeResponseDefaultTypeInternal() {} + union { + GetTakeoffAltitudeResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTakeoffAltitudeResponseDefaultTypeInternal _GetTakeoffAltitudeResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + GetTakeoffAltitudeResponseDefaultTypeInternal _GetTakeoffAltitudeResponse_default_instance_; inline constexpr GetReturnToLaunchAltitudeResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr}, - relative_altitude_m_{0} {} - -template -PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} + ::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr}, + relative_altitude_m_{0} +{} + +template +PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse( + ::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct GetReturnToLaunchAltitudeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetReturnToLaunchAltitudeResponseDefaultTypeInternal() {} - union { - GetReturnToLaunchAltitudeResponse _instance; - }; + PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~GetReturnToLaunchAltitudeResponseDefaultTypeInternal() {} + union { + GetReturnToLaunchAltitudeResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReturnToLaunchAltitudeResponseDefaultTypeInternal _GetReturnToLaunchAltitudeResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + GetReturnToLaunchAltitudeResponseDefaultTypeInternal + _GetReturnToLaunchAltitudeResponse_default_instance_; -inline constexpr DoOrbitResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} +inline constexpr DoOrbitResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR DoOrbitResponse::DoOrbitResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct DoOrbitResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DoOrbitResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DoOrbitResponseDefaultTypeInternal() {} - union { - DoOrbitResponse _instance; - }; + PROTOBUF_CONSTEXPR DoOrbitResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~DoOrbitResponseDefaultTypeInternal() {} + union { + DoOrbitResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoOrbitResponseDefaultTypeInternal _DoOrbitResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + DoOrbitResponseDefaultTypeInternal _DoOrbitResponse_default_instance_; -inline constexpr DisarmResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} +inline constexpr DisarmResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR DisarmResponse::DisarmResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct DisarmResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DisarmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DisarmResponseDefaultTypeInternal() {} - union { - DisarmResponse _instance; - }; + PROTOBUF_CONSTEXPR DisarmResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~DisarmResponseDefaultTypeInternal() {} + union { + DisarmResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisarmResponseDefaultTypeInternal _DisarmResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + DisarmResponseDefaultTypeInternal _DisarmResponse_default_instance_; -inline constexpr ArmResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} +inline constexpr ArmResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR ArmResponse::ArmResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ArmResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ArmResponseDefaultTypeInternal() {} - union { - ArmResponse _instance; - }; + PROTOBUF_CONSTEXPR ArmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~ArmResponseDefaultTypeInternal() {} + union { + ArmResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmResponseDefaultTypeInternal _ArmResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ArmResponseDefaultTypeInternal _ArmResponse_default_instance_; -inline constexpr ArmForceResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} +inline constexpr ArmForceResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR ArmForceResponse::ArmForceResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ArmForceResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArmForceResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ArmForceResponseDefaultTypeInternal() {} - union { - ArmForceResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmForceResponseDefaultTypeInternal _ArmForceResponse_default_instance_; -} // namespace action -} // namespace rpc -} // namespace mavsdk -static ::_pb::Metadata file_level_metadata_action_2faction_2eproto[43]; + PROTOBUF_CONSTEXPR ArmForceResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ArmForceResponseDefaultTypeInternal() {} + union { + ArmForceResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ArmForceResponseDefaultTypeInternal _ArmForceResponse_default_instance_; +} // namespace action +} // namespace rpc +} // namespace mavsdk static const ::_pb::EnumDescriptor* file_level_enum_descriptors_action_2faction_2eproto[2]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_action_2faction_2eproto = nullptr; -const ::uint32_t TableStruct_action_2faction_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( +const ::uint32_t TableStruct_action_2faction_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmForceRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmForceResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmForceResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmForceResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.latitude_deg_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.longitude_deg_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.absolute_altitude_m_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.yaw_deg_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.radius_m_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.velocity_ms_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.yaw_behavior_), @@ -976,244 +1432,258 @@ const ::uint32_t TableStruct_action_2faction_2eproto::offsets[] PROTOBUF_SECTION PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.absolute_altitude_m_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorRequest, _impl_.index_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorRequest, _impl_.value_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingResponse, _impl_.action_result_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::TransitionToFixedwingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::TransitionToFixedwingResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterResponse, _impl_.action_result_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::TransitionToMulticopterRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::TransitionToMulticopterResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::TransitionToMulticopterResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::TransitionToMulticopterResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _impl_.action_result_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _impl_.altitude_), 0, ~0u, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeRequest, _impl_.altitude_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _impl_.action_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _impl_.action_result_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_), 0, ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, _impl_.relative_altitude_m_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _impl_.action_result_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, _impl_.relative_altitude_m_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedRequest, _impl_.speed_m_s_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedResponse, _impl_.action_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ActionResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ActionResult, _impl_.result_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ActionResult, _impl_.result_str_), }; -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::mavsdk::rpc::action::ArmRequest)}, - {8, 17, -1, sizeof(::mavsdk::rpc::action::ArmResponse)}, - {18, -1, -1, sizeof(::mavsdk::rpc::action::ArmForceRequest)}, - {26, 35, -1, sizeof(::mavsdk::rpc::action::ArmForceResponse)}, - {36, -1, -1, sizeof(::mavsdk::rpc::action::DisarmRequest)}, - {44, 53, -1, sizeof(::mavsdk::rpc::action::DisarmResponse)}, - {54, -1, -1, sizeof(::mavsdk::rpc::action::TakeoffRequest)}, - {62, 71, -1, sizeof(::mavsdk::rpc::action::TakeoffResponse)}, - {72, -1, -1, sizeof(::mavsdk::rpc::action::LandRequest)}, - {80, 89, -1, sizeof(::mavsdk::rpc::action::LandResponse)}, - {90, -1, -1, sizeof(::mavsdk::rpc::action::RebootRequest)}, - {98, 107, -1, sizeof(::mavsdk::rpc::action::RebootResponse)}, - {108, -1, -1, sizeof(::mavsdk::rpc::action::ShutdownRequest)}, - {116, 125, -1, sizeof(::mavsdk::rpc::action::ShutdownResponse)}, - {126, -1, -1, sizeof(::mavsdk::rpc::action::TerminateRequest)}, - {134, 143, -1, sizeof(::mavsdk::rpc::action::TerminateResponse)}, - {144, -1, -1, sizeof(::mavsdk::rpc::action::KillRequest)}, - {152, 161, -1, sizeof(::mavsdk::rpc::action::KillResponse)}, - {162, -1, -1, sizeof(::mavsdk::rpc::action::ReturnToLaunchRequest)}, - {170, 179, -1, sizeof(::mavsdk::rpc::action::ReturnToLaunchResponse)}, - {180, -1, -1, sizeof(::mavsdk::rpc::action::GotoLocationRequest)}, - {192, 201, -1, sizeof(::mavsdk::rpc::action::GotoLocationResponse)}, - {202, -1, -1, sizeof(::mavsdk::rpc::action::DoOrbitRequest)}, - {216, 225, -1, sizeof(::mavsdk::rpc::action::DoOrbitResponse)}, - {226, -1, -1, sizeof(::mavsdk::rpc::action::HoldRequest)}, - {234, 243, -1, sizeof(::mavsdk::rpc::action::HoldResponse)}, - {244, -1, -1, sizeof(::mavsdk::rpc::action::SetActuatorRequest)}, - {254, 263, -1, sizeof(::mavsdk::rpc::action::SetActuatorResponse)}, - {264, -1, -1, sizeof(::mavsdk::rpc::action::TransitionToFixedwingRequest)}, - {272, 281, -1, sizeof(::mavsdk::rpc::action::TransitionToFixedwingResponse)}, - {282, -1, -1, sizeof(::mavsdk::rpc::action::TransitionToMulticopterRequest)}, - {290, 299, -1, sizeof(::mavsdk::rpc::action::TransitionToMulticopterResponse)}, - {300, -1, -1, sizeof(::mavsdk::rpc::action::GetTakeoffAltitudeRequest)}, - {308, 318, -1, sizeof(::mavsdk::rpc::action::GetTakeoffAltitudeResponse)}, - {320, -1, -1, sizeof(::mavsdk::rpc::action::SetTakeoffAltitudeRequest)}, - {329, 338, -1, sizeof(::mavsdk::rpc::action::SetTakeoffAltitudeResponse)}, - {339, -1, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest)}, - {347, 357, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse)}, - {359, -1, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest)}, - {368, 377, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse)}, - {378, -1, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedRequest)}, - {387, 396, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedResponse)}, - {397, -1, -1, sizeof(::mavsdk::rpc::action::ActionResult)}, +static const ::_pbi::MigrationSchema schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, -1, -1, sizeof(::mavsdk::rpc::action::ArmRequest)}, + {8, 17, -1, sizeof(::mavsdk::rpc::action::ArmResponse)}, + {18, -1, -1, sizeof(::mavsdk::rpc::action::ArmForceRequest)}, + {26, 35, -1, sizeof(::mavsdk::rpc::action::ArmForceResponse)}, + {36, -1, -1, sizeof(::mavsdk::rpc::action::DisarmRequest)}, + {44, 53, -1, sizeof(::mavsdk::rpc::action::DisarmResponse)}, + {54, -1, -1, sizeof(::mavsdk::rpc::action::TakeoffRequest)}, + {62, 71, -1, sizeof(::mavsdk::rpc::action::TakeoffResponse)}, + {72, -1, -1, sizeof(::mavsdk::rpc::action::LandRequest)}, + {80, 89, -1, sizeof(::mavsdk::rpc::action::LandResponse)}, + {90, -1, -1, sizeof(::mavsdk::rpc::action::RebootRequest)}, + {98, 107, -1, sizeof(::mavsdk::rpc::action::RebootResponse)}, + {108, -1, -1, sizeof(::mavsdk::rpc::action::ShutdownRequest)}, + {116, 125, -1, sizeof(::mavsdk::rpc::action::ShutdownResponse)}, + {126, -1, -1, sizeof(::mavsdk::rpc::action::TerminateRequest)}, + {134, 143, -1, sizeof(::mavsdk::rpc::action::TerminateResponse)}, + {144, -1, -1, sizeof(::mavsdk::rpc::action::KillRequest)}, + {152, 161, -1, sizeof(::mavsdk::rpc::action::KillResponse)}, + {162, -1, -1, sizeof(::mavsdk::rpc::action::ReturnToLaunchRequest)}, + {170, 179, -1, sizeof(::mavsdk::rpc::action::ReturnToLaunchResponse)}, + {180, -1, -1, sizeof(::mavsdk::rpc::action::GotoLocationRequest)}, + {192, 201, -1, sizeof(::mavsdk::rpc::action::GotoLocationResponse)}, + {202, -1, -1, sizeof(::mavsdk::rpc::action::DoOrbitRequest)}, + {216, 225, -1, sizeof(::mavsdk::rpc::action::DoOrbitResponse)}, + {226, -1, -1, sizeof(::mavsdk::rpc::action::HoldRequest)}, + {234, 243, -1, sizeof(::mavsdk::rpc::action::HoldResponse)}, + {244, -1, -1, sizeof(::mavsdk::rpc::action::SetActuatorRequest)}, + {254, 263, -1, sizeof(::mavsdk::rpc::action::SetActuatorResponse)}, + {264, -1, -1, sizeof(::mavsdk::rpc::action::TransitionToFixedwingRequest)}, + {272, 281, -1, sizeof(::mavsdk::rpc::action::TransitionToFixedwingResponse)}, + {282, -1, -1, sizeof(::mavsdk::rpc::action::TransitionToMulticopterRequest)}, + {290, 299, -1, sizeof(::mavsdk::rpc::action::TransitionToMulticopterResponse)}, + {300, -1, -1, sizeof(::mavsdk::rpc::action::GetTakeoffAltitudeRequest)}, + {308, 318, -1, sizeof(::mavsdk::rpc::action::GetTakeoffAltitudeResponse)}, + {320, -1, -1, sizeof(::mavsdk::rpc::action::SetTakeoffAltitudeRequest)}, + {329, 338, -1, sizeof(::mavsdk::rpc::action::SetTakeoffAltitudeResponse)}, + {339, -1, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest)}, + {347, 357, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse)}, + {359, -1, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest)}, + {368, 377, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse)}, + {378, -1, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedRequest)}, + {387, 396, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedResponse)}, + {397, -1, -1, sizeof(::mavsdk::rpc::action::ActionResult)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::action::_ArmRequest_default_instance_._instance, &::mavsdk::rpc::action::_ArmResponse_default_instance_._instance, @@ -1259,7 +1729,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::action::_SetCurrentSpeedResponse_default_instance_._instance, &::mavsdk::rpc::action::_ActionResult_default_instance_._instance, }; -const char descriptor_table_protodef_action_2faction_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_action_2faction_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n\023action/action.proto\022\021mavsdk.rpc.action" "\032\024mavsdk_options.proto\"\014\n\nArmRequest\"E\n\013" "ArmResponse\0226\n\raction_result\030\001 \001(\0132\037.mav" @@ -1398,14 +1869,12 @@ const char descriptor_table_protodef_action_2faction_2eproto[] PROTOBUF_SECTION_ "nse\"\000\022j\n\017SetCurrentSpeed\022).mavsdk.rpc.ac" "tion.SetCurrentSpeedRequest\032*.mavsdk.rpc" ".action.SetCurrentSpeedResponse\"\000B\037\n\020io." - "mavsdk.actionB\013ActionProtob\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_action_2faction_2eproto_deps[1] = - { - &::descriptor_table_mavsdk_5foptions_2eproto, + "mavsdk.actionB\013ActionProtob\006proto3"}; +static const ::_pbi::DescriptorTable* const descriptor_table_action_2faction_2eproto_deps[1] = { + &::descriptor_table_mavsdk_5foptions_2eproto, }; static ::absl::once_flag descriptor_table_action_2faction_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_action_2faction_2eproto = { +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_action_2faction_2eproto = { false, false, 5554, @@ -1418,42 +1887,26 @@ const ::_pbi::DescriptorTable descriptor_table_action_2faction_2eproto = { schemas, file_default_instances, TableStruct_action_2faction_2eproto::offsets, - file_level_metadata_action_2faction_2eproto, file_level_enum_descriptors_action_2faction_2eproto, file_level_service_descriptors_action_2faction_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_action_2faction_2eproto_getter() { - return &descriptor_table_action_2faction_2eproto; -} -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_action_2faction_2eproto(&descriptor_table_action_2faction_2eproto); namespace mavsdk { namespace rpc { namespace action { -const ::google::protobuf::EnumDescriptor* ActionResult_Result_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_action_2faction_2eproto); - return file_level_enum_descriptors_action_2faction_2eproto[0]; +const ::google::protobuf::EnumDescriptor* ActionResult_Result_descriptor() +{ + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_action_2faction_2eproto); + return file_level_enum_descriptors_action_2faction_2eproto[0]; } PROTOBUF_CONSTINIT const uint32_t ActionResult_Result_internal_data_[] = { - 983040u, 0u, }; -bool ActionResult_Result_IsValid(int value) { - return 0 <= value && value <= 14; + 983040u, + 0u, +}; +bool ActionResult_Result_IsValid(int value) +{ + return 0 <= value && value <= 14; } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ActionResult_Result ActionResult::RESULT_UNKNOWN; constexpr ActionResult_Result ActionResult::RESULT_SUCCESS; @@ -1474,6646 +1927,9611 @@ constexpr ActionResult_Result ActionResult::Result_MIN; constexpr ActionResult_Result ActionResult::Result_MAX; constexpr int ActionResult::Result_ARRAYSIZE; -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::google::protobuf::EnumDescriptor* OrbitYawBehavior_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_action_2faction_2eproto); - return file_level_enum_descriptors_action_2faction_2eproto[1]; +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* OrbitYawBehavior_descriptor() +{ + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_action_2faction_2eproto); + return file_level_enum_descriptors_action_2faction_2eproto[1]; } PROTOBUF_CONSTINIT const uint32_t OrbitYawBehavior_internal_data_[] = { - 327680u, 0u, }; -bool OrbitYawBehavior_IsValid(int value) { - return 0 <= value && value <= 4; + 327680u, + 0u, +}; +bool OrbitYawBehavior_IsValid(int value) +{ + return 0 <= value && value <= 4; } // =================================================================== class ArmRequest::_Internal { - public: +public: }; ArmRequest::ArmRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmRequest) -} -ArmRequest::ArmRequest( - ::google::protobuf::Arena* arena, - const ArmRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ArmRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ArmRequest) -} - - - - - - - - - -::google::protobuf::Metadata ArmRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[0]); +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmRequest) +} +ArmRequest::ArmRequest(::google::protobuf::Arena* arena, const ArmRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ArmRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ArmRequest) +} + +inline void* ArmRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ArmRequest(arena); +} +constexpr auto ArmRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ArmRequest), alignof(ArmRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &ArmRequest::ByteSizeLong, + &ArmRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmRequest, _impl_._cached_size_), + false, + }, + &ArmRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ArmRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + ArmRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ArmRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata ArmRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ArmResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ArmResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const ArmResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ArmResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& ArmResponse::_Internal::action_result(const ArmResponse* msg) { - return *msg->_impl_.action_result_; -} ArmResponse::ArmResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmResponse) } inline PROTOBUF_NDEBUG_INLINE ArmResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ArmResponse::ArmResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const ArmResponse& from) - : ::google::protobuf::Message(arena) { - ArmResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ArmResponse) + const Impl_& from, + const ::mavsdk::rpc::action::ArmResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +ArmResponse::ArmResponse(::google::protobuf::Arena* arena, const ArmResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ArmResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ArmResponse) } inline PROTOBUF_NDEBUG_INLINE ArmResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ArmResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -ArmResponse::~ArmResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ArmResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ArmResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ArmResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ArmResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ArmResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ArmResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ArmResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ArmResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ArmResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(ArmResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ArmResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +ArmResponse::~ArmResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ArmResponse) + SharedDtor(*this); +} +inline void ArmResponse::SharedDtor(MessageLite& self) +{ + ArmResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* ArmResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ArmResponse(arena); +} +constexpr auto ArmResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ArmResponse), alignof(ArmResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ArmResponse::ByteSizeLong, + &ArmResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmResponse, _impl_._cached_size_), + false, + }, + &ArmResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ArmResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + ArmResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ArmResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ArmResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ArmResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(ArmResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void ArmResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ArmResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* ArmResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ArmResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ArmResponse) - return target; -} - -::size_t ArmResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ArmResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ArmResponse::_class_data_ = { - ArmResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ArmResponse::GetClassData() const { - return &_class_data_; -} - -void ArmResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ArmResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ArmResponse::CopyFrom(const ArmResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.ArmResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ArmResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* ArmResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ArmResponse::InternalSwap(ArmResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ArmResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ArmResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ArmResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ArmResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ArmResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ArmResponse::ByteSizeLong(const MessageLite& base) +{ + const ArmResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ArmResponse::ByteSizeLong() const +{ + const ArmResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ArmResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata ArmResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[1]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void ArmResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ArmResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void ArmResponse::CopyFrom(const ArmResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.ArmResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void ArmResponse::InternalSwap(ArmResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata ArmResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ArmForceRequest::_Internal { - public: +public: }; ArmForceRequest::ArmForceRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmForceRequest) -} -ArmForceRequest::ArmForceRequest( - ::google::protobuf::Arena* arena, - const ArmForceRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ArmForceRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ArmForceRequest) -} - - - - - - - - - -::google::protobuf::Metadata ArmForceRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[2]); +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmForceRequest) +} +ArmForceRequest::ArmForceRequest(::google::protobuf::Arena* arena, const ArmForceRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ArmForceRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ArmForceRequest) +} + +inline void* +ArmForceRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ArmForceRequest(arena); +} +constexpr auto ArmForceRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ArmForceRequest), alignof(ArmForceRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmForceRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmForceRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmForceRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmForceRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &ArmForceRequest::ByteSizeLong, + &ArmForceRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmForceRequest, _impl_._cached_size_), + false, + }, + &ArmForceRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ArmForceRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + ArmForceRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ArmForceRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata ArmForceRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ArmForceResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ArmForceResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const ArmForceResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ArmForceResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& ArmForceResponse::_Internal::action_result(const ArmForceResponse* msg) { - return *msg->_impl_.action_result_; -} ArmForceResponse::ArmForceResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmForceResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmForceResponse) } inline PROTOBUF_NDEBUG_INLINE ArmForceResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ArmForceResponse::ArmForceResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const ArmForceResponse& from) - : ::google::protobuf::Message(arena) { - ArmForceResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ArmForceResponse) + const Impl_& from, + const ::mavsdk::rpc::action::ArmForceResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +ArmForceResponse::ArmForceResponse(::google::protobuf::Arena* arena, const ArmForceResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ArmForceResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ArmForceResponse) } inline PROTOBUF_NDEBUG_INLINE ArmForceResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ArmForceResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -ArmForceResponse::~ArmForceResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ArmForceResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ArmForceResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ArmForceResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ArmForceResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ArmForceResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ArmForceResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ArmForceResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ArmForceResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ArmForceResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(ArmForceResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ArmForceResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +ArmForceResponse::~ArmForceResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ArmForceResponse) + SharedDtor(*this); +} +inline void ArmForceResponse::SharedDtor(MessageLite& self) +{ + ArmForceResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* +ArmForceResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ArmForceResponse(arena); +} +constexpr auto ArmForceResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ArmForceResponse), alignof(ArmForceResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmForceResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmForceResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmForceResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmForceResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ArmForceResponse::ByteSizeLong, + &ArmForceResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmForceResponse, _impl_._cached_size_), + false, + }, + &ArmForceResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ArmForceResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + ArmForceResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ArmForceResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ArmForceResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ArmForceResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(ArmForceResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void ArmForceResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ArmForceResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* ArmForceResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ArmForceResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ArmForceResponse) - return target; -} - -::size_t ArmForceResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ArmForceResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ArmForceResponse::_class_data_ = { - ArmForceResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ArmForceResponse::GetClassData() const { - return &_class_data_; -} - -void ArmForceResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ArmForceResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ArmForceResponse::CopyFrom(const ArmForceResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.ArmForceResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ArmForceResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* ArmForceResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ArmForceResponse::InternalSwap(ArmForceResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ArmForceResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ArmForceResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ArmForceResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ArmForceResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ArmForceResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ArmForceResponse::ByteSizeLong(const MessageLite& base) +{ + const ArmForceResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ArmForceResponse::ByteSizeLong() const +{ + const ArmForceResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ArmForceResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata ArmForceResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[3]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void ArmForceResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ArmForceResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void ArmForceResponse::CopyFrom(const ArmForceResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.ArmForceResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void ArmForceResponse::InternalSwap(ArmForceResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata ArmForceResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class DisarmRequest::_Internal { - public: +public: }; DisarmRequest::DisarmRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DisarmRequest) -} -DisarmRequest::DisarmRequest( - ::google::protobuf::Arena* arena, - const DisarmRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DisarmRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.DisarmRequest) -} - - - - - - - - - -::google::protobuf::Metadata DisarmRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[4]); +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DisarmRequest) +} +DisarmRequest::DisarmRequest(::google::protobuf::Arena* arena, const DisarmRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + DisarmRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.DisarmRequest) +} + +inline void* DisarmRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) DisarmRequest(arena); +} +constexpr auto DisarmRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(DisarmRequest), alignof(DisarmRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull DisarmRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_DisarmRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DisarmRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DisarmRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &DisarmRequest::ByteSizeLong, + &DisarmRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DisarmRequest, _impl_._cached_size_), + false, + }, + &DisarmRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* DisarmRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + DisarmRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::DisarmRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata DisarmRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class DisarmResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(DisarmResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const DisarmResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(DisarmResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& DisarmResponse::_Internal::action_result(const DisarmResponse* msg) { - return *msg->_impl_.action_result_; -} DisarmResponse::DisarmResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DisarmResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DisarmResponse) } inline PROTOBUF_NDEBUG_INLINE DisarmResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -DisarmResponse::DisarmResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const DisarmResponse& from) - : ::google::protobuf::Message(arena) { - DisarmResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.DisarmResponse) + const Impl_& from, + const ::mavsdk::rpc::action::DisarmResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +DisarmResponse::DisarmResponse(::google::protobuf::Arena* arena, const DisarmResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + DisarmResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.DisarmResponse) } inline PROTOBUF_NDEBUG_INLINE DisarmResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void DisarmResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -DisarmResponse::~DisarmResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.DisarmResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void DisarmResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void DisarmResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.DisarmResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DisarmResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> DisarmResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(DisarmResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_DisarmResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(DisarmResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(DisarmResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void DisarmResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +DisarmResponse::~DisarmResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.DisarmResponse) + SharedDtor(*this); +} +inline void DisarmResponse::SharedDtor(MessageLite& self) +{ + DisarmResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* DisarmResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) DisarmResponse(arena); +} +constexpr auto DisarmResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(DisarmResponse), alignof(DisarmResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull DisarmResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_DisarmResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DisarmResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DisarmResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &DisarmResponse::ByteSizeLong, + &DisarmResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DisarmResponse, _impl_._cached_size_), + false, + }, + &DisarmResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* DisarmResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + DisarmResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(DisarmResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::DisarmResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(DisarmResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(DisarmResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void DisarmResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.DisarmResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* DisarmResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.DisarmResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.DisarmResponse) - return target; -} - -::size_t DisarmResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.DisarmResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData DisarmResponse::_class_data_ = { - DisarmResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* DisarmResponse::GetClassData() const { - return &_class_data_; -} - -void DisarmResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.DisarmResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void DisarmResponse::CopyFrom(const DisarmResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.DisarmResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool DisarmResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* DisarmResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DisarmResponse::InternalSwap(DisarmResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const DisarmResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* DisarmResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const DisarmResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.DisarmResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.DisarmResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t DisarmResponse::ByteSizeLong(const MessageLite& base) +{ + const DisarmResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t DisarmResponse::ByteSizeLong() const +{ + const DisarmResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.DisarmResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata DisarmResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[5]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void DisarmResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.DisarmResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void DisarmResponse::CopyFrom(const DisarmResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.DisarmResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void DisarmResponse::InternalSwap(DisarmResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata DisarmResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TakeoffRequest::_Internal { - public: +public: }; TakeoffRequest::TakeoffRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TakeoffRequest) -} -TakeoffRequest::TakeoffRequest( - ::google::protobuf::Arena* arena, - const TakeoffRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - TakeoffRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TakeoffRequest) -} - - - - - - - - - -::google::protobuf::Metadata TakeoffRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[6]); +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TakeoffRequest) +} +TakeoffRequest::TakeoffRequest(::google::protobuf::Arena* arena, const TakeoffRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TakeoffRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TakeoffRequest) +} + +inline void* TakeoffRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TakeoffRequest(arena); +} +constexpr auto TakeoffRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TakeoffRequest), alignof(TakeoffRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TakeoffRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TakeoffRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TakeoffRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TakeoffRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &TakeoffRequest::ByteSizeLong, + &TakeoffRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TakeoffRequest, _impl_._cached_size_), + false, + }, + &TakeoffRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TakeoffRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + TakeoffRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::TakeoffRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata TakeoffRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TakeoffResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const TakeoffResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& TakeoffResponse::_Internal::action_result(const TakeoffResponse* msg) { - return *msg->_impl_.action_result_; -} TakeoffResponse::TakeoffResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TakeoffResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TakeoffResponse) } inline PROTOBUF_NDEBUG_INLINE TakeoffResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -TakeoffResponse::TakeoffResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const TakeoffResponse& from) - : ::google::protobuf::Message(arena) { - TakeoffResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TakeoffResponse) + const Impl_& from, + const ::mavsdk::rpc::action::TakeoffResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +TakeoffResponse::TakeoffResponse(::google::protobuf::Arena* arena, const TakeoffResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TakeoffResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TakeoffResponse) } inline PROTOBUF_NDEBUG_INLINE TakeoffResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void TakeoffResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -TakeoffResponse::~TakeoffResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TakeoffResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TakeoffResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TakeoffResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TakeoffResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TakeoffResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TakeoffResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TakeoffResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void TakeoffResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +TakeoffResponse::~TakeoffResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TakeoffResponse) + SharedDtor(*this); +} +inline void TakeoffResponse::SharedDtor(MessageLite& self) +{ + TakeoffResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* +TakeoffResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TakeoffResponse(arena); +} +constexpr auto TakeoffResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TakeoffResponse), alignof(TakeoffResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TakeoffResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TakeoffResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TakeoffResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TakeoffResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &TakeoffResponse::ByteSizeLong, + &TakeoffResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._cached_size_), + false, + }, + &TakeoffResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TakeoffResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + TakeoffResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::TakeoffResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void TakeoffResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TakeoffResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* TakeoffResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TakeoffResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const TakeoffResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* TakeoffResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const TakeoffResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TakeoffResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TakeoffResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TakeoffResponse::ByteSizeLong(const MessageLite& base) +{ + const TakeoffResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t TakeoffResponse::ByteSizeLong() const +{ + const TakeoffResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TakeoffResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TakeoffResponse) - return target; + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void TakeoffResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TakeoffResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void TakeoffResponse::CopyFrom(const TakeoffResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.TakeoffResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void TakeoffResponse::InternalSwap(TakeoffResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata TakeoffResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } +// =================================================================== -::size_t TakeoffResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TakeoffResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } +class LandRequest::_Internal { +public: +}; - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +LandRequest::LandRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.LandRequest) +} +LandRequest::LandRequest(::google::protobuf::Arena* arena, const LandRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + LandRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.LandRequest) +} + +inline void* LandRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) LandRequest(arena); +} +constexpr auto LandRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(LandRequest), alignof(LandRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull LandRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_LandRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &LandRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &LandRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &LandRequest::ByteSizeLong, + &LandRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(LandRequest, _impl_._cached_size_), + false, + }, + &LandRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* LandRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + LandRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::LandRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata LandRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } +// =================================================================== -const ::google::protobuf::Message::ClassData TakeoffResponse::_class_data_ = { - TakeoffResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +class LandResponse::_Internal { +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._has_bits_); }; -const ::google::protobuf::Message::ClassData* TakeoffResponse::GetClassData() const { - return &_class_data_; -} - -void TakeoffResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TakeoffResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +LandResponse::LandResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.LandResponse) } - -void TakeoffResponse::CopyFrom(const TakeoffResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.TakeoffResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); +inline PROTOBUF_NDEBUG_INLINE LandResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action::LandResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +LandResponse::LandResponse(::google::protobuf::Arena* arena, const LandResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + LandResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.LandResponse) } +inline PROTOBUF_NDEBUG_INLINE LandResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void LandResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +LandResponse::~LandResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.LandResponse) + SharedDtor(*this); +} +inline void LandResponse::SharedDtor(MessageLite& self) +{ + LandResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* LandResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) LandResponse(arena); +} +constexpr auto LandResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(LandResponse), alignof(LandResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull LandResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_LandResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &LandResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &LandResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &LandResponse::ByteSizeLong, + &LandResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._cached_size_), + false, + }, + &LandResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* LandResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + LandResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::LandResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void LandResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.LandResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* LandResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const LandResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* LandResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const LandResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.LandResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.LandResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t LandResponse::ByteSizeLong(const MessageLite& base) +{ + const LandResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t LandResponse::ByteSizeLong() const +{ + const LandResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.LandResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -PROTOBUF_NOINLINE bool TakeoffResponse::IsInitialized() const { - return true; + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void LandResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.LandResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void LandResponse::CopyFrom(const LandResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.LandResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void LandResponse::InternalSwap(LandResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata LandResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } +// =================================================================== -::_pbi::CachedSize* TakeoffResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TakeoffResponse::InternalSwap(TakeoffResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} +class RebootRequest::_Internal { +public: +}; -::google::protobuf::Metadata TakeoffResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[7]); +RebootRequest::RebootRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.RebootRequest) +} +RebootRequest::RebootRequest(::google::protobuf::Arena* arena, const RebootRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + RebootRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.RebootRequest) +} + +inline void* RebootRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) RebootRequest(arena); +} +constexpr auto RebootRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(RebootRequest), alignof(RebootRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull RebootRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_RebootRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RebootRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RebootRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &RebootRequest::ByteSizeLong, + &RebootRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RebootRequest, _impl_._cached_size_), + false, + }, + &RebootRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* RebootRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + RebootRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::RebootRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata RebootRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== -class LandRequest::_Internal { - public: +class RebootResponse::_Internal { +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._has_bits_); }; -LandRequest::LandRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.LandRequest) +RebootResponse::RebootResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.RebootResponse) } -LandRequest::LandRequest( +inline PROTOBUF_NDEBUG_INLINE RebootResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const LandRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - LandRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.LandRequest) + const Impl_& from, + const ::mavsdk::rpc::action::RebootResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +RebootResponse::RebootResponse(::google::protobuf::Arena* arena, const RebootResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + RebootResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.RebootResponse) } +inline PROTOBUF_NDEBUG_INLINE RebootResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void RebootResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +RebootResponse::~RebootResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.RebootResponse) + SharedDtor(*this); +} +inline void RebootResponse::SharedDtor(MessageLite& self) +{ + RebootResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* RebootResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) RebootResponse(arena); +} +constexpr auto RebootResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(RebootResponse), alignof(RebootResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull RebootResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_RebootResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RebootResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RebootResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &RebootResponse::ByteSizeLong, + &RebootResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._cached_size_), + false, + }, + &RebootResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* RebootResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + RebootResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::RebootResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void RebootResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.RebootResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* RebootResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const RebootResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* RebootResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const RebootResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.RebootResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.RebootResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t RebootResponse::ByteSizeLong(const MessageLite& base) +{ + const RebootResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RebootResponse::ByteSizeLong() const +{ + const RebootResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.RebootResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void RebootResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.RebootResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void RebootResponse::CopyFrom(const RebootResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.RebootResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void RebootResponse::InternalSwap(RebootResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata RebootResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== +class ShutdownRequest::_Internal { +public: +}; - - - - - - -::google::protobuf::Metadata LandRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[8]); +ShutdownRequest::ShutdownRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ShutdownRequest) +} +ShutdownRequest::ShutdownRequest(::google::protobuf::Arena* arena, const ShutdownRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ShutdownRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ShutdownRequest) +} + +inline void* +ShutdownRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ShutdownRequest(arena); +} +constexpr auto ShutdownRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ShutdownRequest), alignof(ShutdownRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ShutdownRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ShutdownRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShutdownRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShutdownRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &ShutdownRequest::ByteSizeLong, + &ShutdownRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShutdownRequest, _impl_._cached_size_), + false, + }, + &ShutdownRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ShutdownRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + ShutdownRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ShutdownRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata ShutdownRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== -class LandResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const LandResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +class ShutdownResponse::_Internal { +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& LandResponse::_Internal::action_result(const LandResponse* msg) { - return *msg->_impl_.action_result_; +ShutdownResponse::ShutdownResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ShutdownResponse) } -LandResponse::LandResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.LandResponse) -} -inline PROTOBUF_NDEBUG_INLINE LandResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -LandResponse::LandResponse( - ::google::protobuf::Arena* arena, - const LandResponse& from) - : ::google::protobuf::Message(arena) { - LandResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.LandResponse) -} -inline PROTOBUF_NDEBUG_INLINE LandResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void LandResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -LandResponse::~LandResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.LandResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void LandResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void LandResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.LandResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* LandResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> LandResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_LandResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - -::uint8_t* LandResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.LandResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.LandResponse) - return target; -} - -::size_t LandResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.LandResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData LandResponse::_class_data_ = { - LandResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* LandResponse::GetClassData() const { - return &_class_data_; -} - -void LandResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.LandResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void LandResponse::CopyFrom(const LandResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.LandResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool LandResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* LandResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void LandResponse::InternalSwap(LandResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} - -::google::protobuf::Metadata LandResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[9]); -} -// =================================================================== - -class RebootRequest::_Internal { - public: -}; - -RebootRequest::RebootRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.RebootRequest) -} -RebootRequest::RebootRequest( - ::google::protobuf::Arena* arena, - const RebootRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - RebootRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.RebootRequest) -} - - - - - - - - - -::google::protobuf::Metadata RebootRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[10]); -} -// =================================================================== - -class RebootResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const RebootResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -const ::mavsdk::rpc::action::ActionResult& RebootResponse::_Internal::action_result(const RebootResponse* msg) { - return *msg->_impl_.action_result_; -} -RebootResponse::RebootResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.RebootResponse) -} -inline PROTOBUF_NDEBUG_INLINE RebootResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -RebootResponse::RebootResponse( - ::google::protobuf::Arena* arena, - const RebootResponse& from) - : ::google::protobuf::Message(arena) { - RebootResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.RebootResponse) -} -inline PROTOBUF_NDEBUG_INLINE RebootResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void RebootResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -RebootResponse::~RebootResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.RebootResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void RebootResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void RebootResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.RebootResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RebootResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> RebootResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RebootResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - -::uint8_t* RebootResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.RebootResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.RebootResponse) - return target; -} - -::size_t RebootResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.RebootResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData RebootResponse::_class_data_ = { - RebootResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* RebootResponse::GetClassData() const { - return &_class_data_; -} - -void RebootResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.RebootResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void RebootResponse::CopyFrom(const RebootResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.RebootResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool RebootResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* RebootResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RebootResponse::InternalSwap(RebootResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} - -::google::protobuf::Metadata RebootResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[11]); -} -// =================================================================== - -class ShutdownRequest::_Internal { - public: -}; - -ShutdownRequest::ShutdownRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ShutdownRequest) -} -ShutdownRequest::ShutdownRequest( - ::google::protobuf::Arena* arena, - const ShutdownRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ShutdownRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ShutdownRequest) -} - - - - - - - - - -::google::protobuf::Metadata ShutdownRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[12]); -} -// =================================================================== - -class ShutdownResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const ShutdownResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -const ::mavsdk::rpc::action::ActionResult& ShutdownResponse::_Internal::action_result(const ShutdownResponse* msg) { - return *msg->_impl_.action_result_; -} -ShutdownResponse::ShutdownResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ShutdownResponse) +inline PROTOBUF_NDEBUG_INLINE ShutdownResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action::ShutdownResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +ShutdownResponse::ShutdownResponse(::google::protobuf::Arena* arena, const ShutdownResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ShutdownResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ShutdownResponse) } inline PROTOBUF_NDEBUG_INLINE ShutdownResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ShutdownResponse::ShutdownResponse( - ::google::protobuf::Arena* arena, - const ShutdownResponse& from) - : ::google::protobuf::Message(arena) { - ShutdownResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ShutdownResponse) -} -inline PROTOBUF_NDEBUG_INLINE ShutdownResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ShutdownResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -ShutdownResponse::~ShutdownResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ShutdownResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ShutdownResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ShutdownResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ShutdownResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ShutdownResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ShutdownResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ShutdownResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ShutdownResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +ShutdownResponse::~ShutdownResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ShutdownResponse) + SharedDtor(*this); +} +inline void ShutdownResponse::SharedDtor(MessageLite& self) +{ + ShutdownResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* +ShutdownResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ShutdownResponse(arena); +} +constexpr auto ShutdownResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ShutdownResponse), alignof(ShutdownResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ShutdownResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ShutdownResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShutdownResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShutdownResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ShutdownResponse::ByteSizeLong, + &ShutdownResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._cached_size_), + false, + }, + &ShutdownResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ShutdownResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + ShutdownResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ShutdownResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void ShutdownResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ShutdownResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* ShutdownResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ShutdownResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ShutdownResponse) - return target; -} - -::size_t ShutdownResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ShutdownResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ShutdownResponse::_class_data_ = { - ShutdownResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ShutdownResponse::GetClassData() const { - return &_class_data_; -} - -void ShutdownResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ShutdownResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ShutdownResponse::CopyFrom(const ShutdownResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.ShutdownResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ShutdownResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* ShutdownResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ShutdownResponse::InternalSwap(ShutdownResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ShutdownResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ShutdownResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ShutdownResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ShutdownResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ShutdownResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ShutdownResponse::ByteSizeLong(const MessageLite& base) +{ + const ShutdownResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ShutdownResponse::ByteSizeLong() const +{ + const ShutdownResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ShutdownResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata ShutdownResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[13]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void ShutdownResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ShutdownResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void ShutdownResponse::CopyFrom(const ShutdownResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.ShutdownResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void ShutdownResponse::InternalSwap(ShutdownResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata ShutdownResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TerminateRequest::_Internal { - public: +public: }; TerminateRequest::TerminateRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TerminateRequest) -} -TerminateRequest::TerminateRequest( - ::google::protobuf::Arena* arena, - const TerminateRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - TerminateRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TerminateRequest) -} - - - - - - - - - -::google::protobuf::Metadata TerminateRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[14]); +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TerminateRequest) +} +TerminateRequest::TerminateRequest(::google::protobuf::Arena* arena, const TerminateRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TerminateRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TerminateRequest) +} + +inline void* +TerminateRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TerminateRequest(arena); +} +constexpr auto TerminateRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TerminateRequest), alignof(TerminateRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TerminateRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TerminateRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TerminateRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TerminateRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &TerminateRequest::ByteSizeLong, + &TerminateRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TerminateRequest, _impl_._cached_size_), + false, + }, + &TerminateRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TerminateRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + TerminateRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::TerminateRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata TerminateRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TerminateResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const TerminateResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& TerminateResponse::_Internal::action_result(const TerminateResponse* msg) { - return *msg->_impl_.action_result_; -} TerminateResponse::TerminateResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TerminateResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TerminateResponse) } inline PROTOBUF_NDEBUG_INLINE TerminateResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action::TerminateResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} TerminateResponse::TerminateResponse( - ::google::protobuf::Arena* arena, - const TerminateResponse& from) - : ::google::protobuf::Message(arena) { - TerminateResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TerminateResponse) + ::google::protobuf::Arena* arena, const TerminateResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TerminateResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TerminateResponse) } inline PROTOBUF_NDEBUG_INLINE TerminateResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void TerminateResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -TerminateResponse::~TerminateResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TerminateResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TerminateResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TerminateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TerminateResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TerminateResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TerminateResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TerminateResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void TerminateResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +TerminateResponse::~TerminateResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TerminateResponse) + SharedDtor(*this); +} +inline void TerminateResponse::SharedDtor(MessageLite& self) +{ + TerminateResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* +TerminateResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TerminateResponse(arena); +} +constexpr auto TerminateResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TerminateResponse), alignof(TerminateResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TerminateResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TerminateResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TerminateResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TerminateResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &TerminateResponse::ByteSizeLong, + &TerminateResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._cached_size_), + false, + }, + &TerminateResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TerminateResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + TerminateResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::TerminateResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void TerminateResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TerminateResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* TerminateResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TerminateResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TerminateResponse) - return target; -} - -::size_t TerminateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TerminateResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TerminateResponse::_class_data_ = { - TerminateResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TerminateResponse::GetClassData() const { - return &_class_data_; -} - -void TerminateResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TerminateResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TerminateResponse::CopyFrom(const TerminateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.TerminateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool TerminateResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* TerminateResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TerminateResponse::InternalSwap(TerminateResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const TerminateResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* TerminateResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const TerminateResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TerminateResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TerminateResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TerminateResponse::ByteSizeLong(const MessageLite& base) +{ + const TerminateResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t TerminateResponse::ByteSizeLong() const +{ + const TerminateResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TerminateResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata TerminateResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[15]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void TerminateResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TerminateResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void TerminateResponse::CopyFrom(const TerminateResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.TerminateResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void TerminateResponse::InternalSwap(TerminateResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata TerminateResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class KillRequest::_Internal { - public: +public: }; KillRequest::KillRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.KillRequest) -} -KillRequest::KillRequest( - ::google::protobuf::Arena* arena, - const KillRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - KillRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.KillRequest) -} - - - - - - - - - -::google::protobuf::Metadata KillRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[16]); +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.KillRequest) +} +KillRequest::KillRequest(::google::protobuf::Arena* arena, const KillRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + KillRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.KillRequest) +} + +inline void* KillRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) KillRequest(arena); +} +constexpr auto KillRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(KillRequest), alignof(KillRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull KillRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_KillRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &KillRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &KillRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &KillRequest::ByteSizeLong, + &KillRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(KillRequest, _impl_._cached_size_), + false, + }, + &KillRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* KillRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + KillRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::KillRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata KillRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class KillResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(KillResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const KillResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(KillResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& KillResponse::_Internal::action_result(const KillResponse* msg) { - return *msg->_impl_.action_result_; -} KillResponse::KillResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.KillResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.KillResponse) } inline PROTOBUF_NDEBUG_INLINE KillResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -KillResponse::KillResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const KillResponse& from) - : ::google::protobuf::Message(arena) { - KillResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.KillResponse) + const Impl_& from, + const ::mavsdk::rpc::action::KillResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +KillResponse::KillResponse(::google::protobuf::Arena* arena, const KillResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + KillResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.KillResponse) } inline PROTOBUF_NDEBUG_INLINE KillResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void KillResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -KillResponse::~KillResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.KillResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void KillResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void KillResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.KillResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* KillResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> KillResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(KillResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_KillResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(KillResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(KillResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void KillResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +KillResponse::~KillResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.KillResponse) + SharedDtor(*this); +} +inline void KillResponse::SharedDtor(MessageLite& self) +{ + KillResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* KillResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) KillResponse(arena); +} +constexpr auto KillResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(KillResponse), alignof(KillResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull KillResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_KillResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &KillResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &KillResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &KillResponse::ByteSizeLong, + &KillResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(KillResponse, _impl_._cached_size_), + false, + }, + &KillResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* KillResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + KillResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(KillResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::KillResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(KillResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(KillResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void KillResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.KillResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* KillResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.KillResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.KillResponse) - return target; -} - -::size_t KillResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.KillResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData KillResponse::_class_data_ = { - KillResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* KillResponse::GetClassData() const { - return &_class_data_; -} - -void KillResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.KillResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void KillResponse::CopyFrom(const KillResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.KillResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool KillResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* KillResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void KillResponse::InternalSwap(KillResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const KillResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* KillResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const KillResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.KillResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.KillResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t KillResponse::ByteSizeLong(const MessageLite& base) +{ + const KillResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t KillResponse::ByteSizeLong() const +{ + const KillResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.KillResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata KillResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[17]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void KillResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.KillResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void KillResponse::CopyFrom(const KillResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.KillResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void KillResponse::InternalSwap(KillResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata KillResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ReturnToLaunchRequest::_Internal { - public: +public: }; ReturnToLaunchRequest::ReturnToLaunchRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ReturnToLaunchRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ReturnToLaunchRequest) } ReturnToLaunchRequest::ReturnToLaunchRequest( - ::google::protobuf::Arena* arena, - const ReturnToLaunchRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ReturnToLaunchRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ReturnToLaunchRequest) -} - - - - - - - - - -::google::protobuf::Metadata ReturnToLaunchRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[18]); + ::google::protobuf::Arena* arena, const ReturnToLaunchRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ReturnToLaunchRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ReturnToLaunchRequest) +} + +inline void* +ReturnToLaunchRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ReturnToLaunchRequest(arena); +} +constexpr auto ReturnToLaunchRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ReturnToLaunchRequest), alignof(ReturnToLaunchRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ReturnToLaunchRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ReturnToLaunchRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ReturnToLaunchRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ReturnToLaunchRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &ReturnToLaunchRequest::ByteSizeLong, + &ReturnToLaunchRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ReturnToLaunchRequest, _impl_._cached_size_), + false, + }, + &ReturnToLaunchRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ReturnToLaunchRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + ReturnToLaunchRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::ReturnToLaunchRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata ReturnToLaunchRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== -class ReturnToLaunchResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ReturnToLaunchResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const ReturnToLaunchResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -const ::mavsdk::rpc::action::ActionResult& ReturnToLaunchResponse::_Internal::action_result(const ReturnToLaunchResponse* msg) { - return *msg->_impl_.action_result_; -} -ReturnToLaunchResponse::ReturnToLaunchResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ReturnToLaunchResponse) -} -inline PROTOBUF_NDEBUG_INLINE ReturnToLaunchResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ReturnToLaunchResponse::ReturnToLaunchResponse( - ::google::protobuf::Arena* arena, - const ReturnToLaunchResponse& from) - : ::google::protobuf::Message(arena) { - ReturnToLaunchResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ReturnToLaunchResponse) -} -inline PROTOBUF_NDEBUG_INLINE ReturnToLaunchResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ReturnToLaunchResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -ReturnToLaunchResponse::~ReturnToLaunchResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ReturnToLaunchResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ReturnToLaunchResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ReturnToLaunchResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ReturnToLaunchResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ReturnToLaunchResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ReturnToLaunchResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ReturnToLaunchResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ReturnToLaunchResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ReturnToLaunchResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(ReturnToLaunchResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - -::uint8_t* ReturnToLaunchResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ReturnToLaunchResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ReturnToLaunchResponse) - return target; -} - -::size_t ReturnToLaunchResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ReturnToLaunchResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ReturnToLaunchResponse::_class_data_ = { - ReturnToLaunchResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ReturnToLaunchResponse::GetClassData() const { - return &_class_data_; -} - -void ReturnToLaunchResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ReturnToLaunchResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ReturnToLaunchResponse::CopyFrom(const ReturnToLaunchResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.ReturnToLaunchResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +class ReturnToLaunchResponse::_Internal { +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ReturnToLaunchResponse, _impl_._has_bits_); +}; -PROTOBUF_NOINLINE bool ReturnToLaunchResponse::IsInitialized() const { - return true; +ReturnToLaunchResponse::ReturnToLaunchResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ReturnToLaunchResponse) } +inline PROTOBUF_NDEBUG_INLINE ReturnToLaunchResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action::ReturnToLaunchResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} -::_pbi::CachedSize* ReturnToLaunchResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ReturnToLaunchResponse::InternalSwap(ReturnToLaunchResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); +ReturnToLaunchResponse::ReturnToLaunchResponse( + ::google::protobuf::Arena* arena, const ReturnToLaunchResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ReturnToLaunchResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ReturnToLaunchResponse) } +inline PROTOBUF_NDEBUG_INLINE ReturnToLaunchResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ReturnToLaunchResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +ReturnToLaunchResponse::~ReturnToLaunchResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ReturnToLaunchResponse) + SharedDtor(*this); +} +inline void ReturnToLaunchResponse::SharedDtor(MessageLite& self) +{ + ReturnToLaunchResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* +ReturnToLaunchResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ReturnToLaunchResponse(arena); +} +constexpr auto ReturnToLaunchResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ReturnToLaunchResponse), alignof(ReturnToLaunchResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ReturnToLaunchResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ReturnToLaunchResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ReturnToLaunchResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ReturnToLaunchResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ReturnToLaunchResponse::ByteSizeLong, + &ReturnToLaunchResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ReturnToLaunchResponse, _impl_._cached_size_), + false, + }, + &ReturnToLaunchResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ReturnToLaunchResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + ReturnToLaunchResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ReturnToLaunchResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::ReturnToLaunchResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ReturnToLaunchResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(ReturnToLaunchResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void ReturnToLaunchResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ReturnToLaunchResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* ReturnToLaunchResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ReturnToLaunchResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ReturnToLaunchResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ReturnToLaunchResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ReturnToLaunchResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ReturnToLaunchResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ReturnToLaunchResponse::ByteSizeLong(const MessageLite& base) +{ + const ReturnToLaunchResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ReturnToLaunchResponse::ByteSizeLong() const +{ + const ReturnToLaunchResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ReturnToLaunchResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata ReturnToLaunchResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[19]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void ReturnToLaunchResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ReturnToLaunchResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void ReturnToLaunchResponse::CopyFrom(const ReturnToLaunchResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.ReturnToLaunchResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void ReturnToLaunchResponse::InternalSwap(ReturnToLaunchResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata ReturnToLaunchResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GotoLocationRequest::_Internal { - public: +public: }; GotoLocationRequest::GotoLocationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GotoLocationRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GotoLocationRequest) } GotoLocationRequest::GotoLocationRequest( - ::google::protobuf::Arena* arena, const GotoLocationRequest& from) - : GotoLocationRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const GotoLocationRequest& from) : + GotoLocationRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE GotoLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void GotoLocationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, latitude_deg_), - 0, - offsetof(Impl_, yaw_deg_) - - offsetof(Impl_, latitude_deg_) + - sizeof(Impl_::yaw_deg_)); -} -GotoLocationRequest::~GotoLocationRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GotoLocationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GotoLocationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void GotoLocationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GotoLocationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.latitude_deg_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.yaw_deg_) - - reinterpret_cast(&_impl_.latitude_deg_)) + sizeof(_impl_.yaw_deg_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GotoLocationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> GotoLocationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GotoLocationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float yaw_deg = 4; - {::_pbi::TcParser::FastF32S1, - {37, 63, 0, PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.yaw_deg_)}}, - // double latitude_deg = 1; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.latitude_deg_)}}, - // double longitude_deg = 2; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.longitude_deg_)}}, - // float absolute_altitude_m = 3; - {::_pbi::TcParser::FastF32S1, - {29, 63, 0, PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.absolute_altitude_m_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void GotoLocationRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, latitude_deg_), + 0, + offsetof(Impl_, yaw_deg_) - offsetof(Impl_, latitude_deg_) + sizeof(Impl_::yaw_deg_)); +} +GotoLocationRequest::~GotoLocationRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GotoLocationRequest) + SharedDtor(*this); +} +inline void GotoLocationRequest::SharedDtor(MessageLite& self) +{ + GotoLocationRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +GotoLocationRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) GotoLocationRequest(arena); +} +constexpr auto GotoLocationRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GotoLocationRequest), alignof(GotoLocationRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GotoLocationRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GotoLocationRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GotoLocationRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GotoLocationRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &GotoLocationRequest::ByteSizeLong, + &GotoLocationRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_._cached_size_), + false, + }, + &GotoLocationRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GotoLocationRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> + GotoLocationRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 4, + 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::GotoLocationRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // float yaw_deg = 4; + {::_pbi::TcParser::FastF32S1, + {37, 63, 0, PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.yaw_deg_)}}, + // double latitude_deg = 1; + {::_pbi::TcParser::FastF64S1, + {9, 63, 0, PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.latitude_deg_)}}, + // double longitude_deg = 2; + {::_pbi::TcParser::FastF64S1, + {17, 63, 0, PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.longitude_deg_)}}, + // float absolute_altitude_m = 3; + {::_pbi::TcParser::FastF32S1, + {29, 63, 0, PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.absolute_altitude_m_)}}, + }}, + {{65535, 65535}}, + {{ + // double latitude_deg = 1; + {PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.latitude_deg_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + // double longitude_deg = 2; + {PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.longitude_deg_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + // float absolute_altitude_m = 3; + {PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.absolute_altitude_m_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float yaw_deg = 4; + {PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.yaw_deg_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void GotoLocationRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GotoLocationRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::memset( + &_impl_.latitude_deg_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.yaw_deg_) - + reinterpret_cast(&_impl_.latitude_deg_)) + + sizeof(_impl_.yaw_deg_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* GotoLocationRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const GotoLocationRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* GotoLocationRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const GotoLocationRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GotoLocationRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // double latitude_deg = 1; - {PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.latitude_deg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + if (::absl::bit_cast<::uint64_t>(this_._internal_latitude_deg()) != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteDoubleToArray(1, this_._internal_latitude_deg(), target); + } + // double longitude_deg = 2; - {PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.longitude_deg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + if (::absl::bit_cast<::uint64_t>(this_._internal_longitude_deg()) != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteDoubleToArray(2, this_._internal_longitude_deg(), target); + } + // float absolute_altitude_m = 3; - {PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.absolute_altitude_m_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - // float yaw_deg = 4; - {PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.yaw_deg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; + if (::absl::bit_cast<::uint32_t>(this_._internal_absolute_altitude_m()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_absolute_altitude_m(), target); + } -::uint8_t* GotoLocationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GotoLocationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // double latitude_deg = 1; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = this->_internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_latitude_deg(), target); - } - - // double longitude_deg = 2; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = this->_internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_longitude_deg(), target); - } - - // float absolute_altitude_m = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - ::uint32_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_absolute_altitude_m(), target); - } - - // float yaw_deg = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_yaw_deg = this->_internal_yaw_deg(); - ::uint32_t raw_yaw_deg; - memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); - if (raw_yaw_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 4, this->_internal_yaw_deg(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GotoLocationRequest) - return target; -} - -::size_t GotoLocationRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GotoLocationRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // double latitude_deg = 1; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = this->_internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - total_size += 9; - } - - // double longitude_deg = 2; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = this->_internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - total_size += 9; - } - - // float absolute_altitude_m = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - ::uint32_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - total_size += 5; - } - - // float yaw_deg = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_yaw_deg = this->_internal_yaw_deg(); - ::uint32_t raw_yaw_deg; - memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); - if (raw_yaw_deg != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GotoLocationRequest::_class_data_ = { - GotoLocationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GotoLocationRequest::GetClassData() const { - return &_class_data_; -} - -void GotoLocationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GotoLocationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = from._internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - _this->_internal_set_latitude_deg(from._internal_latitude_deg()); - } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = from._internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - _this->_internal_set_longitude_deg(from._internal_longitude_deg()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_absolute_altitude_m = from._internal_absolute_altitude_m(); - ::uint32_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - _this->_internal_set_absolute_altitude_m(from._internal_absolute_altitude_m()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_yaw_deg = from._internal_yaw_deg(); - ::uint32_t raw_yaw_deg; - memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); - if (raw_yaw_deg != 0) { - _this->_internal_set_yaw_deg(from._internal_yaw_deg()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GotoLocationRequest::CopyFrom(const GotoLocationRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.GotoLocationRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GotoLocationRequest::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* GotoLocationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GotoLocationRequest::InternalSwap(GotoLocationRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.yaw_deg_) - + sizeof(GotoLocationRequest::_impl_.yaw_deg_) - - PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.latitude_deg_)>( - reinterpret_cast(&_impl_.latitude_deg_), - reinterpret_cast(&other->_impl_.latitude_deg_)); -} - -::google::protobuf::Metadata GotoLocationRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[20]); + // float yaw_deg = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_yaw_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this_._internal_yaw_deg(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GotoLocationRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GotoLocationRequest::ByteSizeLong(const MessageLite& base) +{ + const GotoLocationRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GotoLocationRequest::ByteSizeLong() const +{ + const GotoLocationRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GotoLocationRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // double latitude_deg = 1; + if (::absl::bit_cast<::uint64_t>(this_._internal_latitude_deg()) != 0) { + total_size += 9; + } + // double longitude_deg = 2; + if (::absl::bit_cast<::uint64_t>(this_._internal_longitude_deg()) != 0) { + total_size += 9; + } + // float absolute_altitude_m = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_absolute_altitude_m()) != 0) { + total_size += 5; + } + // float yaw_deg = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_yaw_deg()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void GotoLocationRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GotoLocationRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (::absl::bit_cast<::uint64_t>(from._internal_latitude_deg()) != 0) { + _this->_impl_.latitude_deg_ = from._impl_.latitude_deg_; + } + if (::absl::bit_cast<::uint64_t>(from._internal_longitude_deg()) != 0) { + _this->_impl_.longitude_deg_ = from._impl_.longitude_deg_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_absolute_altitude_m()) != 0) { + _this->_impl_.absolute_altitude_m_ = from._impl_.absolute_altitude_m_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_yaw_deg()) != 0) { + _this->_impl_.yaw_deg_ = from._impl_.yaw_deg_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void GotoLocationRequest::CopyFrom(const GotoLocationRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.GotoLocationRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void GotoLocationRequest::InternalSwap(GotoLocationRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.yaw_deg_) + + sizeof(GotoLocationRequest::_impl_.yaw_deg_) - + PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.latitude_deg_)>( + reinterpret_cast(&_impl_.latitude_deg_), + reinterpret_cast(&other->_impl_.latitude_deg_)); +} + +::google::protobuf::Metadata GotoLocationRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GotoLocationResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GotoLocationResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const GotoLocationResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GotoLocationResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& GotoLocationResponse::_Internal::action_result(const GotoLocationResponse* msg) { - return *msg->_impl_.action_result_; -} GotoLocationResponse::GotoLocationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GotoLocationResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GotoLocationResponse) } inline PROTOBUF_NDEBUG_INLINE GotoLocationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action::GotoLocationResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} GotoLocationResponse::GotoLocationResponse( - ::google::protobuf::Arena* arena, - const GotoLocationResponse& from) - : ::google::protobuf::Message(arena) { - GotoLocationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GotoLocationResponse) + ::google::protobuf::Arena* arena, const GotoLocationResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + GotoLocationResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GotoLocationResponse) } inline PROTOBUF_NDEBUG_INLINE GotoLocationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void GotoLocationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -GotoLocationResponse::~GotoLocationResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GotoLocationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GotoLocationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void GotoLocationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GotoLocationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GotoLocationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GotoLocationResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GotoLocationResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GotoLocationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GotoLocationResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(GotoLocationResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void GotoLocationResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +GotoLocationResponse::~GotoLocationResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GotoLocationResponse) + SharedDtor(*this); +} +inline void GotoLocationResponse::SharedDtor(MessageLite& self) +{ + GotoLocationResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* +GotoLocationResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) GotoLocationResponse(arena); +} +constexpr auto GotoLocationResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GotoLocationResponse), alignof(GotoLocationResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GotoLocationResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GotoLocationResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GotoLocationResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GotoLocationResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &GotoLocationResponse::ByteSizeLong, + &GotoLocationResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GotoLocationResponse, _impl_._cached_size_), + false, + }, + &GotoLocationResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GotoLocationResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + GotoLocationResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GotoLocationResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::GotoLocationResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GotoLocationResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(GotoLocationResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void GotoLocationResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GotoLocationResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* GotoLocationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GotoLocationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GotoLocationResponse) - return target; -} - -::size_t GotoLocationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GotoLocationResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GotoLocationResponse::_class_data_ = { - GotoLocationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GotoLocationResponse::GetClassData() const { - return &_class_data_; -} - -void GotoLocationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GotoLocationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GotoLocationResponse::CopyFrom(const GotoLocationResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.GotoLocationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GotoLocationResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* GotoLocationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GotoLocationResponse::InternalSwap(GotoLocationResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const GotoLocationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* GotoLocationResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const GotoLocationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GotoLocationResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GotoLocationResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GotoLocationResponse::ByteSizeLong(const MessageLite& base) +{ + const GotoLocationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GotoLocationResponse::ByteSizeLong() const +{ + const GotoLocationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GotoLocationResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata GotoLocationResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[21]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void GotoLocationResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GotoLocationResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void GotoLocationResponse::CopyFrom(const GotoLocationResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.GotoLocationResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void GotoLocationResponse::InternalSwap(GotoLocationResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata GotoLocationResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class DoOrbitRequest::_Internal { - public: +public: }; DoOrbitRequest::DoOrbitRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DoOrbitRequest) -} -DoOrbitRequest::DoOrbitRequest( - ::google::protobuf::Arena* arena, const DoOrbitRequest& from) - : DoOrbitRequest(arena) { - MergeFrom(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DoOrbitRequest) +} +DoOrbitRequest::DoOrbitRequest(::google::protobuf::Arena* arena, const DoOrbitRequest& from) : + DoOrbitRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE DoOrbitRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void DoOrbitRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, radius_m_), - 0, - offsetof(Impl_, yaw_behavior_) - - offsetof(Impl_, radius_m_) + - sizeof(Impl_::yaw_behavior_)); -} -DoOrbitRequest::~DoOrbitRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.DoOrbitRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void DoOrbitRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void DoOrbitRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.DoOrbitRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.radius_m_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.yaw_behavior_) - - reinterpret_cast(&_impl_.radius_m_)) + sizeof(_impl_.yaw_behavior_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DoOrbitRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 0, 2> DoOrbitRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967176, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DoOrbitRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // float radius_m = 1; - {::_pbi::TcParser::FastF32S1, - {13, 63, 0, PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.radius_m_)}}, - // float velocity_ms = 2; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.velocity_ms_)}}, - // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(DoOrbitRequest, _impl_.yaw_behavior_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.yaw_behavior_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; - {::_pbi::TcParser::FastF64S1, - {41, 63, 0, PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.latitude_deg_)}}, - // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; - {::_pbi::TcParser::FastF64S1, - {49, 63, 0, PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.longitude_deg_)}}, - // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; - {::_pbi::TcParser::FastF64S1, - {57, 63, 0, PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.absolute_altitude_m_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void DoOrbitRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, radius_m_), + 0, + offsetof(Impl_, yaw_behavior_) - offsetof(Impl_, radius_m_) + sizeof(Impl_::yaw_behavior_)); +} +DoOrbitRequest::~DoOrbitRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.DoOrbitRequest) + SharedDtor(*this); +} +inline void DoOrbitRequest::SharedDtor(MessageLite& self) +{ + DoOrbitRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* DoOrbitRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) DoOrbitRequest(arena); +} +constexpr auto DoOrbitRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(DoOrbitRequest), alignof(DoOrbitRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull DoOrbitRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_DoOrbitRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DoOrbitRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DoOrbitRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &DoOrbitRequest::ByteSizeLong, + &DoOrbitRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_._cached_size_), + false, + }, + &DoOrbitRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* DoOrbitRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<3, 6, 0, 0, 2> + DoOrbitRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 7, + 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967176, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::DoOrbitRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + // float radius_m = 1; + {::_pbi::TcParser::FastF32S1, + {13, 63, 0, PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.radius_m_)}}, + // float velocity_ms = 2; + {::_pbi::TcParser::FastF32S1, + {21, 63, 0, PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.velocity_ms_)}}, + // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(DoOrbitRequest, _impl_.yaw_behavior_), + 63>(), + {24, 63, 0, PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.yaw_behavior_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; + {::_pbi::TcParser::FastF64S1, + {41, 63, 0, PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.latitude_deg_)}}, + // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; + {::_pbi::TcParser::FastF64S1, + {49, 63, 0, PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.longitude_deg_)}}, + // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; + {::_pbi::TcParser::FastF64S1, + {57, 63, 0, PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.absolute_altitude_m_)}}, + }}, + {{65535, 65535}}, + {{ + // float radius_m = 1; + {PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.radius_m_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float velocity_ms = 2; + {PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.velocity_ms_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; + {PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.yaw_behavior_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; + {PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.latitude_deg_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; + {PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.longitude_deg_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; + {PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.absolute_altitude_m_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void DoOrbitRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.DoOrbitRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::memset( + &_impl_.radius_m_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.yaw_behavior_) - + reinterpret_cast(&_impl_.radius_m_)) + + sizeof(_impl_.yaw_behavior_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* DoOrbitRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const DoOrbitRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* DoOrbitRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const DoOrbitRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.DoOrbitRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // float radius_m = 1; - {PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.radius_m_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_radius_m()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this_._internal_radius_m(), target); + } + // float velocity_ms = 2; - {PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.velocity_ms_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_velocity_ms()) != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteFloatToArray(2, this_._internal_velocity_ms(), target); + } + // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; - {PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.yaw_behavior_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + if (this_._internal_yaw_behavior() != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteEnumToArray(3, this_._internal_yaw_behavior(), target); + } + // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; - {PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.latitude_deg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + if (::absl::bit_cast<::uint64_t>(this_._internal_latitude_deg()) != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteDoubleToArray(5, this_._internal_latitude_deg(), target); + } + // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; - {PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.longitude_deg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; - {PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.absolute_altitude_m_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; + if (::absl::bit_cast<::uint64_t>(this_._internal_longitude_deg()) != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteDoubleToArray(6, this_._internal_longitude_deg(), target); + } -::uint8_t* DoOrbitRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.DoOrbitRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float radius_m = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_radius_m = this->_internal_radius_m(); - ::uint32_t raw_radius_m; - memcpy(&raw_radius_m, &tmp_radius_m, sizeof(tmp_radius_m)); - if (raw_radius_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_radius_m(), target); - } - - // float velocity_ms = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_velocity_ms = this->_internal_velocity_ms(); - ::uint32_t raw_velocity_ms; - memcpy(&raw_velocity_ms, &tmp_velocity_ms, sizeof(tmp_velocity_ms)); - if (raw_velocity_ms != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_velocity_ms(), target); - } - - // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; - if (this->_internal_yaw_behavior() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_yaw_behavior(), target); - } - - // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = this->_internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 5, this->_internal_latitude_deg(), target); - } - - // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = this->_internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 6, this->_internal_longitude_deg(), target); - } - - // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - ::uint64_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 7, this->_internal_absolute_altitude_m(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.DoOrbitRequest) - return target; -} - -::size_t DoOrbitRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.DoOrbitRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // float radius_m = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_radius_m = this->_internal_radius_m(); - ::uint32_t raw_radius_m; - memcpy(&raw_radius_m, &tmp_radius_m, sizeof(tmp_radius_m)); - if (raw_radius_m != 0) { - total_size += 5; - } - - // float velocity_ms = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_velocity_ms = this->_internal_velocity_ms(); - ::uint32_t raw_velocity_ms; - memcpy(&raw_velocity_ms, &tmp_velocity_ms, sizeof(tmp_velocity_ms)); - if (raw_velocity_ms != 0) { - total_size += 5; - } - - // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = this->_internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - total_size += 9; - } - - // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = this->_internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - total_size += 9; - } - - // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - ::uint64_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - total_size += 9; - } - - // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; - if (this->_internal_yaw_behavior() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_yaw_behavior()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData DoOrbitRequest::_class_data_ = { - DoOrbitRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* DoOrbitRequest::GetClassData() const { - return &_class_data_; -} - -void DoOrbitRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.DoOrbitRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_radius_m = from._internal_radius_m(); - ::uint32_t raw_radius_m; - memcpy(&raw_radius_m, &tmp_radius_m, sizeof(tmp_radius_m)); - if (raw_radius_m != 0) { - _this->_internal_set_radius_m(from._internal_radius_m()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_velocity_ms = from._internal_velocity_ms(); - ::uint32_t raw_velocity_ms; - memcpy(&raw_velocity_ms, &tmp_velocity_ms, sizeof(tmp_velocity_ms)); - if (raw_velocity_ms != 0) { - _this->_internal_set_velocity_ms(from._internal_velocity_ms()); - } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = from._internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - _this->_internal_set_latitude_deg(from._internal_latitude_deg()); - } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = from._internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - _this->_internal_set_longitude_deg(from._internal_longitude_deg()); - } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_absolute_altitude_m = from._internal_absolute_altitude_m(); - ::uint64_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - _this->_internal_set_absolute_altitude_m(from._internal_absolute_altitude_m()); - } - if (from._internal_yaw_behavior() != 0) { - _this->_internal_set_yaw_behavior(from._internal_yaw_behavior()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void DoOrbitRequest::CopyFrom(const DoOrbitRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.DoOrbitRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool DoOrbitRequest::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* DoOrbitRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DoOrbitRequest::InternalSwap(DoOrbitRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.yaw_behavior_) - + sizeof(DoOrbitRequest::_impl_.yaw_behavior_) - - PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.radius_m_)>( - reinterpret_cast(&_impl_.radius_m_), - reinterpret_cast(&other->_impl_.radius_m_)); -} - -::google::protobuf::Metadata DoOrbitRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[22]); + // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; + if (::absl::bit_cast<::uint64_t>(this_._internal_absolute_altitude_m()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 7, this_._internal_absolute_altitude_m(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.DoOrbitRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t DoOrbitRequest::ByteSizeLong(const MessageLite& base) +{ + const DoOrbitRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t DoOrbitRequest::ByteSizeLong() const +{ + const DoOrbitRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.DoOrbitRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // float radius_m = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_radius_m()) != 0) { + total_size += 5; + } + // float velocity_ms = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_velocity_ms()) != 0) { + total_size += 5; + } + // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; + if (::absl::bit_cast<::uint64_t>(this_._internal_latitude_deg()) != 0) { + total_size += 9; + } + // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; + if (::absl::bit_cast<::uint64_t>(this_._internal_longitude_deg()) != 0) { + total_size += 9; + } + // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; + if (::absl::bit_cast<::uint64_t>(this_._internal_absolute_altitude_m()) != 0) { + total_size += 9; + } + // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; + if (this_._internal_yaw_behavior() != 0) { + total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_yaw_behavior()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void DoOrbitRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.DoOrbitRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (::absl::bit_cast<::uint32_t>(from._internal_radius_m()) != 0) { + _this->_impl_.radius_m_ = from._impl_.radius_m_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_velocity_ms()) != 0) { + _this->_impl_.velocity_ms_ = from._impl_.velocity_ms_; + } + if (::absl::bit_cast<::uint64_t>(from._internal_latitude_deg()) != 0) { + _this->_impl_.latitude_deg_ = from._impl_.latitude_deg_; + } + if (::absl::bit_cast<::uint64_t>(from._internal_longitude_deg()) != 0) { + _this->_impl_.longitude_deg_ = from._impl_.longitude_deg_; + } + if (::absl::bit_cast<::uint64_t>(from._internal_absolute_altitude_m()) != 0) { + _this->_impl_.absolute_altitude_m_ = from._impl_.absolute_altitude_m_; + } + if (from._internal_yaw_behavior() != 0) { + _this->_impl_.yaw_behavior_ = from._impl_.yaw_behavior_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void DoOrbitRequest::CopyFrom(const DoOrbitRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.DoOrbitRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void DoOrbitRequest::InternalSwap(DoOrbitRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.yaw_behavior_) + + sizeof(DoOrbitRequest::_impl_.yaw_behavior_) - + PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.radius_m_)>( + reinterpret_cast(&_impl_.radius_m_), + reinterpret_cast(&other->_impl_.radius_m_)); +} + +::google::protobuf::Metadata DoOrbitRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class DoOrbitResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(DoOrbitResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const DoOrbitResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(DoOrbitResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& DoOrbitResponse::_Internal::action_result(const DoOrbitResponse* msg) { - return *msg->_impl_.action_result_; -} DoOrbitResponse::DoOrbitResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DoOrbitResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DoOrbitResponse) } inline PROTOBUF_NDEBUG_INLINE DoOrbitResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -DoOrbitResponse::DoOrbitResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const DoOrbitResponse& from) - : ::google::protobuf::Message(arena) { - DoOrbitResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.DoOrbitResponse) + const Impl_& from, + const ::mavsdk::rpc::action::DoOrbitResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +DoOrbitResponse::DoOrbitResponse(::google::protobuf::Arena* arena, const DoOrbitResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + DoOrbitResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.DoOrbitResponse) } inline PROTOBUF_NDEBUG_INLINE DoOrbitResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void DoOrbitResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -DoOrbitResponse::~DoOrbitResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.DoOrbitResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void DoOrbitResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void DoOrbitResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.DoOrbitResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DoOrbitResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> DoOrbitResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(DoOrbitResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_DoOrbitResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(DoOrbitResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(DoOrbitResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void DoOrbitResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +DoOrbitResponse::~DoOrbitResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.DoOrbitResponse) + SharedDtor(*this); +} +inline void DoOrbitResponse::SharedDtor(MessageLite& self) +{ + DoOrbitResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* +DoOrbitResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) DoOrbitResponse(arena); +} +constexpr auto DoOrbitResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(DoOrbitResponse), alignof(DoOrbitResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull DoOrbitResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_DoOrbitResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DoOrbitResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DoOrbitResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &DoOrbitResponse::ByteSizeLong, + &DoOrbitResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DoOrbitResponse, _impl_._cached_size_), + false, + }, + &DoOrbitResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* DoOrbitResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + DoOrbitResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(DoOrbitResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::DoOrbitResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(DoOrbitResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(DoOrbitResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void DoOrbitResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.DoOrbitResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* DoOrbitResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.DoOrbitResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.DoOrbitResponse) - return target; -} - -::size_t DoOrbitResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.DoOrbitResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData DoOrbitResponse::_class_data_ = { - DoOrbitResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* DoOrbitResponse::GetClassData() const { - return &_class_data_; -} - -void DoOrbitResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.DoOrbitResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void DoOrbitResponse::CopyFrom(const DoOrbitResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.DoOrbitResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool DoOrbitResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* DoOrbitResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DoOrbitResponse::InternalSwap(DoOrbitResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const DoOrbitResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* DoOrbitResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const DoOrbitResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.DoOrbitResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.DoOrbitResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t DoOrbitResponse::ByteSizeLong(const MessageLite& base) +{ + const DoOrbitResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t DoOrbitResponse::ByteSizeLong() const +{ + const DoOrbitResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.DoOrbitResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata DoOrbitResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[23]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void DoOrbitResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.DoOrbitResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void DoOrbitResponse::CopyFrom(const DoOrbitResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.DoOrbitResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void DoOrbitResponse::InternalSwap(DoOrbitResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata DoOrbitResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class HoldRequest::_Internal { - public: +public: }; HoldRequest::HoldRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.HoldRequest) -} -HoldRequest::HoldRequest( - ::google::protobuf::Arena* arena, - const HoldRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - HoldRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.HoldRequest) -} - - - - - - - - - -::google::protobuf::Metadata HoldRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[24]); +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.HoldRequest) +} +HoldRequest::HoldRequest(::google::protobuf::Arena* arena, const HoldRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + HoldRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.HoldRequest) +} + +inline void* HoldRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) HoldRequest(arena); +} +constexpr auto HoldRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(HoldRequest), alignof(HoldRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull HoldRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_HoldRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &HoldRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &HoldRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &HoldRequest::ByteSizeLong, + &HoldRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(HoldRequest, _impl_._cached_size_), + false, + }, + &HoldRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* HoldRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + HoldRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::HoldRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata HoldRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class HoldResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(HoldResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const HoldResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(HoldResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& HoldResponse::_Internal::action_result(const HoldResponse* msg) { - return *msg->_impl_.action_result_; -} HoldResponse::HoldResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.HoldResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.HoldResponse) } inline PROTOBUF_NDEBUG_INLINE HoldResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -HoldResponse::HoldResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const HoldResponse& from) - : ::google::protobuf::Message(arena) { - HoldResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.HoldResponse) + const Impl_& from, + const ::mavsdk::rpc::action::HoldResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +HoldResponse::HoldResponse(::google::protobuf::Arena* arena, const HoldResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + HoldResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.HoldResponse) } inline PROTOBUF_NDEBUG_INLINE HoldResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void HoldResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -HoldResponse::~HoldResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.HoldResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void HoldResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void HoldResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.HoldResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* HoldResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> HoldResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(HoldResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_HoldResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(HoldResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(HoldResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void HoldResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +HoldResponse::~HoldResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.HoldResponse) + SharedDtor(*this); +} +inline void HoldResponse::SharedDtor(MessageLite& self) +{ + HoldResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* HoldResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) HoldResponse(arena); +} +constexpr auto HoldResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(HoldResponse), alignof(HoldResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull HoldResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_HoldResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &HoldResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &HoldResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &HoldResponse::ByteSizeLong, + &HoldResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(HoldResponse, _impl_._cached_size_), + false, + }, + &HoldResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* HoldResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + HoldResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(HoldResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::HoldResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(HoldResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(HoldResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void HoldResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.HoldResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* HoldResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.HoldResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.HoldResponse) - return target; -} - -::size_t HoldResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.HoldResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData HoldResponse::_class_data_ = { - HoldResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* HoldResponse::GetClassData() const { - return &_class_data_; -} - -void HoldResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.HoldResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void HoldResponse::CopyFrom(const HoldResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.HoldResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool HoldResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* HoldResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void HoldResponse::InternalSwap(HoldResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const HoldResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* HoldResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const HoldResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.HoldResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.HoldResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t HoldResponse::ByteSizeLong(const MessageLite& base) +{ + const HoldResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t HoldResponse::ByteSizeLong() const +{ + const HoldResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.HoldResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata HoldResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[25]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void HoldResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.HoldResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void HoldResponse::CopyFrom(const HoldResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.HoldResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void HoldResponse::InternalSwap(HoldResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata HoldResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetActuatorRequest::_Internal { - public: +public: }; SetActuatorRequest::SetActuatorRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetActuatorRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetActuatorRequest) } SetActuatorRequest::SetActuatorRequest( - ::google::protobuf::Arena* arena, const SetActuatorRequest& from) - : SetActuatorRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const SetActuatorRequest& from) : + SetActuatorRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE SetActuatorRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetActuatorRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, index_), - 0, - offsetof(Impl_, value_) - - offsetof(Impl_, index_) + - sizeof(Impl_::value_)); -} -SetActuatorRequest::~SetActuatorRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetActuatorRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetActuatorRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetActuatorRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetActuatorRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.index_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.value_) - - reinterpret_cast(&_impl_.index_)) + sizeof(_impl_.value_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetActuatorRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> SetActuatorRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SetActuatorRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float value = 2; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.value_)}}, - // int32 index = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SetActuatorRequest, _impl_.index_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.index_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetActuatorRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, index_), + 0, + offsetof(Impl_, value_) - offsetof(Impl_, index_) + sizeof(Impl_::value_)); +} +SetActuatorRequest::~SetActuatorRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetActuatorRequest) + SharedDtor(*this); +} +inline void SetActuatorRequest::SharedDtor(MessageLite& self) +{ + SetActuatorRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +SetActuatorRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetActuatorRequest(arena); +} +constexpr auto SetActuatorRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetActuatorRequest), alignof(SetActuatorRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetActuatorRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetActuatorRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetActuatorRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetActuatorRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetActuatorRequest::ByteSizeLong, + &SetActuatorRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_._cached_size_), + false, + }, + &SetActuatorRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetActuatorRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 0, 2> + SetActuatorRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::SetActuatorRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // float value = 2; + {::_pbi::TcParser::FastF32S1, + {21, 63, 0, PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.value_)}}, + // int32 index = 1; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(SetActuatorRequest, _impl_.index_), + 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.index_)}}, + }}, + {{65535, 65535}}, + {{ + // int32 index = 1; + {PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.index_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + // float value = 2; + {PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.value_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void SetActuatorRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetActuatorRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::memset( + &_impl_.index_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.value_) - reinterpret_cast(&_impl_.index_)) + + sizeof(_impl_.value_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* SetActuatorRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetActuatorRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetActuatorRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetActuatorRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetActuatorRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // int32 index = 1; - {PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.index_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // float value = 2; - {PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; + if (this_._internal_index() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_index(), target); + } -::uint8_t* SetActuatorRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetActuatorRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 index = 1; - if (this->_internal_index() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_index(), target); - } - - // float value = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_value = this->_internal_value(); - ::uint32_t raw_value; - memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); - if (raw_value != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_value(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetActuatorRequest) - return target; -} - -::size_t SetActuatorRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetActuatorRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int32 index = 1; - if (this->_internal_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_index()); - } - - // float value = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_value = this->_internal_value(); - ::uint32_t raw_value; - memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); - if (raw_value != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetActuatorRequest::_class_data_ = { - SetActuatorRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetActuatorRequest::GetClassData() const { - return &_class_data_; -} - -void SetActuatorRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetActuatorRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_index() != 0) { - _this->_internal_set_index(from._internal_index()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_value = from._internal_value(); - ::uint32_t raw_value; - memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); - if (raw_value != 0) { - _this->_internal_set_value(from._internal_value()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SetActuatorRequest::CopyFrom(const SetActuatorRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetActuatorRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SetActuatorRequest::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* SetActuatorRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetActuatorRequest::InternalSwap(SetActuatorRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.value_) - + sizeof(SetActuatorRequest::_impl_.value_) - - PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.index_)>( - reinterpret_cast(&_impl_.index_), - reinterpret_cast(&other->_impl_.index_)); -} - -::google::protobuf::Metadata SetActuatorRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[26]); + // float value = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_value()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this_._internal_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetActuatorRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetActuatorRequest::ByteSizeLong(const MessageLite& base) +{ + const SetActuatorRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetActuatorRequest::ByteSizeLong() const +{ + const SetActuatorRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetActuatorRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // int32 index = 1; + if (this_._internal_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this_._internal_index()); + } + // float value = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_value()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void SetActuatorRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetActuatorRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (from._internal_index() != 0) { + _this->_impl_.index_ = from._impl_.index_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_value()) != 0) { + _this->_impl_.value_ = from._impl_.value_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void SetActuatorRequest::CopyFrom(const SetActuatorRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetActuatorRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void SetActuatorRequest::InternalSwap(SetActuatorRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.value_) + + sizeof(SetActuatorRequest::_impl_.value_) - + PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.index_)>( + reinterpret_cast(&_impl_.index_), reinterpret_cast(&other->_impl_.index_)); +} + +::google::protobuf::Metadata SetActuatorRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetActuatorResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetActuatorResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const SetActuatorResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetActuatorResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& SetActuatorResponse::_Internal::action_result(const SetActuatorResponse* msg) { - return *msg->_impl_.action_result_; -} SetActuatorResponse::SetActuatorResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetActuatorResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetActuatorResponse) } inline PROTOBUF_NDEBUG_INLINE SetActuatorResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action::SetActuatorResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} SetActuatorResponse::SetActuatorResponse( - ::google::protobuf::Arena* arena, - const SetActuatorResponse& from) - : ::google::protobuf::Message(arena) { - SetActuatorResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetActuatorResponse) + ::google::protobuf::Arena* arena, const SetActuatorResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SetActuatorResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetActuatorResponse) } inline PROTOBUF_NDEBUG_INLINE SetActuatorResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetActuatorResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -SetActuatorResponse::~SetActuatorResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetActuatorResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetActuatorResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetActuatorResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetActuatorResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetActuatorResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetActuatorResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetActuatorResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetActuatorResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetActuatorResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(SetActuatorResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetActuatorResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +SetActuatorResponse::~SetActuatorResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetActuatorResponse) + SharedDtor(*this); +} +inline void SetActuatorResponse::SharedDtor(MessageLite& self) +{ + SetActuatorResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* +SetActuatorResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetActuatorResponse(arena); +} +constexpr auto SetActuatorResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetActuatorResponse), alignof(SetActuatorResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetActuatorResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetActuatorResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetActuatorResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetActuatorResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetActuatorResponse::ByteSizeLong, + &SetActuatorResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetActuatorResponse, _impl_._cached_size_), + false, + }, + &SetActuatorResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetActuatorResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + SetActuatorResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SetActuatorResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::SetActuatorResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetActuatorResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(SetActuatorResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void SetActuatorResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetActuatorResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetActuatorResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetActuatorResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetActuatorResponse) - return target; -} - -::size_t SetActuatorResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetActuatorResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetActuatorResponse::_class_data_ = { - SetActuatorResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetActuatorResponse::GetClassData() const { - return &_class_data_; -} - -void SetActuatorResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetActuatorResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SetActuatorResponse::CopyFrom(const SetActuatorResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetActuatorResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SetActuatorResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* SetActuatorResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetActuatorResponse::InternalSwap(SetActuatorResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetActuatorResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetActuatorResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetActuatorResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetActuatorResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetActuatorResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetActuatorResponse::ByteSizeLong(const MessageLite& base) +{ + const SetActuatorResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetActuatorResponse::ByteSizeLong() const +{ + const SetActuatorResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetActuatorResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata SetActuatorResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[27]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void SetActuatorResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetActuatorResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void SetActuatorResponse::CopyFrom(const SetActuatorResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetActuatorResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void SetActuatorResponse::InternalSwap(SetActuatorResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata SetActuatorResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TransitionToFixedwingRequest::_Internal { - public: +public: }; TransitionToFixedwingRequest::TransitionToFixedwingRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToFixedwingRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToFixedwingRequest) } TransitionToFixedwingRequest::TransitionToFixedwingRequest( - ::google::protobuf::Arena* arena, - const TransitionToFixedwingRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - TransitionToFixedwingRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToFixedwingRequest) -} - - - - - - - - - -::google::protobuf::Metadata TransitionToFixedwingRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[28]); + ::google::protobuf::Arena* arena, const TransitionToFixedwingRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TransitionToFixedwingRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToFixedwingRequest) +} + +inline void* TransitionToFixedwingRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TransitionToFixedwingRequest(arena); +} +constexpr auto TransitionToFixedwingRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TransitionToFixedwingRequest), alignof(TransitionToFixedwingRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TransitionToFixedwingRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TransitionToFixedwingRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TransitionToFixedwingRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TransitionToFixedwingRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &TransitionToFixedwingRequest::ByteSizeLong, + &TransitionToFixedwingRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TransitionToFixedwingRequest, _impl_._cached_size_), + false, + }, + &TransitionToFixedwingRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TransitionToFixedwingRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + TransitionToFixedwingRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::TransitionToFixedwingRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata TransitionToFixedwingRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TransitionToFixedwingResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TransitionToFixedwingResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const TransitionToFixedwingResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TransitionToFixedwingResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& TransitionToFixedwingResponse::_Internal::action_result(const TransitionToFixedwingResponse* msg) { - return *msg->_impl_.action_result_; -} TransitionToFixedwingResponse::TransitionToFixedwingResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToFixedwingResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToFixedwingResponse) } inline PROTOBUF_NDEBUG_INLINE TransitionToFixedwingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action::TransitionToFixedwingResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} TransitionToFixedwingResponse::TransitionToFixedwingResponse( - ::google::protobuf::Arena* arena, - const TransitionToFixedwingResponse& from) - : ::google::protobuf::Message(arena) { - TransitionToFixedwingResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToFixedwingResponse) + ::google::protobuf::Arena* arena, const TransitionToFixedwingResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TransitionToFixedwingResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToFixedwingResponse) } inline PROTOBUF_NDEBUG_INLINE TransitionToFixedwingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void TransitionToFixedwingResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -TransitionToFixedwingResponse::~TransitionToFixedwingResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TransitionToFixedwingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TransitionToFixedwingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TransitionToFixedwingResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TransitionToFixedwingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TransitionToFixedwingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransitionToFixedwingResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TransitionToFixedwingResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TransitionToFixedwingResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TransitionToFixedwingResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(TransitionToFixedwingResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void TransitionToFixedwingResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +TransitionToFixedwingResponse::~TransitionToFixedwingResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TransitionToFixedwingResponse) + SharedDtor(*this); +} +inline void TransitionToFixedwingResponse::SharedDtor(MessageLite& self) +{ + TransitionToFixedwingResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* TransitionToFixedwingResponse::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TransitionToFixedwingResponse(arena); +} +constexpr auto TransitionToFixedwingResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TransitionToFixedwingResponse), alignof(TransitionToFixedwingResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TransitionToFixedwingResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TransitionToFixedwingResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TransitionToFixedwingResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TransitionToFixedwingResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &TransitionToFixedwingResponse::ByteSizeLong, + &TransitionToFixedwingResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TransitionToFixedwingResponse, _impl_._cached_size_), + false, + }, + &TransitionToFixedwingResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TransitionToFixedwingResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + TransitionToFixedwingResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(TransitionToFixedwingResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::TransitionToFixedwingResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET(TransitionToFixedwingResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(TransitionToFixedwingResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void TransitionToFixedwingResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TransitionToFixedwingResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* TransitionToFixedwingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TransitionToFixedwingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TransitionToFixedwingResponse) - return target; -} - -::size_t TransitionToFixedwingResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TransitionToFixedwingResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TransitionToFixedwingResponse::_class_data_ = { - TransitionToFixedwingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TransitionToFixedwingResponse::GetClassData() const { - return &_class_data_; -} - -void TransitionToFixedwingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TransitionToFixedwingResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TransitionToFixedwingResponse::CopyFrom(const TransitionToFixedwingResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.TransitionToFixedwingResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool TransitionToFixedwingResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* TransitionToFixedwingResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TransitionToFixedwingResponse::InternalSwap(TransitionToFixedwingResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const TransitionToFixedwingResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* TransitionToFixedwingResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const TransitionToFixedwingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TransitionToFixedwingResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TransitionToFixedwingResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TransitionToFixedwingResponse::ByteSizeLong(const MessageLite& base) +{ + const TransitionToFixedwingResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t TransitionToFixedwingResponse::ByteSizeLong() const +{ + const TransitionToFixedwingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TransitionToFixedwingResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata TransitionToFixedwingResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[29]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void TransitionToFixedwingResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TransitionToFixedwingResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void TransitionToFixedwingResponse::CopyFrom(const TransitionToFixedwingResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.TransitionToFixedwingResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void TransitionToFixedwingResponse::InternalSwap( + TransitionToFixedwingResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata TransitionToFixedwingResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TransitionToMulticopterRequest::_Internal { - public: +public: }; TransitionToMulticopterRequest::TransitionToMulticopterRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToMulticopterRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToMulticopterRequest) } TransitionToMulticopterRequest::TransitionToMulticopterRequest( - ::google::protobuf::Arena* arena, - const TransitionToMulticopterRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - TransitionToMulticopterRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToMulticopterRequest) -} - - - - - - - - - -::google::protobuf::Metadata TransitionToMulticopterRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[30]); + ::google::protobuf::Arena* arena, const TransitionToMulticopterRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TransitionToMulticopterRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToMulticopterRequest) +} + +inline void* TransitionToMulticopterRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TransitionToMulticopterRequest(arena); +} +constexpr auto TransitionToMulticopterRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TransitionToMulticopterRequest), alignof(TransitionToMulticopterRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TransitionToMulticopterRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TransitionToMulticopterRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TransitionToMulticopterRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TransitionToMulticopterRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl< + TransitionToMulticopterRequest>(), + &TransitionToMulticopterRequest::ByteSizeLong, + &TransitionToMulticopterRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TransitionToMulticopterRequest, _impl_._cached_size_), + false, + }, + &TransitionToMulticopterRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TransitionToMulticopterRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + TransitionToMulticopterRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::TransitionToMulticopterRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata TransitionToMulticopterRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TransitionToMulticopterResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TransitionToMulticopterResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const TransitionToMulticopterResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TransitionToMulticopterResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& TransitionToMulticopterResponse::_Internal::action_result(const TransitionToMulticopterResponse* msg) { - return *msg->_impl_.action_result_; -} TransitionToMulticopterResponse::TransitionToMulticopterResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToMulticopterResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToMulticopterResponse) } inline PROTOBUF_NDEBUG_INLINE TransitionToMulticopterResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action::TransitionToMulticopterResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} TransitionToMulticopterResponse::TransitionToMulticopterResponse( - ::google::protobuf::Arena* arena, - const TransitionToMulticopterResponse& from) - : ::google::protobuf::Message(arena) { - TransitionToMulticopterResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToMulticopterResponse) + ::google::protobuf::Arena* arena, const TransitionToMulticopterResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TransitionToMulticopterResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToMulticopterResponse) } inline PROTOBUF_NDEBUG_INLINE TransitionToMulticopterResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void TransitionToMulticopterResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -TransitionToMulticopterResponse::~TransitionToMulticopterResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TransitionToMulticopterResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TransitionToMulticopterResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TransitionToMulticopterResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TransitionToMulticopterResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TransitionToMulticopterResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransitionToMulticopterResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TransitionToMulticopterResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TransitionToMulticopterResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TransitionToMulticopterResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(TransitionToMulticopterResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void TransitionToMulticopterResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +TransitionToMulticopterResponse::~TransitionToMulticopterResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TransitionToMulticopterResponse) + SharedDtor(*this); +} +inline void TransitionToMulticopterResponse::SharedDtor(MessageLite& self) +{ + TransitionToMulticopterResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* TransitionToMulticopterResponse::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TransitionToMulticopterResponse(arena); +} +constexpr auto TransitionToMulticopterResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TransitionToMulticopterResponse), alignof(TransitionToMulticopterResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TransitionToMulticopterResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TransitionToMulticopterResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TransitionToMulticopterResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TransitionToMulticopterResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &TransitionToMulticopterResponse::ByteSizeLong, + &TransitionToMulticopterResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TransitionToMulticopterResponse, _impl_._cached_size_), + false, + }, + &TransitionToMulticopterResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TransitionToMulticopterResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + TransitionToMulticopterResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(TransitionToMulticopterResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::TransitionToMulticopterResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET(TransitionToMulticopterResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(TransitionToMulticopterResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void TransitionToMulticopterResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TransitionToMulticopterResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* TransitionToMulticopterResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TransitionToMulticopterResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TransitionToMulticopterResponse) - return target; -} - -::size_t TransitionToMulticopterResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TransitionToMulticopterResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TransitionToMulticopterResponse::_class_data_ = { - TransitionToMulticopterResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TransitionToMulticopterResponse::GetClassData() const { - return &_class_data_; -} - -void TransitionToMulticopterResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TransitionToMulticopterResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TransitionToMulticopterResponse::CopyFrom(const TransitionToMulticopterResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.TransitionToMulticopterResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool TransitionToMulticopterResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* TransitionToMulticopterResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TransitionToMulticopterResponse::InternalSwap(TransitionToMulticopterResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const TransitionToMulticopterResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* TransitionToMulticopterResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const TransitionToMulticopterResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TransitionToMulticopterResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TransitionToMulticopterResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TransitionToMulticopterResponse::ByteSizeLong(const MessageLite& base) +{ + const TransitionToMulticopterResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t TransitionToMulticopterResponse::ByteSizeLong() const +{ + const TransitionToMulticopterResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TransitionToMulticopterResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata TransitionToMulticopterResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[31]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void TransitionToMulticopterResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TransitionToMulticopterResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void TransitionToMulticopterResponse::CopyFrom(const TransitionToMulticopterResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.TransitionToMulticopterResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void TransitionToMulticopterResponse::InternalSwap( + TransitionToMulticopterResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata TransitionToMulticopterResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetTakeoffAltitudeRequest::_Internal { - public: +public: }; GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetTakeoffAltitudeRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetTakeoffAltitudeRequest) } GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest( - ::google::protobuf::Arena* arena, - const GetTakeoffAltitudeRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GetTakeoffAltitudeRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetTakeoffAltitudeRequest) -} - - - - - - - - - -::google::protobuf::Metadata GetTakeoffAltitudeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[32]); + ::google::protobuf::Arena* arena, const GetTakeoffAltitudeRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + GetTakeoffAltitudeRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetTakeoffAltitudeRequest) +} + +inline void* +GetTakeoffAltitudeRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) GetTakeoffAltitudeRequest(arena); +} +constexpr auto GetTakeoffAltitudeRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GetTakeoffAltitudeRequest), alignof(GetTakeoffAltitudeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetTakeoffAltitudeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GetTakeoffAltitudeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetTakeoffAltitudeRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetTakeoffAltitudeRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &GetTakeoffAltitudeRequest::ByteSizeLong, + &GetTakeoffAltitudeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeRequest, _impl_._cached_size_), + false, + }, + &GetTakeoffAltitudeRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GetTakeoffAltitudeRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + GetTakeoffAltitudeRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::GetTakeoffAltitudeRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata GetTakeoffAltitudeRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetTakeoffAltitudeResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const GetTakeoffAltitudeResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& GetTakeoffAltitudeResponse::_Internal::action_result(const GetTakeoffAltitudeResponse* msg) { - return *msg->_impl_.action_result_; -} GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetTakeoffAltitudeResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetTakeoffAltitudeResponse) } inline PROTOBUF_NDEBUG_INLINE GetTakeoffAltitudeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action::GetTakeoffAltitudeResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse( - ::google::protobuf::Arena* arena, - const GetTakeoffAltitudeResponse& from) - : ::google::protobuf::Message(arena) { - GetTakeoffAltitudeResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - _impl_.altitude_ = from._impl_.altitude_; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetTakeoffAltitudeResponse) + ::google::protobuf::Arena* arena, const GetTakeoffAltitudeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + GetTakeoffAltitudeResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + _impl_.altitude_ = from._impl_.altitude_; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetTakeoffAltitudeResponse) } inline PROTOBUF_NDEBUG_INLINE GetTakeoffAltitudeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void GetTakeoffAltitudeResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, action_result_), - 0, - offsetof(Impl_, altitude_) - - offsetof(Impl_, action_result_) + - sizeof(Impl_::altitude_)); -} -GetTakeoffAltitudeResponse::~GetTakeoffAltitudeResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetTakeoffAltitudeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void GetTakeoffAltitudeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_.altitude_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetTakeoffAltitudeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetTakeoffAltitudeResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetTakeoffAltitudeResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float altitude = 2; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.altitude_)}}, - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void GetTakeoffAltitudeResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, action_result_), + 0, + offsetof(Impl_, altitude_) - offsetof(Impl_, action_result_) + sizeof(Impl_::altitude_)); +} +GetTakeoffAltitudeResponse::~GetTakeoffAltitudeResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GetTakeoffAltitudeResponse) + SharedDtor(*this); +} +inline void GetTakeoffAltitudeResponse::SharedDtor(MessageLite& self) +{ + GetTakeoffAltitudeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* +GetTakeoffAltitudeResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) GetTakeoffAltitudeResponse(arena); +} +constexpr auto GetTakeoffAltitudeResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GetTakeoffAltitudeResponse), alignof(GetTakeoffAltitudeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetTakeoffAltitudeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GetTakeoffAltitudeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetTakeoffAltitudeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetTakeoffAltitudeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &GetTakeoffAltitudeResponse::ByteSizeLong, + &GetTakeoffAltitudeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_._cached_size_), + false, + }, + &GetTakeoffAltitudeResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GetTakeoffAltitudeResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> + GetTakeoffAltitudeResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::GetTakeoffAltitudeResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // float altitude = 2; + {::_pbi::TcParser::FastF32S1, + {21, 63, 0, PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.altitude_)}}, + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // float altitude = 2; + {PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.altitude_), + -1, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void GetTakeoffAltitudeResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_.altitude_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* GetTakeoffAltitudeResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const GetTakeoffAltitudeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* GetTakeoffAltitudeResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const GetTakeoffAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // float altitude = 2; - {PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.altitude_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } -::uint8_t* GetTakeoffAltitudeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - // float altitude = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_altitude = this->_internal_altitude(); - ::uint32_t raw_altitude; - memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); - if (raw_altitude != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_altitude(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - return target; -} - -::size_t GetTakeoffAltitudeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - // float altitude = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_altitude = this->_internal_altitude(); - ::uint32_t raw_altitude; - memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); - if (raw_altitude != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GetTakeoffAltitudeResponse::_class_data_ = { - GetTakeoffAltitudeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetTakeoffAltitudeResponse::GetClassData() const { - return &_class_data_; -} - -void GetTakeoffAltitudeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_altitude = from._internal_altitude(); - ::uint32_t raw_altitude; - memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); - if (raw_altitude != 0) { - _this->_internal_set_altitude(from._internal_altitude()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetTakeoffAltitudeResponse::CopyFrom(const GetTakeoffAltitudeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetTakeoffAltitudeResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* GetTakeoffAltitudeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetTakeoffAltitudeResponse::InternalSwap(GetTakeoffAltitudeResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.altitude_) - + sizeof(GetTakeoffAltitudeResponse::_impl_.altitude_) - - PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.action_result_)>( - reinterpret_cast(&_impl_.action_result_), - reinterpret_cast(&other->_impl_.action_result_)); -} - -::google::protobuf::Metadata GetTakeoffAltitudeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[33]); + // float altitude = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_altitude()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this_._internal_altitude(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GetTakeoffAltitudeResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetTakeoffAltitudeResponse::ByteSizeLong(const MessageLite& base) +{ + const GetTakeoffAltitudeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GetTakeoffAltitudeResponse::ByteSizeLong() const +{ + const GetTakeoffAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + { + // float altitude = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_altitude()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void GetTakeoffAltitudeResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + if (::absl::bit_cast<::uint32_t>(from._internal_altitude()) != 0) { + _this->_impl_.altitude_ = from._impl_.altitude_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void GetTakeoffAltitudeResponse::CopyFrom(const GetTakeoffAltitudeResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void GetTakeoffAltitudeResponse::InternalSwap(GetTakeoffAltitudeResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.altitude_) + + sizeof(GetTakeoffAltitudeResponse::_impl_.altitude_) - + PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.action_result_)>( + reinterpret_cast(&_impl_.action_result_), + reinterpret_cast(&other->_impl_.action_result_)); +} + +::google::protobuf::Metadata GetTakeoffAltitudeResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetTakeoffAltitudeRequest::_Internal { - public: +public: }; SetTakeoffAltitudeRequest::SetTakeoffAltitudeRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetTakeoffAltitudeRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetTakeoffAltitudeRequest) } SetTakeoffAltitudeRequest::SetTakeoffAltitudeRequest( - ::google::protobuf::Arena* arena, const SetTakeoffAltitudeRequest& from) - : SetTakeoffAltitudeRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const SetTakeoffAltitudeRequest& from) : + SetTakeoffAltitudeRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE SetTakeoffAltitudeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetTakeoffAltitudeRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.altitude_ = {}; -} -SetTakeoffAltitudeRequest::~SetTakeoffAltitudeRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetTakeoffAltitudeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetTakeoffAltitudeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.altitude_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetTakeoffAltitudeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetTakeoffAltitudeRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SetTakeoffAltitudeRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float altitude = 1; - {::_pbi::TcParser::FastF32S1, - {13, 63, 0, PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeRequest, _impl_.altitude_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetTakeoffAltitudeRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.altitude_ = {}; +} +SetTakeoffAltitudeRequest::~SetTakeoffAltitudeRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetTakeoffAltitudeRequest) + SharedDtor(*this); +} +inline void SetTakeoffAltitudeRequest::SharedDtor(MessageLite& self) +{ + SetTakeoffAltitudeRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +SetTakeoffAltitudeRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetTakeoffAltitudeRequest(arena); +} +constexpr auto SetTakeoffAltitudeRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetTakeoffAltitudeRequest), alignof(SetTakeoffAltitudeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetTakeoffAltitudeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetTakeoffAltitudeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetTakeoffAltitudeRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetTakeoffAltitudeRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetTakeoffAltitudeRequest::ByteSizeLong, + &SetTakeoffAltitudeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeRequest, _impl_._cached_size_), + false, + }, + &SetTakeoffAltitudeRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetTakeoffAltitudeRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + SetTakeoffAltitudeRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::SetTakeoffAltitudeRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // float altitude = 1; + {::_pbi::TcParser::FastF32S1, + {13, 63, 0, PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeRequest, _impl_.altitude_)}}, + }}, + {{65535, 65535}}, + {{ + // float altitude = 1; + {PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeRequest, _impl_.altitude_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void SetTakeoffAltitudeRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.altitude_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* SetTakeoffAltitudeRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetTakeoffAltitudeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetTakeoffAltitudeRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetTakeoffAltitudeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // float altitude = 1; - {PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeRequest, _impl_.altitude_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; + if (::absl::bit_cast<::uint32_t>(this_._internal_altitude()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this_._internal_altitude(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetTakeoffAltitudeRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetTakeoffAltitudeRequest::ByteSizeLong(const MessageLite& base) +{ + const SetTakeoffAltitudeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetTakeoffAltitudeRequest::ByteSizeLong() const +{ + const SetTakeoffAltitudeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::uint8_t* SetTakeoffAltitudeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float altitude = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_altitude = this->_internal_altitude(); - ::uint32_t raw_altitude; - memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); - if (raw_altitude != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_altitude(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - return target; -} - -::size_t SetTakeoffAltitudeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // float altitude = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_altitude = this->_internal_altitude(); - ::uint32_t raw_altitude; - memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); - if (raw_altitude != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetTakeoffAltitudeRequest::_class_data_ = { - SetTakeoffAltitudeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetTakeoffAltitudeRequest::GetClassData() const { - return &_class_data_; -} - -void SetTakeoffAltitudeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_altitude = from._internal_altitude(); - ::uint32_t raw_altitude; - memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); - if (raw_altitude != 0) { - _this->_internal_set_altitude(from._internal_altitude()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SetTakeoffAltitudeRequest::CopyFrom(const SetTakeoffAltitudeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SetTakeoffAltitudeRequest::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* SetTakeoffAltitudeRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetTakeoffAltitudeRequest::InternalSwap(SetTakeoffAltitudeRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.altitude_, other->_impl_.altitude_); -} - -::google::protobuf::Metadata SetTakeoffAltitudeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[34]); + { + // float altitude = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_altitude()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void SetTakeoffAltitudeRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (::absl::bit_cast<::uint32_t>(from._internal_altitude()) != 0) { + _this->_impl_.altitude_ = from._impl_.altitude_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void SetTakeoffAltitudeRequest::CopyFrom(const SetTakeoffAltitudeRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void SetTakeoffAltitudeRequest::InternalSwap(SetTakeoffAltitudeRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.altitude_, other->_impl_.altitude_); +} + +::google::protobuf::Metadata SetTakeoffAltitudeRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetTakeoffAltitudeResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const SetTakeoffAltitudeResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& SetTakeoffAltitudeResponse::_Internal::action_result(const SetTakeoffAltitudeResponse* msg) { - return *msg->_impl_.action_result_; -} SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetTakeoffAltitudeResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetTakeoffAltitudeResponse) } inline PROTOBUF_NDEBUG_INLINE SetTakeoffAltitudeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action::SetTakeoffAltitudeResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse( - ::google::protobuf::Arena* arena, - const SetTakeoffAltitudeResponse& from) - : ::google::protobuf::Message(arena) { - SetTakeoffAltitudeResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetTakeoffAltitudeResponse) + ::google::protobuf::Arena* arena, const SetTakeoffAltitudeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SetTakeoffAltitudeResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetTakeoffAltitudeResponse) } inline PROTOBUF_NDEBUG_INLINE SetTakeoffAltitudeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetTakeoffAltitudeResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -SetTakeoffAltitudeResponse::~SetTakeoffAltitudeResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetTakeoffAltitudeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetTakeoffAltitudeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetTakeoffAltitudeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetTakeoffAltitudeResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetTakeoffAltitudeResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetTakeoffAltitudeResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +SetTakeoffAltitudeResponse::~SetTakeoffAltitudeResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetTakeoffAltitudeResponse) + SharedDtor(*this); +} +inline void SetTakeoffAltitudeResponse::SharedDtor(MessageLite& self) +{ + SetTakeoffAltitudeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* +SetTakeoffAltitudeResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetTakeoffAltitudeResponse(arena); +} +constexpr auto SetTakeoffAltitudeResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetTakeoffAltitudeResponse), alignof(SetTakeoffAltitudeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetTakeoffAltitudeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetTakeoffAltitudeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetTakeoffAltitudeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetTakeoffAltitudeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetTakeoffAltitudeResponse::ByteSizeLong, + &SetTakeoffAltitudeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeResponse, _impl_._cached_size_), + false, + }, + &SetTakeoffAltitudeResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetTakeoffAltitudeResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + SetTakeoffAltitudeResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::SetTakeoffAltitudeResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void SetTakeoffAltitudeResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetTakeoffAltitudeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - return target; -} - -::size_t SetTakeoffAltitudeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetTakeoffAltitudeResponse::_class_data_ = { - SetTakeoffAltitudeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetTakeoffAltitudeResponse::GetClassData() const { - return &_class_data_; -} - -void SetTakeoffAltitudeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SetTakeoffAltitudeResponse::CopyFrom(const SetTakeoffAltitudeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SetTakeoffAltitudeResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* SetTakeoffAltitudeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetTakeoffAltitudeResponse::InternalSwap(SetTakeoffAltitudeResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetTakeoffAltitudeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetTakeoffAltitudeResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetTakeoffAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetTakeoffAltitudeResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetTakeoffAltitudeResponse::ByteSizeLong(const MessageLite& base) +{ + const SetTakeoffAltitudeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetTakeoffAltitudeResponse::ByteSizeLong() const +{ + const SetTakeoffAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata SetTakeoffAltitudeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[35]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void SetTakeoffAltitudeResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void SetTakeoffAltitudeResponse::CopyFrom(const SetTakeoffAltitudeResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void SetTakeoffAltitudeResponse::InternalSwap(SetTakeoffAltitudeResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata SetTakeoffAltitudeResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetReturnToLaunchAltitudeRequest::_Internal { - public: +public: }; GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) } GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest( - ::google::protobuf::Arena* arena, - const GetReturnToLaunchAltitudeRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GetReturnToLaunchAltitudeRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) -} - - - - - - - - - -::google::protobuf::Metadata GetReturnToLaunchAltitudeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[36]); + ::google::protobuf::Arena* arena, const GetReturnToLaunchAltitudeRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + GetReturnToLaunchAltitudeRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) +} + +inline void* GetReturnToLaunchAltitudeRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) GetReturnToLaunchAltitudeRequest(arena); +} +constexpr auto GetReturnToLaunchAltitudeRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GetReturnToLaunchAltitudeRequest), alignof(GetReturnToLaunchAltitudeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetReturnToLaunchAltitudeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GetReturnToLaunchAltitudeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetReturnToLaunchAltitudeRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl< + GetReturnToLaunchAltitudeRequest>(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetReturnToLaunchAltitudeRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl< + GetReturnToLaunchAltitudeRequest>(), + &GetReturnToLaunchAltitudeRequest::ByteSizeLong, + &GetReturnToLaunchAltitudeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeRequest, _impl_._cached_size_), + false, + }, + &GetReturnToLaunchAltitudeRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* +GetReturnToLaunchAltitudeRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + GetReturnToLaunchAltitudeRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata GetReturnToLaunchAltitudeRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetReturnToLaunchAltitudeResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const GetReturnToLaunchAltitudeResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& GetReturnToLaunchAltitudeResponse::_Internal::action_result(const GetReturnToLaunchAltitudeResponse* msg) { - return *msg->_impl_.action_result_; -} -GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) +GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse( + ::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) } inline PROTOBUF_NDEBUG_INLINE GetReturnToLaunchAltitudeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse( - ::google::protobuf::Arena* arena, - const GetReturnToLaunchAltitudeResponse& from) - : ::google::protobuf::Message(arena) { - GetReturnToLaunchAltitudeResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - _impl_.relative_altitude_m_ = from._impl_.relative_altitude_m_; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) + ::google::protobuf::Arena* arena, const GetReturnToLaunchAltitudeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + GetReturnToLaunchAltitudeResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + _impl_.relative_altitude_m_ = from._impl_.relative_altitude_m_; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) } inline PROTOBUF_NDEBUG_INLINE GetReturnToLaunchAltitudeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void GetReturnToLaunchAltitudeResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, action_result_), - 0, - offsetof(Impl_, relative_altitude_m_) - - offsetof(Impl_, action_result_) + - sizeof(Impl_::relative_altitude_m_)); -} -GetReturnToLaunchAltitudeResponse::~GetReturnToLaunchAltitudeResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetReturnToLaunchAltitudeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void GetReturnToLaunchAltitudeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_.relative_altitude_m_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetReturnToLaunchAltitudeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetReturnToLaunchAltitudeResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetReturnToLaunchAltitudeResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float relative_altitude_m = 2; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_)}}, - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void GetReturnToLaunchAltitudeResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, action_result_), + 0, + offsetof(Impl_, relative_altitude_m_) - offsetof(Impl_, action_result_) + + sizeof(Impl_::relative_altitude_m_)); +} +GetReturnToLaunchAltitudeResponse::~GetReturnToLaunchAltitudeResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) + SharedDtor(*this); +} +inline void GetReturnToLaunchAltitudeResponse::SharedDtor(MessageLite& self) +{ + GetReturnToLaunchAltitudeResponse& this_ = + static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* GetReturnToLaunchAltitudeResponse::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) GetReturnToLaunchAltitudeResponse(arena); +} +constexpr auto GetReturnToLaunchAltitudeResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GetReturnToLaunchAltitudeResponse), alignof(GetReturnToLaunchAltitudeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetReturnToLaunchAltitudeResponse::_class_data_ = + { + ::google::protobuf::internal::ClassData{ + &_GetReturnToLaunchAltitudeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetReturnToLaunchAltitudeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetReturnToLaunchAltitudeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &GetReturnToLaunchAltitudeResponse::ByteSizeLong, + &GetReturnToLaunchAltitudeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_._cached_size_), + false, + }, + &GetReturnToLaunchAltitudeResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker + }; +const ::google::protobuf::internal::ClassData* +GetReturnToLaunchAltitudeResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> + GetReturnToLaunchAltitudeResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // float relative_altitude_m = 2; + {::_pbi::TcParser::FastF32S1, + {21, + 63, + 0, + PROTOBUF_FIELD_OFFSET( + GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_)}}, + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // float relative_altitude_m = 2; + {PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_), + -1, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void GetReturnToLaunchAltitudeResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_.relative_altitude_m_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* GetReturnToLaunchAltitudeResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const GetReturnToLaunchAltitudeResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* GetReturnToLaunchAltitudeResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const GetReturnToLaunchAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // float relative_altitude_m = 2; - {PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } -::uint8_t* GetReturnToLaunchAltitudeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - // float relative_altitude_m = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_relative_altitude_m(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - return target; -} - -::size_t GetReturnToLaunchAltitudeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - // float relative_altitude_m = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GetReturnToLaunchAltitudeResponse::_class_data_ = { - GetReturnToLaunchAltitudeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetReturnToLaunchAltitudeResponse::GetClassData() const { - return &_class_data_; -} - -void GetReturnToLaunchAltitudeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = from._internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - _this->_internal_set_relative_altitude_m(from._internal_relative_altitude_m()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetReturnToLaunchAltitudeResponse::CopyFrom(const GetReturnToLaunchAltitudeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetReturnToLaunchAltitudeResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* GetReturnToLaunchAltitudeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetReturnToLaunchAltitudeResponse::InternalSwap(GetReturnToLaunchAltitudeResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_) - + sizeof(GetReturnToLaunchAltitudeResponse::_impl_.relative_altitude_m_) - - PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.action_result_)>( - reinterpret_cast(&_impl_.action_result_), - reinterpret_cast(&other->_impl_.action_result_)); -} - -::google::protobuf::Metadata GetReturnToLaunchAltitudeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[37]); + // float relative_altitude_m = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_relative_altitude_m()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_relative_altitude_m(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetReturnToLaunchAltitudeResponse::ByteSizeLong(const MessageLite& base) +{ + const GetReturnToLaunchAltitudeResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GetReturnToLaunchAltitudeResponse::ByteSizeLong() const +{ + const GetReturnToLaunchAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + { + // float relative_altitude_m = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_relative_altitude_m()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void GetReturnToLaunchAltitudeResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + if (::absl::bit_cast<::uint32_t>(from._internal_relative_altitude_m()) != 0) { + _this->_impl_.relative_altitude_m_ = from._impl_.relative_altitude_m_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void GetReturnToLaunchAltitudeResponse::CopyFrom(const GetReturnToLaunchAltitudeResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void GetReturnToLaunchAltitudeResponse::InternalSwap( + GetReturnToLaunchAltitudeResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_) + + sizeof(GetReturnToLaunchAltitudeResponse::_impl_.relative_altitude_m_) - + PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.action_result_)>( + reinterpret_cast(&_impl_.action_result_), + reinterpret_cast(&other->_impl_.action_result_)); +} + +::google::protobuf::Metadata GetReturnToLaunchAltitudeResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetReturnToLaunchAltitudeRequest::_Internal { - public: +public: }; SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) } SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest( - ::google::protobuf::Arena* arena, const SetReturnToLaunchAltitudeRequest& from) - : SetReturnToLaunchAltitudeRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const SetReturnToLaunchAltitudeRequest& from) : + SetReturnToLaunchAltitudeRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE SetReturnToLaunchAltitudeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetReturnToLaunchAltitudeRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.relative_altitude_m_ = {}; -} -SetReturnToLaunchAltitudeRequest::~SetReturnToLaunchAltitudeRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetReturnToLaunchAltitudeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetReturnToLaunchAltitudeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.relative_altitude_m_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetReturnToLaunchAltitudeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetReturnToLaunchAltitudeRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SetReturnToLaunchAltitudeRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float relative_altitude_m = 1; - {::_pbi::TcParser::FastF32S1, - {13, 63, 0, PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeRequest, _impl_.relative_altitude_m_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetReturnToLaunchAltitudeRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.relative_altitude_m_ = {}; +} +SetReturnToLaunchAltitudeRequest::~SetReturnToLaunchAltitudeRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) + SharedDtor(*this); +} +inline void SetReturnToLaunchAltitudeRequest::SharedDtor(MessageLite& self) +{ + SetReturnToLaunchAltitudeRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* SetReturnToLaunchAltitudeRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetReturnToLaunchAltitudeRequest(arena); +} +constexpr auto SetReturnToLaunchAltitudeRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetReturnToLaunchAltitudeRequest), alignof(SetReturnToLaunchAltitudeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetReturnToLaunchAltitudeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetReturnToLaunchAltitudeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetReturnToLaunchAltitudeRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetReturnToLaunchAltitudeRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetReturnToLaunchAltitudeRequest::ByteSizeLong, + &SetReturnToLaunchAltitudeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeRequest, _impl_._cached_size_), + false, + }, + &SetReturnToLaunchAltitudeRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* +SetReturnToLaunchAltitudeRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + SetReturnToLaunchAltitudeRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // float relative_altitude_m = 1; + {::_pbi::TcParser::FastF32S1, + {13, + 63, + 0, + PROTOBUF_FIELD_OFFSET( + SetReturnToLaunchAltitudeRequest, _impl_.relative_altitude_m_)}}, + }}, + {{65535, 65535}}, + {{ + // float relative_altitude_m = 1; + {PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeRequest, _impl_.relative_altitude_m_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void SetReturnToLaunchAltitudeRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.relative_altitude_m_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* SetReturnToLaunchAltitudeRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetReturnToLaunchAltitudeRequest& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetReturnToLaunchAltitudeRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetReturnToLaunchAltitudeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // float relative_altitude_m = 1; - {PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeRequest, _impl_.relative_altitude_m_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; + if (::absl::bit_cast<::uint32_t>(this_._internal_relative_altitude_m()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_relative_altitude_m(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetReturnToLaunchAltitudeRequest::ByteSizeLong(const MessageLite& base) +{ + const SetReturnToLaunchAltitudeRequest& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetReturnToLaunchAltitudeRequest::ByteSizeLong() const +{ + const SetReturnToLaunchAltitudeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::uint8_t* SetReturnToLaunchAltitudeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float relative_altitude_m = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_relative_altitude_m(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - return target; -} - -::size_t SetReturnToLaunchAltitudeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // float relative_altitude_m = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetReturnToLaunchAltitudeRequest::_class_data_ = { - SetReturnToLaunchAltitudeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetReturnToLaunchAltitudeRequest::GetClassData() const { - return &_class_data_; -} - -void SetReturnToLaunchAltitudeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = from._internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - _this->_internal_set_relative_altitude_m(from._internal_relative_altitude_m()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SetReturnToLaunchAltitudeRequest::CopyFrom(const SetReturnToLaunchAltitudeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SetReturnToLaunchAltitudeRequest::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* SetReturnToLaunchAltitudeRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetReturnToLaunchAltitudeRequest::InternalSwap(SetReturnToLaunchAltitudeRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.relative_altitude_m_, other->_impl_.relative_altitude_m_); -} - -::google::protobuf::Metadata SetReturnToLaunchAltitudeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[38]); + { + // float relative_altitude_m = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_relative_altitude_m()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void SetReturnToLaunchAltitudeRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (::absl::bit_cast<::uint32_t>(from._internal_relative_altitude_m()) != 0) { + _this->_impl_.relative_altitude_m_ = from._impl_.relative_altitude_m_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void SetReturnToLaunchAltitudeRequest::CopyFrom(const SetReturnToLaunchAltitudeRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void SetReturnToLaunchAltitudeRequest::InternalSwap( + SetReturnToLaunchAltitudeRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.relative_altitude_m_, other->_impl_.relative_altitude_m_); +} + +::google::protobuf::Metadata SetReturnToLaunchAltitudeRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetReturnToLaunchAltitudeResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const SetReturnToLaunchAltitudeResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& SetReturnToLaunchAltitudeResponse::_Internal::action_result(const SetReturnToLaunchAltitudeResponse* msg) { - return *msg->_impl_.action_result_; -} -SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) +SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse( + ::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) } inline PROTOBUF_NDEBUG_INLINE SetReturnToLaunchAltitudeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse( - ::google::protobuf::Arena* arena, - const SetReturnToLaunchAltitudeResponse& from) - : ::google::protobuf::Message(arena) { - SetReturnToLaunchAltitudeResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) + ::google::protobuf::Arena* arena, const SetReturnToLaunchAltitudeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SetReturnToLaunchAltitudeResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) } inline PROTOBUF_NDEBUG_INLINE SetReturnToLaunchAltitudeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetReturnToLaunchAltitudeResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -SetReturnToLaunchAltitudeResponse::~SetReturnToLaunchAltitudeResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetReturnToLaunchAltitudeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetReturnToLaunchAltitudeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetReturnToLaunchAltitudeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetReturnToLaunchAltitudeResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetReturnToLaunchAltitudeResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetReturnToLaunchAltitudeResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +SetReturnToLaunchAltitudeResponse::~SetReturnToLaunchAltitudeResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) + SharedDtor(*this); +} +inline void SetReturnToLaunchAltitudeResponse::SharedDtor(MessageLite& self) +{ + SetReturnToLaunchAltitudeResponse& this_ = + static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* SetReturnToLaunchAltitudeResponse::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetReturnToLaunchAltitudeResponse(arena); +} +constexpr auto SetReturnToLaunchAltitudeResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetReturnToLaunchAltitudeResponse), alignof(SetReturnToLaunchAltitudeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetReturnToLaunchAltitudeResponse::_class_data_ = + { + ::google::protobuf::internal::ClassData{ + &_SetReturnToLaunchAltitudeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetReturnToLaunchAltitudeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetReturnToLaunchAltitudeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetReturnToLaunchAltitudeResponse::ByteSizeLong, + &SetReturnToLaunchAltitudeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_._cached_size_), + false, + }, + &SetReturnToLaunchAltitudeResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker + }; +const ::google::protobuf::internal::ClassData* +SetReturnToLaunchAltitudeResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + SetReturnToLaunchAltitudeResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void SetReturnToLaunchAltitudeResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetReturnToLaunchAltitudeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - return target; -} - -::size_t SetReturnToLaunchAltitudeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetReturnToLaunchAltitudeResponse::_class_data_ = { - SetReturnToLaunchAltitudeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetReturnToLaunchAltitudeResponse::GetClassData() const { - return &_class_data_; -} - -void SetReturnToLaunchAltitudeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SetReturnToLaunchAltitudeResponse::CopyFrom(const SetReturnToLaunchAltitudeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SetReturnToLaunchAltitudeResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* SetReturnToLaunchAltitudeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetReturnToLaunchAltitudeResponse::InternalSwap(SetReturnToLaunchAltitudeResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetReturnToLaunchAltitudeResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetReturnToLaunchAltitudeResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetReturnToLaunchAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetReturnToLaunchAltitudeResponse::ByteSizeLong(const MessageLite& base) +{ + const SetReturnToLaunchAltitudeResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetReturnToLaunchAltitudeResponse::ByteSizeLong() const +{ + const SetReturnToLaunchAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata SetReturnToLaunchAltitudeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[39]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void SetReturnToLaunchAltitudeResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void SetReturnToLaunchAltitudeResponse::CopyFrom(const SetReturnToLaunchAltitudeResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void SetReturnToLaunchAltitudeResponse::InternalSwap( + SetReturnToLaunchAltitudeResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata SetReturnToLaunchAltitudeResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetCurrentSpeedRequest::_Internal { - public: +public: }; SetCurrentSpeedRequest::SetCurrentSpeedRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetCurrentSpeedRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetCurrentSpeedRequest) } SetCurrentSpeedRequest::SetCurrentSpeedRequest( - ::google::protobuf::Arena* arena, const SetCurrentSpeedRequest& from) - : SetCurrentSpeedRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const SetCurrentSpeedRequest& from) : + SetCurrentSpeedRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE SetCurrentSpeedRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetCurrentSpeedRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.speed_m_s_ = {}; -} -SetCurrentSpeedRequest::~SetCurrentSpeedRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetCurrentSpeedRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetCurrentSpeedRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetCurrentSpeedRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetCurrentSpeedRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.speed_m_s_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetCurrentSpeedRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetCurrentSpeedRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SetCurrentSpeedRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float speed_m_s = 1; - {::_pbi::TcParser::FastF32S1, - {13, 63, 0, PROTOBUF_FIELD_OFFSET(SetCurrentSpeedRequest, _impl_.speed_m_s_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetCurrentSpeedRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.speed_m_s_ = {}; +} +SetCurrentSpeedRequest::~SetCurrentSpeedRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetCurrentSpeedRequest) + SharedDtor(*this); +} +inline void SetCurrentSpeedRequest::SharedDtor(MessageLite& self) +{ + SetCurrentSpeedRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +SetCurrentSpeedRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetCurrentSpeedRequest(arena); +} +constexpr auto SetCurrentSpeedRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetCurrentSpeedRequest), alignof(SetCurrentSpeedRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetCurrentSpeedRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetCurrentSpeedRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetCurrentSpeedRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetCurrentSpeedRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetCurrentSpeedRequest::ByteSizeLong, + &SetCurrentSpeedRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetCurrentSpeedRequest, _impl_._cached_size_), + false, + }, + &SetCurrentSpeedRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetCurrentSpeedRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + SetCurrentSpeedRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::SetCurrentSpeedRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // float speed_m_s = 1; + {::_pbi::TcParser::FastF32S1, + {13, 63, 0, PROTOBUF_FIELD_OFFSET(SetCurrentSpeedRequest, _impl_.speed_m_s_)}}, + }}, + {{65535, 65535}}, + {{ + // float speed_m_s = 1; + {PROTOBUF_FIELD_OFFSET(SetCurrentSpeedRequest, _impl_.speed_m_s_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void SetCurrentSpeedRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetCurrentSpeedRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.speed_m_s_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* SetCurrentSpeedRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetCurrentSpeedRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetCurrentSpeedRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetCurrentSpeedRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetCurrentSpeedRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // float speed_m_s = 1; - {PROTOBUF_FIELD_OFFSET(SetCurrentSpeedRequest, _impl_.speed_m_s_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; + if (::absl::bit_cast<::uint32_t>(this_._internal_speed_m_s()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this_._internal_speed_m_s(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetCurrentSpeedRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetCurrentSpeedRequest::ByteSizeLong(const MessageLite& base) +{ + const SetCurrentSpeedRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetCurrentSpeedRequest::ByteSizeLong() const +{ + const SetCurrentSpeedRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetCurrentSpeedRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::uint8_t* SetCurrentSpeedRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetCurrentSpeedRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float speed_m_s = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_speed_m_s = this->_internal_speed_m_s(); - ::uint32_t raw_speed_m_s; - memcpy(&raw_speed_m_s, &tmp_speed_m_s, sizeof(tmp_speed_m_s)); - if (raw_speed_m_s != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_speed_m_s(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetCurrentSpeedRequest) - return target; -} - -::size_t SetCurrentSpeedRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetCurrentSpeedRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // float speed_m_s = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_speed_m_s = this->_internal_speed_m_s(); - ::uint32_t raw_speed_m_s; - memcpy(&raw_speed_m_s, &tmp_speed_m_s, sizeof(tmp_speed_m_s)); - if (raw_speed_m_s != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetCurrentSpeedRequest::_class_data_ = { - SetCurrentSpeedRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetCurrentSpeedRequest::GetClassData() const { - return &_class_data_; -} - -void SetCurrentSpeedRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetCurrentSpeedRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_speed_m_s = from._internal_speed_m_s(); - ::uint32_t raw_speed_m_s; - memcpy(&raw_speed_m_s, &tmp_speed_m_s, sizeof(tmp_speed_m_s)); - if (raw_speed_m_s != 0) { - _this->_internal_set_speed_m_s(from._internal_speed_m_s()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SetCurrentSpeedRequest::CopyFrom(const SetCurrentSpeedRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetCurrentSpeedRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SetCurrentSpeedRequest::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* SetCurrentSpeedRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetCurrentSpeedRequest::InternalSwap(SetCurrentSpeedRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.speed_m_s_, other->_impl_.speed_m_s_); -} - -::google::protobuf::Metadata SetCurrentSpeedRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[40]); + { + // float speed_m_s = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_speed_m_s()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void SetCurrentSpeedRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetCurrentSpeedRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (::absl::bit_cast<::uint32_t>(from._internal_speed_m_s()) != 0) { + _this->_impl_.speed_m_s_ = from._impl_.speed_m_s_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void SetCurrentSpeedRequest::CopyFrom(const SetCurrentSpeedRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetCurrentSpeedRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void SetCurrentSpeedRequest::InternalSwap(SetCurrentSpeedRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.speed_m_s_, other->_impl_.speed_m_s_); +} + +::google::protobuf::Metadata SetCurrentSpeedRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetCurrentSpeedResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetCurrentSpeedResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const SetCurrentSpeedResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetCurrentSpeedResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& SetCurrentSpeedResponse::_Internal::action_result(const SetCurrentSpeedResponse* msg) { - return *msg->_impl_.action_result_; -} SetCurrentSpeedResponse::SetCurrentSpeedResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetCurrentSpeedResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetCurrentSpeedResponse) } inline PROTOBUF_NDEBUG_INLINE SetCurrentSpeedResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action::SetCurrentSpeedResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} SetCurrentSpeedResponse::SetCurrentSpeedResponse( - ::google::protobuf::Arena* arena, - const SetCurrentSpeedResponse& from) - : ::google::protobuf::Message(arena) { - SetCurrentSpeedResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetCurrentSpeedResponse) + ::google::protobuf::Arena* arena, const SetCurrentSpeedResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SetCurrentSpeedResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetCurrentSpeedResponse) } inline PROTOBUF_NDEBUG_INLINE SetCurrentSpeedResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetCurrentSpeedResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -SetCurrentSpeedResponse::~SetCurrentSpeedResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetCurrentSpeedResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetCurrentSpeedResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetCurrentSpeedResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetCurrentSpeedResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetCurrentSpeedResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetCurrentSpeedResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetCurrentSpeedResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetCurrentSpeedResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetCurrentSpeedResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(SetCurrentSpeedResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetCurrentSpeedResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +SetCurrentSpeedResponse::~SetCurrentSpeedResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetCurrentSpeedResponse) + SharedDtor(*this); +} +inline void SetCurrentSpeedResponse::SharedDtor(MessageLite& self) +{ + SetCurrentSpeedResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* +SetCurrentSpeedResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetCurrentSpeedResponse(arena); +} +constexpr auto SetCurrentSpeedResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetCurrentSpeedResponse), alignof(SetCurrentSpeedResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetCurrentSpeedResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetCurrentSpeedResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetCurrentSpeedResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetCurrentSpeedResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetCurrentSpeedResponse::ByteSizeLong, + &SetCurrentSpeedResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetCurrentSpeedResponse, _impl_._cached_size_), + false, + }, + &SetCurrentSpeedResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetCurrentSpeedResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + SetCurrentSpeedResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SetCurrentSpeedResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action::SetCurrentSpeedResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetCurrentSpeedResponse, _impl_.action_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(SetCurrentSpeedResponse, _impl_.action_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void SetCurrentSpeedResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetCurrentSpeedResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetCurrentSpeedResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetCurrentSpeedResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetCurrentSpeedResponse) - return target; -} - -::size_t SetCurrentSpeedResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetCurrentSpeedResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetCurrentSpeedResponse::_class_data_ = { - SetCurrentSpeedResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetCurrentSpeedResponse::GetClassData() const { - return &_class_data_; -} - -void SetCurrentSpeedResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetCurrentSpeedResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SetCurrentSpeedResponse::CopyFrom(const SetCurrentSpeedResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetCurrentSpeedResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SetCurrentSpeedResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* SetCurrentSpeedResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetCurrentSpeedResponse::InternalSwap(SetCurrentSpeedResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetCurrentSpeedResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetCurrentSpeedResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetCurrentSpeedResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetCurrentSpeedResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_result_, + this_._impl_.action_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetCurrentSpeedResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetCurrentSpeedResponse::ByteSizeLong(const MessageLite& base) +{ + const SetCurrentSpeedResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetCurrentSpeedResponse::ByteSizeLong() const +{ + const SetCurrentSpeedResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetCurrentSpeedResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata SetCurrentSpeedResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[41]); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void SetCurrentSpeedResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetCurrentSpeedResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void SetCurrentSpeedResponse::CopyFrom(const SetCurrentSpeedResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetCurrentSpeedResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void SetCurrentSpeedResponse::InternalSwap(SetCurrentSpeedResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); +} + +::google::protobuf::Metadata SetCurrentSpeedResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ActionResult::_Internal { - public: +public: }; ActionResult::ActionResult(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ActionResult) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ActionResult) } inline PROTOBUF_NDEBUG_INLINE ActionResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : result_str_(arena, from.result_str_), - _cached_size_{0} {} - -ActionResult::ActionResult( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const ActionResult& from) - : ::google::protobuf::Message(arena) { - ActionResult* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.result_ = from._impl_.result_; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ActionResult) + const Impl_& from, + const ::mavsdk::rpc::action::ActionResult& from_msg) : + result_str_(arena, from.result_str_), + _cached_size_{0} +{} + +ActionResult::ActionResult(::google::protobuf::Arena* arena, const ActionResult& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ActionResult* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.result_ = from._impl_.result_; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ActionResult) } inline PROTOBUF_NDEBUG_INLINE ActionResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : result_str_(arena), - _cached_size_{0} {} - -inline void ActionResult::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.result_ = {}; -} -ActionResult::~ActionResult() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ActionResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ActionResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.result_str_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ActionResult::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ActionResult) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_str_.ClearToEmpty(); - _impl_.result_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ActionResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 49, 2> ActionResult::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ActionResult_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string result_str = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ActionResult, _impl_.result_str_)}}, - // .mavsdk.rpc.action.ActionResult.Result result = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ActionResult, _impl_.result_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ActionResult, _impl_.result_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + result_str_(arena), + _cached_size_{0} +{} + +inline void ActionResult::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.result_ = {}; +} +ActionResult::~ActionResult() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ActionResult) + SharedDtor(*this); +} +inline void ActionResult::SharedDtor(MessageLite& self) +{ + ActionResult& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.result_str_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* ActionResult::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ActionResult(arena); +} +constexpr auto ActionResult::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(ActionResult), alignof(ActionResult)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ActionResult::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ActionResult_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ActionResult::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ActionResult::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ActionResult::ByteSizeLong, + &ActionResult::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ActionResult, _impl_._cached_size_), + false, + }, + &ActionResult::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ActionResult::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 49, 2> + ActionResult::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // string result_str = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(ActionResult, _impl_.result_str_)}}, + // .mavsdk.rpc.action.ActionResult.Result result = 1; + {::_pbi::TcParser:: + SingularVarintNoZag1<::uint32_t, offsetof(ActionResult, _impl_.result_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(ActionResult, _impl_.result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action.ActionResult.Result result = 1; + {PROTOBUF_FIELD_OFFSET(ActionResult, _impl_.result_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // string result_str = 2; + {PROTOBUF_FIELD_OFFSET(ActionResult, _impl_.result_str_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{"\36\0\12\0\0\0\0\0" + "mavsdk.rpc.action.ActionResult" + "result_str"}}, + }; + +PROTOBUF_NOINLINE void ActionResult::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ActionResult) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.result_str_.ClearToEmpty(); + _impl_.result_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* ActionResult::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ActionResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ActionResult::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ActionResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ActionResult) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // .mavsdk.rpc.action.ActionResult.Result result = 1; - {PROTOBUF_FIELD_OFFSET(ActionResult, _impl_.result_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // string result_str = 2; - {PROTOBUF_FIELD_OFFSET(ActionResult, _impl_.result_str_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\36\0\12\0\0\0\0\0" - "mavsdk.rpc.action.ActionResult" - "result_str" - }}, -}; + if (this_._internal_result() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray(1, this_._internal_result(), target); + } -::uint8_t* ActionResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ActionResult) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.action.ActionResult.Result result = 1; - if (this->_internal_result() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); - } - - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - const std::string& _s = this->_internal_result_str(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.action.ActionResult.result_str"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ActionResult) - return target; -} - -::size_t ActionResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ActionResult) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_result_str()); - } - - // .mavsdk.rpc.action.ActionResult.Result result = 1; - if (this->_internal_result() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ActionResult::_class_data_ = { - ActionResult::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ActionResult::GetClassData() const { - return &_class_data_; -} - -void ActionResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ActionResult) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_result_str().empty()) { - _this->_internal_set_result_str(from._internal_result_str()); - } - if (from._internal_result() != 0) { - _this->_internal_set_result(from._internal_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ActionResult::CopyFrom(const ActionResult& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.ActionResult) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ActionResult::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* ActionResult::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ActionResult::InternalSwap(ActionResult* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, &other->_impl_.result_str_, arena); - swap(_impl_.result_, other->_impl_.result_); -} - -::google::protobuf::Metadata ActionResult::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[42]); + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + const std::string& _s = this_._internal_result_str(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), + static_cast(_s.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "mavsdk.rpc.action.ActionResult.result_str"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ActionResult) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ActionResult::ByteSizeLong(const MessageLite& base) +{ + const ActionResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ActionResult::ByteSizeLong() const +{ + const ActionResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ActionResult) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_result_str()); + } + // .mavsdk.rpc.action.ActionResult.Result result = 1; + if (this_._internal_result() != 0) { + total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_result()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void ActionResult::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ActionResult) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (!from._internal_result_str().empty()) { + _this->_internal_set_result_str(from._internal_result_str()); + } + if (from._internal_result() != 0) { + _this->_impl_.result_ = from._impl_.result_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void ActionResult::CopyFrom(const ActionResult& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.ActionResult) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void ActionResult::InternalSwap(ActionResult* PROTOBUF_RESTRICT other) +{ + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, &other->_impl_.result_str_, arena); + swap(_impl_.result_, other->_impl_.result_); +} + +::google::protobuf::Metadata ActionResult::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) -} // namespace action -} // namespace rpc -} // namespace mavsdk +} // namespace action +} // namespace rpc +} // namespace mavsdk namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +namespace protobuf {} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_action_2faction_2eproto), ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/src/mavsdk_server/src/generated/action/action.pb.h b/src/mavsdk_server/src/generated/action/action.pb.h index 019a6a3cba..eed0aed140 100644 --- a/src/mavsdk_server/src/generated/action/action.pb.h +++ b/src/mavsdk_server/src/generated/action/action.pb.h @@ -1,28 +1,22 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: action/action.proto -// Protobuf C++ Version: 4.25.1 +// Protobuf C++ Version: 5.29.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_action_2faction_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_action_2faction_2eproto_2epb_2eh +#ifndef action_2faction_2eproto_2epb_2eh +#define action_2faction_2eproto_2epb_2eh #include #include #include #include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" @@ -32,8 +26,9 @@ #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export #include "google/protobuf/generated_enum_reflection.h" #include "google/protobuf/unknown_field_set.h" #include "mavsdk_options.pb.h" @@ -47,17 +42,16 @@ namespace google { namespace protobuf { namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google +template::absl::string_view GetAnyMessageName(); +} // namespace internal +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_action_2faction_2eproto { - static const ::uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_action_2faction_2eproto; +extern const ::google::protobuf::internal::DescriptorTable descriptor_table_action_2faction_2eproto; namespace mavsdk { namespace rpc { namespace action { @@ -90,10 +84,12 @@ struct DoOrbitResponseDefaultTypeInternal; extern DoOrbitResponseDefaultTypeInternal _DoOrbitResponse_default_instance_; class GetReturnToLaunchAltitudeRequest; struct GetReturnToLaunchAltitudeRequestDefaultTypeInternal; -extern GetReturnToLaunchAltitudeRequestDefaultTypeInternal _GetReturnToLaunchAltitudeRequest_default_instance_; +extern GetReturnToLaunchAltitudeRequestDefaultTypeInternal + _GetReturnToLaunchAltitudeRequest_default_instance_; class GetReturnToLaunchAltitudeResponse; struct GetReturnToLaunchAltitudeResponseDefaultTypeInternal; -extern GetReturnToLaunchAltitudeResponseDefaultTypeInternal _GetReturnToLaunchAltitudeResponse_default_instance_; +extern GetReturnToLaunchAltitudeResponseDefaultTypeInternal + _GetReturnToLaunchAltitudeResponse_default_instance_; class GetTakeoffAltitudeRequest; struct GetTakeoffAltitudeRequestDefaultTypeInternal; extern GetTakeoffAltitudeRequestDefaultTypeInternal _GetTakeoffAltitudeRequest_default_instance_; @@ -150,10 +146,12 @@ struct SetCurrentSpeedResponseDefaultTypeInternal; extern SetCurrentSpeedResponseDefaultTypeInternal _SetCurrentSpeedResponse_default_instance_; class SetReturnToLaunchAltitudeRequest; struct SetReturnToLaunchAltitudeRequestDefaultTypeInternal; -extern SetReturnToLaunchAltitudeRequestDefaultTypeInternal _SetReturnToLaunchAltitudeRequest_default_instance_; +extern SetReturnToLaunchAltitudeRequestDefaultTypeInternal + _SetReturnToLaunchAltitudeRequest_default_instance_; class SetReturnToLaunchAltitudeResponse; struct SetReturnToLaunchAltitudeResponseDefaultTypeInternal; -extern SetReturnToLaunchAltitudeResponseDefaultTypeInternal _SetReturnToLaunchAltitudeResponse_default_instance_; +extern SetReturnToLaunchAltitudeResponseDefaultTypeInternal + _SetReturnToLaunchAltitudeResponse_default_instance_; class SetTakeoffAltitudeRequest; struct SetTakeoffAltitudeRequestDefaultTypeInternal; extern SetTakeoffAltitudeRequestDefaultTypeInternal _SetTakeoffAltitudeRequest_default_instance_; @@ -180,47 +178,50 @@ struct TerminateResponseDefaultTypeInternal; extern TerminateResponseDefaultTypeInternal _TerminateResponse_default_instance_; class TransitionToFixedwingRequest; struct TransitionToFixedwingRequestDefaultTypeInternal; -extern TransitionToFixedwingRequestDefaultTypeInternal _TransitionToFixedwingRequest_default_instance_; +extern TransitionToFixedwingRequestDefaultTypeInternal + _TransitionToFixedwingRequest_default_instance_; class TransitionToFixedwingResponse; struct TransitionToFixedwingResponseDefaultTypeInternal; -extern TransitionToFixedwingResponseDefaultTypeInternal _TransitionToFixedwingResponse_default_instance_; +extern TransitionToFixedwingResponseDefaultTypeInternal + _TransitionToFixedwingResponse_default_instance_; class TransitionToMulticopterRequest; struct TransitionToMulticopterRequestDefaultTypeInternal; -extern TransitionToMulticopterRequestDefaultTypeInternal _TransitionToMulticopterRequest_default_instance_; +extern TransitionToMulticopterRequestDefaultTypeInternal + _TransitionToMulticopterRequest_default_instance_; class TransitionToMulticopterResponse; struct TransitionToMulticopterResponseDefaultTypeInternal; -extern TransitionToMulticopterResponseDefaultTypeInternal _TransitionToMulticopterResponse_default_instance_; -} // namespace action -} // namespace rpc -} // namespace mavsdk +extern TransitionToMulticopterResponseDefaultTypeInternal + _TransitionToMulticopterResponse_default_instance_; +} // namespace action +} // namespace rpc +} // namespace mavsdk namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +namespace protobuf {} // namespace protobuf +} // namespace google namespace mavsdk { namespace rpc { namespace action { enum ActionResult_Result : int { - ActionResult_Result_RESULT_UNKNOWN = 0, - ActionResult_Result_RESULT_SUCCESS = 1, - ActionResult_Result_RESULT_NO_SYSTEM = 2, - ActionResult_Result_RESULT_CONNECTION_ERROR = 3, - ActionResult_Result_RESULT_BUSY = 4, - ActionResult_Result_RESULT_COMMAND_DENIED = 5, - ActionResult_Result_RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN = 6, - ActionResult_Result_RESULT_COMMAND_DENIED_NOT_LANDED = 7, - ActionResult_Result_RESULT_TIMEOUT = 8, - ActionResult_Result_RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN = 9, - ActionResult_Result_RESULT_NO_VTOL_TRANSITION_SUPPORT = 10, - ActionResult_Result_RESULT_PARAMETER_ERROR = 11, - ActionResult_Result_RESULT_UNSUPPORTED = 12, - ActionResult_Result_RESULT_FAILED = 13, - ActionResult_Result_RESULT_INVALID_ARGUMENT = 14, - ActionResult_Result_ActionResult_Result_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - ActionResult_Result_ActionResult_Result_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ActionResult_Result_RESULT_UNKNOWN = 0, + ActionResult_Result_RESULT_SUCCESS = 1, + ActionResult_Result_RESULT_NO_SYSTEM = 2, + ActionResult_Result_RESULT_CONNECTION_ERROR = 3, + ActionResult_Result_RESULT_BUSY = 4, + ActionResult_Result_RESULT_COMMAND_DENIED = 5, + ActionResult_Result_RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN = 6, + ActionResult_Result_RESULT_COMMAND_DENIED_NOT_LANDED = 7, + ActionResult_Result_RESULT_TIMEOUT = 8, + ActionResult_Result_RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN = 9, + ActionResult_Result_RESULT_NO_VTOL_TRANSITION_SUPPORT = 10, + ActionResult_Result_RESULT_PARAMETER_ERROR = 11, + ActionResult_Result_RESULT_UNSUPPORTED = 12, + ActionResult_Result_RESULT_FAILED = 13, + ActionResult_Result_RESULT_INVALID_ARGUMENT = 14, + ActionResult_Result_ActionResult_Result_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + ActionResult_Result_ActionResult_Result_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; bool ActionResult_Result_IsValid(int value); @@ -228,35 +229,32 @@ extern const uint32_t ActionResult_Result_internal_data_[]; constexpr ActionResult_Result ActionResult_Result_Result_MIN = static_cast(0); constexpr ActionResult_Result ActionResult_Result_Result_MAX = static_cast(14); constexpr int ActionResult_Result_Result_ARRAYSIZE = 14 + 1; -const ::google::protobuf::EnumDescriptor* -ActionResult_Result_descriptor(); -template -const std::string& ActionResult_Result_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to Result_Name()."); - return ActionResult_Result_Name(static_cast(value)); -} -template <> -inline const std::string& ActionResult_Result_Name(ActionResult_Result value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool ActionResult_Result_Parse(absl::string_view name, ActionResult_Result* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ActionResult_Result_descriptor(), name, value); +const ::google::protobuf::EnumDescriptor* ActionResult_Result_descriptor(); +template const std::string& ActionResult_Result_Name(T value) +{ + static_assert( + std::is_same::value || std::is_integral::value, + "Incorrect type passed to Result_Name()."); + return ActionResult_Result_Name(static_cast(value)); +} +template<> inline const std::string& ActionResult_Result_Name(ActionResult_Result value) +{ + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool ActionResult_Result_Parse(absl::string_view name, ActionResult_Result* value) +{ + return ::google::protobuf::internal::ParseNamedEnum( + ActionResult_Result_descriptor(), name, value); } enum OrbitYawBehavior : int { - ORBIT_YAW_BEHAVIOR_HOLD_FRONT_TO_CIRCLE_CENTER = 0, - ORBIT_YAW_BEHAVIOR_HOLD_INITIAL_HEADING = 1, - ORBIT_YAW_BEHAVIOR_UNCONTROLLED = 2, - ORBIT_YAW_BEHAVIOR_HOLD_FRONT_TANGENT_TO_CIRCLE = 3, - ORBIT_YAW_BEHAVIOR_RC_CONTROLLED = 4, - OrbitYawBehavior_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - OrbitYawBehavior_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ORBIT_YAW_BEHAVIOR_HOLD_FRONT_TO_CIRCLE_CENTER = 0, + ORBIT_YAW_BEHAVIOR_HOLD_INITIAL_HEADING = 1, + ORBIT_YAW_BEHAVIOR_UNCONTROLLED = 2, + ORBIT_YAW_BEHAVIOR_HOLD_FRONT_TANGENT_TO_CIRCLE = 3, + ORBIT_YAW_BEHAVIOR_RC_CONTROLLED = 4, + OrbitYawBehavior_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(), + OrbitYawBehavior_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max(), }; bool OrbitYawBehavior_IsValid(int value); @@ -264,8122 +262,9389 @@ extern const uint32_t OrbitYawBehavior_internal_data_[]; constexpr OrbitYawBehavior OrbitYawBehavior_MIN = static_cast(0); constexpr OrbitYawBehavior OrbitYawBehavior_MAX = static_cast(4); constexpr int OrbitYawBehavior_ARRAYSIZE = 4 + 1; -const ::google::protobuf::EnumDescriptor* -OrbitYawBehavior_descriptor(); -template -const std::string& OrbitYawBehavior_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to OrbitYawBehavior_Name()."); - return OrbitYawBehavior_Name(static_cast(value)); -} -template <> -inline const std::string& OrbitYawBehavior_Name(OrbitYawBehavior value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool OrbitYawBehavior_Parse(absl::string_view name, OrbitYawBehavior* value) { - return ::google::protobuf::internal::ParseNamedEnum( - OrbitYawBehavior_descriptor(), name, value); +const ::google::protobuf::EnumDescriptor* OrbitYawBehavior_descriptor(); +template const std::string& OrbitYawBehavior_Name(T value) +{ + static_assert( + std::is_same::value || std::is_integral::value, + "Incorrect type passed to OrbitYawBehavior_Name()."); + return OrbitYawBehavior_Name(static_cast(value)); +} +template<> inline const std::string& OrbitYawBehavior_Name(OrbitYawBehavior value) +{ + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool OrbitYawBehavior_Parse(absl::string_view name, OrbitYawBehavior* value) +{ + return ::google::protobuf::internal::ParseNamedEnum( + OrbitYawBehavior_descriptor(), name, value); } // =================================================================== - // ------------------------------------------------------------------- -class TransitionToMulticopterRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToMulticopterRequest) */ { - public: - inline TransitionToMulticopterRequest() : TransitionToMulticopterRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR TransitionToMulticopterRequest(::google::protobuf::internal::ConstantInitialized); - - inline TransitionToMulticopterRequest(const TransitionToMulticopterRequest& from) - : TransitionToMulticopterRequest(nullptr, from) {} - TransitionToMulticopterRequest(TransitionToMulticopterRequest&& from) noexcept - : TransitionToMulticopterRequest() { - *this = ::std::move(from); - } - - inline TransitionToMulticopterRequest& operator=(const TransitionToMulticopterRequest& from) { - CopyFrom(from); - return *this; - } - inline TransitionToMulticopterRequest& operator=(TransitionToMulticopterRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TransitionToMulticopterRequest& default_instance() { - return *internal_default_instance(); - } - static inline const TransitionToMulticopterRequest* internal_default_instance() { - return reinterpret_cast( - &_TransitionToMulticopterRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 30; - - friend void swap(TransitionToMulticopterRequest& a, TransitionToMulticopterRequest& b) { - a.Swap(&b); - } - inline void Swap(TransitionToMulticopterRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TransitionToMulticopterRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TransitionToMulticopterRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const TransitionToMulticopterRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const TransitionToMulticopterRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TransitionToMulticopterRequest"; - } - protected: - explicit TransitionToMulticopterRequest(::google::protobuf::Arena* arena); - TransitionToMulticopterRequest(::google::protobuf::Arena* arena, const TransitionToMulticopterRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToMulticopterRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class TransitionToFixedwingRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToFixedwingRequest) */ { - public: - inline TransitionToFixedwingRequest() : TransitionToFixedwingRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR TransitionToFixedwingRequest(::google::protobuf::internal::ConstantInitialized); - - inline TransitionToFixedwingRequest(const TransitionToFixedwingRequest& from) - : TransitionToFixedwingRequest(nullptr, from) {} - TransitionToFixedwingRequest(TransitionToFixedwingRequest&& from) noexcept - : TransitionToFixedwingRequest() { - *this = ::std::move(from); - } - - inline TransitionToFixedwingRequest& operator=(const TransitionToFixedwingRequest& from) { - CopyFrom(from); - return *this; - } - inline TransitionToFixedwingRequest& operator=(TransitionToFixedwingRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TransitionToFixedwingRequest& default_instance() { - return *internal_default_instance(); - } - static inline const TransitionToFixedwingRequest* internal_default_instance() { - return reinterpret_cast( - &_TransitionToFixedwingRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 28; - - friend void swap(TransitionToFixedwingRequest& a, TransitionToFixedwingRequest& b) { - a.Swap(&b); - } - inline void Swap(TransitionToFixedwingRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TransitionToFixedwingRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TransitionToFixedwingRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const TransitionToFixedwingRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const TransitionToFixedwingRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TransitionToFixedwingRequest"; - } - protected: - explicit TransitionToFixedwingRequest(::google::protobuf::Arena* arena); - TransitionToFixedwingRequest(::google::protobuf::Arena* arena, const TransitionToFixedwingRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToFixedwingRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class TerminateRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TerminateRequest) */ { - public: - inline TerminateRequest() : TerminateRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR TerminateRequest(::google::protobuf::internal::ConstantInitialized); - - inline TerminateRequest(const TerminateRequest& from) - : TerminateRequest(nullptr, from) {} - TerminateRequest(TerminateRequest&& from) noexcept - : TerminateRequest() { - *this = ::std::move(from); - } - - inline TerminateRequest& operator=(const TerminateRequest& from) { - CopyFrom(from); - return *this; - } - inline TerminateRequest& operator=(TerminateRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TerminateRequest& default_instance() { - return *internal_default_instance(); - } - static inline const TerminateRequest* internal_default_instance() { - return reinterpret_cast( - &_TerminateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(TerminateRequest& a, TerminateRequest& b) { - a.Swap(&b); - } - inline void Swap(TerminateRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TerminateRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TerminateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const TerminateRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const TerminateRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TerminateRequest"; - } - protected: - explicit TerminateRequest(::google::protobuf::Arena* arena); - TerminateRequest(::google::protobuf::Arena* arena, const TerminateRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TerminateRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class TakeoffRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TakeoffRequest) */ { - public: - inline TakeoffRequest() : TakeoffRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR TakeoffRequest(::google::protobuf::internal::ConstantInitialized); - - inline TakeoffRequest(const TakeoffRequest& from) - : TakeoffRequest(nullptr, from) {} - TakeoffRequest(TakeoffRequest&& from) noexcept - : TakeoffRequest() { - *this = ::std::move(from); - } - - inline TakeoffRequest& operator=(const TakeoffRequest& from) { - CopyFrom(from); - return *this; - } - inline TakeoffRequest& operator=(TakeoffRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TakeoffRequest& default_instance() { - return *internal_default_instance(); - } - static inline const TakeoffRequest* internal_default_instance() { - return reinterpret_cast( - &_TakeoffRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(TakeoffRequest& a, TakeoffRequest& b) { - a.Swap(&b); - } - inline void Swap(TakeoffRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TakeoffRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TakeoffRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const TakeoffRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const TakeoffRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TakeoffRequest"; - } - protected: - explicit TakeoffRequest(::google::protobuf::Arena* arena); - TakeoffRequest(::google::protobuf::Arena* arena, const TakeoffRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TakeoffRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class ShutdownRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ShutdownRequest) */ { - public: - inline ShutdownRequest() : ShutdownRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ShutdownRequest(::google::protobuf::internal::ConstantInitialized); - - inline ShutdownRequest(const ShutdownRequest& from) - : ShutdownRequest(nullptr, from) {} - ShutdownRequest(ShutdownRequest&& from) noexcept - : ShutdownRequest() { - *this = ::std::move(from); - } - - inline ShutdownRequest& operator=(const ShutdownRequest& from) { - CopyFrom(from); - return *this; - } - inline ShutdownRequest& operator=(ShutdownRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShutdownRequest& default_instance() { - return *internal_default_instance(); - } - static inline const ShutdownRequest* internal_default_instance() { - return reinterpret_cast( - &_ShutdownRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(ShutdownRequest& a, ShutdownRequest& b) { - a.Swap(&b); - } - inline void Swap(ShutdownRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShutdownRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShutdownRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ShutdownRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ShutdownRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ShutdownRequest"; - } - protected: - explicit ShutdownRequest(::google::protobuf::Arena* arena); - ShutdownRequest(::google::protobuf::Arena* arena, const ShutdownRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ShutdownRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class SetTakeoffAltitudeRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetTakeoffAltitudeRequest) */ { - public: - inline SetTakeoffAltitudeRequest() : SetTakeoffAltitudeRequest(nullptr) {} - ~SetTakeoffAltitudeRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetTakeoffAltitudeRequest(const SetTakeoffAltitudeRequest& from) - : SetTakeoffAltitudeRequest(nullptr, from) {} - SetTakeoffAltitudeRequest(SetTakeoffAltitudeRequest&& from) noexcept - : SetTakeoffAltitudeRequest() { - *this = ::std::move(from); - } - - inline SetTakeoffAltitudeRequest& operator=(const SetTakeoffAltitudeRequest& from) { - CopyFrom(from); - return *this; - } - inline SetTakeoffAltitudeRequest& operator=(SetTakeoffAltitudeRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetTakeoffAltitudeRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SetTakeoffAltitudeRequest* internal_default_instance() { - return reinterpret_cast( - &_SetTakeoffAltitudeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 34; - - friend void swap(SetTakeoffAltitudeRequest& a, SetTakeoffAltitudeRequest& b) { - a.Swap(&b); - } - inline void Swap(SetTakeoffAltitudeRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetTakeoffAltitudeRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetTakeoffAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetTakeoffAltitudeRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetTakeoffAltitudeRequest& from) { - SetTakeoffAltitudeRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetTakeoffAltitudeRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetTakeoffAltitudeRequest"; - } - protected: - explicit SetTakeoffAltitudeRequest(::google::protobuf::Arena* arena); - SetTakeoffAltitudeRequest(::google::protobuf::Arena* arena, const SetTakeoffAltitudeRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAltitudeFieldNumber = 1, - }; - // float altitude = 1; - void clear_altitude() ; - float altitude() const; - void set_altitude(float value); - - private: - float _internal_altitude() const; - void _internal_set_altitude(float value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - float altitude_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class SetReturnToLaunchAltitudeRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) */ { - public: - inline SetReturnToLaunchAltitudeRequest() : SetReturnToLaunchAltitudeRequest(nullptr) {} - ~SetReturnToLaunchAltitudeRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetReturnToLaunchAltitudeRequest(const SetReturnToLaunchAltitudeRequest& from) - : SetReturnToLaunchAltitudeRequest(nullptr, from) {} - SetReturnToLaunchAltitudeRequest(SetReturnToLaunchAltitudeRequest&& from) noexcept - : SetReturnToLaunchAltitudeRequest() { - *this = ::std::move(from); - } - - inline SetReturnToLaunchAltitudeRequest& operator=(const SetReturnToLaunchAltitudeRequest& from) { - CopyFrom(from); - return *this; - } - inline SetReturnToLaunchAltitudeRequest& operator=(SetReturnToLaunchAltitudeRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetReturnToLaunchAltitudeRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SetReturnToLaunchAltitudeRequest* internal_default_instance() { - return reinterpret_cast( - &_SetReturnToLaunchAltitudeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 38; - - friend void swap(SetReturnToLaunchAltitudeRequest& a, SetReturnToLaunchAltitudeRequest& b) { - a.Swap(&b); - } - inline void Swap(SetReturnToLaunchAltitudeRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetReturnToLaunchAltitudeRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetReturnToLaunchAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetReturnToLaunchAltitudeRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetReturnToLaunchAltitudeRequest& from) { - SetReturnToLaunchAltitudeRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetReturnToLaunchAltitudeRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest"; - } - protected: - explicit SetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena); - SetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena, const SetReturnToLaunchAltitudeRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRelativeAltitudeMFieldNumber = 1, - }; - // float relative_altitude_m = 1; - void clear_relative_altitude_m() ; - float relative_altitude_m() const; - void set_relative_altitude_m(float value); - - private: - float _internal_relative_altitude_m() const; - void _internal_set_relative_altitude_m(float value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - float relative_altitude_m_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class SetCurrentSpeedRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedRequest) */ { - public: - inline SetCurrentSpeedRequest() : SetCurrentSpeedRequest(nullptr) {} - ~SetCurrentSpeedRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetCurrentSpeedRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetCurrentSpeedRequest(const SetCurrentSpeedRequest& from) - : SetCurrentSpeedRequest(nullptr, from) {} - SetCurrentSpeedRequest(SetCurrentSpeedRequest&& from) noexcept - : SetCurrentSpeedRequest() { - *this = ::std::move(from); - } - - inline SetCurrentSpeedRequest& operator=(const SetCurrentSpeedRequest& from) { - CopyFrom(from); - return *this; - } - inline SetCurrentSpeedRequest& operator=(SetCurrentSpeedRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetCurrentSpeedRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SetCurrentSpeedRequest* internal_default_instance() { - return reinterpret_cast( - &_SetCurrentSpeedRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 40; - - friend void swap(SetCurrentSpeedRequest& a, SetCurrentSpeedRequest& b) { - a.Swap(&b); - } - inline void Swap(SetCurrentSpeedRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetCurrentSpeedRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetCurrentSpeedRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetCurrentSpeedRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetCurrentSpeedRequest& from) { - SetCurrentSpeedRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetCurrentSpeedRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetCurrentSpeedRequest"; - } - protected: - explicit SetCurrentSpeedRequest(::google::protobuf::Arena* arena); - SetCurrentSpeedRequest(::google::protobuf::Arena* arena, const SetCurrentSpeedRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSpeedMSFieldNumber = 1, - }; - // float speed_m_s = 1; - void clear_speed_m_s() ; - float speed_m_s() const; - void set_speed_m_s(float value); - - private: - float _internal_speed_m_s() const; - void _internal_set_speed_m_s(float value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetCurrentSpeedRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - float speed_m_s_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class SetActuatorRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetActuatorRequest) */ { - public: - inline SetActuatorRequest() : SetActuatorRequest(nullptr) {} - ~SetActuatorRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetActuatorRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetActuatorRequest(const SetActuatorRequest& from) - : SetActuatorRequest(nullptr, from) {} - SetActuatorRequest(SetActuatorRequest&& from) noexcept - : SetActuatorRequest() { - *this = ::std::move(from); - } - - inline SetActuatorRequest& operator=(const SetActuatorRequest& from) { - CopyFrom(from); - return *this; - } - inline SetActuatorRequest& operator=(SetActuatorRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetActuatorRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SetActuatorRequest* internal_default_instance() { - return reinterpret_cast( - &_SetActuatorRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - friend void swap(SetActuatorRequest& a, SetActuatorRequest& b) { - a.Swap(&b); - } - inline void Swap(SetActuatorRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetActuatorRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetActuatorRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetActuatorRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetActuatorRequest& from) { - SetActuatorRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetActuatorRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetActuatorRequest"; - } - protected: - explicit SetActuatorRequest(::google::protobuf::Arena* arena); - SetActuatorRequest(::google::protobuf::Arena* arena, const SetActuatorRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIndexFieldNumber = 1, - kValueFieldNumber = 2, - }; - // int32 index = 1; - void clear_index() ; - ::int32_t index() const; - void set_index(::int32_t value); - - private: - ::int32_t _internal_index() const; - void _internal_set_index(::int32_t value); - - public: - // float value = 2; - void clear_value() ; - float value() const; - void set_value(float value); - - private: - float _internal_value() const; - void _internal_set_value(float value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetActuatorRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::int32_t index_; - float value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class ReturnToLaunchRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ReturnToLaunchRequest) */ { - public: - inline ReturnToLaunchRequest() : ReturnToLaunchRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ReturnToLaunchRequest(::google::protobuf::internal::ConstantInitialized); - - inline ReturnToLaunchRequest(const ReturnToLaunchRequest& from) - : ReturnToLaunchRequest(nullptr, from) {} - ReturnToLaunchRequest(ReturnToLaunchRequest&& from) noexcept - : ReturnToLaunchRequest() { - *this = ::std::move(from); - } - - inline ReturnToLaunchRequest& operator=(const ReturnToLaunchRequest& from) { - CopyFrom(from); - return *this; - } - inline ReturnToLaunchRequest& operator=(ReturnToLaunchRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ReturnToLaunchRequest& default_instance() { - return *internal_default_instance(); - } - static inline const ReturnToLaunchRequest* internal_default_instance() { - return reinterpret_cast( - &_ReturnToLaunchRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(ReturnToLaunchRequest& a, ReturnToLaunchRequest& b) { - a.Swap(&b); - } - inline void Swap(ReturnToLaunchRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ReturnToLaunchRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ReturnToLaunchRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ReturnToLaunchRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ReturnToLaunchRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ReturnToLaunchRequest"; - } - protected: - explicit ReturnToLaunchRequest(::google::protobuf::Arena* arena); - ReturnToLaunchRequest(::google::protobuf::Arena* arena, const ReturnToLaunchRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ReturnToLaunchRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class RebootRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.RebootRequest) */ { - public: - inline RebootRequest() : RebootRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR RebootRequest(::google::protobuf::internal::ConstantInitialized); - - inline RebootRequest(const RebootRequest& from) - : RebootRequest(nullptr, from) {} - RebootRequest(RebootRequest&& from) noexcept - : RebootRequest() { - *this = ::std::move(from); - } - - inline RebootRequest& operator=(const RebootRequest& from) { - CopyFrom(from); - return *this; - } - inline RebootRequest& operator=(RebootRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RebootRequest& default_instance() { - return *internal_default_instance(); - } - static inline const RebootRequest* internal_default_instance() { - return reinterpret_cast( - &_RebootRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(RebootRequest& a, RebootRequest& b) { - a.Swap(&b); - } - inline void Swap(RebootRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RebootRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RebootRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const RebootRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const RebootRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.RebootRequest"; - } - protected: - explicit RebootRequest(::google::protobuf::Arena* arena); - RebootRequest(::google::protobuf::Arena* arena, const RebootRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.RebootRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class LandRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.LandRequest) */ { - public: - inline LandRequest() : LandRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR LandRequest(::google::protobuf::internal::ConstantInitialized); - - inline LandRequest(const LandRequest& from) - : LandRequest(nullptr, from) {} - LandRequest(LandRequest&& from) noexcept - : LandRequest() { - *this = ::std::move(from); - } - - inline LandRequest& operator=(const LandRequest& from) { - CopyFrom(from); - return *this; - } - inline LandRequest& operator=(LandRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const LandRequest& default_instance() { - return *internal_default_instance(); - } - static inline const LandRequest* internal_default_instance() { - return reinterpret_cast( - &_LandRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(LandRequest& a, LandRequest& b) { - a.Swap(&b); - } - inline void Swap(LandRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LandRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LandRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const LandRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const LandRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.LandRequest"; - } - protected: - explicit LandRequest(::google::protobuf::Arena* arena); - LandRequest(::google::protobuf::Arena* arena, const LandRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.LandRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class KillRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.KillRequest) */ { - public: - inline KillRequest() : KillRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR KillRequest(::google::protobuf::internal::ConstantInitialized); - - inline KillRequest(const KillRequest& from) - : KillRequest(nullptr, from) {} - KillRequest(KillRequest&& from) noexcept - : KillRequest() { - *this = ::std::move(from); - } - - inline KillRequest& operator=(const KillRequest& from) { - CopyFrom(from); - return *this; - } - inline KillRequest& operator=(KillRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const KillRequest& default_instance() { - return *internal_default_instance(); - } - static inline const KillRequest* internal_default_instance() { - return reinterpret_cast( - &_KillRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(KillRequest& a, KillRequest& b) { - a.Swap(&b); - } - inline void Swap(KillRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(KillRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - KillRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const KillRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const KillRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.KillRequest"; - } - protected: - explicit KillRequest(::google::protobuf::Arena* arena); - KillRequest(::google::protobuf::Arena* arena, const KillRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.KillRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class HoldRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.HoldRequest) */ { - public: - inline HoldRequest() : HoldRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR HoldRequest(::google::protobuf::internal::ConstantInitialized); - - inline HoldRequest(const HoldRequest& from) - : HoldRequest(nullptr, from) {} - HoldRequest(HoldRequest&& from) noexcept - : HoldRequest() { - *this = ::std::move(from); - } - - inline HoldRequest& operator=(const HoldRequest& from) { - CopyFrom(from); - return *this; - } - inline HoldRequest& operator=(HoldRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const HoldRequest& default_instance() { - return *internal_default_instance(); - } - static inline const HoldRequest* internal_default_instance() { - return reinterpret_cast( - &_HoldRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(HoldRequest& a, HoldRequest& b) { - a.Swap(&b); - } - inline void Swap(HoldRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(HoldRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - HoldRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const HoldRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const HoldRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.HoldRequest"; - } - protected: - explicit HoldRequest(::google::protobuf::Arena* arena); - HoldRequest(::google::protobuf::Arena* arena, const HoldRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.HoldRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class GotoLocationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GotoLocationRequest) */ { - public: - inline GotoLocationRequest() : GotoLocationRequest(nullptr) {} - ~GotoLocationRequest() override; - template - explicit PROTOBUF_CONSTEXPR GotoLocationRequest(::google::protobuf::internal::ConstantInitialized); - - inline GotoLocationRequest(const GotoLocationRequest& from) - : GotoLocationRequest(nullptr, from) {} - GotoLocationRequest(GotoLocationRequest&& from) noexcept - : GotoLocationRequest() { - *this = ::std::move(from); - } - - inline GotoLocationRequest& operator=(const GotoLocationRequest& from) { - CopyFrom(from); - return *this; - } - inline GotoLocationRequest& operator=(GotoLocationRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GotoLocationRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GotoLocationRequest* internal_default_instance() { - return reinterpret_cast( - &_GotoLocationRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(GotoLocationRequest& a, GotoLocationRequest& b) { - a.Swap(&b); - } - inline void Swap(GotoLocationRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GotoLocationRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GotoLocationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GotoLocationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GotoLocationRequest& from) { - GotoLocationRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GotoLocationRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GotoLocationRequest"; - } - protected: - explicit GotoLocationRequest(::google::protobuf::Arena* arena); - GotoLocationRequest(::google::protobuf::Arena* arena, const GotoLocationRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kLatitudeDegFieldNumber = 1, - kLongitudeDegFieldNumber = 2, - kAbsoluteAltitudeMFieldNumber = 3, - kYawDegFieldNumber = 4, - }; - // double latitude_deg = 1; - void clear_latitude_deg() ; - double latitude_deg() const; - void set_latitude_deg(double value); - - private: - double _internal_latitude_deg() const; - void _internal_set_latitude_deg(double value); - - public: - // double longitude_deg = 2; - void clear_longitude_deg() ; - double longitude_deg() const; - void set_longitude_deg(double value); - - private: - double _internal_longitude_deg() const; - void _internal_set_longitude_deg(double value); - - public: - // float absolute_altitude_m = 3; - void clear_absolute_altitude_m() ; - float absolute_altitude_m() const; - void set_absolute_altitude_m(float value); - - private: - float _internal_absolute_altitude_m() const; - void _internal_set_absolute_altitude_m(float value); - - public: - // float yaw_deg = 4; - void clear_yaw_deg() ; - float yaw_deg() const; - void set_yaw_deg(float value); - - private: - float _internal_yaw_deg() const; - void _internal_set_yaw_deg(float value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GotoLocationRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double latitude_deg_; - double longitude_deg_; - float absolute_altitude_m_; - float yaw_deg_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class GetTakeoffAltitudeRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetTakeoffAltitudeRequest) */ { - public: - inline GetTakeoffAltitudeRequest() : GetTakeoffAltitudeRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetTakeoffAltitudeRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetTakeoffAltitudeRequest(const GetTakeoffAltitudeRequest& from) - : GetTakeoffAltitudeRequest(nullptr, from) {} - GetTakeoffAltitudeRequest(GetTakeoffAltitudeRequest&& from) noexcept - : GetTakeoffAltitudeRequest() { - *this = ::std::move(from); - } - - inline GetTakeoffAltitudeRequest& operator=(const GetTakeoffAltitudeRequest& from) { - CopyFrom(from); - return *this; - } - inline GetTakeoffAltitudeRequest& operator=(GetTakeoffAltitudeRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetTakeoffAltitudeRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetTakeoffAltitudeRequest* internal_default_instance() { - return reinterpret_cast( - &_GetTakeoffAltitudeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 32; - - friend void swap(GetTakeoffAltitudeRequest& a, GetTakeoffAltitudeRequest& b) { - a.Swap(&b); - } - inline void Swap(GetTakeoffAltitudeRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetTakeoffAltitudeRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetTakeoffAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetTakeoffAltitudeRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetTakeoffAltitudeRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GetTakeoffAltitudeRequest"; - } - protected: - explicit GetTakeoffAltitudeRequest(::google::protobuf::Arena* arena); - GetTakeoffAltitudeRequest(::google::protobuf::Arena* arena, const GetTakeoffAltitudeRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetTakeoffAltitudeRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class GetReturnToLaunchAltitudeRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) */ { - public: - inline GetReturnToLaunchAltitudeRequest() : GetReturnToLaunchAltitudeRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetReturnToLaunchAltitudeRequest(const GetReturnToLaunchAltitudeRequest& from) - : GetReturnToLaunchAltitudeRequest(nullptr, from) {} - GetReturnToLaunchAltitudeRequest(GetReturnToLaunchAltitudeRequest&& from) noexcept - : GetReturnToLaunchAltitudeRequest() { - *this = ::std::move(from); - } - - inline GetReturnToLaunchAltitudeRequest& operator=(const GetReturnToLaunchAltitudeRequest& from) { - CopyFrom(from); - return *this; - } - inline GetReturnToLaunchAltitudeRequest& operator=(GetReturnToLaunchAltitudeRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetReturnToLaunchAltitudeRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetReturnToLaunchAltitudeRequest* internal_default_instance() { - return reinterpret_cast( - &_GetReturnToLaunchAltitudeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 36; - - friend void swap(GetReturnToLaunchAltitudeRequest& a, GetReturnToLaunchAltitudeRequest& b) { - a.Swap(&b); - } - inline void Swap(GetReturnToLaunchAltitudeRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetReturnToLaunchAltitudeRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetReturnToLaunchAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetReturnToLaunchAltitudeRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetReturnToLaunchAltitudeRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest"; - } - protected: - explicit GetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena); - GetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena, const GetReturnToLaunchAltitudeRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class DoOrbitRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DoOrbitRequest) */ { - public: - inline DoOrbitRequest() : DoOrbitRequest(nullptr) {} - ~DoOrbitRequest() override; - template - explicit PROTOBUF_CONSTEXPR DoOrbitRequest(::google::protobuf::internal::ConstantInitialized); - - inline DoOrbitRequest(const DoOrbitRequest& from) - : DoOrbitRequest(nullptr, from) {} - DoOrbitRequest(DoOrbitRequest&& from) noexcept - : DoOrbitRequest() { - *this = ::std::move(from); - } - - inline DoOrbitRequest& operator=(const DoOrbitRequest& from) { - CopyFrom(from); - return *this; - } - inline DoOrbitRequest& operator=(DoOrbitRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DoOrbitRequest& default_instance() { - return *internal_default_instance(); - } - static inline const DoOrbitRequest* internal_default_instance() { - return reinterpret_cast( - &_DoOrbitRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(DoOrbitRequest& a, DoOrbitRequest& b) { - a.Swap(&b); - } - inline void Swap(DoOrbitRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DoOrbitRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DoOrbitRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DoOrbitRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DoOrbitRequest& from) { - DoOrbitRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(DoOrbitRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.DoOrbitRequest"; - } - protected: - explicit DoOrbitRequest(::google::protobuf::Arena* arena); - DoOrbitRequest(::google::protobuf::Arena* arena, const DoOrbitRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRadiusMFieldNumber = 1, - kVelocityMsFieldNumber = 2, - kLatitudeDegFieldNumber = 5, - kLongitudeDegFieldNumber = 6, - kAbsoluteAltitudeMFieldNumber = 7, - kYawBehaviorFieldNumber = 3, - }; - // float radius_m = 1; - void clear_radius_m() ; - float radius_m() const; - void set_radius_m(float value); - - private: - float _internal_radius_m() const; - void _internal_set_radius_m(float value); - - public: - // float velocity_ms = 2; - void clear_velocity_ms() ; - float velocity_ms() const; - void set_velocity_ms(float value); - - private: - float _internal_velocity_ms() const; - void _internal_set_velocity_ms(float value); - - public: - // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; - void clear_latitude_deg() ; - double latitude_deg() const; - void set_latitude_deg(double value); - - private: - double _internal_latitude_deg() const; - void _internal_set_latitude_deg(double value); - - public: - // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; - void clear_longitude_deg() ; - double longitude_deg() const; - void set_longitude_deg(double value); - - private: - double _internal_longitude_deg() const; - void _internal_set_longitude_deg(double value); - - public: - // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; - void clear_absolute_altitude_m() ; - double absolute_altitude_m() const; - void set_absolute_altitude_m(double value); - - private: - double _internal_absolute_altitude_m() const; - void _internal_set_absolute_altitude_m(double value); - - public: - // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; - void clear_yaw_behavior() ; - ::mavsdk::rpc::action::OrbitYawBehavior yaw_behavior() const; - void set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value); - - private: - ::mavsdk::rpc::action::OrbitYawBehavior _internal_yaw_behavior() const; - void _internal_set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DoOrbitRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - float radius_m_; - float velocity_ms_; - double latitude_deg_; - double longitude_deg_; - double absolute_altitude_m_; - int yaw_behavior_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class DisarmRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DisarmRequest) */ { - public: - inline DisarmRequest() : DisarmRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DisarmRequest(::google::protobuf::internal::ConstantInitialized); - - inline DisarmRequest(const DisarmRequest& from) - : DisarmRequest(nullptr, from) {} - DisarmRequest(DisarmRequest&& from) noexcept - : DisarmRequest() { - *this = ::std::move(from); - } - - inline DisarmRequest& operator=(const DisarmRequest& from) { - CopyFrom(from); - return *this; - } - inline DisarmRequest& operator=(DisarmRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DisarmRequest& default_instance() { - return *internal_default_instance(); - } - static inline const DisarmRequest* internal_default_instance() { - return reinterpret_cast( - &_DisarmRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(DisarmRequest& a, DisarmRequest& b) { - a.Swap(&b); - } - inline void Swap(DisarmRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DisarmRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DisarmRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DisarmRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DisarmRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.DisarmRequest"; - } - protected: - explicit DisarmRequest(::google::protobuf::Arena* arena); - DisarmRequest(::google::protobuf::Arena* arena, const DisarmRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DisarmRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class ArmRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmRequest) */ { - public: - inline ArmRequest() : ArmRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ArmRequest(::google::protobuf::internal::ConstantInitialized); - - inline ArmRequest(const ArmRequest& from) - : ArmRequest(nullptr, from) {} - ArmRequest(ArmRequest&& from) noexcept - : ArmRequest() { - *this = ::std::move(from); - } - - inline ArmRequest& operator=(const ArmRequest& from) { - CopyFrom(from); - return *this; - } - inline ArmRequest& operator=(ArmRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ArmRequest& default_instance() { - return *internal_default_instance(); - } - static inline const ArmRequest* internal_default_instance() { - return reinterpret_cast( - &_ArmRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(ArmRequest& a, ArmRequest& b) { - a.Swap(&b); - } - inline void Swap(ArmRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ArmRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ArmRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ArmRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ArmRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ArmRequest"; - } - protected: - explicit ArmRequest(::google::protobuf::Arena* arena); - ArmRequest(::google::protobuf::Arena* arena, const ArmRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class ArmForceRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmForceRequest) */ { - public: - inline ArmForceRequest() : ArmForceRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ArmForceRequest(::google::protobuf::internal::ConstantInitialized); - - inline ArmForceRequest(const ArmForceRequest& from) - : ArmForceRequest(nullptr, from) {} - ArmForceRequest(ArmForceRequest&& from) noexcept - : ArmForceRequest() { - *this = ::std::move(from); - } - - inline ArmForceRequest& operator=(const ArmForceRequest& from) { - CopyFrom(from); - return *this; - } - inline ArmForceRequest& operator=(ArmForceRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ArmForceRequest& default_instance() { - return *internal_default_instance(); - } - static inline const ArmForceRequest* internal_default_instance() { - return reinterpret_cast( - &_ArmForceRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(ArmForceRequest& a, ArmForceRequest& b) { - a.Swap(&b); - } - inline void Swap(ArmForceRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ArmForceRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ArmForceRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ArmForceRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ArmForceRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ArmForceRequest"; - } - protected: - explicit ArmForceRequest(::google::protobuf::Arena* arena); - ArmForceRequest(::google::protobuf::Arena* arena, const ArmForceRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmForceRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class ActionResult final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ActionResult) */ { - public: - inline ActionResult() : ActionResult(nullptr) {} - ~ActionResult() override; - template - explicit PROTOBUF_CONSTEXPR ActionResult(::google::protobuf::internal::ConstantInitialized); - - inline ActionResult(const ActionResult& from) - : ActionResult(nullptr, from) {} - ActionResult(ActionResult&& from) noexcept - : ActionResult() { - *this = ::std::move(from); - } - - inline ActionResult& operator=(const ActionResult& from) { - CopyFrom(from); - return *this; - } - inline ActionResult& operator=(ActionResult&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ActionResult& default_instance() { - return *internal_default_instance(); - } - static inline const ActionResult* internal_default_instance() { - return reinterpret_cast( - &_ActionResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 42; - - friend void swap(ActionResult& a, ActionResult& b) { - a.Swap(&b); - } - inline void Swap(ActionResult* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ActionResult* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ActionResult* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ActionResult& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ActionResult& from) { - ActionResult::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ActionResult* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ActionResult"; - } - protected: - explicit ActionResult(::google::protobuf::Arena* arena); - ActionResult(::google::protobuf::Arena* arena, const ActionResult& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - using Result = ActionResult_Result; - static constexpr Result RESULT_UNKNOWN = ActionResult_Result_RESULT_UNKNOWN; - static constexpr Result RESULT_SUCCESS = ActionResult_Result_RESULT_SUCCESS; - static constexpr Result RESULT_NO_SYSTEM = ActionResult_Result_RESULT_NO_SYSTEM; - static constexpr Result RESULT_CONNECTION_ERROR = ActionResult_Result_RESULT_CONNECTION_ERROR; - static constexpr Result RESULT_BUSY = ActionResult_Result_RESULT_BUSY; - static constexpr Result RESULT_COMMAND_DENIED = ActionResult_Result_RESULT_COMMAND_DENIED; - static constexpr Result RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN = ActionResult_Result_RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN; - static constexpr Result RESULT_COMMAND_DENIED_NOT_LANDED = ActionResult_Result_RESULT_COMMAND_DENIED_NOT_LANDED; - static constexpr Result RESULT_TIMEOUT = ActionResult_Result_RESULT_TIMEOUT; - static constexpr Result RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN = ActionResult_Result_RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN; - static constexpr Result RESULT_NO_VTOL_TRANSITION_SUPPORT = ActionResult_Result_RESULT_NO_VTOL_TRANSITION_SUPPORT; - static constexpr Result RESULT_PARAMETER_ERROR = ActionResult_Result_RESULT_PARAMETER_ERROR; - static constexpr Result RESULT_UNSUPPORTED = ActionResult_Result_RESULT_UNSUPPORTED; - static constexpr Result RESULT_FAILED = ActionResult_Result_RESULT_FAILED; - static constexpr Result RESULT_INVALID_ARGUMENT = ActionResult_Result_RESULT_INVALID_ARGUMENT; - static inline bool Result_IsValid(int value) { - return ActionResult_Result_IsValid(value); - } - static constexpr Result Result_MIN = ActionResult_Result_Result_MIN; - static constexpr Result Result_MAX = ActionResult_Result_Result_MAX; - static constexpr int Result_ARRAYSIZE = ActionResult_Result_Result_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* Result_descriptor() { - return ActionResult_Result_descriptor(); - } - template - static inline const std::string& Result_Name(T value) { - return ActionResult_Result_Name(value); - } - static inline bool Result_Parse(absl::string_view name, Result* value) { - return ActionResult_Result_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kResultStrFieldNumber = 2, - kResultFieldNumber = 1, - }; - // string result_str = 2; - void clear_result_str() ; - const std::string& result_str() const; - template - void set_result_str(Arg_&& arg, Args_... args); - std::string* mutable_result_str(); - PROTOBUF_NODISCARD std::string* release_result_str(); - void set_allocated_result_str(std::string* value); - - private: - const std::string& _internal_result_str() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str( - const std::string& value); - std::string* _internal_mutable_result_str(); - - public: - // .mavsdk.rpc.action.ActionResult.Result result = 1; - void clear_result() ; - ::mavsdk::rpc::action::ActionResult_Result result() const; - void set_result(::mavsdk::rpc::action::ActionResult_Result value); - - private: - ::mavsdk::rpc::action::ActionResult_Result _internal_result() const; - void _internal_set_result(::mavsdk::rpc::action::ActionResult_Result value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ActionResult) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr result_str_; - int result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class TransitionToMulticopterResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToMulticopterResponse) */ { - public: - inline TransitionToMulticopterResponse() : TransitionToMulticopterResponse(nullptr) {} - ~TransitionToMulticopterResponse() override; - template - explicit PROTOBUF_CONSTEXPR TransitionToMulticopterResponse(::google::protobuf::internal::ConstantInitialized); - - inline TransitionToMulticopterResponse(const TransitionToMulticopterResponse& from) - : TransitionToMulticopterResponse(nullptr, from) {} - TransitionToMulticopterResponse(TransitionToMulticopterResponse&& from) noexcept - : TransitionToMulticopterResponse() { - *this = ::std::move(from); - } - - inline TransitionToMulticopterResponse& operator=(const TransitionToMulticopterResponse& from) { - CopyFrom(from); - return *this; - } - inline TransitionToMulticopterResponse& operator=(TransitionToMulticopterResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TransitionToMulticopterResponse& default_instance() { - return *internal_default_instance(); - } - static inline const TransitionToMulticopterResponse* internal_default_instance() { - return reinterpret_cast( - &_TransitionToMulticopterResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 31; - - friend void swap(TransitionToMulticopterResponse& a, TransitionToMulticopterResponse& b) { - a.Swap(&b); - } - inline void Swap(TransitionToMulticopterResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TransitionToMulticopterResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TransitionToMulticopterResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TransitionToMulticopterResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TransitionToMulticopterResponse& from) { - TransitionToMulticopterResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TransitionToMulticopterResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TransitionToMulticopterResponse"; - } - protected: - explicit TransitionToMulticopterResponse(::google::protobuf::Arena* arena); - TransitionToMulticopterResponse(::google::protobuf::Arena* arena, const TransitionToMulticopterResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToMulticopterResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class TransitionToFixedwingResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToFixedwingResponse) */ { - public: - inline TransitionToFixedwingResponse() : TransitionToFixedwingResponse(nullptr) {} - ~TransitionToFixedwingResponse() override; - template - explicit PROTOBUF_CONSTEXPR TransitionToFixedwingResponse(::google::protobuf::internal::ConstantInitialized); - - inline TransitionToFixedwingResponse(const TransitionToFixedwingResponse& from) - : TransitionToFixedwingResponse(nullptr, from) {} - TransitionToFixedwingResponse(TransitionToFixedwingResponse&& from) noexcept - : TransitionToFixedwingResponse() { - *this = ::std::move(from); - } - - inline TransitionToFixedwingResponse& operator=(const TransitionToFixedwingResponse& from) { - CopyFrom(from); - return *this; - } - inline TransitionToFixedwingResponse& operator=(TransitionToFixedwingResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TransitionToFixedwingResponse& default_instance() { - return *internal_default_instance(); - } - static inline const TransitionToFixedwingResponse* internal_default_instance() { - return reinterpret_cast( - &_TransitionToFixedwingResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 29; - - friend void swap(TransitionToFixedwingResponse& a, TransitionToFixedwingResponse& b) { - a.Swap(&b); - } - inline void Swap(TransitionToFixedwingResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TransitionToFixedwingResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TransitionToFixedwingResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TransitionToFixedwingResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TransitionToFixedwingResponse& from) { - TransitionToFixedwingResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TransitionToFixedwingResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TransitionToFixedwingResponse"; - } - protected: - explicit TransitionToFixedwingResponse(::google::protobuf::Arena* arena); - TransitionToFixedwingResponse(::google::protobuf::Arena* arena, const TransitionToFixedwingResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToFixedwingResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class TerminateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TerminateResponse) */ { - public: - inline TerminateResponse() : TerminateResponse(nullptr) {} - ~TerminateResponse() override; - template - explicit PROTOBUF_CONSTEXPR TerminateResponse(::google::protobuf::internal::ConstantInitialized); - - inline TerminateResponse(const TerminateResponse& from) - : TerminateResponse(nullptr, from) {} - TerminateResponse(TerminateResponse&& from) noexcept - : TerminateResponse() { - *this = ::std::move(from); - } - - inline TerminateResponse& operator=(const TerminateResponse& from) { - CopyFrom(from); - return *this; - } - inline TerminateResponse& operator=(TerminateResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TerminateResponse& default_instance() { - return *internal_default_instance(); - } - static inline const TerminateResponse* internal_default_instance() { - return reinterpret_cast( - &_TerminateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(TerminateResponse& a, TerminateResponse& b) { - a.Swap(&b); - } - inline void Swap(TerminateResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TerminateResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TerminateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TerminateResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TerminateResponse& from) { - TerminateResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TerminateResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TerminateResponse"; - } - protected: - explicit TerminateResponse(::google::protobuf::Arena* arena); - TerminateResponse(::google::protobuf::Arena* arena, const TerminateResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TerminateResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class TakeoffResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TakeoffResponse) */ { - public: - inline TakeoffResponse() : TakeoffResponse(nullptr) {} - ~TakeoffResponse() override; - template - explicit PROTOBUF_CONSTEXPR TakeoffResponse(::google::protobuf::internal::ConstantInitialized); - - inline TakeoffResponse(const TakeoffResponse& from) - : TakeoffResponse(nullptr, from) {} - TakeoffResponse(TakeoffResponse&& from) noexcept - : TakeoffResponse() { - *this = ::std::move(from); - } - - inline TakeoffResponse& operator=(const TakeoffResponse& from) { - CopyFrom(from); - return *this; - } - inline TakeoffResponse& operator=(TakeoffResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TakeoffResponse& default_instance() { - return *internal_default_instance(); - } - static inline const TakeoffResponse* internal_default_instance() { - return reinterpret_cast( - &_TakeoffResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(TakeoffResponse& a, TakeoffResponse& b) { - a.Swap(&b); - } - inline void Swap(TakeoffResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TakeoffResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TakeoffResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TakeoffResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TakeoffResponse& from) { - TakeoffResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TakeoffResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TakeoffResponse"; - } - protected: - explicit TakeoffResponse(::google::protobuf::Arena* arena); - TakeoffResponse(::google::protobuf::Arena* arena, const TakeoffResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TakeoffResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class ShutdownResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ShutdownResponse) */ { - public: - inline ShutdownResponse() : ShutdownResponse(nullptr) {} - ~ShutdownResponse() override; - template - explicit PROTOBUF_CONSTEXPR ShutdownResponse(::google::protobuf::internal::ConstantInitialized); - - inline ShutdownResponse(const ShutdownResponse& from) - : ShutdownResponse(nullptr, from) {} - ShutdownResponse(ShutdownResponse&& from) noexcept - : ShutdownResponse() { - *this = ::std::move(from); - } - - inline ShutdownResponse& operator=(const ShutdownResponse& from) { - CopyFrom(from); - return *this; - } - inline ShutdownResponse& operator=(ShutdownResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShutdownResponse& default_instance() { - return *internal_default_instance(); - } - static inline const ShutdownResponse* internal_default_instance() { - return reinterpret_cast( - &_ShutdownResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(ShutdownResponse& a, ShutdownResponse& b) { - a.Swap(&b); - } - inline void Swap(ShutdownResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShutdownResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShutdownResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShutdownResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ShutdownResponse& from) { - ShutdownResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ShutdownResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ShutdownResponse"; - } - protected: - explicit ShutdownResponse(::google::protobuf::Arena* arena); - ShutdownResponse(::google::protobuf::Arena* arena, const ShutdownResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ShutdownResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class SetTakeoffAltitudeResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetTakeoffAltitudeResponse) */ { - public: - inline SetTakeoffAltitudeResponse() : SetTakeoffAltitudeResponse(nullptr) {} - ~SetTakeoffAltitudeResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetTakeoffAltitudeResponse(const SetTakeoffAltitudeResponse& from) - : SetTakeoffAltitudeResponse(nullptr, from) {} - SetTakeoffAltitudeResponse(SetTakeoffAltitudeResponse&& from) noexcept - : SetTakeoffAltitudeResponse() { - *this = ::std::move(from); - } - - inline SetTakeoffAltitudeResponse& operator=(const SetTakeoffAltitudeResponse& from) { - CopyFrom(from); - return *this; - } - inline SetTakeoffAltitudeResponse& operator=(SetTakeoffAltitudeResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetTakeoffAltitudeResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SetTakeoffAltitudeResponse* internal_default_instance() { - return reinterpret_cast( - &_SetTakeoffAltitudeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 35; - - friend void swap(SetTakeoffAltitudeResponse& a, SetTakeoffAltitudeResponse& b) { - a.Swap(&b); - } - inline void Swap(SetTakeoffAltitudeResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetTakeoffAltitudeResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetTakeoffAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetTakeoffAltitudeResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetTakeoffAltitudeResponse& from) { - SetTakeoffAltitudeResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetTakeoffAltitudeResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetTakeoffAltitudeResponse"; - } - protected: - explicit SetTakeoffAltitudeResponse(::google::protobuf::Arena* arena); - SetTakeoffAltitudeResponse(::google::protobuf::Arena* arena, const SetTakeoffAltitudeResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class SetReturnToLaunchAltitudeResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) */ { - public: - inline SetReturnToLaunchAltitudeResponse() : SetReturnToLaunchAltitudeResponse(nullptr) {} - ~SetReturnToLaunchAltitudeResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetReturnToLaunchAltitudeResponse(const SetReturnToLaunchAltitudeResponse& from) - : SetReturnToLaunchAltitudeResponse(nullptr, from) {} - SetReturnToLaunchAltitudeResponse(SetReturnToLaunchAltitudeResponse&& from) noexcept - : SetReturnToLaunchAltitudeResponse() { - *this = ::std::move(from); - } - - inline SetReturnToLaunchAltitudeResponse& operator=(const SetReturnToLaunchAltitudeResponse& from) { - CopyFrom(from); - return *this; - } - inline SetReturnToLaunchAltitudeResponse& operator=(SetReturnToLaunchAltitudeResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetReturnToLaunchAltitudeResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SetReturnToLaunchAltitudeResponse* internal_default_instance() { - return reinterpret_cast( - &_SetReturnToLaunchAltitudeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 39; - - friend void swap(SetReturnToLaunchAltitudeResponse& a, SetReturnToLaunchAltitudeResponse& b) { - a.Swap(&b); - } - inline void Swap(SetReturnToLaunchAltitudeResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetReturnToLaunchAltitudeResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetReturnToLaunchAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetReturnToLaunchAltitudeResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetReturnToLaunchAltitudeResponse& from) { - SetReturnToLaunchAltitudeResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetReturnToLaunchAltitudeResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse"; - } - protected: - explicit SetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena); - SetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena, const SetReturnToLaunchAltitudeResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class SetCurrentSpeedResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedResponse) */ { - public: - inline SetCurrentSpeedResponse() : SetCurrentSpeedResponse(nullptr) {} - ~SetCurrentSpeedResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetCurrentSpeedResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetCurrentSpeedResponse(const SetCurrentSpeedResponse& from) - : SetCurrentSpeedResponse(nullptr, from) {} - SetCurrentSpeedResponse(SetCurrentSpeedResponse&& from) noexcept - : SetCurrentSpeedResponse() { - *this = ::std::move(from); - } - - inline SetCurrentSpeedResponse& operator=(const SetCurrentSpeedResponse& from) { - CopyFrom(from); - return *this; - } - inline SetCurrentSpeedResponse& operator=(SetCurrentSpeedResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetCurrentSpeedResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SetCurrentSpeedResponse* internal_default_instance() { - return reinterpret_cast( - &_SetCurrentSpeedResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 41; - - friend void swap(SetCurrentSpeedResponse& a, SetCurrentSpeedResponse& b) { - a.Swap(&b); - } - inline void Swap(SetCurrentSpeedResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetCurrentSpeedResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetCurrentSpeedResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetCurrentSpeedResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetCurrentSpeedResponse& from) { - SetCurrentSpeedResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetCurrentSpeedResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetCurrentSpeedResponse"; - } - protected: - explicit SetCurrentSpeedResponse(::google::protobuf::Arena* arena); - SetCurrentSpeedResponse(::google::protobuf::Arena* arena, const SetCurrentSpeedResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetCurrentSpeedResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class SetActuatorResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetActuatorResponse) */ { - public: - inline SetActuatorResponse() : SetActuatorResponse(nullptr) {} - ~SetActuatorResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetActuatorResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetActuatorResponse(const SetActuatorResponse& from) - : SetActuatorResponse(nullptr, from) {} - SetActuatorResponse(SetActuatorResponse&& from) noexcept - : SetActuatorResponse() { - *this = ::std::move(from); - } - - inline SetActuatorResponse& operator=(const SetActuatorResponse& from) { - CopyFrom(from); - return *this; - } - inline SetActuatorResponse& operator=(SetActuatorResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetActuatorResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SetActuatorResponse* internal_default_instance() { - return reinterpret_cast( - &_SetActuatorResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - - friend void swap(SetActuatorResponse& a, SetActuatorResponse& b) { - a.Swap(&b); - } - inline void Swap(SetActuatorResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetActuatorResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetActuatorResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetActuatorResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetActuatorResponse& from) { - SetActuatorResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetActuatorResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetActuatorResponse"; - } - protected: - explicit SetActuatorResponse(::google::protobuf::Arena* arena); - SetActuatorResponse(::google::protobuf::Arena* arena, const SetActuatorResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetActuatorResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class ReturnToLaunchResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ReturnToLaunchResponse) */ { - public: - inline ReturnToLaunchResponse() : ReturnToLaunchResponse(nullptr) {} - ~ReturnToLaunchResponse() override; - template - explicit PROTOBUF_CONSTEXPR ReturnToLaunchResponse(::google::protobuf::internal::ConstantInitialized); - - inline ReturnToLaunchResponse(const ReturnToLaunchResponse& from) - : ReturnToLaunchResponse(nullptr, from) {} - ReturnToLaunchResponse(ReturnToLaunchResponse&& from) noexcept - : ReturnToLaunchResponse() { - *this = ::std::move(from); - } - - inline ReturnToLaunchResponse& operator=(const ReturnToLaunchResponse& from) { - CopyFrom(from); - return *this; - } - inline ReturnToLaunchResponse& operator=(ReturnToLaunchResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ReturnToLaunchResponse& default_instance() { - return *internal_default_instance(); - } - static inline const ReturnToLaunchResponse* internal_default_instance() { - return reinterpret_cast( - &_ReturnToLaunchResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(ReturnToLaunchResponse& a, ReturnToLaunchResponse& b) { - a.Swap(&b); - } - inline void Swap(ReturnToLaunchResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ReturnToLaunchResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ReturnToLaunchResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ReturnToLaunchResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ReturnToLaunchResponse& from) { - ReturnToLaunchResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ReturnToLaunchResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ReturnToLaunchResponse"; - } - protected: - explicit ReturnToLaunchResponse(::google::protobuf::Arena* arena); - ReturnToLaunchResponse(::google::protobuf::Arena* arena, const ReturnToLaunchResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ReturnToLaunchResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class RebootResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.RebootResponse) */ { - public: - inline RebootResponse() : RebootResponse(nullptr) {} - ~RebootResponse() override; - template - explicit PROTOBUF_CONSTEXPR RebootResponse(::google::protobuf::internal::ConstantInitialized); - - inline RebootResponse(const RebootResponse& from) - : RebootResponse(nullptr, from) {} - RebootResponse(RebootResponse&& from) noexcept - : RebootResponse() { - *this = ::std::move(from); - } - - inline RebootResponse& operator=(const RebootResponse& from) { - CopyFrom(from); - return *this; - } - inline RebootResponse& operator=(RebootResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RebootResponse& default_instance() { - return *internal_default_instance(); - } - static inline const RebootResponse* internal_default_instance() { - return reinterpret_cast( - &_RebootResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(RebootResponse& a, RebootResponse& b) { - a.Swap(&b); - } - inline void Swap(RebootResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RebootResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RebootResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RebootResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RebootResponse& from) { - RebootResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(RebootResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.RebootResponse"; - } - protected: - explicit RebootResponse(::google::protobuf::Arena* arena); - RebootResponse(::google::protobuf::Arena* arena, const RebootResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.RebootResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class LandResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.LandResponse) */ { - public: - inline LandResponse() : LandResponse(nullptr) {} - ~LandResponse() override; - template - explicit PROTOBUF_CONSTEXPR LandResponse(::google::protobuf::internal::ConstantInitialized); - - inline LandResponse(const LandResponse& from) - : LandResponse(nullptr, from) {} - LandResponse(LandResponse&& from) noexcept - : LandResponse() { - *this = ::std::move(from); - } - - inline LandResponse& operator=(const LandResponse& from) { - CopyFrom(from); - return *this; - } - inline LandResponse& operator=(LandResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const LandResponse& default_instance() { - return *internal_default_instance(); - } - static inline const LandResponse* internal_default_instance() { - return reinterpret_cast( - &_LandResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(LandResponse& a, LandResponse& b) { - a.Swap(&b); - } - inline void Swap(LandResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LandResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LandResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LandResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LandResponse& from) { - LandResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(LandResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.LandResponse"; - } - protected: - explicit LandResponse(::google::protobuf::Arena* arena); - LandResponse(::google::protobuf::Arena* arena, const LandResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.LandResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class KillResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.KillResponse) */ { - public: - inline KillResponse() : KillResponse(nullptr) {} - ~KillResponse() override; - template - explicit PROTOBUF_CONSTEXPR KillResponse(::google::protobuf::internal::ConstantInitialized); - - inline KillResponse(const KillResponse& from) - : KillResponse(nullptr, from) {} - KillResponse(KillResponse&& from) noexcept - : KillResponse() { - *this = ::std::move(from); - } - - inline KillResponse& operator=(const KillResponse& from) { - CopyFrom(from); - return *this; - } - inline KillResponse& operator=(KillResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const KillResponse& default_instance() { - return *internal_default_instance(); - } - static inline const KillResponse* internal_default_instance() { - return reinterpret_cast( - &_KillResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(KillResponse& a, KillResponse& b) { - a.Swap(&b); - } - inline void Swap(KillResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(KillResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - KillResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const KillResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const KillResponse& from) { - KillResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(KillResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.KillResponse"; - } - protected: - explicit KillResponse(::google::protobuf::Arena* arena); - KillResponse(::google::protobuf::Arena* arena, const KillResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.KillResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class HoldResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.HoldResponse) */ { - public: - inline HoldResponse() : HoldResponse(nullptr) {} - ~HoldResponse() override; - template - explicit PROTOBUF_CONSTEXPR HoldResponse(::google::protobuf::internal::ConstantInitialized); - - inline HoldResponse(const HoldResponse& from) - : HoldResponse(nullptr, from) {} - HoldResponse(HoldResponse&& from) noexcept - : HoldResponse() { - *this = ::std::move(from); - } - - inline HoldResponse& operator=(const HoldResponse& from) { - CopyFrom(from); - return *this; - } - inline HoldResponse& operator=(HoldResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const HoldResponse& default_instance() { - return *internal_default_instance(); - } - static inline const HoldResponse* internal_default_instance() { - return reinterpret_cast( - &_HoldResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(HoldResponse& a, HoldResponse& b) { - a.Swap(&b); - } - inline void Swap(HoldResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(HoldResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - HoldResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const HoldResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const HoldResponse& from) { - HoldResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(HoldResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.HoldResponse"; - } - protected: - explicit HoldResponse(::google::protobuf::Arena* arena); - HoldResponse(::google::protobuf::Arena* arena, const HoldResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.HoldResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class GotoLocationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GotoLocationResponse) */ { - public: - inline GotoLocationResponse() : GotoLocationResponse(nullptr) {} - ~GotoLocationResponse() override; - template - explicit PROTOBUF_CONSTEXPR GotoLocationResponse(::google::protobuf::internal::ConstantInitialized); - - inline GotoLocationResponse(const GotoLocationResponse& from) - : GotoLocationResponse(nullptr, from) {} - GotoLocationResponse(GotoLocationResponse&& from) noexcept - : GotoLocationResponse() { - *this = ::std::move(from); - } - - inline GotoLocationResponse& operator=(const GotoLocationResponse& from) { - CopyFrom(from); - return *this; - } - inline GotoLocationResponse& operator=(GotoLocationResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GotoLocationResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GotoLocationResponse* internal_default_instance() { - return reinterpret_cast( - &_GotoLocationResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(GotoLocationResponse& a, GotoLocationResponse& b) { - a.Swap(&b); - } - inline void Swap(GotoLocationResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GotoLocationResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GotoLocationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GotoLocationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GotoLocationResponse& from) { - GotoLocationResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GotoLocationResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GotoLocationResponse"; - } - protected: - explicit GotoLocationResponse(::google::protobuf::Arena* arena); - GotoLocationResponse(::google::protobuf::Arena* arena, const GotoLocationResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GotoLocationResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class GetTakeoffAltitudeResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetTakeoffAltitudeResponse) */ { - public: - inline GetTakeoffAltitudeResponse() : GetTakeoffAltitudeResponse(nullptr) {} - ~GetTakeoffAltitudeResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetTakeoffAltitudeResponse(const GetTakeoffAltitudeResponse& from) - : GetTakeoffAltitudeResponse(nullptr, from) {} - GetTakeoffAltitudeResponse(GetTakeoffAltitudeResponse&& from) noexcept - : GetTakeoffAltitudeResponse() { - *this = ::std::move(from); - } - - inline GetTakeoffAltitudeResponse& operator=(const GetTakeoffAltitudeResponse& from) { - CopyFrom(from); - return *this; - } - inline GetTakeoffAltitudeResponse& operator=(GetTakeoffAltitudeResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetTakeoffAltitudeResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetTakeoffAltitudeResponse* internal_default_instance() { - return reinterpret_cast( - &_GetTakeoffAltitudeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 33; - - friend void swap(GetTakeoffAltitudeResponse& a, GetTakeoffAltitudeResponse& b) { - a.Swap(&b); - } - inline void Swap(GetTakeoffAltitudeResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetTakeoffAltitudeResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetTakeoffAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetTakeoffAltitudeResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetTakeoffAltitudeResponse& from) { - GetTakeoffAltitudeResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetTakeoffAltitudeResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GetTakeoffAltitudeResponse"; - } - protected: - explicit GetTakeoffAltitudeResponse(::google::protobuf::Arena* arena); - GetTakeoffAltitudeResponse(::google::protobuf::Arena* arena, const GetTakeoffAltitudeResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - kAltitudeFieldNumber = 2, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // float altitude = 2; - void clear_altitude() ; - float altitude() const; - void set_altitude(float value); - - private: - float _internal_altitude() const; - void _internal_set_altitude(float value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - float altitude_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class GetReturnToLaunchAltitudeResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) */ { - public: - inline GetReturnToLaunchAltitudeResponse() : GetReturnToLaunchAltitudeResponse(nullptr) {} - ~GetReturnToLaunchAltitudeResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetReturnToLaunchAltitudeResponse(const GetReturnToLaunchAltitudeResponse& from) - : GetReturnToLaunchAltitudeResponse(nullptr, from) {} - GetReturnToLaunchAltitudeResponse(GetReturnToLaunchAltitudeResponse&& from) noexcept - : GetReturnToLaunchAltitudeResponse() { - *this = ::std::move(from); - } - - inline GetReturnToLaunchAltitudeResponse& operator=(const GetReturnToLaunchAltitudeResponse& from) { - CopyFrom(from); - return *this; - } - inline GetReturnToLaunchAltitudeResponse& operator=(GetReturnToLaunchAltitudeResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetReturnToLaunchAltitudeResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetReturnToLaunchAltitudeResponse* internal_default_instance() { - return reinterpret_cast( - &_GetReturnToLaunchAltitudeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 37; - - friend void swap(GetReturnToLaunchAltitudeResponse& a, GetReturnToLaunchAltitudeResponse& b) { - a.Swap(&b); - } - inline void Swap(GetReturnToLaunchAltitudeResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetReturnToLaunchAltitudeResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetReturnToLaunchAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetReturnToLaunchAltitudeResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetReturnToLaunchAltitudeResponse& from) { - GetReturnToLaunchAltitudeResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetReturnToLaunchAltitudeResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse"; - } - protected: - explicit GetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena); - GetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena, const GetReturnToLaunchAltitudeResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - kRelativeAltitudeMFieldNumber = 2, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // float relative_altitude_m = 2; - void clear_relative_altitude_m() ; - float relative_altitude_m() const; - void set_relative_altitude_m(float value); - - private: - float _internal_relative_altitude_m() const; - void _internal_set_relative_altitude_m(float value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - float relative_altitude_m_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class DoOrbitResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DoOrbitResponse) */ { - public: - inline DoOrbitResponse() : DoOrbitResponse(nullptr) {} - ~DoOrbitResponse() override; - template - explicit PROTOBUF_CONSTEXPR DoOrbitResponse(::google::protobuf::internal::ConstantInitialized); - - inline DoOrbitResponse(const DoOrbitResponse& from) - : DoOrbitResponse(nullptr, from) {} - DoOrbitResponse(DoOrbitResponse&& from) noexcept - : DoOrbitResponse() { - *this = ::std::move(from); - } - - inline DoOrbitResponse& operator=(const DoOrbitResponse& from) { - CopyFrom(from); - return *this; - } - inline DoOrbitResponse& operator=(DoOrbitResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DoOrbitResponse& default_instance() { - return *internal_default_instance(); - } - static inline const DoOrbitResponse* internal_default_instance() { - return reinterpret_cast( - &_DoOrbitResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - friend void swap(DoOrbitResponse& a, DoOrbitResponse& b) { - a.Swap(&b); - } - inline void Swap(DoOrbitResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DoOrbitResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DoOrbitResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DoOrbitResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DoOrbitResponse& from) { - DoOrbitResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(DoOrbitResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.DoOrbitResponse"; - } - protected: - explicit DoOrbitResponse(::google::protobuf::Arena* arena); - DoOrbitResponse(::google::protobuf::Arena* arena, const DoOrbitResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DoOrbitResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class DisarmResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DisarmResponse) */ { - public: - inline DisarmResponse() : DisarmResponse(nullptr) {} - ~DisarmResponse() override; - template - explicit PROTOBUF_CONSTEXPR DisarmResponse(::google::protobuf::internal::ConstantInitialized); - - inline DisarmResponse(const DisarmResponse& from) - : DisarmResponse(nullptr, from) {} - DisarmResponse(DisarmResponse&& from) noexcept - : DisarmResponse() { - *this = ::std::move(from); - } - - inline DisarmResponse& operator=(const DisarmResponse& from) { - CopyFrom(from); - return *this; - } - inline DisarmResponse& operator=(DisarmResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DisarmResponse& default_instance() { - return *internal_default_instance(); - } - static inline const DisarmResponse* internal_default_instance() { - return reinterpret_cast( - &_DisarmResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(DisarmResponse& a, DisarmResponse& b) { - a.Swap(&b); - } - inline void Swap(DisarmResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DisarmResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DisarmResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DisarmResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DisarmResponse& from) { - DisarmResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(DisarmResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.DisarmResponse"; - } - protected: - explicit DisarmResponse(::google::protobuf::Arena* arena); - DisarmResponse(::google::protobuf::Arena* arena, const DisarmResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DisarmResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class ArmResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmResponse) */ { - public: - inline ArmResponse() : ArmResponse(nullptr) {} - ~ArmResponse() override; - template - explicit PROTOBUF_CONSTEXPR ArmResponse(::google::protobuf::internal::ConstantInitialized); - - inline ArmResponse(const ArmResponse& from) - : ArmResponse(nullptr, from) {} - ArmResponse(ArmResponse&& from) noexcept - : ArmResponse() { - *this = ::std::move(from); - } - - inline ArmResponse& operator=(const ArmResponse& from) { - CopyFrom(from); - return *this; - } - inline ArmResponse& operator=(ArmResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ArmResponse& default_instance() { - return *internal_default_instance(); - } - static inline const ArmResponse* internal_default_instance() { - return reinterpret_cast( - &_ArmResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(ArmResponse& a, ArmResponse& b) { - a.Swap(&b); - } - inline void Swap(ArmResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ArmResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ArmResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ArmResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ArmResponse& from) { - ArmResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ArmResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ArmResponse"; - } - protected: - explicit ArmResponse(::google::protobuf::Arena* arena); - ArmResponse(::google::protobuf::Arena* arena, const ArmResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class ArmForceResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmForceResponse) */ { - public: - inline ArmForceResponse() : ArmForceResponse(nullptr) {} - ~ArmForceResponse() override; - template - explicit PROTOBUF_CONSTEXPR ArmForceResponse(::google::protobuf::internal::ConstantInitialized); - - inline ArmForceResponse(const ArmForceResponse& from) - : ArmForceResponse(nullptr, from) {} - ArmForceResponse(ArmForceResponse&& from) noexcept - : ArmForceResponse() { - *this = ::std::move(from); - } - - inline ArmForceResponse& operator=(const ArmForceResponse& from) { - CopyFrom(from); - return *this; - } - inline ArmForceResponse& operator=(ArmForceResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ArmForceResponse& default_instance() { - return *internal_default_instance(); - } - static inline const ArmForceResponse* internal_default_instance() { - return reinterpret_cast( - &_ArmForceResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(ArmForceResponse& a, ArmForceResponse& b) { - a.Swap(&b); - } - inline void Swap(ArmForceResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ArmForceResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ArmForceResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ArmForceResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ArmForceResponse& from) { - ArmForceResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ArmForceResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ArmForceResponse"; - } - protected: - explicit ArmForceResponse(::google::protobuf::Arena* arena); - ArmForceResponse(::google::protobuf::Arena* arena, const ArmForceResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmForceResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -}; - -// =================================================================== +class TransitionToMulticopterRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToMulticopterRequest) */ { +public: + inline TransitionToMulticopterRequest() : TransitionToMulticopterRequest(nullptr) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TransitionToMulticopterRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TransitionToMulticopterRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + TransitionToMulticopterRequest(::google::protobuf::internal::ConstantInitialized); + + inline TransitionToMulticopterRequest(const TransitionToMulticopterRequest& from) : + TransitionToMulticopterRequest(nullptr, from) + {} + inline TransitionToMulticopterRequest(TransitionToMulticopterRequest&& from) noexcept : + TransitionToMulticopterRequest(nullptr, std::move(from)) + {} + inline TransitionToMulticopterRequest& operator=(const TransitionToMulticopterRequest& from) + { + CopyFrom(from); + return *this; + } + inline TransitionToMulticopterRequest& operator=(TransitionToMulticopterRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const TransitionToMulticopterRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const TransitionToMulticopterRequest* internal_default_instance() + { + return reinterpret_cast( + &_TransitionToMulticopterRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 30; + friend void swap(TransitionToMulticopterRequest& a, TransitionToMulticopterRequest& b) + { + a.Swap(&b); + } + inline void Swap(TransitionToMulticopterRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TransitionToMulticopterRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } -// =================================================================== + // implements Message ---------------------------------------------- + TransitionToMulticopterRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + TransitionToMulticopterRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const TransitionToMulticopterRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const TransitionToMulticopterRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- +public: + bool IsInitialized() const { return true; } -// ArmRequest +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.TransitionToMulticopterRequest"; + } +protected: + explicit TransitionToMulticopterRequest(::google::protobuf::Arena* arena); + TransitionToMulticopterRequest( + ::google::protobuf::Arena* arena, const TransitionToMulticopterRequest& from); + TransitionToMulticopterRequest( + ::google::protobuf::Arena* arena, TransitionToMulticopterRequest&& from) noexcept : + TransitionToMulticopterRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToMulticopterRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const TransitionToMulticopterRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; // ------------------------------------------------------------------- -// ArmResponse +class TransitionToFixedwingRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToFixedwingRequest) */ { +public: + inline TransitionToFixedwingRequest() : TransitionToFixedwingRequest(nullptr) {} -// .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool ArmResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void ArmResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& ArmResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& ArmResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.ArmResponse.action_result) - return _internal_action_result(); -} -inline void ArmResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.ArmResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* ArmResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* ArmResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ArmResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* ArmResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* ArmResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.ArmResponse.action_result) - return _msg; -} -inline void ArmResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TransitionToFixedwingRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TransitionToFixedwingRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + TransitionToFixedwingRequest(::google::protobuf::internal::ConstantInitialized); + + inline TransitionToFixedwingRequest(const TransitionToFixedwingRequest& from) : + TransitionToFixedwingRequest(nullptr, from) + {} + inline TransitionToFixedwingRequest(TransitionToFixedwingRequest&& from) noexcept : + TransitionToFixedwingRequest(nullptr, std::move(from)) + {} + inline TransitionToFixedwingRequest& operator=(const TransitionToFixedwingRequest& from) + { + CopyFrom(from); + return *this; + } + inline TransitionToFixedwingRequest& operator=(TransitionToFixedwingRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ArmResponse.action_result) -} + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } -// ------------------------------------------------------------------- + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const TransitionToFixedwingRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const TransitionToFixedwingRequest* internal_default_instance() + { + return reinterpret_cast( + &_TransitionToFixedwingRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 28; + friend void swap(TransitionToFixedwingRequest& a, TransitionToFixedwingRequest& b) + { + a.Swap(&b); + } + inline void Swap(TransitionToFixedwingRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TransitionToFixedwingRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } -// ArmForceRequest + // implements Message ---------------------------------------------- -// ------------------------------------------------------------------- + TransitionToFixedwingRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + TransitionToFixedwingRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const TransitionToFixedwingRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const TransitionToFixedwingRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } -// ArmForceResponse +public: + bool IsInitialized() const { return true; } -// .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool ArmForceResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void ArmForceResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& ArmForceResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& ArmForceResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.ArmForceResponse.action_result) - return _internal_action_result(); -} -inline void ArmForceResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.ArmForceResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* ArmForceResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* ArmForceResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ArmForceResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* ArmForceResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* ArmForceResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.ArmForceResponse.action_result) - return _msg; -} -inline void ArmForceResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.TransitionToFixedwingRequest"; } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ArmForceResponse.action_result) -} +protected: + explicit TransitionToFixedwingRequest(::google::protobuf::Arena* arena); + TransitionToFixedwingRequest( + ::google::protobuf::Arena* arena, const TransitionToFixedwingRequest& from); + TransitionToFixedwingRequest( + ::google::protobuf::Arena* arena, TransitionToFixedwingRequest&& from) noexcept : + TransitionToFixedwingRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToFixedwingRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const TransitionToFixedwingRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; // ------------------------------------------------------------------- -// DisarmRequest - -// ------------------------------------------------------------------- +class TerminateRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TerminateRequest) */ { +public: + inline TerminateRequest() : TerminateRequest(nullptr) {} -// DisarmResponse +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TerminateRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TerminateRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR TerminateRequest(::google::protobuf::internal::ConstantInitialized); + + inline TerminateRequest(const TerminateRequest& from) : TerminateRequest(nullptr, from) {} + inline TerminateRequest(TerminateRequest&& from) noexcept : + TerminateRequest(nullptr, std::move(from)) + {} + inline TerminateRequest& operator=(const TerminateRequest& from) + { + CopyFrom(from); + return *this; + } + inline TerminateRequest& operator=(TerminateRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } -// .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool DisarmResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void DisarmResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& DisarmResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& DisarmResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DisarmResponse.action_result) - return _internal_action_result(); -} -inline void DisarmResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.DisarmResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.DisarmResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.DisarmResponse.action_result) - return _msg; -} -inline void DisarmResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.DisarmResponse.action_result) -} + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const TerminateRequest& default_instance() { return *internal_default_instance(); } + static inline const TerminateRequest* internal_default_instance() + { + return reinterpret_cast(&_TerminateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 14; + friend void swap(TerminateRequest& a, TerminateRequest& b) { a.Swap(&b); } + inline void Swap(TerminateRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TerminateRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } -// ------------------------------------------------------------------- + // implements Message ---------------------------------------------- -// TakeoffRequest + TerminateRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct( + arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const TerminateRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const TerminateRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TerminateRequest"; } + +protected: + explicit TerminateRequest(::google::protobuf::Arena* arena); + TerminateRequest(::google::protobuf::Arena* arena, const TerminateRequest& from); + TerminateRequest(::google::protobuf::Arena* arena, TerminateRequest&& from) noexcept : + TerminateRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TerminateRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const TerminateRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; // ------------------------------------------------------------------- -// TakeoffResponse +class TakeoffRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TakeoffRequest) */ { +public: + inline TakeoffRequest() : TakeoffRequest(nullptr) {} -// .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool TakeoffResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void TakeoffResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& TakeoffResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& TakeoffResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.TakeoffResponse.action_result) - return _internal_action_result(); -} -inline void TakeoffResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.TakeoffResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TakeoffResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.TakeoffResponse.action_result) - return _msg; -} -inline void TakeoffResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TakeoffRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TakeoffRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR TakeoffRequest(::google::protobuf::internal::ConstantInitialized); + + inline TakeoffRequest(const TakeoffRequest& from) : TakeoffRequest(nullptr, from) {} + inline TakeoffRequest(TakeoffRequest&& from) noexcept : TakeoffRequest(nullptr, std::move(from)) + {} + inline TakeoffRequest& operator=(const TakeoffRequest& from) + { + CopyFrom(from); + return *this; + } + inline TakeoffRequest& operator=(TakeoffRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TakeoffResponse.action_result) -} - -// ------------------------------------------------------------------- -// LandRequest + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } -// ------------------------------------------------------------------- + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const TakeoffRequest& default_instance() { return *internal_default_instance(); } + static inline const TakeoffRequest* internal_default_instance() + { + return reinterpret_cast(&_TakeoffRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 6; + friend void swap(TakeoffRequest& a, TakeoffRequest& b) { a.Swap(&b); } + inline void Swap(TakeoffRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TakeoffRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } -// LandResponse + // implements Message ---------------------------------------------- -// .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool LandResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void LandResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& LandResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& LandResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.LandResponse.action_result) - return _internal_action_result(); -} -inline void LandResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.LandResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* LandResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* LandResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.LandResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* LandResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* LandResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.LandResponse.action_result) - return _msg; -} -inline void LandResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + TakeoffRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct( + arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const TakeoffRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const TakeoffRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.LandResponse.action_result) -} +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TakeoffRequest"; } + +protected: + explicit TakeoffRequest(::google::protobuf::Arena* arena); + TakeoffRequest(::google::protobuf::Arena* arena, const TakeoffRequest& from); + TakeoffRequest(::google::protobuf::Arena* arena, TakeoffRequest&& from) noexcept : + TakeoffRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TakeoffRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const TakeoffRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; // ------------------------------------------------------------------- -// RebootRequest - -// ------------------------------------------------------------------- +class ShutdownRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ShutdownRequest) */ { +public: + inline ShutdownRequest() : ShutdownRequest(nullptr) {} -// RebootResponse +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ShutdownRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ShutdownRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ShutdownRequest(::google::protobuf::internal::ConstantInitialized); + + inline ShutdownRequest(const ShutdownRequest& from) : ShutdownRequest(nullptr, from) {} + inline ShutdownRequest(ShutdownRequest&& from) noexcept : + ShutdownRequest(nullptr, std::move(from)) + {} + inline ShutdownRequest& operator=(const ShutdownRequest& from) + { + CopyFrom(from); + return *this; + } + inline ShutdownRequest& operator=(ShutdownRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } -// .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool RebootResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void RebootResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& RebootResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& RebootResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.RebootResponse.action_result) - return _internal_action_result(); -} -inline void RebootResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.RebootResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* RebootResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* RebootResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.RebootResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* RebootResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* RebootResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.RebootResponse.action_result) - return _msg; -} -inline void RebootResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.RebootResponse.action_result) -} + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ShutdownRequest& default_instance() { return *internal_default_instance(); } + static inline const ShutdownRequest* internal_default_instance() + { + return reinterpret_cast(&_ShutdownRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 12; + friend void swap(ShutdownRequest& a, ShutdownRequest& b) { a.Swap(&b); } + inline void Swap(ShutdownRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ShutdownRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } -// ------------------------------------------------------------------- + // implements Message ---------------------------------------------- -// ShutdownRequest + ShutdownRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct( + arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ShutdownRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ShutdownRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ShutdownRequest"; } + +protected: + explicit ShutdownRequest(::google::protobuf::Arena* arena); + ShutdownRequest(::google::protobuf::Arena* arena, const ShutdownRequest& from); + ShutdownRequest(::google::protobuf::Arena* arena, ShutdownRequest&& from) noexcept : + ShutdownRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ShutdownRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ShutdownRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; // ------------------------------------------------------------------- -// ShutdownResponse +class SetTakeoffAltitudeRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetTakeoffAltitudeRequest) */ { +public: + inline SetTakeoffAltitudeRequest() : SetTakeoffAltitudeRequest(nullptr) {} + ~SetTakeoffAltitudeRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetTakeoffAltitudeRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetTakeoffAltitudeRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetTakeoffAltitudeRequest(::google::protobuf::internal::ConstantInitialized); + + inline SetTakeoffAltitudeRequest(const SetTakeoffAltitudeRequest& from) : + SetTakeoffAltitudeRequest(nullptr, from) + {} + inline SetTakeoffAltitudeRequest(SetTakeoffAltitudeRequest&& from) noexcept : + SetTakeoffAltitudeRequest(nullptr, std::move(from)) + {} + inline SetTakeoffAltitudeRequest& operator=(const SetTakeoffAltitudeRequest& from) + { + CopyFrom(from); + return *this; + } + inline SetTakeoffAltitudeRequest& operator=(SetTakeoffAltitudeRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } -// .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool ShutdownResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void ShutdownResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& ShutdownResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& ShutdownResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.ShutdownResponse.action_result) - return _internal_action_result(); -} -inline void ShutdownResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.ShutdownResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ShutdownResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.ShutdownResponse.action_result) - return _msg; -} -inline void ShutdownResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetTakeoffAltitudeRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const SetTakeoffAltitudeRequest* internal_default_instance() + { + return reinterpret_cast( + &_SetTakeoffAltitudeRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 34; + friend void swap(SetTakeoffAltitudeRequest& a, SetTakeoffAltitudeRequest& b) { a.Swap(&b); } + inline void Swap(SetTakeoffAltitudeRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetTakeoffAltitudeRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetTakeoffAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetTakeoffAltitudeRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetTakeoffAltitudeRequest& from) + { + SetTakeoffAltitudeRequest::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetTakeoffAltitudeRequest* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.SetTakeoffAltitudeRequest"; + } + +protected: + explicit SetTakeoffAltitudeRequest(::google::protobuf::Arena* arena); + SetTakeoffAltitudeRequest( + ::google::protobuf::Arena* arena, const SetTakeoffAltitudeRequest& from); + SetTakeoffAltitudeRequest( + ::google::protobuf::Arena* arena, SetTakeoffAltitudeRequest&& from) noexcept : + SetTakeoffAltitudeRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kAltitudeFieldNumber = 1, + }; + // float altitude = 1; + void clear_altitude(); + float altitude() const; + void set_altitude(float value); + +private: + float _internal_altitude() const; + void _internal_set_altitude(float value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetTakeoffAltitudeRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetTakeoffAltitudeRequest& from_msg); + float altitude_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class SetReturnToLaunchAltitudeRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) */ +{ +public: + inline SetReturnToLaunchAltitudeRequest() : SetReturnToLaunchAltitudeRequest(nullptr) {} + ~SetReturnToLaunchAltitudeRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetReturnToLaunchAltitudeRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetReturnToLaunchAltitudeRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetReturnToLaunchAltitudeRequest(::google::protobuf::internal::ConstantInitialized); + + inline SetReturnToLaunchAltitudeRequest(const SetReturnToLaunchAltitudeRequest& from) : + SetReturnToLaunchAltitudeRequest(nullptr, from) + {} + inline SetReturnToLaunchAltitudeRequest(SetReturnToLaunchAltitudeRequest&& from) noexcept : + SetReturnToLaunchAltitudeRequest(nullptr, std::move(from)) + {} + inline SetReturnToLaunchAltitudeRequest& operator=(const SetReturnToLaunchAltitudeRequest& from) + { + CopyFrom(from); + return *this; + } + inline SetReturnToLaunchAltitudeRequest& + operator=(SetReturnToLaunchAltitudeRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetReturnToLaunchAltitudeRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const SetReturnToLaunchAltitudeRequest* internal_default_instance() + { + return reinterpret_cast( + &_SetReturnToLaunchAltitudeRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 38; + friend void swap(SetReturnToLaunchAltitudeRequest& a, SetReturnToLaunchAltitudeRequest& b) + { + a.Swap(&b); + } + inline void Swap(SetReturnToLaunchAltitudeRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetReturnToLaunchAltitudeRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetReturnToLaunchAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct( + arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetReturnToLaunchAltitudeRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetReturnToLaunchAltitudeRequest& from) + { + SetReturnToLaunchAltitudeRequest::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetReturnToLaunchAltitudeRequest* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest"; + } + +protected: + explicit SetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena); + SetReturnToLaunchAltitudeRequest( + ::google::protobuf::Arena* arena, const SetReturnToLaunchAltitudeRequest& from); + SetReturnToLaunchAltitudeRequest( + ::google::protobuf::Arena* arena, SetReturnToLaunchAltitudeRequest&& from) noexcept : + SetReturnToLaunchAltitudeRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kRelativeAltitudeMFieldNumber = 1, + }; + // float relative_altitude_m = 1; + void clear_relative_altitude_m(); + float relative_altitude_m() const; + void set_relative_altitude_m(float value); + +private: + float _internal_relative_altitude_m() const; + void _internal_set_relative_altitude_m(float value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetReturnToLaunchAltitudeRequest& from_msg); + float relative_altitude_m_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class SetCurrentSpeedRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedRequest) */ { +public: + inline SetCurrentSpeedRequest() : SetCurrentSpeedRequest(nullptr) {} + ~SetCurrentSpeedRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetCurrentSpeedRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetCurrentSpeedRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetCurrentSpeedRequest(::google::protobuf::internal::ConstantInitialized); + + inline SetCurrentSpeedRequest(const SetCurrentSpeedRequest& from) : + SetCurrentSpeedRequest(nullptr, from) + {} + inline SetCurrentSpeedRequest(SetCurrentSpeedRequest&& from) noexcept : + SetCurrentSpeedRequest(nullptr, std::move(from)) + {} + inline SetCurrentSpeedRequest& operator=(const SetCurrentSpeedRequest& from) + { + CopyFrom(from); + return *this; + } + inline SetCurrentSpeedRequest& operator=(SetCurrentSpeedRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetCurrentSpeedRequest& default_instance() { return *internal_default_instance(); } + static inline const SetCurrentSpeedRequest* internal_default_instance() + { + return reinterpret_cast( + &_SetCurrentSpeedRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 40; + friend void swap(SetCurrentSpeedRequest& a, SetCurrentSpeedRequest& b) { a.Swap(&b); } + inline void Swap(SetCurrentSpeedRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetCurrentSpeedRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetCurrentSpeedRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetCurrentSpeedRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetCurrentSpeedRequest& from) + { + SetCurrentSpeedRequest::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetCurrentSpeedRequest* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.SetCurrentSpeedRequest"; + } + +protected: + explicit SetCurrentSpeedRequest(::google::protobuf::Arena* arena); + SetCurrentSpeedRequest(::google::protobuf::Arena* arena, const SetCurrentSpeedRequest& from); + SetCurrentSpeedRequest(::google::protobuf::Arena* arena, SetCurrentSpeedRequest&& from) noexcept + : + SetCurrentSpeedRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSpeedMSFieldNumber = 1, + }; + // float speed_m_s = 1; + void clear_speed_m_s(); + float speed_m_s() const; + void set_speed_m_s(float value); + +private: + float _internal_speed_m_s() const; + void _internal_set_speed_m_s(float value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetCurrentSpeedRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetCurrentSpeedRequest& from_msg); + float speed_m_s_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class SetActuatorRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetActuatorRequest) */ { +public: + inline SetActuatorRequest() : SetActuatorRequest(nullptr) {} + ~SetActuatorRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetActuatorRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetActuatorRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetActuatorRequest(::google::protobuf::internal::ConstantInitialized); + + inline SetActuatorRequest(const SetActuatorRequest& from) : SetActuatorRequest(nullptr, from) {} + inline SetActuatorRequest(SetActuatorRequest&& from) noexcept : + SetActuatorRequest(nullptr, std::move(from)) + {} + inline SetActuatorRequest& operator=(const SetActuatorRequest& from) + { + CopyFrom(from); + return *this; + } + inline SetActuatorRequest& operator=(SetActuatorRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetActuatorRequest& default_instance() { return *internal_default_instance(); } + static inline const SetActuatorRequest* internal_default_instance() + { + return reinterpret_cast(&_SetActuatorRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 26; + friend void swap(SetActuatorRequest& a, SetActuatorRequest& b) { a.Swap(&b); } + inline void Swap(SetActuatorRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetActuatorRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetActuatorRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetActuatorRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetActuatorRequest& from) { SetActuatorRequest::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetActuatorRequest* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetActuatorRequest"; } + +protected: + explicit SetActuatorRequest(::google::protobuf::Arena* arena); + SetActuatorRequest(::google::protobuf::Arena* arena, const SetActuatorRequest& from); + SetActuatorRequest(::google::protobuf::Arena* arena, SetActuatorRequest&& from) noexcept : + SetActuatorRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kIndexFieldNumber = 1, + kValueFieldNumber = 2, + }; + // int32 index = 1; + void clear_index(); + ::int32_t index() const; + void set_index(::int32_t value); + +private: + ::int32_t _internal_index() const; + void _internal_set_index(::int32_t value); + +public: + // float value = 2; + void clear_value(); + float value() const; + void set_value(float value); + +private: + float _internal_value() const; + void _internal_set_value(float value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetActuatorRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetActuatorRequest& from_msg); + ::int32_t index_; + float value_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class ReturnToLaunchRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ReturnToLaunchRequest) */ { +public: + inline ReturnToLaunchRequest() : ReturnToLaunchRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ReturnToLaunchRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ReturnToLaunchRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + ReturnToLaunchRequest(::google::protobuf::internal::ConstantInitialized); + + inline ReturnToLaunchRequest(const ReturnToLaunchRequest& from) : + ReturnToLaunchRequest(nullptr, from) + {} + inline ReturnToLaunchRequest(ReturnToLaunchRequest&& from) noexcept : + ReturnToLaunchRequest(nullptr, std::move(from)) + {} + inline ReturnToLaunchRequest& operator=(const ReturnToLaunchRequest& from) + { + CopyFrom(from); + return *this; + } + inline ReturnToLaunchRequest& operator=(ReturnToLaunchRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ReturnToLaunchRequest& default_instance() { return *internal_default_instance(); } + static inline const ReturnToLaunchRequest* internal_default_instance() + { + return reinterpret_cast( + &_ReturnToLaunchRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 18; + friend void swap(ReturnToLaunchRequest& a, ReturnToLaunchRequest& b) { a.Swap(&b); } + inline void Swap(ReturnToLaunchRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ReturnToLaunchRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ReturnToLaunchRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + ReturnToLaunchRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ReturnToLaunchRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ReturnToLaunchRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.ReturnToLaunchRequest"; + } + +protected: + explicit ReturnToLaunchRequest(::google::protobuf::Arena* arena); + ReturnToLaunchRequest(::google::protobuf::Arena* arena, const ReturnToLaunchRequest& from); + ReturnToLaunchRequest(::google::protobuf::Arena* arena, ReturnToLaunchRequest&& from) noexcept : + ReturnToLaunchRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ReturnToLaunchRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ReturnToLaunchRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class RebootRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.RebootRequest) */ { +public: + inline RebootRequest() : RebootRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(RebootRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(RebootRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR RebootRequest(::google::protobuf::internal::ConstantInitialized); + + inline RebootRequest(const RebootRequest& from) : RebootRequest(nullptr, from) {} + inline RebootRequest(RebootRequest&& from) noexcept : RebootRequest(nullptr, std::move(from)) {} + inline RebootRequest& operator=(const RebootRequest& from) + { + CopyFrom(from); + return *this; + } + inline RebootRequest& operator=(RebootRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const RebootRequest& default_instance() { return *internal_default_instance(); } + static inline const RebootRequest* internal_default_instance() + { + return reinterpret_cast(&_RebootRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 10; + friend void swap(RebootRequest& a, RebootRequest& b) { a.Swap(&b); } + inline void Swap(RebootRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RebootRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RebootRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const RebootRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const RebootRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.RebootRequest"; } + +protected: + explicit RebootRequest(::google::protobuf::Arena* arena); + RebootRequest(::google::protobuf::Arena* arena, const RebootRequest& from); + RebootRequest(::google::protobuf::Arena* arena, RebootRequest&& from) noexcept : + RebootRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.RebootRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const RebootRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class LandRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.LandRequest) */ { +public: + inline LandRequest() : LandRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(LandRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(LandRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR LandRequest(::google::protobuf::internal::ConstantInitialized); + + inline LandRequest(const LandRequest& from) : LandRequest(nullptr, from) {} + inline LandRequest(LandRequest&& from) noexcept : LandRequest(nullptr, std::move(from)) {} + inline LandRequest& operator=(const LandRequest& from) + { + CopyFrom(from); + return *this; + } + inline LandRequest& operator=(LandRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const LandRequest& default_instance() { return *internal_default_instance(); } + static inline const LandRequest* internal_default_instance() + { + return reinterpret_cast(&_LandRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 8; + friend void swap(LandRequest& a, LandRequest& b) { a.Swap(&b); } + inline void Swap(LandRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LandRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LandRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const LandRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const LandRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.LandRequest"; } + +protected: + explicit LandRequest(::google::protobuf::Arena* arena); + LandRequest(::google::protobuf::Arena* arena, const LandRequest& from); + LandRequest(::google::protobuf::Arena* arena, LandRequest&& from) noexcept : LandRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.LandRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const LandRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class KillRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.KillRequest) */ { +public: + inline KillRequest() : KillRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(KillRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(KillRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR KillRequest(::google::protobuf::internal::ConstantInitialized); + + inline KillRequest(const KillRequest& from) : KillRequest(nullptr, from) {} + inline KillRequest(KillRequest&& from) noexcept : KillRequest(nullptr, std::move(from)) {} + inline KillRequest& operator=(const KillRequest& from) + { + CopyFrom(from); + return *this; + } + inline KillRequest& operator=(KillRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const KillRequest& default_instance() { return *internal_default_instance(); } + static inline const KillRequest* internal_default_instance() + { + return reinterpret_cast(&_KillRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 16; + friend void swap(KillRequest& a, KillRequest& b) { a.Swap(&b); } + inline void Swap(KillRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(KillRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + KillRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const KillRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const KillRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.KillRequest"; } + +protected: + explicit KillRequest(::google::protobuf::Arena* arena); + KillRequest(::google::protobuf::Arena* arena, const KillRequest& from); + KillRequest(::google::protobuf::Arena* arena, KillRequest&& from) noexcept : KillRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.KillRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const KillRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class HoldRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.HoldRequest) */ { +public: + inline HoldRequest() : HoldRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(HoldRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(HoldRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR HoldRequest(::google::protobuf::internal::ConstantInitialized); + + inline HoldRequest(const HoldRequest& from) : HoldRequest(nullptr, from) {} + inline HoldRequest(HoldRequest&& from) noexcept : HoldRequest(nullptr, std::move(from)) {} + inline HoldRequest& operator=(const HoldRequest& from) + { + CopyFrom(from); + return *this; + } + inline HoldRequest& operator=(HoldRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const HoldRequest& default_instance() { return *internal_default_instance(); } + static inline const HoldRequest* internal_default_instance() + { + return reinterpret_cast(&_HoldRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 24; + friend void swap(HoldRequest& a, HoldRequest& b) { a.Swap(&b); } + inline void Swap(HoldRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HoldRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + HoldRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const HoldRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const HoldRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.HoldRequest"; } + +protected: + explicit HoldRequest(::google::protobuf::Arena* arena); + HoldRequest(::google::protobuf::Arena* arena, const HoldRequest& from); + HoldRequest(::google::protobuf::Arena* arena, HoldRequest&& from) noexcept : HoldRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.HoldRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const HoldRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class GotoLocationRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GotoLocationRequest) */ { +public: + inline GotoLocationRequest() : GotoLocationRequest(nullptr) {} + ~GotoLocationRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GotoLocationRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GotoLocationRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + GotoLocationRequest(::google::protobuf::internal::ConstantInitialized); + + inline GotoLocationRequest(const GotoLocationRequest& from) : GotoLocationRequest(nullptr, from) + {} + inline GotoLocationRequest(GotoLocationRequest&& from) noexcept : + GotoLocationRequest(nullptr, std::move(from)) + {} + inline GotoLocationRequest& operator=(const GotoLocationRequest& from) + { + CopyFrom(from); + return *this; + } + inline GotoLocationRequest& operator=(GotoLocationRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const GotoLocationRequest& default_instance() { return *internal_default_instance(); } + static inline const GotoLocationRequest* internal_default_instance() + { + return reinterpret_cast( + &_GotoLocationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 20; + friend void swap(GotoLocationRequest& a, GotoLocationRequest& b) { a.Swap(&b); } + inline void Swap(GotoLocationRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GotoLocationRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GotoLocationRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GotoLocationRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GotoLocationRequest& from) { GotoLocationRequest::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GotoLocationRequest* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.GotoLocationRequest"; } + +protected: + explicit GotoLocationRequest(::google::protobuf::Arena* arena); + GotoLocationRequest(::google::protobuf::Arena* arena, const GotoLocationRequest& from); + GotoLocationRequest(::google::protobuf::Arena* arena, GotoLocationRequest&& from) noexcept : + GotoLocationRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kLatitudeDegFieldNumber = 1, + kLongitudeDegFieldNumber = 2, + kAbsoluteAltitudeMFieldNumber = 3, + kYawDegFieldNumber = 4, + }; + // double latitude_deg = 1; + void clear_latitude_deg(); + double latitude_deg() const; + void set_latitude_deg(double value); + +private: + double _internal_latitude_deg() const; + void _internal_set_latitude_deg(double value); + +public: + // double longitude_deg = 2; + void clear_longitude_deg(); + double longitude_deg() const; + void set_longitude_deg(double value); + +private: + double _internal_longitude_deg() const; + void _internal_set_longitude_deg(double value); + +public: + // float absolute_altitude_m = 3; + void clear_absolute_altitude_m(); + float absolute_altitude_m() const; + void set_absolute_altitude_m(float value); + +private: + float _internal_absolute_altitude_m() const; + void _internal_set_absolute_altitude_m(float value); + +public: + // float yaw_deg = 4; + void clear_yaw_deg(); + float yaw_deg() const; + void set_yaw_deg(float value); + +private: + float _internal_yaw_deg() const; + void _internal_set_yaw_deg(float value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GotoLocationRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const GotoLocationRequest& from_msg); + double latitude_deg_; + double longitude_deg_; + float absolute_altitude_m_; + float yaw_deg_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class GetTakeoffAltitudeRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetTakeoffAltitudeRequest) */ { +public: + inline GetTakeoffAltitudeRequest() : GetTakeoffAltitudeRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetTakeoffAltitudeRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetTakeoffAltitudeRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + GetTakeoffAltitudeRequest(::google::protobuf::internal::ConstantInitialized); + + inline GetTakeoffAltitudeRequest(const GetTakeoffAltitudeRequest& from) : + GetTakeoffAltitudeRequest(nullptr, from) + {} + inline GetTakeoffAltitudeRequest(GetTakeoffAltitudeRequest&& from) noexcept : + GetTakeoffAltitudeRequest(nullptr, std::move(from)) + {} + inline GetTakeoffAltitudeRequest& operator=(const GetTakeoffAltitudeRequest& from) + { + CopyFrom(from); + return *this; + } + inline GetTakeoffAltitudeRequest& operator=(GetTakeoffAltitudeRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const GetTakeoffAltitudeRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const GetTakeoffAltitudeRequest* internal_default_instance() + { + return reinterpret_cast( + &_GetTakeoffAltitudeRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 32; + friend void swap(GetTakeoffAltitudeRequest& a, GetTakeoffAltitudeRequest& b) { a.Swap(&b); } + inline void Swap(GetTakeoffAltitudeRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetTakeoffAltitudeRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetTakeoffAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + GetTakeoffAltitudeRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GetTakeoffAltitudeRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GetTakeoffAltitudeRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.GetTakeoffAltitudeRequest"; + } + +protected: + explicit GetTakeoffAltitudeRequest(::google::protobuf::Arena* arena); + GetTakeoffAltitudeRequest( + ::google::protobuf::Arena* arena, const GetTakeoffAltitudeRequest& from); + GetTakeoffAltitudeRequest( + ::google::protobuf::Arena* arena, GetTakeoffAltitudeRequest&& from) noexcept : + GetTakeoffAltitudeRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetTakeoffAltitudeRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const GetTakeoffAltitudeRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class GetReturnToLaunchAltitudeRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) */ +{ +public: + inline GetReturnToLaunchAltitudeRequest() : GetReturnToLaunchAltitudeRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetReturnToLaunchAltitudeRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetReturnToLaunchAltitudeRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + GetReturnToLaunchAltitudeRequest(::google::protobuf::internal::ConstantInitialized); + + inline GetReturnToLaunchAltitudeRequest(const GetReturnToLaunchAltitudeRequest& from) : + GetReturnToLaunchAltitudeRequest(nullptr, from) + {} + inline GetReturnToLaunchAltitudeRequest(GetReturnToLaunchAltitudeRequest&& from) noexcept : + GetReturnToLaunchAltitudeRequest(nullptr, std::move(from)) + {} + inline GetReturnToLaunchAltitudeRequest& operator=(const GetReturnToLaunchAltitudeRequest& from) + { + CopyFrom(from); + return *this; + } + inline GetReturnToLaunchAltitudeRequest& + operator=(GetReturnToLaunchAltitudeRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const GetReturnToLaunchAltitudeRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const GetReturnToLaunchAltitudeRequest* internal_default_instance() + { + return reinterpret_cast( + &_GetReturnToLaunchAltitudeRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 36; + friend void swap(GetReturnToLaunchAltitudeRequest& a, GetReturnToLaunchAltitudeRequest& b) + { + a.Swap(&b); + } + inline void Swap(GetReturnToLaunchAltitudeRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetReturnToLaunchAltitudeRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetReturnToLaunchAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + GetReturnToLaunchAltitudeRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GetReturnToLaunchAltitudeRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GetReturnToLaunchAltitudeRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest"; + } + +protected: + explicit GetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena); + GetReturnToLaunchAltitudeRequest( + ::google::protobuf::Arena* arena, const GetReturnToLaunchAltitudeRequest& from); + GetReturnToLaunchAltitudeRequest( + ::google::protobuf::Arena* arena, GetReturnToLaunchAltitudeRequest&& from) noexcept : + GetReturnToLaunchAltitudeRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const GetReturnToLaunchAltitudeRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class DoOrbitRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DoOrbitRequest) */ { +public: + inline DoOrbitRequest() : DoOrbitRequest(nullptr) {} + ~DoOrbitRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DoOrbitRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DoOrbitRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR DoOrbitRequest(::google::protobuf::internal::ConstantInitialized); + + inline DoOrbitRequest(const DoOrbitRequest& from) : DoOrbitRequest(nullptr, from) {} + inline DoOrbitRequest(DoOrbitRequest&& from) noexcept : DoOrbitRequest(nullptr, std::move(from)) + {} + inline DoOrbitRequest& operator=(const DoOrbitRequest& from) + { + CopyFrom(from); + return *this; + } + inline DoOrbitRequest& operator=(DoOrbitRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const DoOrbitRequest& default_instance() { return *internal_default_instance(); } + static inline const DoOrbitRequest* internal_default_instance() + { + return reinterpret_cast(&_DoOrbitRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 22; + friend void swap(DoOrbitRequest& a, DoOrbitRequest& b) { a.Swap(&b); } + inline void Swap(DoOrbitRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DoOrbitRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DoOrbitRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const DoOrbitRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const DoOrbitRequest& from) { DoOrbitRequest::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(DoOrbitRequest* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.DoOrbitRequest"; } + +protected: + explicit DoOrbitRequest(::google::protobuf::Arena* arena); + DoOrbitRequest(::google::protobuf::Arena* arena, const DoOrbitRequest& from); + DoOrbitRequest(::google::protobuf::Arena* arena, DoOrbitRequest&& from) noexcept : + DoOrbitRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kRadiusMFieldNumber = 1, + kVelocityMsFieldNumber = 2, + kLatitudeDegFieldNumber = 5, + kLongitudeDegFieldNumber = 6, + kAbsoluteAltitudeMFieldNumber = 7, + kYawBehaviorFieldNumber = 3, + }; + // float radius_m = 1; + void clear_radius_m(); + float radius_m() const; + void set_radius_m(float value); + +private: + float _internal_radius_m() const; + void _internal_set_radius_m(float value); + +public: + // float velocity_ms = 2; + void clear_velocity_ms(); + float velocity_ms() const; + void set_velocity_ms(float value); + +private: + float _internal_velocity_ms() const; + void _internal_set_velocity_ms(float value); + +public: + // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; + void clear_latitude_deg(); + double latitude_deg() const; + void set_latitude_deg(double value); + +private: + double _internal_latitude_deg() const; + void _internal_set_latitude_deg(double value); + +public: + // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; + void clear_longitude_deg(); + double longitude_deg() const; + void set_longitude_deg(double value); + +private: + double _internal_longitude_deg() const; + void _internal_set_longitude_deg(double value); + +public: + // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; + void clear_absolute_altitude_m(); + double absolute_altitude_m() const; + void set_absolute_altitude_m(double value); + +private: + double _internal_absolute_altitude_m() const; + void _internal_set_absolute_altitude_m(double value); + +public: + // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; + void clear_yaw_behavior(); + ::mavsdk::rpc::action::OrbitYawBehavior yaw_behavior() const; + void set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value); + +private: + ::mavsdk::rpc::action::OrbitYawBehavior _internal_yaw_behavior() const; + void _internal_set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DoOrbitRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 6, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const DoOrbitRequest& from_msg); + float radius_m_; + float velocity_ms_; + double latitude_deg_; + double longitude_deg_; + double absolute_altitude_m_; + int yaw_behavior_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class DisarmRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DisarmRequest) */ { +public: + inline DisarmRequest() : DisarmRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DisarmRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DisarmRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR DisarmRequest(::google::protobuf::internal::ConstantInitialized); + + inline DisarmRequest(const DisarmRequest& from) : DisarmRequest(nullptr, from) {} + inline DisarmRequest(DisarmRequest&& from) noexcept : DisarmRequest(nullptr, std::move(from)) {} + inline DisarmRequest& operator=(const DisarmRequest& from) + { + CopyFrom(from); + return *this; + } + inline DisarmRequest& operator=(DisarmRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const DisarmRequest& default_instance() { return *internal_default_instance(); } + static inline const DisarmRequest* internal_default_instance() + { + return reinterpret_cast(&_DisarmRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(DisarmRequest& a, DisarmRequest& b) { a.Swap(&b); } + inline void Swap(DisarmRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DisarmRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DisarmRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DisarmRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DisarmRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.DisarmRequest"; } + +protected: + explicit DisarmRequest(::google::protobuf::Arena* arena); + DisarmRequest(::google::protobuf::Arena* arena, const DisarmRequest& from); + DisarmRequest(::google::protobuf::Arena* arena, DisarmRequest&& from) noexcept : + DisarmRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DisarmRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const DisarmRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class ArmRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmRequest) */ { +public: + inline ArmRequest() : ArmRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ArmRequest(::google::protobuf::internal::ConstantInitialized); + + inline ArmRequest(const ArmRequest& from) : ArmRequest(nullptr, from) {} + inline ArmRequest(ArmRequest&& from) noexcept : ArmRequest(nullptr, std::move(from)) {} + inline ArmRequest& operator=(const ArmRequest& from) + { + CopyFrom(from); + return *this; + } + inline ArmRequest& operator=(ArmRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ArmRequest& default_instance() { return *internal_default_instance(); } + static inline const ArmRequest* internal_default_instance() + { + return reinterpret_cast(&_ArmRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(ArmRequest& a, ArmRequest& b) { a.Swap(&b); } + inline void Swap(ArmRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ArmRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ArmRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ArmRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ArmRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ArmRequest"; } + +protected: + explicit ArmRequest(::google::protobuf::Arena* arena); + ArmRequest(::google::protobuf::Arena* arena, const ArmRequest& from); + ArmRequest(::google::protobuf::Arena* arena, ArmRequest&& from) noexcept : ArmRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ArmRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class ArmForceRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmForceRequest) */ { +public: + inline ArmForceRequest() : ArmForceRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmForceRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmForceRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ArmForceRequest(::google::protobuf::internal::ConstantInitialized); + + inline ArmForceRequest(const ArmForceRequest& from) : ArmForceRequest(nullptr, from) {} + inline ArmForceRequest(ArmForceRequest&& from) noexcept : + ArmForceRequest(nullptr, std::move(from)) + {} + inline ArmForceRequest& operator=(const ArmForceRequest& from) + { + CopyFrom(from); + return *this; + } + inline ArmForceRequest& operator=(ArmForceRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ArmForceRequest& default_instance() { return *internal_default_instance(); } + static inline const ArmForceRequest* internal_default_instance() + { + return reinterpret_cast(&_ArmForceRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(ArmForceRequest& a, ArmForceRequest& b) { a.Swap(&b); } + inline void Swap(ArmForceRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ArmForceRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ArmForceRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct( + arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ArmForceRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ArmForceRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ArmForceRequest"; } + +protected: + explicit ArmForceRequest(::google::protobuf::Arena* arena); + ArmForceRequest(::google::protobuf::Arena* arena, const ArmForceRequest& from); + ArmForceRequest(::google::protobuf::Arena* arena, ArmForceRequest&& from) noexcept : + ArmForceRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmForceRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ArmForceRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class ActionResult final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ActionResult) */ { +public: + inline ActionResult() : ActionResult(nullptr) {} + ~ActionResult() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ActionResult* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ActionResult)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ActionResult(::google::protobuf::internal::ConstantInitialized); + + inline ActionResult(const ActionResult& from) : ActionResult(nullptr, from) {} + inline ActionResult(ActionResult&& from) noexcept : ActionResult(nullptr, std::move(from)) {} + inline ActionResult& operator=(const ActionResult& from) + { + CopyFrom(from); + return *this; + } + inline ActionResult& operator=(ActionResult&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ActionResult& default_instance() { return *internal_default_instance(); } + static inline const ActionResult* internal_default_instance() + { + return reinterpret_cast(&_ActionResult_default_instance_); + } + static constexpr int kIndexInFileMessages = 42; + friend void swap(ActionResult& a, ActionResult& b) { a.Swap(&b); } + inline void Swap(ActionResult* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ActionResult* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ActionResult* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ActionResult& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ActionResult& from) { ActionResult::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ActionResult* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ActionResult"; } + +protected: + explicit ActionResult(::google::protobuf::Arena* arena); + ActionResult(::google::protobuf::Arena* arena, const ActionResult& from); + ActionResult(::google::protobuf::Arena* arena, ActionResult&& from) noexcept : + ActionResult(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + using Result = ActionResult_Result; + static constexpr Result RESULT_UNKNOWN = ActionResult_Result_RESULT_UNKNOWN; + static constexpr Result RESULT_SUCCESS = ActionResult_Result_RESULT_SUCCESS; + static constexpr Result RESULT_NO_SYSTEM = ActionResult_Result_RESULT_NO_SYSTEM; + static constexpr Result RESULT_CONNECTION_ERROR = ActionResult_Result_RESULT_CONNECTION_ERROR; + static constexpr Result RESULT_BUSY = ActionResult_Result_RESULT_BUSY; + static constexpr Result RESULT_COMMAND_DENIED = ActionResult_Result_RESULT_COMMAND_DENIED; + static constexpr Result RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN = + ActionResult_Result_RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN; + static constexpr Result RESULT_COMMAND_DENIED_NOT_LANDED = + ActionResult_Result_RESULT_COMMAND_DENIED_NOT_LANDED; + static constexpr Result RESULT_TIMEOUT = ActionResult_Result_RESULT_TIMEOUT; + static constexpr Result RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN = + ActionResult_Result_RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN; + static constexpr Result RESULT_NO_VTOL_TRANSITION_SUPPORT = + ActionResult_Result_RESULT_NO_VTOL_TRANSITION_SUPPORT; + static constexpr Result RESULT_PARAMETER_ERROR = ActionResult_Result_RESULT_PARAMETER_ERROR; + static constexpr Result RESULT_UNSUPPORTED = ActionResult_Result_RESULT_UNSUPPORTED; + static constexpr Result RESULT_FAILED = ActionResult_Result_RESULT_FAILED; + static constexpr Result RESULT_INVALID_ARGUMENT = ActionResult_Result_RESULT_INVALID_ARGUMENT; + static inline bool Result_IsValid(int value) { return ActionResult_Result_IsValid(value); } + static constexpr Result Result_MIN = ActionResult_Result_Result_MIN; + static constexpr Result Result_MAX = ActionResult_Result_Result_MAX; + static constexpr int Result_ARRAYSIZE = ActionResult_Result_Result_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Result_descriptor() + { + return ActionResult_Result_descriptor(); + } + template static inline const std::string& Result_Name(T value) + { + return ActionResult_Result_Name(value); + } + static inline bool Result_Parse(absl::string_view name, Result* value) + { + return ActionResult_Result_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kResultStrFieldNumber = 2, + kResultFieldNumber = 1, + }; + // string result_str = 2; + void clear_result_str(); + const std::string& result_str() const; + template + void set_result_str(Arg_&& arg, Args_... args); + std::string* mutable_result_str(); + PROTOBUF_NODISCARD std::string* release_result_str(); + void set_allocated_result_str(std::string* value); + +private: + const std::string& _internal_result_str() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str(const std::string& value); + std::string* _internal_mutable_result_str(); + +public: + // .mavsdk.rpc.action.ActionResult.Result result = 1; + void clear_result(); + ::mavsdk::rpc::action::ActionResult_Result result() const; + void set_result(::mavsdk::rpc::action::ActionResult_Result value); + +private: + ::mavsdk::rpc::action::ActionResult_Result _internal_result() const; + void _internal_set_result(::mavsdk::rpc::action::ActionResult_Result value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ActionResult) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 49, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ActionResult& from_msg); + ::google::protobuf::internal::ArenaStringPtr result_str_; + int result_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class TransitionToMulticopterResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToMulticopterResponse) */ { +public: + inline TransitionToMulticopterResponse() : TransitionToMulticopterResponse(nullptr) {} + ~TransitionToMulticopterResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TransitionToMulticopterResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TransitionToMulticopterResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + TransitionToMulticopterResponse(::google::protobuf::internal::ConstantInitialized); + + inline TransitionToMulticopterResponse(const TransitionToMulticopterResponse& from) : + TransitionToMulticopterResponse(nullptr, from) + {} + inline TransitionToMulticopterResponse(TransitionToMulticopterResponse&& from) noexcept : + TransitionToMulticopterResponse(nullptr, std::move(from)) + {} + inline TransitionToMulticopterResponse& operator=(const TransitionToMulticopterResponse& from) + { + CopyFrom(from); + return *this; + } + inline TransitionToMulticopterResponse& + operator=(TransitionToMulticopterResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const TransitionToMulticopterResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const TransitionToMulticopterResponse* internal_default_instance() + { + return reinterpret_cast( + &_TransitionToMulticopterResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 31; + friend void swap(TransitionToMulticopterResponse& a, TransitionToMulticopterResponse& b) + { + a.Swap(&b); + } + inline void Swap(TransitionToMulticopterResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TransitionToMulticopterResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TransitionToMulticopterResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct( + arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const TransitionToMulticopterResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const TransitionToMulticopterResponse& from) + { + TransitionToMulticopterResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(TransitionToMulticopterResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.TransitionToMulticopterResponse"; + } + +protected: + explicit TransitionToMulticopterResponse(::google::protobuf::Arena* arena); + TransitionToMulticopterResponse( + ::google::protobuf::Arena* arena, const TransitionToMulticopterResponse& from); + TransitionToMulticopterResponse( + ::google::protobuf::Arena* arena, TransitionToMulticopterResponse&& from) noexcept : + TransitionToMulticopterResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToMulticopterResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const TransitionToMulticopterResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class TransitionToFixedwingResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToFixedwingResponse) */ { +public: + inline TransitionToFixedwingResponse() : TransitionToFixedwingResponse(nullptr) {} + ~TransitionToFixedwingResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TransitionToFixedwingResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TransitionToFixedwingResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + TransitionToFixedwingResponse(::google::protobuf::internal::ConstantInitialized); + + inline TransitionToFixedwingResponse(const TransitionToFixedwingResponse& from) : + TransitionToFixedwingResponse(nullptr, from) + {} + inline TransitionToFixedwingResponse(TransitionToFixedwingResponse&& from) noexcept : + TransitionToFixedwingResponse(nullptr, std::move(from)) + {} + inline TransitionToFixedwingResponse& operator=(const TransitionToFixedwingResponse& from) + { + CopyFrom(from); + return *this; + } + inline TransitionToFixedwingResponse& operator=(TransitionToFixedwingResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const TransitionToFixedwingResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const TransitionToFixedwingResponse* internal_default_instance() + { + return reinterpret_cast( + &_TransitionToFixedwingResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 29; + friend void swap(TransitionToFixedwingResponse& a, TransitionToFixedwingResponse& b) + { + a.Swap(&b); + } + inline void Swap(TransitionToFixedwingResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TransitionToFixedwingResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TransitionToFixedwingResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const TransitionToFixedwingResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const TransitionToFixedwingResponse& from) + { + TransitionToFixedwingResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(TransitionToFixedwingResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.TransitionToFixedwingResponse"; + } + +protected: + explicit TransitionToFixedwingResponse(::google::protobuf::Arena* arena); + TransitionToFixedwingResponse( + ::google::protobuf::Arena* arena, const TransitionToFixedwingResponse& from); + TransitionToFixedwingResponse( + ::google::protobuf::Arena* arena, TransitionToFixedwingResponse&& from) noexcept : + TransitionToFixedwingResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToFixedwingResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const TransitionToFixedwingResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class TerminateResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TerminateResponse) */ { +public: + inline TerminateResponse() : TerminateResponse(nullptr) {} + ~TerminateResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TerminateResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TerminateResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + TerminateResponse(::google::protobuf::internal::ConstantInitialized); + + inline TerminateResponse(const TerminateResponse& from) : TerminateResponse(nullptr, from) {} + inline TerminateResponse(TerminateResponse&& from) noexcept : + TerminateResponse(nullptr, std::move(from)) + {} + inline TerminateResponse& operator=(const TerminateResponse& from) + { + CopyFrom(from); + return *this; + } + inline TerminateResponse& operator=(TerminateResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const TerminateResponse& default_instance() { return *internal_default_instance(); } + static inline const TerminateResponse* internal_default_instance() + { + return reinterpret_cast(&_TerminateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 15; + friend void swap(TerminateResponse& a, TerminateResponse& b) { a.Swap(&b); } + inline void Swap(TerminateResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TerminateResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TerminateResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const TerminateResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const TerminateResponse& from) { TerminateResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(TerminateResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TerminateResponse"; } + +protected: + explicit TerminateResponse(::google::protobuf::Arena* arena); + TerminateResponse(::google::protobuf::Arena* arena, const TerminateResponse& from); + TerminateResponse(::google::protobuf::Arena* arena, TerminateResponse&& from) noexcept : + TerminateResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TerminateResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const TerminateResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class TakeoffResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TakeoffResponse) */ { +public: + inline TakeoffResponse() : TakeoffResponse(nullptr) {} + ~TakeoffResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TakeoffResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TakeoffResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR TakeoffResponse(::google::protobuf::internal::ConstantInitialized); + + inline TakeoffResponse(const TakeoffResponse& from) : TakeoffResponse(nullptr, from) {} + inline TakeoffResponse(TakeoffResponse&& from) noexcept : + TakeoffResponse(nullptr, std::move(from)) + {} + inline TakeoffResponse& operator=(const TakeoffResponse& from) + { + CopyFrom(from); + return *this; + } + inline TakeoffResponse& operator=(TakeoffResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const TakeoffResponse& default_instance() { return *internal_default_instance(); } + static inline const TakeoffResponse* internal_default_instance() + { + return reinterpret_cast(&_TakeoffResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 7; + friend void swap(TakeoffResponse& a, TakeoffResponse& b) { a.Swap(&b); } + inline void Swap(TakeoffResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TakeoffResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TakeoffResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const TakeoffResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const TakeoffResponse& from) { TakeoffResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(TakeoffResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TakeoffResponse"; } + +protected: + explicit TakeoffResponse(::google::protobuf::Arena* arena); + TakeoffResponse(::google::protobuf::Arena* arena, const TakeoffResponse& from); + TakeoffResponse(::google::protobuf::Arena* arena, TakeoffResponse&& from) noexcept : + TakeoffResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TakeoffResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const TakeoffResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class ShutdownResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ShutdownResponse) */ { +public: + inline ShutdownResponse() : ShutdownResponse(nullptr) {} + ~ShutdownResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ShutdownResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ShutdownResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ShutdownResponse(::google::protobuf::internal::ConstantInitialized); + + inline ShutdownResponse(const ShutdownResponse& from) : ShutdownResponse(nullptr, from) {} + inline ShutdownResponse(ShutdownResponse&& from) noexcept : + ShutdownResponse(nullptr, std::move(from)) + {} + inline ShutdownResponse& operator=(const ShutdownResponse& from) + { + CopyFrom(from); + return *this; + } + inline ShutdownResponse& operator=(ShutdownResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ShutdownResponse& default_instance() { return *internal_default_instance(); } + static inline const ShutdownResponse* internal_default_instance() + { + return reinterpret_cast(&_ShutdownResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 13; + friend void swap(ShutdownResponse& a, ShutdownResponse& b) { a.Swap(&b); } + inline void Swap(ShutdownResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ShutdownResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ShutdownResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ShutdownResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ShutdownResponse& from) { ShutdownResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ShutdownResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ShutdownResponse"; } + +protected: + explicit ShutdownResponse(::google::protobuf::Arena* arena); + ShutdownResponse(::google::protobuf::Arena* arena, const ShutdownResponse& from); + ShutdownResponse(::google::protobuf::Arena* arena, ShutdownResponse&& from) noexcept : + ShutdownResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ShutdownResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ShutdownResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class SetTakeoffAltitudeResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetTakeoffAltitudeResponse) */ { +public: + inline SetTakeoffAltitudeResponse() : SetTakeoffAltitudeResponse(nullptr) {} + ~SetTakeoffAltitudeResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetTakeoffAltitudeResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetTakeoffAltitudeResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetTakeoffAltitudeResponse(::google::protobuf::internal::ConstantInitialized); + + inline SetTakeoffAltitudeResponse(const SetTakeoffAltitudeResponse& from) : + SetTakeoffAltitudeResponse(nullptr, from) + {} + inline SetTakeoffAltitudeResponse(SetTakeoffAltitudeResponse&& from) noexcept : + SetTakeoffAltitudeResponse(nullptr, std::move(from)) + {} + inline SetTakeoffAltitudeResponse& operator=(const SetTakeoffAltitudeResponse& from) + { + CopyFrom(from); + return *this; + } + inline SetTakeoffAltitudeResponse& operator=(SetTakeoffAltitudeResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetTakeoffAltitudeResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const SetTakeoffAltitudeResponse* internal_default_instance() + { + return reinterpret_cast( + &_SetTakeoffAltitudeResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 35; + friend void swap(SetTakeoffAltitudeResponse& a, SetTakeoffAltitudeResponse& b) { a.Swap(&b); } + inline void Swap(SetTakeoffAltitudeResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetTakeoffAltitudeResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetTakeoffAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetTakeoffAltitudeResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetTakeoffAltitudeResponse& from) + { + SetTakeoffAltitudeResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetTakeoffAltitudeResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.SetTakeoffAltitudeResponse"; + } + +protected: + explicit SetTakeoffAltitudeResponse(::google::protobuf::Arena* arena); + SetTakeoffAltitudeResponse( + ::google::protobuf::Arena* arena, const SetTakeoffAltitudeResponse& from); + SetTakeoffAltitudeResponse( + ::google::protobuf::Arena* arena, SetTakeoffAltitudeResponse&& from) noexcept : + SetTakeoffAltitudeResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetTakeoffAltitudeResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetTakeoffAltitudeResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class SetReturnToLaunchAltitudeResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) */ +{ +public: + inline SetReturnToLaunchAltitudeResponse() : SetReturnToLaunchAltitudeResponse(nullptr) {} + ~SetReturnToLaunchAltitudeResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetReturnToLaunchAltitudeResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetReturnToLaunchAltitudeResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetReturnToLaunchAltitudeResponse(::google::protobuf::internal::ConstantInitialized); + + inline SetReturnToLaunchAltitudeResponse(const SetReturnToLaunchAltitudeResponse& from) : + SetReturnToLaunchAltitudeResponse(nullptr, from) + {} + inline SetReturnToLaunchAltitudeResponse(SetReturnToLaunchAltitudeResponse&& from) noexcept : + SetReturnToLaunchAltitudeResponse(nullptr, std::move(from)) + {} + inline SetReturnToLaunchAltitudeResponse& + operator=(const SetReturnToLaunchAltitudeResponse& from) + { + CopyFrom(from); + return *this; + } + inline SetReturnToLaunchAltitudeResponse& + operator=(SetReturnToLaunchAltitudeResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetReturnToLaunchAltitudeResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const SetReturnToLaunchAltitudeResponse* internal_default_instance() + { + return reinterpret_cast( + &_SetReturnToLaunchAltitudeResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 39; + friend void swap(SetReturnToLaunchAltitudeResponse& a, SetReturnToLaunchAltitudeResponse& b) + { + a.Swap(&b); + } + inline void Swap(SetReturnToLaunchAltitudeResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetReturnToLaunchAltitudeResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetReturnToLaunchAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct( + arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetReturnToLaunchAltitudeResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetReturnToLaunchAltitudeResponse& from) + { + SetReturnToLaunchAltitudeResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetReturnToLaunchAltitudeResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse"; + } + +protected: + explicit SetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena); + SetReturnToLaunchAltitudeResponse( + ::google::protobuf::Arena* arena, const SetReturnToLaunchAltitudeResponse& from); + SetReturnToLaunchAltitudeResponse( + ::google::protobuf::Arena* arena, SetReturnToLaunchAltitudeResponse&& from) noexcept : + SetReturnToLaunchAltitudeResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetReturnToLaunchAltitudeResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class SetCurrentSpeedResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedResponse) */ { +public: + inline SetCurrentSpeedResponse() : SetCurrentSpeedResponse(nullptr) {} + ~SetCurrentSpeedResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetCurrentSpeedResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetCurrentSpeedResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetCurrentSpeedResponse(::google::protobuf::internal::ConstantInitialized); + + inline SetCurrentSpeedResponse(const SetCurrentSpeedResponse& from) : + SetCurrentSpeedResponse(nullptr, from) + {} + inline SetCurrentSpeedResponse(SetCurrentSpeedResponse&& from) noexcept : + SetCurrentSpeedResponse(nullptr, std::move(from)) + {} + inline SetCurrentSpeedResponse& operator=(const SetCurrentSpeedResponse& from) + { + CopyFrom(from); + return *this; + } + inline SetCurrentSpeedResponse& operator=(SetCurrentSpeedResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetCurrentSpeedResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const SetCurrentSpeedResponse* internal_default_instance() + { + return reinterpret_cast( + &_SetCurrentSpeedResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 41; + friend void swap(SetCurrentSpeedResponse& a, SetCurrentSpeedResponse& b) { a.Swap(&b); } + inline void Swap(SetCurrentSpeedResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetCurrentSpeedResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetCurrentSpeedResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetCurrentSpeedResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetCurrentSpeedResponse& from) + { + SetCurrentSpeedResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetCurrentSpeedResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.SetCurrentSpeedResponse"; + } + +protected: + explicit SetCurrentSpeedResponse(::google::protobuf::Arena* arena); + SetCurrentSpeedResponse(::google::protobuf::Arena* arena, const SetCurrentSpeedResponse& from); + SetCurrentSpeedResponse( + ::google::protobuf::Arena* arena, SetCurrentSpeedResponse&& from) noexcept : + SetCurrentSpeedResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetCurrentSpeedResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetCurrentSpeedResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class SetActuatorResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetActuatorResponse) */ { +public: + inline SetActuatorResponse() : SetActuatorResponse(nullptr) {} + ~SetActuatorResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetActuatorResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetActuatorResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetActuatorResponse(::google::protobuf::internal::ConstantInitialized); + + inline SetActuatorResponse(const SetActuatorResponse& from) : SetActuatorResponse(nullptr, from) + {} + inline SetActuatorResponse(SetActuatorResponse&& from) noexcept : + SetActuatorResponse(nullptr, std::move(from)) + {} + inline SetActuatorResponse& operator=(const SetActuatorResponse& from) + { + CopyFrom(from); + return *this; + } + inline SetActuatorResponse& operator=(SetActuatorResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetActuatorResponse& default_instance() { return *internal_default_instance(); } + static inline const SetActuatorResponse* internal_default_instance() + { + return reinterpret_cast( + &_SetActuatorResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 27; + friend void swap(SetActuatorResponse& a, SetActuatorResponse& b) { a.Swap(&b); } + inline void Swap(SetActuatorResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetActuatorResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetActuatorResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetActuatorResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetActuatorResponse& from) { SetActuatorResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetActuatorResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetActuatorResponse"; } + +protected: + explicit SetActuatorResponse(::google::protobuf::Arena* arena); + SetActuatorResponse(::google::protobuf::Arena* arena, const SetActuatorResponse& from); + SetActuatorResponse(::google::protobuf::Arena* arena, SetActuatorResponse&& from) noexcept : + SetActuatorResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetActuatorResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetActuatorResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class ReturnToLaunchResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ReturnToLaunchResponse) */ { +public: + inline ReturnToLaunchResponse() : ReturnToLaunchResponse(nullptr) {} + ~ReturnToLaunchResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ReturnToLaunchResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ReturnToLaunchResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + ReturnToLaunchResponse(::google::protobuf::internal::ConstantInitialized); + + inline ReturnToLaunchResponse(const ReturnToLaunchResponse& from) : + ReturnToLaunchResponse(nullptr, from) + {} + inline ReturnToLaunchResponse(ReturnToLaunchResponse&& from) noexcept : + ReturnToLaunchResponse(nullptr, std::move(from)) + {} + inline ReturnToLaunchResponse& operator=(const ReturnToLaunchResponse& from) + { + CopyFrom(from); + return *this; + } + inline ReturnToLaunchResponse& operator=(ReturnToLaunchResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ReturnToLaunchResponse& default_instance() { return *internal_default_instance(); } + static inline const ReturnToLaunchResponse* internal_default_instance() + { + return reinterpret_cast( + &_ReturnToLaunchResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 19; + friend void swap(ReturnToLaunchResponse& a, ReturnToLaunchResponse& b) { a.Swap(&b); } + inline void Swap(ReturnToLaunchResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ReturnToLaunchResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ReturnToLaunchResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ReturnToLaunchResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ReturnToLaunchResponse& from) + { + ReturnToLaunchResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ReturnToLaunchResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.ReturnToLaunchResponse"; + } + +protected: + explicit ReturnToLaunchResponse(::google::protobuf::Arena* arena); + ReturnToLaunchResponse(::google::protobuf::Arena* arena, const ReturnToLaunchResponse& from); + ReturnToLaunchResponse(::google::protobuf::Arena* arena, ReturnToLaunchResponse&& from) noexcept + : + ReturnToLaunchResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ReturnToLaunchResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ReturnToLaunchResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class RebootResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.RebootResponse) */ { +public: + inline RebootResponse() : RebootResponse(nullptr) {} + ~RebootResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(RebootResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(RebootResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR RebootResponse(::google::protobuf::internal::ConstantInitialized); + + inline RebootResponse(const RebootResponse& from) : RebootResponse(nullptr, from) {} + inline RebootResponse(RebootResponse&& from) noexcept : RebootResponse(nullptr, std::move(from)) + {} + inline RebootResponse& operator=(const RebootResponse& from) + { + CopyFrom(from); + return *this; + } + inline RebootResponse& operator=(RebootResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const RebootResponse& default_instance() { return *internal_default_instance(); } + static inline const RebootResponse* internal_default_instance() + { + return reinterpret_cast(&_RebootResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 11; + friend void swap(RebootResponse& a, RebootResponse& b) { a.Swap(&b); } + inline void Swap(RebootResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RebootResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RebootResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const RebootResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const RebootResponse& from) { RebootResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(RebootResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.RebootResponse"; } + +protected: + explicit RebootResponse(::google::protobuf::Arena* arena); + RebootResponse(::google::protobuf::Arena* arena, const RebootResponse& from); + RebootResponse(::google::protobuf::Arena* arena, RebootResponse&& from) noexcept : + RebootResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.RebootResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const RebootResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class LandResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.LandResponse) */ { +public: + inline LandResponse() : LandResponse(nullptr) {} + ~LandResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(LandResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(LandResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR LandResponse(::google::protobuf::internal::ConstantInitialized); + + inline LandResponse(const LandResponse& from) : LandResponse(nullptr, from) {} + inline LandResponse(LandResponse&& from) noexcept : LandResponse(nullptr, std::move(from)) {} + inline LandResponse& operator=(const LandResponse& from) + { + CopyFrom(from); + return *this; + } + inline LandResponse& operator=(LandResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const LandResponse& default_instance() { return *internal_default_instance(); } + static inline const LandResponse* internal_default_instance() + { + return reinterpret_cast(&_LandResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 9; + friend void swap(LandResponse& a, LandResponse& b) { a.Swap(&b); } + inline void Swap(LandResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LandResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LandResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const LandResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const LandResponse& from) { LandResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(LandResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.LandResponse"; } + +protected: + explicit LandResponse(::google::protobuf::Arena* arena); + LandResponse(::google::protobuf::Arena* arena, const LandResponse& from); + LandResponse(::google::protobuf::Arena* arena, LandResponse&& from) noexcept : + LandResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.LandResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const LandResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class KillResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.KillResponse) */ { +public: + inline KillResponse() : KillResponse(nullptr) {} + ~KillResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(KillResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(KillResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR KillResponse(::google::protobuf::internal::ConstantInitialized); + + inline KillResponse(const KillResponse& from) : KillResponse(nullptr, from) {} + inline KillResponse(KillResponse&& from) noexcept : KillResponse(nullptr, std::move(from)) {} + inline KillResponse& operator=(const KillResponse& from) + { + CopyFrom(from); + return *this; + } + inline KillResponse& operator=(KillResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const KillResponse& default_instance() { return *internal_default_instance(); } + static inline const KillResponse* internal_default_instance() + { + return reinterpret_cast(&_KillResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 17; + friend void swap(KillResponse& a, KillResponse& b) { a.Swap(&b); } + inline void Swap(KillResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(KillResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + KillResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const KillResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const KillResponse& from) { KillResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(KillResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.KillResponse"; } + +protected: + explicit KillResponse(::google::protobuf::Arena* arena); + KillResponse(::google::protobuf::Arena* arena, const KillResponse& from); + KillResponse(::google::protobuf::Arena* arena, KillResponse&& from) noexcept : + KillResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.KillResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const KillResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class HoldResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.HoldResponse) */ { +public: + inline HoldResponse() : HoldResponse(nullptr) {} + ~HoldResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(HoldResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(HoldResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR HoldResponse(::google::protobuf::internal::ConstantInitialized); + + inline HoldResponse(const HoldResponse& from) : HoldResponse(nullptr, from) {} + inline HoldResponse(HoldResponse&& from) noexcept : HoldResponse(nullptr, std::move(from)) {} + inline HoldResponse& operator=(const HoldResponse& from) + { + CopyFrom(from); + return *this; + } + inline HoldResponse& operator=(HoldResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const HoldResponse& default_instance() { return *internal_default_instance(); } + static inline const HoldResponse* internal_default_instance() + { + return reinterpret_cast(&_HoldResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 25; + friend void swap(HoldResponse& a, HoldResponse& b) { a.Swap(&b); } + inline void Swap(HoldResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HoldResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + HoldResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const HoldResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const HoldResponse& from) { HoldResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(HoldResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.HoldResponse"; } + +protected: + explicit HoldResponse(::google::protobuf::Arena* arena); + HoldResponse(::google::protobuf::Arena* arena, const HoldResponse& from); + HoldResponse(::google::protobuf::Arena* arena, HoldResponse&& from) noexcept : + HoldResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.HoldResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const HoldResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class GotoLocationResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GotoLocationResponse) */ { +public: + inline GotoLocationResponse() : GotoLocationResponse(nullptr) {} + ~GotoLocationResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GotoLocationResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GotoLocationResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + GotoLocationResponse(::google::protobuf::internal::ConstantInitialized); + + inline GotoLocationResponse(const GotoLocationResponse& from) : + GotoLocationResponse(nullptr, from) + {} + inline GotoLocationResponse(GotoLocationResponse&& from) noexcept : + GotoLocationResponse(nullptr, std::move(from)) + {} + inline GotoLocationResponse& operator=(const GotoLocationResponse& from) + { + CopyFrom(from); + return *this; + } + inline GotoLocationResponse& operator=(GotoLocationResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const GotoLocationResponse& default_instance() { return *internal_default_instance(); } + static inline const GotoLocationResponse* internal_default_instance() + { + return reinterpret_cast( + &_GotoLocationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 21; + friend void swap(GotoLocationResponse& a, GotoLocationResponse& b) { a.Swap(&b); } + inline void Swap(GotoLocationResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GotoLocationResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GotoLocationResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GotoLocationResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GotoLocationResponse& from) + { + GotoLocationResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GotoLocationResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.GotoLocationResponse"; + } + +protected: + explicit GotoLocationResponse(::google::protobuf::Arena* arena); + GotoLocationResponse(::google::protobuf::Arena* arena, const GotoLocationResponse& from); + GotoLocationResponse(::google::protobuf::Arena* arena, GotoLocationResponse&& from) noexcept : + GotoLocationResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GotoLocationResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const GotoLocationResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class GetTakeoffAltitudeResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetTakeoffAltitudeResponse) */ { +public: + inline GetTakeoffAltitudeResponse() : GetTakeoffAltitudeResponse(nullptr) {} + ~GetTakeoffAltitudeResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetTakeoffAltitudeResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetTakeoffAltitudeResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + GetTakeoffAltitudeResponse(::google::protobuf::internal::ConstantInitialized); + + inline GetTakeoffAltitudeResponse(const GetTakeoffAltitudeResponse& from) : + GetTakeoffAltitudeResponse(nullptr, from) + {} + inline GetTakeoffAltitudeResponse(GetTakeoffAltitudeResponse&& from) noexcept : + GetTakeoffAltitudeResponse(nullptr, std::move(from)) + {} + inline GetTakeoffAltitudeResponse& operator=(const GetTakeoffAltitudeResponse& from) + { + CopyFrom(from); + return *this; + } + inline GetTakeoffAltitudeResponse& operator=(GetTakeoffAltitudeResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const GetTakeoffAltitudeResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const GetTakeoffAltitudeResponse* internal_default_instance() + { + return reinterpret_cast( + &_GetTakeoffAltitudeResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 33; + friend void swap(GetTakeoffAltitudeResponse& a, GetTakeoffAltitudeResponse& b) { a.Swap(&b); } + inline void Swap(GetTakeoffAltitudeResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetTakeoffAltitudeResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetTakeoffAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetTakeoffAltitudeResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GetTakeoffAltitudeResponse& from) + { + GetTakeoffAltitudeResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetTakeoffAltitudeResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.GetTakeoffAltitudeResponse"; + } + +protected: + explicit GetTakeoffAltitudeResponse(::google::protobuf::Arena* arena); + GetTakeoffAltitudeResponse( + ::google::protobuf::Arena* arena, const GetTakeoffAltitudeResponse& from); + GetTakeoffAltitudeResponse( + ::google::protobuf::Arena* arena, GetTakeoffAltitudeResponse&& from) noexcept : + GetTakeoffAltitudeResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + kAltitudeFieldNumber = 2, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // float altitude = 2; + void clear_altitude(); + float altitude() const; + void set_altitude(float value); + +private: + float _internal_altitude() const; + void _internal_set_altitude(float value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetTakeoffAltitudeResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const GetTakeoffAltitudeResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + float altitude_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class GetReturnToLaunchAltitudeResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) */ +{ +public: + inline GetReturnToLaunchAltitudeResponse() : GetReturnToLaunchAltitudeResponse(nullptr) {} + ~GetReturnToLaunchAltitudeResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetReturnToLaunchAltitudeResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetReturnToLaunchAltitudeResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + GetReturnToLaunchAltitudeResponse(::google::protobuf::internal::ConstantInitialized); + + inline GetReturnToLaunchAltitudeResponse(const GetReturnToLaunchAltitudeResponse& from) : + GetReturnToLaunchAltitudeResponse(nullptr, from) + {} + inline GetReturnToLaunchAltitudeResponse(GetReturnToLaunchAltitudeResponse&& from) noexcept : + GetReturnToLaunchAltitudeResponse(nullptr, std::move(from)) + {} + inline GetReturnToLaunchAltitudeResponse& + operator=(const GetReturnToLaunchAltitudeResponse& from) + { + CopyFrom(from); + return *this; + } + inline GetReturnToLaunchAltitudeResponse& + operator=(GetReturnToLaunchAltitudeResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const GetReturnToLaunchAltitudeResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const GetReturnToLaunchAltitudeResponse* internal_default_instance() + { + return reinterpret_cast( + &_GetReturnToLaunchAltitudeResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 37; + friend void swap(GetReturnToLaunchAltitudeResponse& a, GetReturnToLaunchAltitudeResponse& b) + { + a.Swap(&b); + } + inline void Swap(GetReturnToLaunchAltitudeResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetReturnToLaunchAltitudeResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetReturnToLaunchAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct( + arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetReturnToLaunchAltitudeResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GetReturnToLaunchAltitudeResponse& from) + { + GetReturnToLaunchAltitudeResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetReturnToLaunchAltitudeResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse"; + } + +protected: + explicit GetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena); + GetReturnToLaunchAltitudeResponse( + ::google::protobuf::Arena* arena, const GetReturnToLaunchAltitudeResponse& from); + GetReturnToLaunchAltitudeResponse( + ::google::protobuf::Arena* arena, GetReturnToLaunchAltitudeResponse&& from) noexcept : + GetReturnToLaunchAltitudeResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + kRelativeAltitudeMFieldNumber = 2, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // float relative_altitude_m = 2; + void clear_relative_altitude_m(); + float relative_altitude_m() const; + void set_relative_altitude_m(float value); + +private: + float _internal_relative_altitude_m() const; + void _internal_set_relative_altitude_m(float value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const GetReturnToLaunchAltitudeResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + float relative_altitude_m_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class DoOrbitResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DoOrbitResponse) */ { +public: + inline DoOrbitResponse() : DoOrbitResponse(nullptr) {} + ~DoOrbitResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DoOrbitResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DoOrbitResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR DoOrbitResponse(::google::protobuf::internal::ConstantInitialized); + + inline DoOrbitResponse(const DoOrbitResponse& from) : DoOrbitResponse(nullptr, from) {} + inline DoOrbitResponse(DoOrbitResponse&& from) noexcept : + DoOrbitResponse(nullptr, std::move(from)) + {} + inline DoOrbitResponse& operator=(const DoOrbitResponse& from) + { + CopyFrom(from); + return *this; + } + inline DoOrbitResponse& operator=(DoOrbitResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const DoOrbitResponse& default_instance() { return *internal_default_instance(); } + static inline const DoOrbitResponse* internal_default_instance() + { + return reinterpret_cast(&_DoOrbitResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 23; + friend void swap(DoOrbitResponse& a, DoOrbitResponse& b) { a.Swap(&b); } + inline void Swap(DoOrbitResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DoOrbitResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DoOrbitResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const DoOrbitResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const DoOrbitResponse& from) { DoOrbitResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(DoOrbitResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.DoOrbitResponse"; } + +protected: + explicit DoOrbitResponse(::google::protobuf::Arena* arena); + DoOrbitResponse(::google::protobuf::Arena* arena, const DoOrbitResponse& from); + DoOrbitResponse(::google::protobuf::Arena* arena, DoOrbitResponse&& from) noexcept : + DoOrbitResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DoOrbitResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const DoOrbitResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class DisarmResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DisarmResponse) */ { +public: + inline DisarmResponse() : DisarmResponse(nullptr) {} + ~DisarmResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DisarmResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DisarmResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR DisarmResponse(::google::protobuf::internal::ConstantInitialized); + + inline DisarmResponse(const DisarmResponse& from) : DisarmResponse(nullptr, from) {} + inline DisarmResponse(DisarmResponse&& from) noexcept : DisarmResponse(nullptr, std::move(from)) + {} + inline DisarmResponse& operator=(const DisarmResponse& from) + { + CopyFrom(from); + return *this; + } + inline DisarmResponse& operator=(DisarmResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const DisarmResponse& default_instance() { return *internal_default_instance(); } + static inline const DisarmResponse* internal_default_instance() + { + return reinterpret_cast(&_DisarmResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 5; + friend void swap(DisarmResponse& a, DisarmResponse& b) { a.Swap(&b); } + inline void Swap(DisarmResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DisarmResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DisarmResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const DisarmResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const DisarmResponse& from) { DisarmResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(DisarmResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.DisarmResponse"; } + +protected: + explicit DisarmResponse(::google::protobuf::Arena* arena); + DisarmResponse(::google::protobuf::Arena* arena, const DisarmResponse& from); + DisarmResponse(::google::protobuf::Arena* arena, DisarmResponse&& from) noexcept : + DisarmResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DisarmResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const DisarmResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class ArmResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmResponse) */ { +public: + inline ArmResponse() : ArmResponse(nullptr) {} + ~ArmResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ArmResponse(::google::protobuf::internal::ConstantInitialized); + + inline ArmResponse(const ArmResponse& from) : ArmResponse(nullptr, from) {} + inline ArmResponse(ArmResponse&& from) noexcept : ArmResponse(nullptr, std::move(from)) {} + inline ArmResponse& operator=(const ArmResponse& from) + { + CopyFrom(from); + return *this; + } + inline ArmResponse& operator=(ArmResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ArmResponse& default_instance() { return *internal_default_instance(); } + static inline const ArmResponse* internal_default_instance() + { + return reinterpret_cast(&_ArmResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(ArmResponse& a, ArmResponse& b) { a.Swap(&b); } + inline void Swap(ArmResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ArmResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ArmResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ArmResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ArmResponse& from) { ArmResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ArmResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ArmResponse"; } + +protected: + explicit ArmResponse(::google::protobuf::Arena* arena); + ArmResponse(::google::protobuf::Arena* arena, const ArmResponse& from); + ArmResponse(::google::protobuf::Arena* arena, ArmResponse&& from) noexcept : ArmResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ArmResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; +// ------------------------------------------------------------------- + +class ArmForceResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmForceResponse) */ { +public: + inline ArmForceResponse() : ArmForceResponse(nullptr) {} + ~ArmForceResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmForceResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmForceResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ArmForceResponse(::google::protobuf::internal::ConstantInitialized); + + inline ArmForceResponse(const ArmForceResponse& from) : ArmForceResponse(nullptr, from) {} + inline ArmForceResponse(ArmForceResponse&& from) noexcept : + ArmForceResponse(nullptr, std::move(from)) + {} + inline ArmForceResponse& operator=(const ArmForceResponse& from) + { + CopyFrom(from); + return *this; + } + inline ArmForceResponse& operator=(ArmForceResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ArmForceResponse& default_instance() { return *internal_default_instance(); } + static inline const ArmForceResponse* internal_default_instance() + { + return reinterpret_cast(&_ArmForceResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(ArmForceResponse& a, ArmForceResponse& b) { a.Swap(&b); } + inline void Swap(ArmForceResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ArmForceResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ArmForceResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ArmForceResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ArmForceResponse& from) { ArmForceResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ArmForceResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ArmForceResponse"; } + +protected: + explicit ArmForceResponse(::google::protobuf::Arena* arena); + ArmForceResponse(::google::protobuf::Arena* arena, const ArmForceResponse& from); + ArmForceResponse(::google::protobuf::Arena* arena, ArmForceResponse&& from) noexcept : + ArmForceResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionResultFieldNumber = 1, + }; + // .mavsdk.rpc.action.ActionResult action_result = 1; + bool has_action_result() const; + void clear_action_result(); + const ::mavsdk::rpc::action::ActionResult& action_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); + ::mavsdk::rpc::action::ActionResult* mutable_action_result(); + void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); + ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); + +private: + const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; + ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmForceResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ArmForceResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_2faction_2eproto; +}; + +// =================================================================== + +// =================================================================== + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ArmRequest + +// ------------------------------------------------------------------- + +// ArmResponse + +// .mavsdk.rpc.action.ActionResult action_result = 1; +inline bool ArmResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void ArmResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::mavsdk::rpc::action::ActionResult& ArmResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +ArmResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.ArmResponse.action_result) + return _internal_action_result(); +} +inline void +ArmResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); + } + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.ArmResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* ArmResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* ArmResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ArmResponse.action_result) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* ArmResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +ArmResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.ArmResponse.action_result) + return _msg; +} +inline void ArmResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ArmResponse.action_result) +} + +// ------------------------------------------------------------------- + +// ArmForceRequest + +// ------------------------------------------------------------------- + +// ArmForceResponse + +// .mavsdk.rpc.action.ActionResult action_result = 1; +inline bool ArmForceResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void ArmForceResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::mavsdk::rpc::action::ActionResult& ArmForceResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +ArmForceResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.ArmForceResponse.action_result) + return _internal_action_result(); +} +inline void ArmForceResponse::unsafe_arena_set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); + } + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.ArmForceResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* ArmForceResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* ArmForceResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ArmForceResponse.action_result) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* ArmForceResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +ArmForceResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ _impl_._has_bits_[0] |= 0x00000001u; - } else { + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.ArmForceResponse.action_result) + return _msg; +} +inline void +ArmForceResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ArmForceResponse.action_result) +} + +// ------------------------------------------------------------------- + +// DisarmRequest + +// ------------------------------------------------------------------- + +// DisarmResponse + +// .mavsdk.rpc.action.ActionResult action_result = 1; +inline bool DisarmResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void DisarmResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::mavsdk::rpc::action::ActionResult& DisarmResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +DisarmResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DisarmResponse.action_result) + return _internal_action_result(); +} +inline void +DisarmResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); + } + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.DisarmResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.DisarmResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +DisarmResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.DisarmResponse.action_result) + return _msg; +} +inline void DisarmResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ShutdownResponse.action_result) + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.DisarmResponse.action_result) } // ------------------------------------------------------------------- -// TerminateRequest +// TakeoffRequest // ------------------------------------------------------------------- -// TerminateResponse +// TakeoffResponse + +// .mavsdk.rpc.action.ActionResult action_result = 1; +inline bool TakeoffResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void TakeoffResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::mavsdk::rpc::action::ActionResult& TakeoffResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +TakeoffResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.TakeoffResponse.action_result) + return _internal_action_result(); +} +inline void TakeoffResponse::unsafe_arena_set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); + } + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.TakeoffResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TakeoffResponse.action_result) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +TakeoffResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.TakeoffResponse.action_result) + return _msg; +} +inline void TakeoffResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TakeoffResponse.action_result) +} + +// ------------------------------------------------------------------- + +// LandRequest + +// ------------------------------------------------------------------- + +// LandResponse + +// .mavsdk.rpc.action.ActionResult action_result = 1; +inline bool LandResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void LandResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::mavsdk::rpc::action::ActionResult& LandResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +LandResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.LandResponse.action_result) + return _internal_action_result(); +} +inline void +LandResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); + } + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.LandResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* LandResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* LandResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.LandResponse.action_result) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* LandResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +LandResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.LandResponse.action_result) + return _msg; +} +inline void LandResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.LandResponse.action_result) +} + +// ------------------------------------------------------------------- + +// RebootRequest + +// ------------------------------------------------------------------- + +// RebootResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool TerminateResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void TerminateResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& TerminateResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& TerminateResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.TerminateResponse.action_result) - return _internal_action_result(); -} -inline void TerminateResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { +inline bool RebootResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void RebootResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::mavsdk::rpc::action::ActionResult& RebootResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +RebootResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.RebootResponse.action_result) + return _internal_action_result(); +} +inline void +RebootResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); + } + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.RebootResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* RebootResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* RebootResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.RebootResponse.action_result) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* RebootResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +RebootResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ _impl_._has_bits_[0] |= 0x00000001u; - } else { + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.RebootResponse.action_result) + return _msg; +} +inline void RebootResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.RebootResponse.action_result) +} + +// ------------------------------------------------------------------- + +// ShutdownRequest + +// ------------------------------------------------------------------- + +// ShutdownResponse + +// .mavsdk.rpc.action.ActionResult action_result = 1; +inline bool ShutdownResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void ShutdownResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::mavsdk::rpc::action::ActionResult& ShutdownResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +ShutdownResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.ShutdownResponse.action_result) + return _internal_action_result(); +} +inline void ShutdownResponse::unsafe_arena_set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); + } + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.ShutdownResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ShutdownResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.TerminateResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TerminateResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.TerminateResponse.action_result) - return _msg; -} -inline void TerminateResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +ShutdownResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ _impl_._has_bits_[0] |= 0x00000001u; - } else { + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.ShutdownResponse.action_result) + return _msg; +} +inline void +ShutdownResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ShutdownResponse.action_result) +} + +// ------------------------------------------------------------------- + +// TerminateRequest + +// ------------------------------------------------------------------- + +// TerminateResponse + +// .mavsdk.rpc.action.ActionResult action_result = 1; +inline bool TerminateResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void TerminateResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::mavsdk::rpc::action::ActionResult& TerminateResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +TerminateResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.TerminateResponse.action_result) + return _internal_action_result(); +} +inline void TerminateResponse::unsafe_arena_set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); + } + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.TerminateResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TerminateResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +TerminateResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.TerminateResponse.action_result) + return _msg; +} +inline void +TerminateResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TerminateResponse.action_result) + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TerminateResponse.action_result) } // ------------------------------------------------------------------- @@ -8391,99 +9656,118 @@ inline void TerminateResponse::set_allocated_action_result(::mavsdk::rpc::action // KillResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool KillResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void KillResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& KillResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& KillResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.KillResponse.action_result) - return _internal_action_result(); -} -inline void KillResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool KillResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void KillResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::mavsdk::rpc::action::ActionResult& KillResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +KillResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.KillResponse.action_result) + return _internal_action_result(); +} +inline void +KillResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); + } + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.KillResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* KillResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* KillResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.KillResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.KillResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* KillResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* KillResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.KillResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* KillResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* KillResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.KillResponse.action_result) - return _msg; -} -inline void KillResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* KillResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +KillResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.KillResponse.action_result) + return _msg; +} +inline void KillResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.KillResponse.action_result) + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.KillResponse.action_result) } // ------------------------------------------------------------------- @@ -8494,100 +9778,123 @@ inline void KillResponse::set_allocated_action_result(::mavsdk::rpc::action::Act // ReturnToLaunchResponse -// .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool ReturnToLaunchResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void ReturnToLaunchResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& ReturnToLaunchResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& ReturnToLaunchResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) - return _internal_action_result(); -} -inline void ReturnToLaunchResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +// .mavsdk.rpc.action.ActionResult action_result = 1; +inline bool ReturnToLaunchResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void ReturnToLaunchResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::mavsdk::rpc::action::ActionResult& +ReturnToLaunchResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +ReturnToLaunchResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) + return _internal_action_result(); +} +inline void ReturnToLaunchResponse::unsafe_arena_set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); + } + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* ReturnToLaunchResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* +ReturnToLaunchResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* ReturnToLaunchResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* ReturnToLaunchResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* ReturnToLaunchResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* ReturnToLaunchResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) - return _msg; -} -inline void ReturnToLaunchResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* +ReturnToLaunchResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +ReturnToLaunchResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) + return _msg; +} +inline void +ReturnToLaunchResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) } // ------------------------------------------------------------------- @@ -8595,95 +9902,111 @@ inline void ReturnToLaunchResponse::set_allocated_action_result(::mavsdk::rpc::a // GotoLocationRequest // double latitude_deg = 1; -inline void GotoLocationRequest::clear_latitude_deg() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.latitude_deg_ = 0; +inline void GotoLocationRequest::clear_latitude_deg() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latitude_deg_ = 0; } -inline double GotoLocationRequest::latitude_deg() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GotoLocationRequest.latitude_deg) - return _internal_latitude_deg(); +inline double GotoLocationRequest::latitude_deg() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GotoLocationRequest.latitude_deg) + return _internal_latitude_deg(); } -inline void GotoLocationRequest::set_latitude_deg(double value) { - _internal_set_latitude_deg(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GotoLocationRequest.latitude_deg) +inline void GotoLocationRequest::set_latitude_deg(double value) +{ + _internal_set_latitude_deg(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GotoLocationRequest.latitude_deg) } -inline double GotoLocationRequest::_internal_latitude_deg() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.latitude_deg_; +inline double GotoLocationRequest::_internal_latitude_deg() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.latitude_deg_; } -inline void GotoLocationRequest::_internal_set_latitude_deg(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.latitude_deg_ = value; +inline void GotoLocationRequest::_internal_set_latitude_deg(double value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latitude_deg_ = value; } // double longitude_deg = 2; -inline void GotoLocationRequest::clear_longitude_deg() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.longitude_deg_ = 0; +inline void GotoLocationRequest::clear_longitude_deg() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.longitude_deg_ = 0; } -inline double GotoLocationRequest::longitude_deg() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GotoLocationRequest.longitude_deg) - return _internal_longitude_deg(); +inline double GotoLocationRequest::longitude_deg() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GotoLocationRequest.longitude_deg) + return _internal_longitude_deg(); } -inline void GotoLocationRequest::set_longitude_deg(double value) { - _internal_set_longitude_deg(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GotoLocationRequest.longitude_deg) +inline void GotoLocationRequest::set_longitude_deg(double value) +{ + _internal_set_longitude_deg(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GotoLocationRequest.longitude_deg) } -inline double GotoLocationRequest::_internal_longitude_deg() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.longitude_deg_; +inline double GotoLocationRequest::_internal_longitude_deg() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.longitude_deg_; } -inline void GotoLocationRequest::_internal_set_longitude_deg(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.longitude_deg_ = value; +inline void GotoLocationRequest::_internal_set_longitude_deg(double value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.longitude_deg_ = value; } // float absolute_altitude_m = 3; -inline void GotoLocationRequest::clear_absolute_altitude_m() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.absolute_altitude_m_ = 0; +inline void GotoLocationRequest::clear_absolute_altitude_m() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.absolute_altitude_m_ = 0; } -inline float GotoLocationRequest::absolute_altitude_m() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GotoLocationRequest.absolute_altitude_m) - return _internal_absolute_altitude_m(); +inline float GotoLocationRequest::absolute_altitude_m() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GotoLocationRequest.absolute_altitude_m) + return _internal_absolute_altitude_m(); } -inline void GotoLocationRequest::set_absolute_altitude_m(float value) { - _internal_set_absolute_altitude_m(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GotoLocationRequest.absolute_altitude_m) +inline void GotoLocationRequest::set_absolute_altitude_m(float value) +{ + _internal_set_absolute_altitude_m(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GotoLocationRequest.absolute_altitude_m) } -inline float GotoLocationRequest::_internal_absolute_altitude_m() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.absolute_altitude_m_; +inline float GotoLocationRequest::_internal_absolute_altitude_m() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.absolute_altitude_m_; } -inline void GotoLocationRequest::_internal_set_absolute_altitude_m(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.absolute_altitude_m_ = value; +inline void GotoLocationRequest::_internal_set_absolute_altitude_m(float value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.absolute_altitude_m_ = value; } // float yaw_deg = 4; -inline void GotoLocationRequest::clear_yaw_deg() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.yaw_deg_ = 0; +inline void GotoLocationRequest::clear_yaw_deg() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.yaw_deg_ = 0; } -inline float GotoLocationRequest::yaw_deg() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GotoLocationRequest.yaw_deg) - return _internal_yaw_deg(); +inline float GotoLocationRequest::yaw_deg() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GotoLocationRequest.yaw_deg) + return _internal_yaw_deg(); } -inline void GotoLocationRequest::set_yaw_deg(float value) { - _internal_set_yaw_deg(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GotoLocationRequest.yaw_deg) +inline void GotoLocationRequest::set_yaw_deg(float value) +{ + _internal_set_yaw_deg(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GotoLocationRequest.yaw_deg) } -inline float GotoLocationRequest::_internal_yaw_deg() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.yaw_deg_; +inline float GotoLocationRequest::_internal_yaw_deg() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.yaw_deg_; } -inline void GotoLocationRequest::_internal_set_yaw_deg(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.yaw_deg_ = value; +inline void GotoLocationRequest::_internal_set_yaw_deg(float value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.yaw_deg_ = value; } // ------------------------------------------------------------------- @@ -8691,99 +10014,121 @@ inline void GotoLocationRequest::_internal_set_yaw_deg(float value) { // GotoLocationResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool GotoLocationResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void GotoLocationResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& GotoLocationResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& GotoLocationResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GotoLocationResponse.action_result) - return _internal_action_result(); -} -inline void GotoLocationResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool GotoLocationResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void GotoLocationResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.GotoLocationResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.GotoLocationResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.GotoLocationResponse.action_result) - return _msg; -} -inline void GotoLocationResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action::ActionResult& +GotoLocationResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +GotoLocationResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GotoLocationResponse.action_result) + return _internal_action_result(); +} +inline void GotoLocationResponse::unsafe_arena_set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.GotoLocationResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* +GotoLocationResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.GotoLocationResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +GotoLocationResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.GotoLocationResponse.action_result) + return _msg; +} +inline void +GotoLocationResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.GotoLocationResponse.action_result) + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.GotoLocationResponse.action_result) } // ------------------------------------------------------------------- @@ -8791,141 +10136,166 @@ inline void GotoLocationResponse::set_allocated_action_result(::mavsdk::rpc::act // DoOrbitRequest // float radius_m = 1; -inline void DoOrbitRequest::clear_radius_m() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.radius_m_ = 0; +inline void DoOrbitRequest::clear_radius_m() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.radius_m_ = 0; } -inline float DoOrbitRequest::radius_m() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.radius_m) - return _internal_radius_m(); +inline float DoOrbitRequest::radius_m() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.radius_m) + return _internal_radius_m(); } -inline void DoOrbitRequest::set_radius_m(float value) { - _internal_set_radius_m(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.radius_m) +inline void DoOrbitRequest::set_radius_m(float value) +{ + _internal_set_radius_m(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.radius_m) } -inline float DoOrbitRequest::_internal_radius_m() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.radius_m_; +inline float DoOrbitRequest::_internal_radius_m() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.radius_m_; } -inline void DoOrbitRequest::_internal_set_radius_m(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.radius_m_ = value; +inline void DoOrbitRequest::_internal_set_radius_m(float value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.radius_m_ = value; } // float velocity_ms = 2; -inline void DoOrbitRequest::clear_velocity_ms() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.velocity_ms_ = 0; +inline void DoOrbitRequest::clear_velocity_ms() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.velocity_ms_ = 0; } -inline float DoOrbitRequest::velocity_ms() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.velocity_ms) - return _internal_velocity_ms(); +inline float DoOrbitRequest::velocity_ms() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.velocity_ms) + return _internal_velocity_ms(); } -inline void DoOrbitRequest::set_velocity_ms(float value) { - _internal_set_velocity_ms(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.velocity_ms) +inline void DoOrbitRequest::set_velocity_ms(float value) +{ + _internal_set_velocity_ms(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.velocity_ms) } -inline float DoOrbitRequest::_internal_velocity_ms() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.velocity_ms_; +inline float DoOrbitRequest::_internal_velocity_ms() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.velocity_ms_; } -inline void DoOrbitRequest::_internal_set_velocity_ms(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.velocity_ms_ = value; +inline void DoOrbitRequest::_internal_set_velocity_ms(float value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.velocity_ms_ = value; } // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; -inline void DoOrbitRequest::clear_yaw_behavior() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.yaw_behavior_ = 0; +inline void DoOrbitRequest::clear_yaw_behavior() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.yaw_behavior_ = 0; } -inline ::mavsdk::rpc::action::OrbitYawBehavior DoOrbitRequest::yaw_behavior() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.yaw_behavior) - return _internal_yaw_behavior(); +inline ::mavsdk::rpc::action::OrbitYawBehavior DoOrbitRequest::yaw_behavior() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.yaw_behavior) + return _internal_yaw_behavior(); } -inline void DoOrbitRequest::set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value) { - _internal_set_yaw_behavior(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.yaw_behavior) +inline void DoOrbitRequest::set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value) +{ + _internal_set_yaw_behavior(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.yaw_behavior) } -inline ::mavsdk::rpc::action::OrbitYawBehavior DoOrbitRequest::_internal_yaw_behavior() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::mavsdk::rpc::action::OrbitYawBehavior>(_impl_.yaw_behavior_); +inline ::mavsdk::rpc::action::OrbitYawBehavior DoOrbitRequest::_internal_yaw_behavior() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::mavsdk::rpc::action::OrbitYawBehavior>(_impl_.yaw_behavior_); } -inline void DoOrbitRequest::_internal_set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.yaw_behavior_ = value; +inline void +DoOrbitRequest::_internal_set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.yaw_behavior_ = value; } // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; -inline void DoOrbitRequest::clear_latitude_deg() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.latitude_deg_ = 0; +inline void DoOrbitRequest::clear_latitude_deg() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latitude_deg_ = 0; } -inline double DoOrbitRequest::latitude_deg() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.latitude_deg) - return _internal_latitude_deg(); +inline double DoOrbitRequest::latitude_deg() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.latitude_deg) + return _internal_latitude_deg(); } -inline void DoOrbitRequest::set_latitude_deg(double value) { - _internal_set_latitude_deg(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.latitude_deg) +inline void DoOrbitRequest::set_latitude_deg(double value) +{ + _internal_set_latitude_deg(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.latitude_deg) } -inline double DoOrbitRequest::_internal_latitude_deg() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.latitude_deg_; +inline double DoOrbitRequest::_internal_latitude_deg() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.latitude_deg_; } -inline void DoOrbitRequest::_internal_set_latitude_deg(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.latitude_deg_ = value; +inline void DoOrbitRequest::_internal_set_latitude_deg(double value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latitude_deg_ = value; } // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; -inline void DoOrbitRequest::clear_longitude_deg() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.longitude_deg_ = 0; +inline void DoOrbitRequest::clear_longitude_deg() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.longitude_deg_ = 0; } -inline double DoOrbitRequest::longitude_deg() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.longitude_deg) - return _internal_longitude_deg(); +inline double DoOrbitRequest::longitude_deg() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.longitude_deg) + return _internal_longitude_deg(); } -inline void DoOrbitRequest::set_longitude_deg(double value) { - _internal_set_longitude_deg(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.longitude_deg) +inline void DoOrbitRequest::set_longitude_deg(double value) +{ + _internal_set_longitude_deg(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.longitude_deg) } -inline double DoOrbitRequest::_internal_longitude_deg() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.longitude_deg_; +inline double DoOrbitRequest::_internal_longitude_deg() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.longitude_deg_; } -inline void DoOrbitRequest::_internal_set_longitude_deg(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.longitude_deg_ = value; +inline void DoOrbitRequest::_internal_set_longitude_deg(double value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.longitude_deg_ = value; } // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; -inline void DoOrbitRequest::clear_absolute_altitude_m() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.absolute_altitude_m_ = 0; +inline void DoOrbitRequest::clear_absolute_altitude_m() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.absolute_altitude_m_ = 0; } -inline double DoOrbitRequest::absolute_altitude_m() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.absolute_altitude_m) - return _internal_absolute_altitude_m(); +inline double DoOrbitRequest::absolute_altitude_m() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.absolute_altitude_m) + return _internal_absolute_altitude_m(); } -inline void DoOrbitRequest::set_absolute_altitude_m(double value) { - _internal_set_absolute_altitude_m(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.absolute_altitude_m) +inline void DoOrbitRequest::set_absolute_altitude_m(double value) +{ + _internal_set_absolute_altitude_m(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.absolute_altitude_m) } -inline double DoOrbitRequest::_internal_absolute_altitude_m() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.absolute_altitude_m_; +inline double DoOrbitRequest::_internal_absolute_altitude_m() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.absolute_altitude_m_; } -inline void DoOrbitRequest::_internal_set_absolute_altitude_m(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.absolute_altitude_m_ = value; +inline void DoOrbitRequest::_internal_set_absolute_altitude_m(double value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.absolute_altitude_m_ = value; } // ------------------------------------------------------------------- @@ -8933,99 +10303,118 @@ inline void DoOrbitRequest::_internal_set_absolute_altitude_m(double value) { // DoOrbitResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool DoOrbitResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void DoOrbitResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& DoOrbitResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& DoOrbitResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitResponse.action_result) - return _internal_action_result(); -} -inline void DoOrbitResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool DoOrbitResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void DoOrbitResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.DoOrbitResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.DoOrbitResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.DoOrbitResponse.action_result) - return _msg; -} -inline void DoOrbitResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action::ActionResult& DoOrbitResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +DoOrbitResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitResponse.action_result) + return _internal_action_result(); +} +inline void DoOrbitResponse::unsafe_arena_set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.DoOrbitResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.DoOrbitResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +DoOrbitResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.DoOrbitResponse.action_result) + return _msg; +} +inline void DoOrbitResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.DoOrbitResponse.action_result) + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.DoOrbitResponse.action_result) } // ------------------------------------------------------------------- @@ -9037,99 +10426,118 @@ inline void DoOrbitResponse::set_allocated_action_result(::mavsdk::rpc::action:: // HoldResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool HoldResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void HoldResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& HoldResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& HoldResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.HoldResponse.action_result) - return _internal_action_result(); -} -inline void HoldResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool HoldResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void HoldResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.HoldResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* HoldResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* HoldResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.HoldResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* HoldResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* HoldResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.HoldResponse.action_result) - return _msg; -} -inline void HoldResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action::ActionResult& HoldResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +HoldResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.HoldResponse.action_result) + return _internal_action_result(); +} +inline void +HoldResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.HoldResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* HoldResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* HoldResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.HoldResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* HoldResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +HoldResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.HoldResponse.action_result) + return _msg; +} +inline void HoldResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.HoldResponse.action_result) + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.HoldResponse.action_result) } // ------------------------------------------------------------------- @@ -9137,49 +10545,57 @@ inline void HoldResponse::set_allocated_action_result(::mavsdk::rpc::action::Act // SetActuatorRequest // int32 index = 1; -inline void SetActuatorRequest::clear_index() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.index_ = 0; +inline void SetActuatorRequest::clear_index() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.index_ = 0; } -inline ::int32_t SetActuatorRequest::index() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetActuatorRequest.index) - return _internal_index(); +inline ::int32_t SetActuatorRequest::index() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetActuatorRequest.index) + return _internal_index(); } -inline void SetActuatorRequest::set_index(::int32_t value) { - _internal_set_index(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetActuatorRequest.index) +inline void SetActuatorRequest::set_index(::int32_t value) +{ + _internal_set_index(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetActuatorRequest.index) } -inline ::int32_t SetActuatorRequest::_internal_index() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.index_; +inline ::int32_t SetActuatorRequest::_internal_index() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.index_; } -inline void SetActuatorRequest::_internal_set_index(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.index_ = value; +inline void SetActuatorRequest::_internal_set_index(::int32_t value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.index_ = value; } // float value = 2; -inline void SetActuatorRequest::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = 0; +inline void SetActuatorRequest::clear_value() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.value_ = 0; } -inline float SetActuatorRequest::value() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetActuatorRequest.value) - return _internal_value(); +inline float SetActuatorRequest::value() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetActuatorRequest.value) + return _internal_value(); } -inline void SetActuatorRequest::set_value(float value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetActuatorRequest.value) +inline void SetActuatorRequest::set_value(float value) +{ + _internal_set_value(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetActuatorRequest.value) } -inline float SetActuatorRequest::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_; +inline float SetActuatorRequest::_internal_value() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.value_; } -inline void SetActuatorRequest::_internal_set_value(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.value_ = value; +inline void SetActuatorRequest::_internal_set_value(float value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.value_ = value; } // ------------------------------------------------------------------- @@ -9187,99 +10603,121 @@ inline void SetActuatorRequest::_internal_set_value(float value) { // SetActuatorResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool SetActuatorResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void SetActuatorResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& SetActuatorResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& SetActuatorResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetActuatorResponse.action_result) - return _internal_action_result(); -} -inline void SetActuatorResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool SetActuatorResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void SetActuatorResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::mavsdk::rpc::action::ActionResult& +SetActuatorResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +SetActuatorResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetActuatorResponse.action_result) + return _internal_action_result(); +} +inline void SetActuatorResponse::unsafe_arena_set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); + } + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.SetActuatorResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* +SetActuatorResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetActuatorResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.SetActuatorResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetActuatorResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.SetActuatorResponse.action_result) - return _msg; -} -inline void SetActuatorResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +SetActuatorResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.SetActuatorResponse.action_result) + return _msg; +} +inline void +SetActuatorResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetActuatorResponse.action_result) + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetActuatorResponse.action_result) } // ------------------------------------------------------------------- @@ -9291,99 +10729,122 @@ inline void SetActuatorResponse::set_allocated_action_result(::mavsdk::rpc::acti // TransitionToFixedwingResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool TransitionToFixedwingResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void TransitionToFixedwingResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& TransitionToFixedwingResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& TransitionToFixedwingResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) - return _internal_action_result(); -} -inline void TransitionToFixedwingResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool TransitionToFixedwingResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void TransitionToFixedwingResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* TransitionToFixedwingResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* TransitionToFixedwingResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* TransitionToFixedwingResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* TransitionToFixedwingResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) - return _msg; -} -inline void TransitionToFixedwingResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action::ActionResult& +TransitionToFixedwingResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +TransitionToFixedwingResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) + return _internal_action_result(); +} +inline void TransitionToFixedwingResponse::unsafe_arena_set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* TransitionToFixedwingResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* +TransitionToFixedwingResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* +TransitionToFixedwingResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +TransitionToFixedwingResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) + return _msg; +} +inline void TransitionToFixedwingResponse::set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) } // ------------------------------------------------------------------- @@ -9395,99 +10856,122 @@ inline void TransitionToFixedwingResponse::set_allocated_action_result(::mavsdk: // TransitionToMulticopterResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool TransitionToMulticopterResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void TransitionToMulticopterResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& TransitionToMulticopterResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& TransitionToMulticopterResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) - return _internal_action_result(); -} -inline void TransitionToMulticopterResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool TransitionToMulticopterResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void TransitionToMulticopterResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* TransitionToMulticopterResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* TransitionToMulticopterResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* TransitionToMulticopterResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* TransitionToMulticopterResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) - return _msg; -} -inline void TransitionToMulticopterResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action::ActionResult& +TransitionToMulticopterResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +TransitionToMulticopterResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) + return _internal_action_result(); +} +inline void TransitionToMulticopterResponse::unsafe_arena_set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* TransitionToMulticopterResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* +TransitionToMulticopterResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* +TransitionToMulticopterResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +TransitionToMulticopterResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) + return _msg; +} +inline void TransitionToMulticopterResponse::set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) } // ------------------------------------------------------------------- @@ -9499,122 +10983,149 @@ inline void TransitionToMulticopterResponse::set_allocated_action_result(::mavsd // GetTakeoffAltitudeResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool GetTakeoffAltitudeResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void GetTakeoffAltitudeResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& GetTakeoffAltitudeResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& GetTakeoffAltitudeResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GetTakeoffAltitudeResponse.action_result) - return _internal_action_result(); -} -inline void GetTakeoffAltitudeResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool GetTakeoffAltitudeResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void GetTakeoffAltitudeResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.GetTakeoffAltitudeResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* GetTakeoffAltitudeResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* GetTakeoffAltitudeResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.GetTakeoffAltitudeResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* GetTakeoffAltitudeResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* GetTakeoffAltitudeResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.GetTakeoffAltitudeResponse.action_result) - return _msg; -} -inline void GetTakeoffAltitudeResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action::ActionResult& +GetTakeoffAltitudeResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +GetTakeoffAltitudeResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GetTakeoffAltitudeResponse.action_result) + return _internal_action_result(); +} +inline void GetTakeoffAltitudeResponse::unsafe_arena_set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.GetTakeoffAltitudeResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* GetTakeoffAltitudeResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* +GetTakeoffAltitudeResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.GetTakeoffAltitudeResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* +GetTakeoffAltitudeResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +GetTakeoffAltitudeResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.GetTakeoffAltitudeResponse.action_result) + return _msg; +} +inline void +GetTakeoffAltitudeResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.GetTakeoffAltitudeResponse.action_result) + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.GetTakeoffAltitudeResponse.action_result) } // float altitude = 2; -inline void GetTakeoffAltitudeResponse::clear_altitude() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.altitude_ = 0; +inline void GetTakeoffAltitudeResponse::clear_altitude() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.altitude_ = 0; } -inline float GetTakeoffAltitudeResponse::altitude() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GetTakeoffAltitudeResponse.altitude) - return _internal_altitude(); +inline float GetTakeoffAltitudeResponse::altitude() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GetTakeoffAltitudeResponse.altitude) + return _internal_altitude(); } -inline void GetTakeoffAltitudeResponse::set_altitude(float value) { - _internal_set_altitude(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GetTakeoffAltitudeResponse.altitude) +inline void GetTakeoffAltitudeResponse::set_altitude(float value) +{ + _internal_set_altitude(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GetTakeoffAltitudeResponse.altitude) } -inline float GetTakeoffAltitudeResponse::_internal_altitude() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.altitude_; +inline float GetTakeoffAltitudeResponse::_internal_altitude() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.altitude_; } -inline void GetTakeoffAltitudeResponse::_internal_set_altitude(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.altitude_ = value; +inline void GetTakeoffAltitudeResponse::_internal_set_altitude(float value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.altitude_ = value; } // ------------------------------------------------------------------- @@ -9622,26 +11133,30 @@ inline void GetTakeoffAltitudeResponse::_internal_set_altitude(float value) { // SetTakeoffAltitudeRequest // float altitude = 1; -inline void SetTakeoffAltitudeRequest::clear_altitude() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.altitude_ = 0; +inline void SetTakeoffAltitudeRequest::clear_altitude() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.altitude_ = 0; } -inline float SetTakeoffAltitudeRequest::altitude() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetTakeoffAltitudeRequest.altitude) - return _internal_altitude(); +inline float SetTakeoffAltitudeRequest::altitude() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetTakeoffAltitudeRequest.altitude) + return _internal_altitude(); } -inline void SetTakeoffAltitudeRequest::set_altitude(float value) { - _internal_set_altitude(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetTakeoffAltitudeRequest.altitude) +inline void SetTakeoffAltitudeRequest::set_altitude(float value) +{ + _internal_set_altitude(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetTakeoffAltitudeRequest.altitude) } -inline float SetTakeoffAltitudeRequest::_internal_altitude() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.altitude_; +inline float SetTakeoffAltitudeRequest::_internal_altitude() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.altitude_; } -inline void SetTakeoffAltitudeRequest::_internal_set_altitude(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.altitude_ = value; +inline void SetTakeoffAltitudeRequest::_internal_set_altitude(float value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.altitude_ = value; } // ------------------------------------------------------------------- @@ -9649,99 +11164,122 @@ inline void SetTakeoffAltitudeRequest::_internal_set_altitude(float value) { // SetTakeoffAltitudeResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool SetTakeoffAltitudeResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void SetTakeoffAltitudeResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& SetTakeoffAltitudeResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& SetTakeoffAltitudeResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) - return _internal_action_result(); -} -inline void SetTakeoffAltitudeResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool SetTakeoffAltitudeResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void SetTakeoffAltitudeResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* SetTakeoffAltitudeResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* SetTakeoffAltitudeResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* SetTakeoffAltitudeResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* SetTakeoffAltitudeResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) - return _msg; -} -inline void SetTakeoffAltitudeResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action::ActionResult& +SetTakeoffAltitudeResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +SetTakeoffAltitudeResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) + return _internal_action_result(); +} +inline void SetTakeoffAltitudeResponse::unsafe_arena_set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* SetTakeoffAltitudeResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* +SetTakeoffAltitudeResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* +SetTakeoffAltitudeResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +SetTakeoffAltitudeResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) + return _msg; +} +inline void +SetTakeoffAltitudeResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) } // ------------------------------------------------------------------- @@ -9753,122 +11291,150 @@ inline void SetTakeoffAltitudeResponse::set_allocated_action_result(::mavsdk::rp // GetReturnToLaunchAltitudeResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool GetReturnToLaunchAltitudeResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void GetReturnToLaunchAltitudeResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& GetReturnToLaunchAltitudeResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& GetReturnToLaunchAltitudeResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.action_result) - return _internal_action_result(); -} -inline void GetReturnToLaunchAltitudeResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool GetReturnToLaunchAltitudeResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void GetReturnToLaunchAltitudeResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* GetReturnToLaunchAltitudeResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* GetReturnToLaunchAltitudeResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* GetReturnToLaunchAltitudeResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* GetReturnToLaunchAltitudeResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.action_result) - return _msg; -} -inline void GetReturnToLaunchAltitudeResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action::ActionResult& +GetReturnToLaunchAltitudeResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +GetReturnToLaunchAltitudeResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.action_result) + return _internal_action_result(); +} +inline void GetReturnToLaunchAltitudeResponse::unsafe_arena_set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* +GetReturnToLaunchAltitudeResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* +GetReturnToLaunchAltitudeResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* +GetReturnToLaunchAltitudeResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +GetReturnToLaunchAltitudeResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.action_result) + return _msg; +} +inline void GetReturnToLaunchAltitudeResponse::set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.action_result) + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.action_result) } // float relative_altitude_m = 2; -inline void GetReturnToLaunchAltitudeResponse::clear_relative_altitude_m() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.relative_altitude_m_ = 0; +inline void GetReturnToLaunchAltitudeResponse::clear_relative_altitude_m() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.relative_altitude_m_ = 0; } -inline float GetReturnToLaunchAltitudeResponse::relative_altitude_m() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.relative_altitude_m) - return _internal_relative_altitude_m(); +inline float GetReturnToLaunchAltitudeResponse::relative_altitude_m() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.relative_altitude_m) + return _internal_relative_altitude_m(); } -inline void GetReturnToLaunchAltitudeResponse::set_relative_altitude_m(float value) { - _internal_set_relative_altitude_m(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.relative_altitude_m) +inline void GetReturnToLaunchAltitudeResponse::set_relative_altitude_m(float value) +{ + _internal_set_relative_altitude_m(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.relative_altitude_m) } -inline float GetReturnToLaunchAltitudeResponse::_internal_relative_altitude_m() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.relative_altitude_m_; +inline float GetReturnToLaunchAltitudeResponse::_internal_relative_altitude_m() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.relative_altitude_m_; } -inline void GetReturnToLaunchAltitudeResponse::_internal_set_relative_altitude_m(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.relative_altitude_m_ = value; +inline void GetReturnToLaunchAltitudeResponse::_internal_set_relative_altitude_m(float value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.relative_altitude_m_ = value; } // ------------------------------------------------------------------- @@ -9876,26 +11442,30 @@ inline void GetReturnToLaunchAltitudeResponse::_internal_set_relative_altitude_m // SetReturnToLaunchAltitudeRequest // float relative_altitude_m = 1; -inline void SetReturnToLaunchAltitudeRequest::clear_relative_altitude_m() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.relative_altitude_m_ = 0; +inline void SetReturnToLaunchAltitudeRequest::clear_relative_altitude_m() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.relative_altitude_m_ = 0; } -inline float SetReturnToLaunchAltitudeRequest::relative_altitude_m() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest.relative_altitude_m) - return _internal_relative_altitude_m(); +inline float SetReturnToLaunchAltitudeRequest::relative_altitude_m() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest.relative_altitude_m) + return _internal_relative_altitude_m(); } -inline void SetReturnToLaunchAltitudeRequest::set_relative_altitude_m(float value) { - _internal_set_relative_altitude_m(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest.relative_altitude_m) +inline void SetReturnToLaunchAltitudeRequest::set_relative_altitude_m(float value) +{ + _internal_set_relative_altitude_m(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest.relative_altitude_m) } -inline float SetReturnToLaunchAltitudeRequest::_internal_relative_altitude_m() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.relative_altitude_m_; +inline float SetReturnToLaunchAltitudeRequest::_internal_relative_altitude_m() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.relative_altitude_m_; } -inline void SetReturnToLaunchAltitudeRequest::_internal_set_relative_altitude_m(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.relative_altitude_m_ = value; +inline void SetReturnToLaunchAltitudeRequest::_internal_set_relative_altitude_m(float value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.relative_altitude_m_ = value; } // ------------------------------------------------------------------- @@ -9903,99 +11473,123 @@ inline void SetReturnToLaunchAltitudeRequest::_internal_set_relative_altitude_m( // SetReturnToLaunchAltitudeResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool SetReturnToLaunchAltitudeResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void SetReturnToLaunchAltitudeResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& SetReturnToLaunchAltitudeResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& SetReturnToLaunchAltitudeResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) - return _internal_action_result(); -} -inline void SetReturnToLaunchAltitudeResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool SetReturnToLaunchAltitudeResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void SetReturnToLaunchAltitudeResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* SetReturnToLaunchAltitudeResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* SetReturnToLaunchAltitudeResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* SetReturnToLaunchAltitudeResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* SetReturnToLaunchAltitudeResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) - return _msg; -} -inline void SetReturnToLaunchAltitudeResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action::ActionResult& +SetReturnToLaunchAltitudeResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +SetReturnToLaunchAltitudeResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) + return _internal_action_result(); +} +inline void SetReturnToLaunchAltitudeResponse::unsafe_arena_set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* +SetReturnToLaunchAltitudeResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* +SetReturnToLaunchAltitudeResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* +SetReturnToLaunchAltitudeResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +SetReturnToLaunchAltitudeResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) + return _msg; +} +inline void SetReturnToLaunchAltitudeResponse::set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) } // ------------------------------------------------------------------- @@ -10003,26 +11597,30 @@ inline void SetReturnToLaunchAltitudeResponse::set_allocated_action_result(::mav // SetCurrentSpeedRequest // float speed_m_s = 1; -inline void SetCurrentSpeedRequest::clear_speed_m_s() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.speed_m_s_ = 0; +inline void SetCurrentSpeedRequest::clear_speed_m_s() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.speed_m_s_ = 0; } -inline float SetCurrentSpeedRequest::speed_m_s() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetCurrentSpeedRequest.speed_m_s) - return _internal_speed_m_s(); +inline float SetCurrentSpeedRequest::speed_m_s() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetCurrentSpeedRequest.speed_m_s) + return _internal_speed_m_s(); } -inline void SetCurrentSpeedRequest::set_speed_m_s(float value) { - _internal_set_speed_m_s(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetCurrentSpeedRequest.speed_m_s) +inline void SetCurrentSpeedRequest::set_speed_m_s(float value) +{ + _internal_set_speed_m_s(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetCurrentSpeedRequest.speed_m_s) } -inline float SetCurrentSpeedRequest::_internal_speed_m_s() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.speed_m_s_; +inline float SetCurrentSpeedRequest::_internal_speed_m_s() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.speed_m_s_; } -inline void SetCurrentSpeedRequest::_internal_set_speed_m_s(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.speed_m_s_ = value; +inline void SetCurrentSpeedRequest::_internal_set_speed_m_s(float value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.speed_m_s_ = value; } // ------------------------------------------------------------------- @@ -10030,99 +11628,122 @@ inline void SetCurrentSpeedRequest::_internal_set_speed_m_s(float value) { // SetCurrentSpeedResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool SetCurrentSpeedResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void SetCurrentSpeedResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& SetCurrentSpeedResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& SetCurrentSpeedResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) - return _internal_action_result(); -} -inline void SetCurrentSpeedResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool SetCurrentSpeedResponse::has_action_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; +} +inline void SetCurrentSpeedResponse::clear_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ != nullptr) + _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* SetCurrentSpeedResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* SetCurrentSpeedResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* SetCurrentSpeedResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* SetCurrentSpeedResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) - return _msg; -} -inline void SetCurrentSpeedResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action::ActionResult& +SetCurrentSpeedResponse::_internal_action_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action::_ActionResult_default_instance_); +} +inline const ::mavsdk::rpc::action::ActionResult& +SetCurrentSpeedResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) + return _internal_action_result(); +} +inline void SetCurrentSpeedResponse::unsafe_arena_set_allocated_action_result( + ::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) +} +inline ::mavsdk::rpc::action::ActionResult* SetCurrentSpeedResponse::release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; + _impl_.action_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action::ActionResult* +SetCurrentSpeedResponse::unsafe_arena_release_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action::ActionResult* +SetCurrentSpeedResponse::_internal_mutable_action_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_result_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>( + GetArena()); + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); + } + return _impl_.action_result_; +} +inline ::mavsdk::rpc::action::ActionResult* +SetCurrentSpeedResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) + return _msg; +} +inline void +SetCurrentSpeedResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) } // ------------------------------------------------------------------- @@ -10130,112 +11751,117 @@ inline void SetCurrentSpeedResponse::set_allocated_action_result(::mavsdk::rpc:: // ActionResult // .mavsdk.rpc.action.ActionResult.Result result = 1; -inline void ActionResult::clear_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_ = 0; +inline void ActionResult::clear_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_ = 0; } -inline ::mavsdk::rpc::action::ActionResult_Result ActionResult::result() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.ActionResult.result) - return _internal_result(); +inline ::mavsdk::rpc::action::ActionResult_Result ActionResult::result() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.ActionResult.result) + return _internal_result(); } -inline void ActionResult::set_result(::mavsdk::rpc::action::ActionResult_Result value) { - _internal_set_result(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.ActionResult.result) +inline void ActionResult::set_result(::mavsdk::rpc::action::ActionResult_Result value) +{ + _internal_set_result(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.ActionResult.result) } -inline ::mavsdk::rpc::action::ActionResult_Result ActionResult::_internal_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::mavsdk::rpc::action::ActionResult_Result>(_impl_.result_); +inline ::mavsdk::rpc::action::ActionResult_Result ActionResult::_internal_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::mavsdk::rpc::action::ActionResult_Result>(_impl_.result_); } -inline void ActionResult::_internal_set_result(::mavsdk::rpc::action::ActionResult_Result value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.result_ = value; +inline void ActionResult::_internal_set_result(::mavsdk::rpc::action::ActionResult_Result value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_ = value; } // string result_str = 2; -inline void ActionResult::clear_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_str_.ClearToEmpty(); -} -inline const std::string& ActionResult::result_str() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.ActionResult.result_str) - return _internal_result_str(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ActionResult::set_result_str(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.result_str_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.ActionResult.result_str) -} -inline std::string* ActionResult::mutable_result_str() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_result_str(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.ActionResult.result_str) - return _s; -} -inline const std::string& ActionResult::_internal_result_str() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.result_str_.Get(); -} -inline void ActionResult::_internal_set_result_str(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.result_str_.Set(value, GetArena()); -} -inline std::string* ActionResult::_internal_mutable_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.result_str_.Mutable( GetArena()); -} -inline std::string* ActionResult::release_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ActionResult.result_str) - return _impl_.result_str_.Release(); -} -inline void ActionResult::set_allocated_result_str(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_str_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.result_str_.IsDefault()) { - _impl_.result_str_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ActionResult.result_str) +inline void ActionResult::clear_result_str() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.ClearToEmpty(); +} +inline const std::string& ActionResult::result_str() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action.ActionResult.result_str) + return _internal_result_str(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ActionResult::set_result_str(Arg_&& arg, Args_... args) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action.ActionResult.result_str) +} +inline std::string* ActionResult::mutable_result_str() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + std::string* _s = _internal_mutable_result_str(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.ActionResult.result_str) + return _s; +} +inline const std::string& ActionResult::_internal_result_str() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.result_str_.Get(); +} +inline void ActionResult::_internal_set_result_str(const std::string& value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.Set(value, GetArena()); +} +inline std::string* ActionResult::_internal_mutable_result_str() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.result_str_.Mutable(GetArena()); +} +inline std::string* ActionResult::release_result_str() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ActionResult.result_str) + return _impl_.result_str_.Release(); +} +inline void ActionResult::set_allocated_result_str(std::string* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && + _impl_.result_str_.IsDefault()) { + _impl_.result_str_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ActionResult.result_str) } #ifdef __GNUC__ #pragma GCC diagnostic pop -#endif // __GNUC__ +#endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) -} // namespace action -} // namespace rpc -} // namespace mavsdk - +} // namespace action +} // namespace rpc +} // namespace mavsdk namespace google { namespace protobuf { -template <> -struct is_proto_enum<::mavsdk::rpc::action::ActionResult_Result> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::action::ActionResult_Result>() { - return ::mavsdk::rpc::action::ActionResult_Result_descriptor(); +template<> struct is_proto_enum<::mavsdk::rpc::action::ActionResult_Result> : std::true_type {}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::action::ActionResult_Result>() +{ + return ::mavsdk::rpc::action::ActionResult_Result_descriptor(); } -template <> -struct is_proto_enum<::mavsdk::rpc::action::OrbitYawBehavior> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::action::OrbitYawBehavior>() { - return ::mavsdk::rpc::action::OrbitYawBehavior_descriptor(); +template<> struct is_proto_enum<::mavsdk::rpc::action::OrbitYawBehavior> : std::true_type {}; +template<> inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::action::OrbitYawBehavior>() +{ + return ::mavsdk::rpc::action::OrbitYawBehavior_descriptor(); } -} // namespace protobuf -} // namespace google +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_action_2faction_2eproto_2epb_2eh +#endif // action_2faction_2eproto_2epb_2eh diff --git a/src/mavsdk_server/src/generated/action_server/action_server.pb.cc b/src/mavsdk_server/src/generated/action_server/action_server.pb.cc index 14c2063b57..1569f36e58 100644 --- a/src/mavsdk_server/src/generated/action_server/action_server.pb.cc +++ b/src/mavsdk_server/src/generated/action_server/action_server.pb.cc @@ -1,17 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: action_server/action_server.proto +// Protobuf C++ Version: 5.29.1 #include "action_server/action_server.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -23,788 +27,1120 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace mavsdk { namespace rpc { namespace action_server { - template -PROTOBUF_CONSTEXPR SubscribeTerminateRequest::SubscribeTerminateRequest(::_pbi::ConstantInitialized) {} -struct SubscribeTerminateRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeTerminateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeTerminateRequestDefaultTypeInternal() {} - union { - SubscribeTerminateRequest _instance; - }; +template +PROTOBUF_CONSTEXPR SubscribeTerminateRequest::SubscribeTerminateRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeTerminateRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeTerminateRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeTerminateRequestDefaultTypeInternal() {} + union { + SubscribeTerminateRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeTerminateRequestDefaultTypeInternal _SubscribeTerminateRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeTakeoffRequest::SubscribeTakeoffRequest(::_pbi::ConstantInitialized) {} -struct SubscribeTakeoffRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeTakeoffRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeTakeoffRequestDefaultTypeInternal() {} - union { - SubscribeTakeoffRequest _instance; - }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeTerminateRequestDefaultTypeInternal _SubscribeTerminateRequest_default_instance_; +template +PROTOBUF_CONSTEXPR SubscribeTakeoffRequest::SubscribeTakeoffRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeTakeoffRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeTakeoffRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeTakeoffRequestDefaultTypeInternal() {} + union { + SubscribeTakeoffRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeTakeoffRequestDefaultTypeInternal _SubscribeTakeoffRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeShutdownRequest::SubscribeShutdownRequest(::_pbi::ConstantInitialized) {} -struct SubscribeShutdownRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeShutdownRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeShutdownRequestDefaultTypeInternal() {} - union { - SubscribeShutdownRequest _instance; - }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeTakeoffRequestDefaultTypeInternal _SubscribeTakeoffRequest_default_instance_; +template +PROTOBUF_CONSTEXPR SubscribeShutdownRequest::SubscribeShutdownRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeShutdownRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeShutdownRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeShutdownRequestDefaultTypeInternal() {} + union { + SubscribeShutdownRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeShutdownRequestDefaultTypeInternal _SubscribeShutdownRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeRebootRequest::SubscribeRebootRequest(::_pbi::ConstantInitialized) {} -struct SubscribeRebootRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeRebootRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeRebootRequestDefaultTypeInternal() {} - union { - SubscribeRebootRequest _instance; - }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeShutdownRequestDefaultTypeInternal _SubscribeShutdownRequest_default_instance_; +template +PROTOBUF_CONSTEXPR SubscribeRebootRequest::SubscribeRebootRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeRebootRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeRebootRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeRebootRequestDefaultTypeInternal() {} + union { + SubscribeRebootRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeRebootRequestDefaultTypeInternal _SubscribeRebootRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeLandRequest::SubscribeLandRequest(::_pbi::ConstantInitialized) {} -struct SubscribeLandRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeLandRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeLandRequestDefaultTypeInternal() {} - union { - SubscribeLandRequest _instance; - }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeRebootRequestDefaultTypeInternal _SubscribeRebootRequest_default_instance_; +template +PROTOBUF_CONSTEXPR SubscribeLandRequest::SubscribeLandRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeLandRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeLandRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeLandRequestDefaultTypeInternal() {} + union { + SubscribeLandRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeLandRequestDefaultTypeInternal _SubscribeLandRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest(::_pbi::ConstantInitialized) {} -struct SubscribeFlightModeChangeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeFlightModeChangeRequestDefaultTypeInternal() {} - union { - SubscribeFlightModeChangeRequest _instance; - }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeLandRequestDefaultTypeInternal _SubscribeLandRequest_default_instance_; +template +PROTOBUF_CONSTEXPR +SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeFlightModeChangeRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeFlightModeChangeRequestDefaultTypeInternal() {} + union { + SubscribeFlightModeChangeRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeFlightModeChangeRequestDefaultTypeInternal _SubscribeFlightModeChangeRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeArmDisarmRequest::SubscribeArmDisarmRequest(::_pbi::ConstantInitialized) {} -struct SubscribeArmDisarmRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeArmDisarmRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeArmDisarmRequestDefaultTypeInternal() {} - union { - SubscribeArmDisarmRequest _instance; - }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeFlightModeChangeRequestDefaultTypeInternal + _SubscribeFlightModeChangeRequest_default_instance_; +template +PROTOBUF_CONSTEXPR SubscribeArmDisarmRequest::SubscribeArmDisarmRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeArmDisarmRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeArmDisarmRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeArmDisarmRequestDefaultTypeInternal() {} + union { + SubscribeArmDisarmRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeArmDisarmRequestDefaultTypeInternal _SubscribeArmDisarmRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeArmDisarmRequestDefaultTypeInternal _SubscribeArmDisarmRequest_default_instance_; -inline constexpr SetDisarmableRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : disarmable_{false}, - force_disarmable_{false}, - _cached_size_{0} {} +inline constexpr SetDisarmableRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + disarmable_{false}, + force_disarmable_{false}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR SetDisarmableRequest::SetDisarmableRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetDisarmableRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetDisarmableRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetDisarmableRequestDefaultTypeInternal() {} - union { - SetDisarmableRequest _instance; - }; + PROTOBUF_CONSTEXPR SetDisarmableRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetDisarmableRequestDefaultTypeInternal() {} + union { + SetDisarmableRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetDisarmableRequestDefaultTypeInternal _SetDisarmableRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetDisarmableRequestDefaultTypeInternal _SetDisarmableRequest_default_instance_; -inline constexpr SetArmableRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : armable_{false}, - force_armable_{false}, - _cached_size_{0} {} +inline constexpr SetArmableRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + armable_{false}, + force_armable_{false}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR SetArmableRequest::SetArmableRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetArmableRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetArmableRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetArmableRequestDefaultTypeInternal() {} - union { - SetArmableRequest _instance; - }; + PROTOBUF_CONSTEXPR SetArmableRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetArmableRequestDefaultTypeInternal() {} + union { + SetArmableRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetArmableRequestDefaultTypeInternal _SetArmableRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetArmableRequestDefaultTypeInternal _SetArmableRequest_default_instance_; -inline constexpr SetAllowTakeoffRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : allow_takeoff_{false}, - _cached_size_{0} {} +inline constexpr SetAllowTakeoffRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + allow_takeoff_{false}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR SetAllowTakeoffRequest::SetAllowTakeoffRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetAllowTakeoffRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetAllowTakeoffRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetAllowTakeoffRequestDefaultTypeInternal() {} - union { - SetAllowTakeoffRequest _instance; - }; + PROTOBUF_CONSTEXPR SetAllowTakeoffRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetAllowTakeoffRequestDefaultTypeInternal() {} + union { + SetAllowTakeoffRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAllowTakeoffRequestDefaultTypeInternal _SetAllowTakeoffRequest_default_instance_; - template -PROTOBUF_CONSTEXPR GetAllowableFlightModesRequest::GetAllowableFlightModesRequest(::_pbi::ConstantInitialized) {} -struct GetAllowableFlightModesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetAllowableFlightModesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetAllowableFlightModesRequestDefaultTypeInternal() {} - union { - GetAllowableFlightModesRequest _instance; - }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetAllowTakeoffRequestDefaultTypeInternal _SetAllowTakeoffRequest_default_instance_; +template +PROTOBUF_CONSTEXPR +GetAllowableFlightModesRequest::GetAllowableFlightModesRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct GetAllowableFlightModesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetAllowableFlightModesRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~GetAllowableFlightModesRequestDefaultTypeInternal() {} + union { + GetAllowableFlightModesRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAllowableFlightModesRequestDefaultTypeInternal _GetAllowableFlightModesRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + GetAllowableFlightModesRequestDefaultTypeInternal + _GetAllowableFlightModesRequest_default_instance_; -inline constexpr ArmDisarm::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : arm_{false}, - force_{false}, - _cached_size_{0} {} +inline constexpr ArmDisarm::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + arm_{false}, + force_{false}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR ArmDisarm::ArmDisarm(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ArmDisarmDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArmDisarmDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ArmDisarmDefaultTypeInternal() {} - union { - ArmDisarm _instance; - }; + PROTOBUF_CONSTEXPR ArmDisarmDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ArmDisarmDefaultTypeInternal() {} + union { + ArmDisarm _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmDisarmDefaultTypeInternal _ArmDisarm_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ArmDisarmDefaultTypeInternal _ArmDisarm_default_instance_; -inline constexpr AllowableFlightModes::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : can_auto_mode_{false}, - can_guided_mode_{false}, - can_stabilize_mode_{false}, - _cached_size_{0} {} +inline constexpr AllowableFlightModes::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + can_auto_mode_{false}, + can_guided_mode_{false}, + can_stabilize_mode_{false}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR AllowableFlightModes::AllowableFlightModes(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct AllowableFlightModesDefaultTypeInternal { - PROTOBUF_CONSTEXPR AllowableFlightModesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AllowableFlightModesDefaultTypeInternal() {} - union { - AllowableFlightModes _instance; - }; + PROTOBUF_CONSTEXPR AllowableFlightModesDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~AllowableFlightModesDefaultTypeInternal() {} + union { + AllowableFlightModes _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AllowableFlightModesDefaultTypeInternal _AllowableFlightModes_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + AllowableFlightModesDefaultTypeInternal _AllowableFlightModes_default_instance_; -inline constexpr ActionServerResult::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : result_str_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - result_{static_cast< ::mavsdk::rpc::action_server::ActionServerResult_Result >(0)}, - _cached_size_{0} {} +inline constexpr ActionServerResult::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + result_str_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + result_{static_cast<::mavsdk::rpc::action_server::ActionServerResult_Result>(0)}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR ActionServerResult::ActionServerResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ActionServerResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR ActionServerResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ActionServerResultDefaultTypeInternal() {} - union { - ActionServerResult _instance; - }; + PROTOBUF_CONSTEXPR ActionServerResultDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ActionServerResultDefaultTypeInternal() {} + union { + ActionServerResult _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ActionServerResultDefaultTypeInternal _ActionServerResult_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ActionServerResultDefaultTypeInternal _ActionServerResult_default_instance_; -inline constexpr TerminateResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_server_result_{nullptr}, - terminate_{false} {} +inline constexpr TerminateResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_server_result_{nullptr}, + terminate_{false} +{} -template +template PROTOBUF_CONSTEXPR TerminateResponse::TerminateResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct TerminateResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TerminateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TerminateResponseDefaultTypeInternal() {} - union { - TerminateResponse _instance; - }; + PROTOBUF_CONSTEXPR TerminateResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TerminateResponseDefaultTypeInternal() {} + union { + TerminateResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminateResponseDefaultTypeInternal _TerminateResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TerminateResponseDefaultTypeInternal _TerminateResponse_default_instance_; -inline constexpr TakeoffResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_server_result_{nullptr}, - takeoff_{false} {} +inline constexpr TakeoffResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_server_result_{nullptr}, + takeoff_{false} +{} -template +template PROTOBUF_CONSTEXPR TakeoffResponse::TakeoffResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct TakeoffResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TakeoffResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TakeoffResponseDefaultTypeInternal() {} - union { - TakeoffResponse _instance; - }; + PROTOBUF_CONSTEXPR TakeoffResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TakeoffResponseDefaultTypeInternal() {} + union { + TakeoffResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakeoffResponseDefaultTypeInternal _TakeoffResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TakeoffResponseDefaultTypeInternal _TakeoffResponse_default_instance_; -inline constexpr ShutdownResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_server_result_{nullptr}, - shutdown_{false} {} +inline constexpr ShutdownResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_server_result_{nullptr}, + shutdown_{false} +{} -template +template PROTOBUF_CONSTEXPR ShutdownResponse::ShutdownResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ShutdownResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShutdownResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShutdownResponseDefaultTypeInternal() {} - union { - ShutdownResponse _instance; - }; + PROTOBUF_CONSTEXPR ShutdownResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ShutdownResponseDefaultTypeInternal() {} + union { + ShutdownResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownResponseDefaultTypeInternal _ShutdownResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ShutdownResponseDefaultTypeInternal _ShutdownResponse_default_instance_; -inline constexpr SetDisarmableResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_server_result_{nullptr} {} +inline constexpr SetDisarmableResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_server_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR SetDisarmableResponse::SetDisarmableResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetDisarmableResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetDisarmableResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetDisarmableResponseDefaultTypeInternal() {} - union { - SetDisarmableResponse _instance; - }; + PROTOBUF_CONSTEXPR SetDisarmableResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetDisarmableResponseDefaultTypeInternal() {} + union { + SetDisarmableResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetDisarmableResponseDefaultTypeInternal _SetDisarmableResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetDisarmableResponseDefaultTypeInternal _SetDisarmableResponse_default_instance_; -inline constexpr SetArmableResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_server_result_{nullptr} {} +inline constexpr SetArmableResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_server_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR SetArmableResponse::SetArmableResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetArmableResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetArmableResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetArmableResponseDefaultTypeInternal() {} - union { - SetArmableResponse _instance; - }; + PROTOBUF_CONSTEXPR SetArmableResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetArmableResponseDefaultTypeInternal() {} + union { + SetArmableResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetArmableResponseDefaultTypeInternal _SetArmableResponse_default_instance_; - -inline constexpr SetAllowableFlightModesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_server_result_{nullptr} {} - -template -PROTOBUF_CONSTEXPR SetAllowableFlightModesResponse::SetAllowableFlightModesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetArmableResponseDefaultTypeInternal _SetArmableResponse_default_instance_; + +inline constexpr SetAllowableFlightModesResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept + : + _cached_size_{0}, + action_server_result_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR + SetAllowableFlightModesResponse::SetAllowableFlightModesResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetAllowableFlightModesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetAllowableFlightModesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetAllowableFlightModesResponseDefaultTypeInternal() {} - union { - SetAllowableFlightModesResponse _instance; - }; + PROTOBUF_CONSTEXPR SetAllowableFlightModesResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetAllowableFlightModesResponseDefaultTypeInternal() {} + union { + SetAllowableFlightModesResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAllowableFlightModesResponseDefaultTypeInternal _SetAllowableFlightModesResponse_default_instance_; - -inline constexpr SetAllowableFlightModesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - flight_modes_{nullptr} {} - -template -PROTOBUF_CONSTEXPR SetAllowableFlightModesRequest::SetAllowableFlightModesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetAllowableFlightModesResponseDefaultTypeInternal + _SetAllowableFlightModesResponse_default_instance_; + +inline constexpr SetAllowableFlightModesRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept + : + _cached_size_{0}, + flight_modes_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR + SetAllowableFlightModesRequest::SetAllowableFlightModesRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetAllowableFlightModesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetAllowableFlightModesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetAllowableFlightModesRequestDefaultTypeInternal() {} - union { - SetAllowableFlightModesRequest _instance; - }; + PROTOBUF_CONSTEXPR SetAllowableFlightModesRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetAllowableFlightModesRequestDefaultTypeInternal() {} + union { + SetAllowableFlightModesRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAllowableFlightModesRequestDefaultTypeInternal _SetAllowableFlightModesRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetAllowableFlightModesRequestDefaultTypeInternal + _SetAllowableFlightModesRequest_default_instance_; -inline constexpr SetAllowTakeoffResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_server_result_{nullptr} {} +inline constexpr SetAllowTakeoffResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_server_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR SetAllowTakeoffResponse::SetAllowTakeoffResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetAllowTakeoffResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetAllowTakeoffResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetAllowTakeoffResponseDefaultTypeInternal() {} - union { - SetAllowTakeoffResponse _instance; - }; + PROTOBUF_CONSTEXPR SetAllowTakeoffResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetAllowTakeoffResponseDefaultTypeInternal() {} + union { + SetAllowTakeoffResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAllowTakeoffResponseDefaultTypeInternal _SetAllowTakeoffResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetAllowTakeoffResponseDefaultTypeInternal _SetAllowTakeoffResponse_default_instance_; -inline constexpr RebootResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_server_result_{nullptr}, - reboot_{false} {} +inline constexpr RebootResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_server_result_{nullptr}, + reboot_{false} +{} -template +template PROTOBUF_CONSTEXPR RebootResponse::RebootResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct RebootResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RebootResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RebootResponseDefaultTypeInternal() {} - union { - RebootResponse _instance; - }; + PROTOBUF_CONSTEXPR RebootResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~RebootResponseDefaultTypeInternal() {} + union { + RebootResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RebootResponseDefaultTypeInternal _RebootResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + RebootResponseDefaultTypeInternal _RebootResponse_default_instance_; -inline constexpr LandResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_server_result_{nullptr}, - land_{false} {} +inline constexpr LandResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_server_result_{nullptr}, + land_{false} +{} -template +template PROTOBUF_CONSTEXPR LandResponse::LandResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct LandResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR LandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LandResponseDefaultTypeInternal() {} - union { - LandResponse _instance; - }; + PROTOBUF_CONSTEXPR LandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~LandResponseDefaultTypeInternal() {} + union { + LandResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandResponseDefaultTypeInternal _LandResponse_default_instance_; - -inline constexpr GetAllowableFlightModesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - flight_modes_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetAllowableFlightModesResponse::GetAllowableFlightModesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + LandResponseDefaultTypeInternal _LandResponse_default_instance_; + +inline constexpr GetAllowableFlightModesResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept + : + _cached_size_{0}, + flight_modes_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR + GetAllowableFlightModesResponse::GetAllowableFlightModesResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct GetAllowableFlightModesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetAllowableFlightModesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetAllowableFlightModesResponseDefaultTypeInternal() {} - union { - GetAllowableFlightModesResponse _instance; - }; + PROTOBUF_CONSTEXPR GetAllowableFlightModesResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~GetAllowableFlightModesResponseDefaultTypeInternal() {} + union { + GetAllowableFlightModesResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAllowableFlightModesResponseDefaultTypeInternal _GetAllowableFlightModesResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + GetAllowableFlightModesResponseDefaultTypeInternal + _GetAllowableFlightModesResponse_default_instance_; -inline constexpr FlightModeChangeResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_server_result_{nullptr}, - flight_mode_{static_cast< ::mavsdk::rpc::action_server::FlightMode >(0)} {} +inline constexpr FlightModeChangeResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_server_result_{nullptr}, + flight_mode_{static_cast<::mavsdk::rpc::action_server::FlightMode>(0)} +{} -template +template PROTOBUF_CONSTEXPR FlightModeChangeResponse::FlightModeChangeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct FlightModeChangeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FlightModeChangeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlightModeChangeResponseDefaultTypeInternal() {} - union { - FlightModeChangeResponse _instance; - }; + PROTOBUF_CONSTEXPR FlightModeChangeResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~FlightModeChangeResponseDefaultTypeInternal() {} + union { + FlightModeChangeResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlightModeChangeResponseDefaultTypeInternal _FlightModeChangeResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + FlightModeChangeResponseDefaultTypeInternal _FlightModeChangeResponse_default_instance_; -inline constexpr ArmDisarmResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_server_result_{nullptr}, - arm_{nullptr} {} +inline constexpr ArmDisarmResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + action_server_result_{nullptr}, + arm_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR ArmDisarmResponse::ArmDisarmResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ArmDisarmResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArmDisarmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ArmDisarmResponseDefaultTypeInternal() {} - union { - ArmDisarmResponse _instance; - }; + PROTOBUF_CONSTEXPR ArmDisarmResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ArmDisarmResponseDefaultTypeInternal() {} + union { + ArmDisarmResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmDisarmResponseDefaultTypeInternal _ArmDisarmResponse_default_instance_; -} // namespace action_server -} // namespace rpc -} // namespace mavsdk -static ::_pb::Metadata file_level_metadata_action_5fserver_2faction_5fserver_2eproto[27]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_action_5fserver_2faction_5fserver_2eproto[2]; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ArmDisarmResponseDefaultTypeInternal _ArmDisarmResponse_default_instance_; +} // namespace action_server +} // namespace rpc +} // namespace mavsdk +static const ::_pb::EnumDescriptor* + file_level_enum_descriptors_action_5fserver_2faction_5fserver_2eproto[2]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_action_5fserver_2faction_5fserver_2eproto = nullptr; -const ::uint32_t TableStruct_action_5fserver_2faction_5fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffRequest, _impl_.allow_takeoff_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, _impl_.armable_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, _impl_.force_armable_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableRequest, _impl_.disarmable_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableRequest, _impl_.force_disarmable_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _impl_.flight_modes_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeArmDisarmRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeTakeoffRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeLandRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeRebootRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeShutdownRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeTerminateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _impl_.action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _impl_.arm_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _impl_.action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _impl_.flight_mode_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _impl_.action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _impl_.takeoff_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _impl_.action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _impl_.land_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _impl_.action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _impl_.reboot_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _impl_.action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _impl_.shutdown_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _impl_.action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _impl_.terminate_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableResponse, _impl_.action_server_result_), - 0, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableResponse, _impl_.action_server_result_), - 0, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, _impl_.action_server_result_), - 0, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _impl_.action_server_result_), - 0, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _impl_.flight_modes_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _impl_.can_auto_mode_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _impl_.can_guided_mode_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _impl_.can_stabilize_mode_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _impl_.arm_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _impl_.force_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, _impl_.result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, _impl_.result_str_), +const ::uint32_t TableStruct_action_5fserver_2faction_5fserver_2eproto::offsets + [] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetAllowTakeoffRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetAllowTakeoffRequest, _impl_.allow_takeoff_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, _impl_.armable_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetArmableRequest, _impl_.force_armable_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetDisarmableRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetDisarmableRequest, _impl_.disarmable_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetDisarmableRequest, _impl_.force_disarmable_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _impl_.flight_modes_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::GetAllowableFlightModesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SubscribeArmDisarmRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SubscribeTakeoffRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SubscribeLandRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SubscribeRebootRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SubscribeShutdownRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SubscribeTerminateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::ArmDisarmResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _impl_.arm_), + 0, + 1, + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::FlightModeChangeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::FlightModeChangeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::FlightModeChangeResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::FlightModeChangeResponse, _impl_.flight_mode_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::TakeoffResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _impl_.takeoff_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::LandResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _impl_.land_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::RebootResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _impl_.reboot_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::ShutdownResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _impl_.shutdown_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::TerminateResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _impl_.terminate_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetArmableResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetArmableResponse, _impl_.action_server_result_), + 0, + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetDisarmableResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetDisarmableResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetDisarmableResponse, _impl_.action_server_result_), + 0, + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, + _impl_.action_server_result_), + 0, + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _impl_.action_server_result_), + 0, + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _impl_.flight_modes_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::AllowableFlightModes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::AllowableFlightModes, _impl_.can_auto_mode_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::AllowableFlightModes, _impl_.can_guided_mode_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::AllowableFlightModes, _impl_.can_stabilize_mode_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _impl_.arm_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _impl_.force_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::action_server::ActionServerResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, _impl_.result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, _impl_.result_str_), }; -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::mavsdk::rpc::action_server::SetAllowTakeoffRequest)}, - {9, -1, -1, sizeof(::mavsdk::rpc::action_server::SetArmableRequest)}, - {19, -1, -1, sizeof(::mavsdk::rpc::action_server::SetDisarmableRequest)}, - {29, 38, -1, sizeof(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest)}, - {39, -1, -1, sizeof(::mavsdk::rpc::action_server::GetAllowableFlightModesRequest)}, - {47, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeArmDisarmRequest)}, - {55, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest)}, - {63, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeTakeoffRequest)}, - {71, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeLandRequest)}, - {79, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeRebootRequest)}, - {87, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeShutdownRequest)}, - {95, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeTerminateRequest)}, - {103, 113, -1, sizeof(::mavsdk::rpc::action_server::ArmDisarmResponse)}, - {115, 125, -1, sizeof(::mavsdk::rpc::action_server::FlightModeChangeResponse)}, - {127, 137, -1, sizeof(::mavsdk::rpc::action_server::TakeoffResponse)}, - {139, 149, -1, sizeof(::mavsdk::rpc::action_server::LandResponse)}, - {151, 161, -1, sizeof(::mavsdk::rpc::action_server::RebootResponse)}, - {163, 173, -1, sizeof(::mavsdk::rpc::action_server::ShutdownResponse)}, - {175, 185, -1, sizeof(::mavsdk::rpc::action_server::TerminateResponse)}, - {187, 196, -1, sizeof(::mavsdk::rpc::action_server::SetArmableResponse)}, - {197, 206, -1, sizeof(::mavsdk::rpc::action_server::SetDisarmableResponse)}, - {207, 216, -1, sizeof(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse)}, - {217, 226, -1, sizeof(::mavsdk::rpc::action_server::SetAllowTakeoffResponse)}, - {227, 236, -1, sizeof(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse)}, - {237, -1, -1, sizeof(::mavsdk::rpc::action_server::AllowableFlightModes)}, - {248, -1, -1, sizeof(::mavsdk::rpc::action_server::ArmDisarm)}, - {258, -1, -1, sizeof(::mavsdk::rpc::action_server::ActionServerResult)}, +static const ::_pbi::MigrationSchema schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, -1, -1, sizeof(::mavsdk::rpc::action_server::SetAllowTakeoffRequest)}, + {9, -1, -1, sizeof(::mavsdk::rpc::action_server::SetArmableRequest)}, + {19, -1, -1, sizeof(::mavsdk::rpc::action_server::SetDisarmableRequest)}, + {29, 38, -1, sizeof(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest)}, + {39, -1, -1, sizeof(::mavsdk::rpc::action_server::GetAllowableFlightModesRequest)}, + {47, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeArmDisarmRequest)}, + {55, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest)}, + {63, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeTakeoffRequest)}, + {71, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeLandRequest)}, + {79, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeRebootRequest)}, + {87, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeShutdownRequest)}, + {95, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeTerminateRequest)}, + {103, 113, -1, sizeof(::mavsdk::rpc::action_server::ArmDisarmResponse)}, + {115, 125, -1, sizeof(::mavsdk::rpc::action_server::FlightModeChangeResponse)}, + {127, 137, -1, sizeof(::mavsdk::rpc::action_server::TakeoffResponse)}, + {139, 149, -1, sizeof(::mavsdk::rpc::action_server::LandResponse)}, + {151, 161, -1, sizeof(::mavsdk::rpc::action_server::RebootResponse)}, + {163, 173, -1, sizeof(::mavsdk::rpc::action_server::ShutdownResponse)}, + {175, 185, -1, sizeof(::mavsdk::rpc::action_server::TerminateResponse)}, + {187, 196, -1, sizeof(::mavsdk::rpc::action_server::SetArmableResponse)}, + {197, 206, -1, sizeof(::mavsdk::rpc::action_server::SetDisarmableResponse)}, + {207, 216, -1, sizeof(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse)}, + {217, 226, -1, sizeof(::mavsdk::rpc::action_server::SetAllowTakeoffResponse)}, + {227, 236, -1, sizeof(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse)}, + {237, -1, -1, sizeof(::mavsdk::rpc::action_server::AllowableFlightModes)}, + {248, -1, -1, sizeof(::mavsdk::rpc::action_server::ArmDisarm)}, + {258, -1, -1, sizeof(::mavsdk::rpc::action_server::ActionServerResult)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::action_server::_SetAllowTakeoffRequest_default_instance_._instance, &::mavsdk::rpc::action_server::_SetArmableRequest_default_instance_._instance, @@ -834,178 +1170,164 @@ static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::action_server::_ArmDisarm_default_instance_._instance, &::mavsdk::rpc::action_server::_ActionServerResult_default_instance_._instance, }; -const char descriptor_table_protodef_action_5fserver_2faction_5fserver_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n!action_server/action_server.proto\022\030mav" - "sdk.rpc.action_server\032\024mavsdk_options.pr" - "oto\"/\n\026SetAllowTakeoffRequest\022\025\n\rallow_t" - "akeoff\030\001 \001(\010\";\n\021SetArmableRequest\022\017\n\007arm" - "able\030\001 \001(\010\022\025\n\rforce_armable\030\002 \001(\010\"D\n\024Set" - "DisarmableRequest\022\022\n\ndisarmable\030\001 \001(\010\022\030\n" - "\020force_disarmable\030\002 \001(\010\"f\n\036SetAllowableF" - "lightModesRequest\022D\n\014flight_modes\030\001 \001(\0132" - "..mavsdk.rpc.action_server.AllowableFlig" - "htModes\" \n\036GetAllowableFlightModesReques" - "t\"\033\n\031SubscribeArmDisarmRequest\"\"\n Subscr" - "ibeFlightModeChangeRequest\"\031\n\027SubscribeT" - "akeoffRequest\"\026\n\024SubscribeLandRequest\"\030\n" - "\026SubscribeRebootRequest\"\032\n\030SubscribeShut" - "downRequest\"\033\n\031SubscribeTerminateRequest" - "\"\221\001\n\021ArmDisarmResponse\022J\n\024action_server_" - "result\030\001 \001(\0132,.mavsdk.rpc.action_server." - "ActionServerResult\0220\n\003arm\030\002 \001(\0132#.mavsdk" - ".rpc.action_server.ArmDisarm\"\241\001\n\030FlightM" - "odeChangeResponse\022J\n\024action_server_resul" - "t\030\001 \001(\0132,.mavsdk.rpc.action_server.Actio" - "nServerResult\0229\n\013flight_mode\030\002 \001(\0162$.mav" - "sdk.rpc.action_server.FlightMode\"n\n\017Take" - "offResponse\022J\n\024action_server_result\030\001 \001(" - "\0132,.mavsdk.rpc.action_server.ActionServe" - "rResult\022\017\n\007takeoff\030\002 \001(\010\"h\n\014LandResponse" - "\022J\n\024action_server_result\030\001 \001(\0132,.mavsdk." - "rpc.action_server.ActionServerResult\022\014\n\004" - "land\030\002 \001(\010\"l\n\016RebootResponse\022J\n\024action_s" - "erver_result\030\001 \001(\0132,.mavsdk.rpc.action_s" - "erver.ActionServerResult\022\016\n\006reboot\030\002 \001(\010" - "\"p\n\020ShutdownResponse\022J\n\024action_server_re" - "sult\030\001 \001(\0132,.mavsdk.rpc.action_server.Ac" - "tionServerResult\022\020\n\010shutdown\030\002 \001(\010\"r\n\021Te" - "rminateResponse\022J\n\024action_server_result\030" - "\001 \001(\0132,.mavsdk.rpc.action_server.ActionS" - "erverResult\022\021\n\tterminate\030\002 \001(\010\"`\n\022SetArm" - "ableResponse\022J\n\024action_server_result\030\001 \001" - "(\0132,.mavsdk.rpc.action_server.ActionServ" - "erResult\"c\n\025SetDisarmableResponse\022J\n\024act" - "ion_server_result\030\001 \001(\0132,.mavsdk.rpc.act" - "ion_server.ActionServerResult\"m\n\037SetAllo" - "wableFlightModesResponse\022J\n\024action_serve" - "r_result\030\001 \001(\0132,.mavsdk.rpc.action_serve" - "r.ActionServerResult\"e\n\027SetAllowTakeoffR" - "esponse\022J\n\024action_server_result\030\001 \001(\0132,." - "mavsdk.rpc.action_server.ActionServerRes" - "ult\"g\n\037GetAllowableFlightModesResponse\022D" - "\n\014flight_modes\030\001 \001(\0132..mavsdk.rpc.action" - "_server.AllowableFlightModes\"b\n\024Allowabl" - "eFlightModes\022\025\n\rcan_auto_mode\030\001 \001(\010\022\027\n\017c" - "an_guided_mode\030\002 \001(\010\022\032\n\022can_stabilize_mo" - "de\030\003 \001(\010\"\'\n\tArmDisarm\022\013\n\003arm\030\001 \001(\010\022\r\n\005fo" - "rce\030\002 \001(\010\"\351\003\n\022ActionServerResult\022C\n\006resu" - "lt\030\001 \001(\01623.mavsdk.rpc.action_server.Acti" - "onServerResult.Result\022\022\n\nresult_str\030\002 \001(" - "\t\"\371\002\n\006Result\022\022\n\016RESULT_UNKNOWN\020\000\022\022\n\016RESU" - "LT_SUCCESS\020\001\022\024\n\020RESULT_NO_SYSTEM\020\002\022\033\n\027RE" - "SULT_CONNECTION_ERROR\020\003\022\017\n\013RESULT_BUSY\020\004" - "\022\031\n\025RESULT_COMMAND_DENIED\020\005\022.\n*RESULT_CO" - "MMAND_DENIED_LANDED_STATE_UNKNOWN\020\006\022$\n R" - "ESULT_COMMAND_DENIED_NOT_LANDED\020\007\022\022\n\016RES" - "ULT_TIMEOUT\020\010\022*\n&RESULT_VTOL_TRANSITION_" - "SUPPORT_UNKNOWN\020\t\022%\n!RESULT_NO_VTOL_TRAN" - "SITION_SUPPORT\020\n\022\032\n\026RESULT_PARAMETER_ERR" - "OR\020\013\022\017\n\013RESULT_NEXT\020\014*\353\002\n\nFlightMode\022\027\n\023" - "FLIGHT_MODE_UNKNOWN\020\000\022\025\n\021FLIGHT_MODE_REA" - "DY\020\001\022\027\n\023FLIGHT_MODE_TAKEOFF\020\002\022\024\n\020FLIGHT_" - "MODE_HOLD\020\003\022\027\n\023FLIGHT_MODE_MISSION\020\004\022 \n\034" - "FLIGHT_MODE_RETURN_TO_LAUNCH\020\005\022\024\n\020FLIGHT" - "_MODE_LAND\020\006\022\030\n\024FLIGHT_MODE_OFFBOARD\020\007\022\031" - "\n\025FLIGHT_MODE_FOLLOW_ME\020\010\022\026\n\022FLIGHT_MODE" - "_MANUAL\020\t\022\026\n\022FLIGHT_MODE_ALTCTL\020\n\022\026\n\022FLI" - "GHT_MODE_POSCTL\020\013\022\024\n\020FLIGHT_MODE_ACRO\020\014\022" - "\032\n\026FLIGHT_MODE_STABILIZED\020\r2\235\014\n\023ActionSe" - "rverService\022~\n\022SubscribeArmDisarm\0223.mavs" - "dk.rpc.action_server.SubscribeArmDisarmR" - "equest\032+.mavsdk.rpc.action_server.ArmDis" - "armResponse\"\004\200\265\030\0000\001\022\223\001\n\031SubscribeFlightM" - "odeChange\022:.mavsdk.rpc.action_server.Sub" - "scribeFlightModeChangeRequest\0322.mavsdk.r" - "pc.action_server.FlightModeChangeRespons" - "e\"\004\200\265\030\0000\001\022x\n\020SubscribeTakeoff\0221.mavsdk.r" - "pc.action_server.SubscribeTakeoffRequest" - "\032).mavsdk.rpc.action_server.TakeoffRespo" - "nse\"\004\200\265\030\0000\001\022o\n\rSubscribeLand\022..mavsdk.rp" - "c.action_server.SubscribeLandRequest\032&.m" - "avsdk.rpc.action_server.LandResponse\"\004\200\265" - "\030\0000\001\022u\n\017SubscribeReboot\0220.mavsdk.rpc.act" - "ion_server.SubscribeRebootRequest\032(.mavs" - "dk.rpc.action_server.RebootResponse\"\004\200\265\030" - "\0000\001\022{\n\021SubscribeShutdown\0222.mavsdk.rpc.ac" - "tion_server.SubscribeShutdownRequest\032*.m" - "avsdk.rpc.action_server.ShutdownResponse" - "\"\004\200\265\030\0000\001\022~\n\022SubscribeTerminate\0223.mavsdk." - "rpc.action_server.SubscribeTerminateRequ" - "est\032+.mavsdk.rpc.action_server.Terminate" - "Response\"\004\200\265\030\0000\001\022|\n\017SetAllowTakeoff\0220.ma" - "vsdk.rpc.action_server.SetAllowTakeoffRe" - "quest\0321.mavsdk.rpc.action_server.SetAllo" - "wTakeoffResponse\"\004\200\265\030\001\022m\n\nSetArmable\022+.m" - "avsdk.rpc.action_server.SetArmableReques" - "t\032,.mavsdk.rpc.action_server.SetArmableR" - "esponse\"\004\200\265\030\001\022v\n\rSetDisarmable\022..mavsdk." - "rpc.action_server.SetDisarmableRequest\032/" - ".mavsdk.rpc.action_server.SetDisarmableR" - "esponse\"\004\200\265\030\001\022\224\001\n\027SetAllowableFlightMode" - "s\0228.mavsdk.rpc.action_server.SetAllowabl" - "eFlightModesRequest\0329.mavsdk.rpc.action_" - "server.SetAllowableFlightModesResponse\"\004" - "\200\265\030\001\022\224\001\n\027GetAllowableFlightModes\0228.mavsd" - "k.rpc.action_server.GetAllowableFlightMo" - "desRequest\0329.mavsdk.rpc.action_server.Ge" - "tAllowableFlightModesResponse\"\004\200\265\030\001B,\n\027i" - "o.mavsdk.action_serverB\021ActionServerProt" - "ob\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_action_5fserver_2faction_5fserver_2eproto_deps[1] = - { +const char descriptor_table_protodef_action_5fserver_2faction_5fserver_2eproto + [] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n!action_server/action_server.proto\022\030mav" + "sdk.rpc.action_server\032\024mavsdk_options.pr" + "oto\"/\n\026SetAllowTakeoffRequest\022\025\n\rallow_t" + "akeoff\030\001 \001(\010\";\n\021SetArmableRequest\022\017\n\007arm" + "able\030\001 \001(\010\022\025\n\rforce_armable\030\002 \001(\010\"D\n\024Set" + "DisarmableRequest\022\022\n\ndisarmable\030\001 \001(\010\022\030\n" + "\020force_disarmable\030\002 \001(\010\"f\n\036SetAllowableF" + "lightModesRequest\022D\n\014flight_modes\030\001 \001(\0132" + "..mavsdk.rpc.action_server.AllowableFlig" + "htModes\" \n\036GetAllowableFlightModesReques" + "t\"\033\n\031SubscribeArmDisarmRequest\"\"\n Subscr" + "ibeFlightModeChangeRequest\"\031\n\027SubscribeT" + "akeoffRequest\"\026\n\024SubscribeLandRequest\"\030\n" + "\026SubscribeRebootRequest\"\032\n\030SubscribeShut" + "downRequest\"\033\n\031SubscribeTerminateRequest" + "\"\221\001\n\021ArmDisarmResponse\022J\n\024action_server_" + "result\030\001 \001(\0132,.mavsdk.rpc.action_server." + "ActionServerResult\0220\n\003arm\030\002 \001(\0132#.mavsdk" + ".rpc.action_server.ArmDisarm\"\241\001\n\030FlightM" + "odeChangeResponse\022J\n\024action_server_resul" + "t\030\001 \001(\0132,.mavsdk.rpc.action_server.Actio" + "nServerResult\0229\n\013flight_mode\030\002 \001(\0162$.mav" + "sdk.rpc.action_server.FlightMode\"n\n\017Take" + "offResponse\022J\n\024action_server_result\030\001 \001(" + "\0132,.mavsdk.rpc.action_server.ActionServe" + "rResult\022\017\n\007takeoff\030\002 \001(\010\"h\n\014LandResponse" + "\022J\n\024action_server_result\030\001 \001(\0132,.mavsdk." + "rpc.action_server.ActionServerResult\022\014\n\004" + "land\030\002 \001(\010\"l\n\016RebootResponse\022J\n\024action_s" + "erver_result\030\001 \001(\0132,.mavsdk.rpc.action_s" + "erver.ActionServerResult\022\016\n\006reboot\030\002 \001(\010" + "\"p\n\020ShutdownResponse\022J\n\024action_server_re" + "sult\030\001 \001(\0132,.mavsdk.rpc.action_server.Ac" + "tionServerResult\022\020\n\010shutdown\030\002 \001(\010\"r\n\021Te" + "rminateResponse\022J\n\024action_server_result\030" + "\001 \001(\0132,.mavsdk.rpc.action_server.ActionS" + "erverResult\022\021\n\tterminate\030\002 \001(\010\"`\n\022SetArm" + "ableResponse\022J\n\024action_server_result\030\001 \001" + "(\0132,.mavsdk.rpc.action_server.ActionServ" + "erResult\"c\n\025SetDisarmableResponse\022J\n\024act" + "ion_server_result\030\001 \001(\0132,.mavsdk.rpc.act" + "ion_server.ActionServerResult\"m\n\037SetAllo" + "wableFlightModesResponse\022J\n\024action_serve" + "r_result\030\001 \001(\0132,.mavsdk.rpc.action_serve" + "r.ActionServerResult\"e\n\027SetAllowTakeoffR" + "esponse\022J\n\024action_server_result\030\001 \001(\0132,." + "mavsdk.rpc.action_server.ActionServerRes" + "ult\"g\n\037GetAllowableFlightModesResponse\022D" + "\n\014flight_modes\030\001 \001(\0132..mavsdk.rpc.action" + "_server.AllowableFlightModes\"b\n\024Allowabl" + "eFlightModes\022\025\n\rcan_auto_mode\030\001 \001(\010\022\027\n\017c" + "an_guided_mode\030\002 \001(\010\022\032\n\022can_stabilize_mo" + "de\030\003 \001(\010\"\'\n\tArmDisarm\022\013\n\003arm\030\001 \001(\010\022\r\n\005fo" + "rce\030\002 \001(\010\"\351\003\n\022ActionServerResult\022C\n\006resu" + "lt\030\001 \001(\01623.mavsdk.rpc.action_server.Acti" + "onServerResult.Result\022\022\n\nresult_str\030\002 \001(" + "\t\"\371\002\n\006Result\022\022\n\016RESULT_UNKNOWN\020\000\022\022\n\016RESU" + "LT_SUCCESS\020\001\022\024\n\020RESULT_NO_SYSTEM\020\002\022\033\n\027RE" + "SULT_CONNECTION_ERROR\020\003\022\017\n\013RESULT_BUSY\020\004" + "\022\031\n\025RESULT_COMMAND_DENIED\020\005\022.\n*RESULT_CO" + "MMAND_DENIED_LANDED_STATE_UNKNOWN\020\006\022$\n R" + "ESULT_COMMAND_DENIED_NOT_LANDED\020\007\022\022\n\016RES" + "ULT_TIMEOUT\020\010\022*\n&RESULT_VTOL_TRANSITION_" + "SUPPORT_UNKNOWN\020\t\022%\n!RESULT_NO_VTOL_TRAN" + "SITION_SUPPORT\020\n\022\032\n\026RESULT_PARAMETER_ERR" + "OR\020\013\022\017\n\013RESULT_NEXT\020\014*\353\002\n\nFlightMode\022\027\n\023" + "FLIGHT_MODE_UNKNOWN\020\000\022\025\n\021FLIGHT_MODE_REA" + "DY\020\001\022\027\n\023FLIGHT_MODE_TAKEOFF\020\002\022\024\n\020FLIGHT_" + "MODE_HOLD\020\003\022\027\n\023FLIGHT_MODE_MISSION\020\004\022 \n\034" + "FLIGHT_MODE_RETURN_TO_LAUNCH\020\005\022\024\n\020FLIGHT" + "_MODE_LAND\020\006\022\030\n\024FLIGHT_MODE_OFFBOARD\020\007\022\031" + "\n\025FLIGHT_MODE_FOLLOW_ME\020\010\022\026\n\022FLIGHT_MODE" + "_MANUAL\020\t\022\026\n\022FLIGHT_MODE_ALTCTL\020\n\022\026\n\022FLI" + "GHT_MODE_POSCTL\020\013\022\024\n\020FLIGHT_MODE_ACRO\020\014\022" + "\032\n\026FLIGHT_MODE_STABILIZED\020\r2\235\014\n\023ActionSe" + "rverService\022~\n\022SubscribeArmDisarm\0223.mavs" + "dk.rpc.action_server.SubscribeArmDisarmR" + "equest\032+.mavsdk.rpc.action_server.ArmDis" + "armResponse\"\004\200\265\030\0000\001\022\223\001\n\031SubscribeFlightM" + "odeChange\022:.mavsdk.rpc.action_server.Sub" + "scribeFlightModeChangeRequest\0322.mavsdk.r" + "pc.action_server.FlightModeChangeRespons" + "e\"\004\200\265\030\0000\001\022x\n\020SubscribeTakeoff\0221.mavsdk.r" + "pc.action_server.SubscribeTakeoffRequest" + "\032).mavsdk.rpc.action_server.TakeoffRespo" + "nse\"\004\200\265\030\0000\001\022o\n\rSubscribeLand\022..mavsdk.rp" + "c.action_server.SubscribeLandRequest\032&.m" + "avsdk.rpc.action_server.LandResponse\"\004\200\265" + "\030\0000\001\022u\n\017SubscribeReboot\0220.mavsdk.rpc.act" + "ion_server.SubscribeRebootRequest\032(.mavs" + "dk.rpc.action_server.RebootResponse\"\004\200\265\030" + "\0000\001\022{\n\021SubscribeShutdown\0222.mavsdk.rpc.ac" + "tion_server.SubscribeShutdownRequest\032*.m" + "avsdk.rpc.action_server.ShutdownResponse" + "\"\004\200\265\030\0000\001\022~\n\022SubscribeTerminate\0223.mavsdk." + "rpc.action_server.SubscribeTerminateRequ" + "est\032+.mavsdk.rpc.action_server.Terminate" + "Response\"\004\200\265\030\0000\001\022|\n\017SetAllowTakeoff\0220.ma" + "vsdk.rpc.action_server.SetAllowTakeoffRe" + "quest\0321.mavsdk.rpc.action_server.SetAllo" + "wTakeoffResponse\"\004\200\265\030\001\022m\n\nSetArmable\022+.m" + "avsdk.rpc.action_server.SetArmableReques" + "t\032,.mavsdk.rpc.action_server.SetArmableR" + "esponse\"\004\200\265\030\001\022v\n\rSetDisarmable\022..mavsdk." + "rpc.action_server.SetDisarmableRequest\032/" + ".mavsdk.rpc.action_server.SetDisarmableR" + "esponse\"\004\200\265\030\001\022\224\001\n\027SetAllowableFlightMode" + "s\0228.mavsdk.rpc.action_server.SetAllowabl" + "eFlightModesRequest\0329.mavsdk.rpc.action_" + "server.SetAllowableFlightModesResponse\"\004" + "\200\265\030\001\022\224\001\n\027GetAllowableFlightModes\0228.mavsd" + "k.rpc.action_server.GetAllowableFlightMo" + "desRequest\0329.mavsdk.rpc.action_server.Ge" + "tAllowableFlightModesResponse\"\004\200\265\030\001B,\n\027i" + "o.mavsdk.action_serverB\021ActionServerProt" + "ob\006proto3"}; +static const ::_pbi::DescriptorTable* const + descriptor_table_action_5fserver_2faction_5fserver_2eproto_deps[1] = { &::descriptor_table_mavsdk_5foptions_2eproto, }; static ::absl::once_flag descriptor_table_action_5fserver_2faction_5fserver_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_action_5fserver_2faction_5fserver_2eproto = { - false, - false, - 4609, - descriptor_table_protodef_action_5fserver_2faction_5fserver_2eproto, - "action_server/action_server.proto", - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - descriptor_table_action_5fserver_2faction_5fserver_2eproto_deps, - 1, - 27, - schemas, - file_default_instances, - TableStruct_action_5fserver_2faction_5fserver_2eproto::offsets, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto, - file_level_enum_descriptors_action_5fserver_2faction_5fserver_2eproto, - file_level_service_descriptors_action_5fserver_2faction_5fserver_2eproto, +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable + descriptor_table_action_5fserver_2faction_5fserver_2eproto = { + false, + false, + 4609, + descriptor_table_protodef_action_5fserver_2faction_5fserver_2eproto, + "action_server/action_server.proto", + &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, + descriptor_table_action_5fserver_2faction_5fserver_2eproto_deps, + 1, + 27, + schemas, + file_default_instances, + TableStruct_action_5fserver_2faction_5fserver_2eproto::offsets, + file_level_enum_descriptors_action_5fserver_2faction_5fserver_2eproto, + file_level_service_descriptors_action_5fserver_2faction_5fserver_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter() { - return &descriptor_table_action_5fserver_2faction_5fserver_2eproto; -} -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_action_5fserver_2faction_5fserver_2eproto(&descriptor_table_action_5fserver_2faction_5fserver_2eproto); namespace mavsdk { namespace rpc { namespace action_server { -const ::google::protobuf::EnumDescriptor* ActionServerResult_Result_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_action_5fserver_2faction_5fserver_2eproto); - return file_level_enum_descriptors_action_5fserver_2faction_5fserver_2eproto[0]; +const ::google::protobuf::EnumDescriptor* ActionServerResult_Result_descriptor() +{ + ::google::protobuf::internal::AssignDescriptors( + &descriptor_table_action_5fserver_2faction_5fserver_2eproto); + return file_level_enum_descriptors_action_5fserver_2faction_5fserver_2eproto[0]; } PROTOBUF_CONSTINIT const uint32_t ActionServerResult_Result_internal_data_[] = { - 851968u, 0u, }; -bool ActionServerResult_Result_IsValid(int value) { - return 0 <= value && value <= 12; + 851968u, + 0u, +}; +bool ActionServerResult_Result_IsValid(int value) +{ + return 0 <= value && value <= 12; } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ActionServerResult_Result ActionServerResult::RESULT_UNKNOWN; constexpr ActionServerResult_Result ActionServerResult::RESULT_SUCCESS; @@ -1024,4465 +1346,6531 @@ constexpr ActionServerResult_Result ActionServerResult::Result_MIN; constexpr ActionServerResult_Result ActionServerResult::Result_MAX; constexpr int ActionServerResult::Result_ARRAYSIZE; -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::google::protobuf::EnumDescriptor* FlightMode_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_action_5fserver_2faction_5fserver_2eproto); - return file_level_enum_descriptors_action_5fserver_2faction_5fserver_2eproto[1]; +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* FlightMode_descriptor() +{ + ::google::protobuf::internal::AssignDescriptors( + &descriptor_table_action_5fserver_2faction_5fserver_2eproto); + return file_level_enum_descriptors_action_5fserver_2faction_5fserver_2eproto[1]; } PROTOBUF_CONSTINIT const uint32_t FlightMode_internal_data_[] = { - 917504u, 0u, }; -bool FlightMode_IsValid(int value) { - return 0 <= value && value <= 13; + 917504u, + 0u, +}; +bool FlightMode_IsValid(int value) +{ + return 0 <= value && value <= 13; } // =================================================================== class SetAllowTakeoffRequest::_Internal { - public: +public: }; SetAllowTakeoffRequest::SetAllowTakeoffRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowTakeoffRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowTakeoffRequest) } SetAllowTakeoffRequest::SetAllowTakeoffRequest( - ::google::protobuf::Arena* arena, const SetAllowTakeoffRequest& from) - : SetAllowTakeoffRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const SetAllowTakeoffRequest& from) : + SetAllowTakeoffRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE SetAllowTakeoffRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetAllowTakeoffRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.allow_takeoff_ = {}; -} -SetAllowTakeoffRequest::~SetAllowTakeoffRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetAllowTakeoffRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetAllowTakeoffRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.allow_takeoff_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetAllowTakeoffRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetAllowTakeoffRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SetAllowTakeoffRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool allow_takeoff = 1; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SetAllowTakeoffRequest, _impl_.allow_takeoff_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool allow_takeoff = 1; - {PROTOBUF_FIELD_OFFSET(SetAllowTakeoffRequest, _impl_.allow_takeoff_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetAllowTakeoffRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.allow_takeoff_ = {}; +} +SetAllowTakeoffRequest::~SetAllowTakeoffRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowTakeoffRequest) + SharedDtor(*this); +} +inline void SetAllowTakeoffRequest::SharedDtor(MessageLite& self) +{ + SetAllowTakeoffRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +SetAllowTakeoffRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetAllowTakeoffRequest(arena); +} +constexpr auto SetAllowTakeoffRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetAllowTakeoffRequest), alignof(SetAllowTakeoffRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetAllowTakeoffRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetAllowTakeoffRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetAllowTakeoffRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetAllowTakeoffRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetAllowTakeoffRequest::ByteSizeLong, + &SetAllowTakeoffRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetAllowTakeoffRequest, _impl_._cached_size_), + false, + }, + &SetAllowTakeoffRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; - +const ::google::protobuf::internal::ClassData* SetAllowTakeoffRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + SetAllowTakeoffRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::SetAllowTakeoffRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // bool allow_takeoff = 1; + {::_pbi::TcParser::SingularVarintNoZag1< + bool, + offsetof(SetAllowTakeoffRequest, _impl_.allow_takeoff_), + 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(SetAllowTakeoffRequest, _impl_.allow_takeoff_)}}, + }}, + {{65535, 65535}}, + {{ + // bool allow_takeoff = 1; + {PROTOBUF_FIELD_OFFSET(SetAllowTakeoffRequest, _impl_.allow_takeoff_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void SetAllowTakeoffRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.allow_takeoff_ = false; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetAllowTakeoffRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool allow_takeoff = 1; - if (this->_internal_allow_takeoff() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_allow_takeoff(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - return target; -} - -::size_t SetAllowTakeoffRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bool allow_takeoff = 1; - if (this->_internal_allow_takeoff() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetAllowTakeoffRequest::_class_data_ = { - SetAllowTakeoffRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetAllowTakeoffRequest::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetAllowTakeoffRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetAllowTakeoffRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetAllowTakeoffRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SetAllowTakeoffRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // bool allow_takeoff = 1; + if (this_._internal_allow_takeoff() != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteBoolToArray(1, this_._internal_allow_takeoff(), target); + } - if (from._internal_allow_takeoff() != 0) { - _this->_internal_set_allow_takeoff(from._internal_allow_takeoff()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowTakeoffRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetAllowTakeoffRequest::ByteSizeLong(const MessageLite& base) +{ + const SetAllowTakeoffRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetAllowTakeoffRequest::ByteSizeLong() const +{ + const SetAllowTakeoffRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -void SetAllowTakeoffRequest::CopyFrom(const SetAllowTakeoffRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + { + // bool allow_takeoff = 1; + if (this_._internal_allow_takeoff() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -PROTOBUF_NOINLINE bool SetAllowTakeoffRequest::IsInitialized() const { - return true; +void SetAllowTakeoffRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (from._internal_allow_takeoff() != 0) { + _this->_impl_.allow_takeoff_ = from._impl_.allow_takeoff_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* SetAllowTakeoffRequest::AccessCachedSize() const { - return &_impl_._cached_size_; +void SetAllowTakeoffRequest::CopyFrom(const SetAllowTakeoffRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void SetAllowTakeoffRequest::InternalSwap(SetAllowTakeoffRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.allow_takeoff_, other->_impl_.allow_takeoff_); + +void SetAllowTakeoffRequest::InternalSwap(SetAllowTakeoffRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.allow_takeoff_, other->_impl_.allow_takeoff_); } -::google::protobuf::Metadata SetAllowTakeoffRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[0]); +::google::protobuf::Metadata SetAllowTakeoffRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetArmableRequest::_Internal { - public: +public: }; SetArmableRequest::SetArmableRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetArmableRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetArmableRequest) } SetArmableRequest::SetArmableRequest( - ::google::protobuf::Arena* arena, const SetArmableRequest& from) - : SetArmableRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const SetArmableRequest& from) : + SetArmableRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE SetArmableRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetArmableRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, armable_), - 0, - offsetof(Impl_, force_armable_) - - offsetof(Impl_, armable_) + - sizeof(Impl_::force_armable_)); -} -SetArmableRequest::~SetArmableRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetArmableRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetArmableRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetArmableRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetArmableRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.armable_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.force_armable_) - - reinterpret_cast(&_impl_.armable_)) + sizeof(_impl_.force_armable_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetArmableRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> SetArmableRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SetArmableRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool force_armable = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.force_armable_)}}, - // bool armable = 1; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.armable_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool armable = 1; - {PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.armable_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool force_armable = 2; - {PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.force_armable_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetArmableRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, armable_), + 0, + offsetof(Impl_, force_armable_) - offsetof(Impl_, armable_) + + sizeof(Impl_::force_armable_)); +} +SetArmableRequest::~SetArmableRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetArmableRequest) + SharedDtor(*this); +} +inline void SetArmableRequest::SharedDtor(MessageLite& self) +{ + SetArmableRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +SetArmableRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetArmableRequest(arena); +} +constexpr auto SetArmableRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetArmableRequest), alignof(SetArmableRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetArmableRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetArmableRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetArmableRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetArmableRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetArmableRequest::ByteSizeLong, + &SetArmableRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_._cached_size_), + false, + }, + &SetArmableRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; - +const ::google::protobuf::internal::ClassData* SetArmableRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 0, 2> + SetArmableRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::SetArmableRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // bool force_armable = 2; + {::_pbi::TcParser::SingularVarintNoZag1< + bool, + offsetof(SetArmableRequest, _impl_.force_armable_), + 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.force_armable_)}}, + // bool armable = 1; + {::_pbi::TcParser:: + SingularVarintNoZag1(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.armable_)}}, + }}, + {{65535, 65535}}, + {{ + // bool armable = 1; + {PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.armable_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // bool force_armable = 2; + {PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.force_armable_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void SetArmableRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetArmableRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::memset( + &_impl_.armable_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.force_armable_) - + reinterpret_cast(&_impl_.armable_)) + + sizeof(_impl_.force_armable_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetArmableRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetArmableRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool armable = 1; - if (this->_internal_armable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_armable(), target); - } - - // bool force_armable = 2; - if (this->_internal_force_armable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_force_armable(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetArmableRequest) - return target; -} - -::size_t SetArmableRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetArmableRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bool armable = 1; - if (this->_internal_armable() != 0) { - total_size += 2; - } - - // bool force_armable = 2; - if (this->_internal_force_armable() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetArmableRequest::_class_data_ = { - SetArmableRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetArmableRequest::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetArmableRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetArmableRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetArmableRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetArmableRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bool armable = 1; + if (this_._internal_armable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this_._internal_armable(), target); + } -void SetArmableRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetArmableRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // bool force_armable = 2; + if (this_._internal_force_armable() != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteBoolToArray(2, this_._internal_force_armable(), target); + } - if (from._internal_armable() != 0) { - _this->_internal_set_armable(from._internal_armable()); - } - if (from._internal_force_armable() != 0) { - _this->_internal_set_force_armable(from._internal_force_armable()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetArmableRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetArmableRequest::ByteSizeLong(const MessageLite& base) +{ + const SetArmableRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetArmableRequest::ByteSizeLong() const +{ + const SetArmableRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetArmableRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // bool armable = 1; + if (this_._internal_armable() != 0) { + total_size += 2; + } + // bool force_armable = 2; + if (this_._internal_force_armable() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void SetArmableRequest::CopyFrom(const SetArmableRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetArmableRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void SetArmableRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetArmableRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool SetArmableRequest::IsInitialized() const { - return true; + if (from._internal_armable() != 0) { + _this->_impl_.armable_ = from._impl_.armable_; + } + if (from._internal_force_armable() != 0) { + _this->_impl_.force_armable_ = from._impl_.force_armable_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* SetArmableRequest::AccessCachedSize() const { - return &_impl_._cached_size_; +void SetArmableRequest::CopyFrom(const SetArmableRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetArmableRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void SetArmableRequest::InternalSwap(SetArmableRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.force_armable_) - + sizeof(SetArmableRequest::_impl_.force_armable_) - - PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.armable_)>( - reinterpret_cast(&_impl_.armable_), - reinterpret_cast(&other->_impl_.armable_)); + +void SetArmableRequest::InternalSwap(SetArmableRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.force_armable_) + + sizeof(SetArmableRequest::_impl_.force_armable_) - + PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.armable_)>( + reinterpret_cast(&_impl_.armable_), + reinterpret_cast(&other->_impl_.armable_)); } -::google::protobuf::Metadata SetArmableRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[1]); +::google::protobuf::Metadata SetArmableRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetDisarmableRequest::_Internal { - public: +public: }; SetDisarmableRequest::SetDisarmableRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetDisarmableRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetDisarmableRequest) } SetDisarmableRequest::SetDisarmableRequest( - ::google::protobuf::Arena* arena, const SetDisarmableRequest& from) - : SetDisarmableRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const SetDisarmableRequest& from) : + SetDisarmableRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE SetDisarmableRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetDisarmableRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, disarmable_), - 0, - offsetof(Impl_, force_disarmable_) - - offsetof(Impl_, disarmable_) + - sizeof(Impl_::force_disarmable_)); -} -SetDisarmableRequest::~SetDisarmableRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetDisarmableRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetDisarmableRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetDisarmableRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetDisarmableRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.disarmable_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.force_disarmable_) - - reinterpret_cast(&_impl_.disarmable_)) + sizeof(_impl_.force_disarmable_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetDisarmableRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> SetDisarmableRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SetDisarmableRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool force_disarmable = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.force_disarmable_)}}, - // bool disarmable = 1; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.disarmable_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool disarmable = 1; - {PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.disarmable_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool force_disarmable = 2; - {PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.force_disarmable_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetDisarmableRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, disarmable_), + 0, + offsetof(Impl_, force_disarmable_) - offsetof(Impl_, disarmable_) + + sizeof(Impl_::force_disarmable_)); +} +SetDisarmableRequest::~SetDisarmableRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetDisarmableRequest) + SharedDtor(*this); +} +inline void SetDisarmableRequest::SharedDtor(MessageLite& self) +{ + SetDisarmableRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +SetDisarmableRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetDisarmableRequest(arena); +} +constexpr auto SetDisarmableRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetDisarmableRequest), alignof(SetDisarmableRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetDisarmableRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetDisarmableRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetDisarmableRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetDisarmableRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetDisarmableRequest::ByteSizeLong, + &SetDisarmableRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_._cached_size_), + false, + }, + &SetDisarmableRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; - +const ::google::protobuf::internal::ClassData* SetDisarmableRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 0, 2> + SetDisarmableRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::SetDisarmableRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // bool force_disarmable = 2; + {::_pbi::TcParser::SingularVarintNoZag1< + bool, + offsetof(SetDisarmableRequest, _impl_.force_disarmable_), + 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.force_disarmable_)}}, + // bool disarmable = 1; + {::_pbi::TcParser::SingularVarintNoZag1< + bool, + offsetof(SetDisarmableRequest, _impl_.disarmable_), + 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.disarmable_)}}, + }}, + {{65535, 65535}}, + {{ + // bool disarmable = 1; + {PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.disarmable_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // bool force_disarmable = 2; + {PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.force_disarmable_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void SetDisarmableRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetDisarmableRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::memset( + &_impl_.disarmable_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.force_disarmable_) - + reinterpret_cast(&_impl_.disarmable_)) + + sizeof(_impl_.force_disarmable_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetDisarmableRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetDisarmableRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool disarmable = 1; - if (this->_internal_disarmable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_disarmable(), target); - } - - // bool force_disarmable = 2; - if (this->_internal_force_disarmable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_force_disarmable(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetDisarmableRequest) - return target; -} - -::size_t SetDisarmableRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetDisarmableRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bool disarmable = 1; - if (this->_internal_disarmable() != 0) { - total_size += 2; - } - - // bool force_disarmable = 2; - if (this->_internal_force_disarmable() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetDisarmableRequest::_class_data_ = { - SetDisarmableRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetDisarmableRequest::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetDisarmableRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetDisarmableRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetDisarmableRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetDisarmableRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SetDisarmableRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetDisarmableRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // bool disarmable = 1; + if (this_._internal_disarmable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this_._internal_disarmable(), target); + } - if (from._internal_disarmable() != 0) { - _this->_internal_set_disarmable(from._internal_disarmable()); - } - if (from._internal_force_disarmable() != 0) { - _this->_internal_set_force_disarmable(from._internal_force_disarmable()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} + // bool force_disarmable = 2; + if (this_._internal_force_disarmable() != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteBoolToArray(2, this_._internal_force_disarmable(), target); + } -void SetDisarmableRequest::CopyFrom(const SetDisarmableRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetDisarmableRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetDisarmableRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetDisarmableRequest::ByteSizeLong(const MessageLite& base) +{ + const SetDisarmableRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetDisarmableRequest::ByteSizeLong() const +{ + const SetDisarmableRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetDisarmableRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // bool disarmable = 1; + if (this_._internal_disarmable() != 0) { + total_size += 2; + } + // bool force_disarmable = 2; + if (this_._internal_force_disarmable() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -PROTOBUF_NOINLINE bool SetDisarmableRequest::IsInitialized() const { - return true; +void SetDisarmableRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetDisarmableRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (from._internal_disarmable() != 0) { + _this->_impl_.disarmable_ = from._impl_.disarmable_; + } + if (from._internal_force_disarmable() != 0) { + _this->_impl_.force_disarmable_ = from._impl_.force_disarmable_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* SetDisarmableRequest::AccessCachedSize() const { - return &_impl_._cached_size_; +void SetDisarmableRequest::CopyFrom(const SetDisarmableRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetDisarmableRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void SetDisarmableRequest::InternalSwap(SetDisarmableRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.force_disarmable_) - + sizeof(SetDisarmableRequest::_impl_.force_disarmable_) - - PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.disarmable_)>( - reinterpret_cast(&_impl_.disarmable_), - reinterpret_cast(&other->_impl_.disarmable_)); + +void SetDisarmableRequest::InternalSwap(SetDisarmableRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.force_disarmable_) + + sizeof(SetDisarmableRequest::_impl_.force_disarmable_) - + PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.disarmable_)>( + reinterpret_cast(&_impl_.disarmable_), + reinterpret_cast(&other->_impl_.disarmable_)); } -::google::protobuf::Metadata SetDisarmableRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[2]); +::google::protobuf::Metadata SetDisarmableRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetAllowableFlightModesRequest::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesRequest, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::AllowableFlightModes& flight_modes(const SetAllowableFlightModesRequest* msg); - static void set_has_flight_modes(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesRequest, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::AllowableFlightModes& SetAllowableFlightModesRequest::_Internal::flight_modes(const SetAllowableFlightModesRequest* msg) { - return *msg->_impl_.flight_modes_; -} SetAllowableFlightModesRequest::SetAllowableFlightModesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) } inline PROTOBUF_NDEBUG_INLINE SetAllowableFlightModesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action_server::SetAllowableFlightModesRequest& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} SetAllowableFlightModesRequest::SetAllowableFlightModesRequest( - ::google::protobuf::Arena* arena, - const SetAllowableFlightModesRequest& from) - : ::google::protobuf::Message(arena) { - SetAllowableFlightModesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.flight_modes_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::AllowableFlightModes>(arena, *from._impl_.flight_modes_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) + ::google::protobuf::Arena* arena, const SetAllowableFlightModesRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SetAllowableFlightModesRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.flight_modes_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::AllowableFlightModes>( + arena, *from._impl_.flight_modes_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) } inline PROTOBUF_NDEBUG_INLINE SetAllowableFlightModesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetAllowableFlightModesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.flight_modes_ = {}; -} -SetAllowableFlightModesRequest::~SetAllowableFlightModesRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetAllowableFlightModesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.flight_modes_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetAllowableFlightModesRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.flight_modes_ != nullptr); - _impl_.flight_modes_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetAllowableFlightModesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetAllowableFlightModesRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesRequest, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetAllowableFlightModesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesRequest, _impl_.flight_modes_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - {PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesRequest, _impl_.flight_modes_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::AllowableFlightModes>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetAllowableFlightModesRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.flight_modes_ = {}; +} +SetAllowableFlightModesRequest::~SetAllowableFlightModesRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) + SharedDtor(*this); +} +inline void SetAllowableFlightModesRequest::SharedDtor(MessageLite& self) +{ + SetAllowableFlightModesRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.flight_modes_; + this_._impl_.~Impl_(); +} + +inline void* SetAllowableFlightModesRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetAllowableFlightModesRequest(arena); +} +constexpr auto SetAllowableFlightModesRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetAllowableFlightModesRequest), alignof(SetAllowableFlightModesRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetAllowableFlightModesRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetAllowableFlightModesRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetAllowableFlightModesRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetAllowableFlightModesRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetAllowableFlightModesRequest::ByteSizeLong, + &SetAllowableFlightModesRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesRequest, _impl_._cached_size_), + false, + }, + &SetAllowableFlightModesRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* SetAllowableFlightModesRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + SetAllowableFlightModesRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesRequest, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::SetAllowableFlightModesRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesRequest, _impl_.flight_modes_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; + {PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesRequest, _impl_.flight_modes_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::AllowableFlightModes>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void SetAllowableFlightModesRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.flight_modes_ != nullptr); + _impl_.flight_modes_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetAllowableFlightModesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::flight_modes(this), - _Internal::flight_modes(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - return target; -} - -::size_t SetAllowableFlightModesRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.flight_modes_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetAllowableFlightModesRequest::_class_data_ = { - SetAllowableFlightModesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetAllowableFlightModesRequest::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetAllowableFlightModesRequest& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetAllowableFlightModesRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetAllowableFlightModesRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.flight_modes_, + this_._impl_.flight_modes_->GetCachedSize(), + target, + stream); + } -void SetAllowableFlightModesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetAllowableFlightModesRequest::ByteSizeLong(const MessageLite& base) +{ + const SetAllowableFlightModesRequest& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetAllowableFlightModesRequest::ByteSizeLong() const +{ + const SetAllowableFlightModesRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_flight_modes()->::mavsdk::rpc::action_server::AllowableFlightModes::MergeFrom( - from._internal_flight_modes()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.flight_modes_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void SetAllowableFlightModesRequest::CopyFrom(const SetAllowableFlightModesRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void SetAllowableFlightModesRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool SetAllowableFlightModesRequest::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.flight_modes_ != nullptr); + if (_this->_impl_.flight_modes_ == nullptr) { + _this->_impl_.flight_modes_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::AllowableFlightModes>( + arena, *from._impl_.flight_modes_); + } else { + _this->_impl_.flight_modes_->MergeFrom(*from._impl_.flight_modes_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* SetAllowableFlightModesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; +void SetAllowableFlightModesRequest::CopyFrom(const SetAllowableFlightModesRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void SetAllowableFlightModesRequest::InternalSwap(SetAllowableFlightModesRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.flight_modes_, other->_impl_.flight_modes_); + +void SetAllowableFlightModesRequest::InternalSwap( + SetAllowableFlightModesRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.flight_modes_, other->_impl_.flight_modes_); } -::google::protobuf::Metadata SetAllowableFlightModesRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[3]); +::google::protobuf::Metadata SetAllowableFlightModesRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetAllowableFlightModesRequest::_Internal { - public: +public: }; GetAllowableFlightModesRequest::GetAllowableFlightModesRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) } GetAllowableFlightModesRequest::GetAllowableFlightModesRequest( - ::google::protobuf::Arena* arena, - const GetAllowableFlightModesRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GetAllowableFlightModesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) -} - - - - - - - - - -::google::protobuf::Metadata GetAllowableFlightModesRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[4]); + ::google::protobuf::Arena* arena, const GetAllowableFlightModesRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + GetAllowableFlightModesRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) +} + +inline void* GetAllowableFlightModesRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) GetAllowableFlightModesRequest(arena); +} +constexpr auto GetAllowableFlightModesRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GetAllowableFlightModesRequest), alignof(GetAllowableFlightModesRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetAllowableFlightModesRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GetAllowableFlightModesRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetAllowableFlightModesRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetAllowableFlightModesRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl< + GetAllowableFlightModesRequest>(), + &GetAllowableFlightModesRequest::ByteSizeLong, + &GetAllowableFlightModesRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetAllowableFlightModesRequest, _impl_._cached_size_), + false, + }, + &GetAllowableFlightModesRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GetAllowableFlightModesRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + GetAllowableFlightModesRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::GetAllowableFlightModesRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata GetAllowableFlightModesRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeArmDisarmRequest::_Internal { - public: +public: }; SubscribeArmDisarmRequest::SubscribeArmDisarmRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) } SubscribeArmDisarmRequest::SubscribeArmDisarmRequest( - ::google::protobuf::Arena* arena, - const SubscribeArmDisarmRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeArmDisarmRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) -} - - - - - - - - - -::google::protobuf::Metadata SubscribeArmDisarmRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[5]); + ::google::protobuf::Arena* arena, const SubscribeArmDisarmRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeArmDisarmRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) +} + +inline void* +SubscribeArmDisarmRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeArmDisarmRequest(arena); +} +constexpr auto SubscribeArmDisarmRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeArmDisarmRequest), alignof(SubscribeArmDisarmRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeArmDisarmRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeArmDisarmRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeArmDisarmRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeArmDisarmRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &SubscribeArmDisarmRequest::ByteSizeLong, + &SubscribeArmDisarmRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeArmDisarmRequest, _impl_._cached_size_), + false, + }, + &SubscribeArmDisarmRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeArmDisarmRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeArmDisarmRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::SubscribeArmDisarmRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeArmDisarmRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeFlightModeChangeRequest::_Internal { - public: +public: }; SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) } SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest( - ::google::protobuf::Arena* arena, - const SubscribeFlightModeChangeRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeFlightModeChangeRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) -} - - - - - - - - - -::google::protobuf::Metadata SubscribeFlightModeChangeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[6]); + ::google::protobuf::Arena* arena, const SubscribeFlightModeChangeRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeFlightModeChangeRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) +} + +inline void* SubscribeFlightModeChangeRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeFlightModeChangeRequest(arena); +} +constexpr auto SubscribeFlightModeChangeRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeFlightModeChangeRequest), alignof(SubscribeFlightModeChangeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeFlightModeChangeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeFlightModeChangeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeFlightModeChangeRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl< + SubscribeFlightModeChangeRequest>(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeFlightModeChangeRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl< + SubscribeFlightModeChangeRequest>(), + &SubscribeFlightModeChangeRequest::ByteSizeLong, + &SubscribeFlightModeChangeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeFlightModeChangeRequest, _impl_._cached_size_), + false, + }, + &SubscribeFlightModeChangeRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* +SubscribeFlightModeChangeRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeFlightModeChangeRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeFlightModeChangeRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeTakeoffRequest::_Internal { - public: +public: }; SubscribeTakeoffRequest::SubscribeTakeoffRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeTakeoffRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeTakeoffRequest) } SubscribeTakeoffRequest::SubscribeTakeoffRequest( - ::google::protobuf::Arena* arena, - const SubscribeTakeoffRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeTakeoffRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeTakeoffRequest) -} - - - - - - - - - -::google::protobuf::Metadata SubscribeTakeoffRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[7]); + ::google::protobuf::Arena* arena, const SubscribeTakeoffRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeTakeoffRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeTakeoffRequest) +} + +inline void* +SubscribeTakeoffRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeTakeoffRequest(arena); +} +constexpr auto SubscribeTakeoffRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeTakeoffRequest), alignof(SubscribeTakeoffRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeTakeoffRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeTakeoffRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeTakeoffRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeTakeoffRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &SubscribeTakeoffRequest::ByteSizeLong, + &SubscribeTakeoffRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeTakeoffRequest, _impl_._cached_size_), + false, + }, + &SubscribeTakeoffRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeTakeoffRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeTakeoffRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::SubscribeTakeoffRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeTakeoffRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeLandRequest::_Internal { - public: +public: }; SubscribeLandRequest::SubscribeLandRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeLandRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeLandRequest) } SubscribeLandRequest::SubscribeLandRequest( - ::google::protobuf::Arena* arena, - const SubscribeLandRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeLandRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeLandRequest) -} - - - - - - - - - -::google::protobuf::Metadata SubscribeLandRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[8]); + ::google::protobuf::Arena* arena, const SubscribeLandRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeLandRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeLandRequest) +} + +inline void* +SubscribeLandRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeLandRequest(arena); +} +constexpr auto SubscribeLandRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeLandRequest), alignof(SubscribeLandRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeLandRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeLandRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeLandRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeLandRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &SubscribeLandRequest::ByteSizeLong, + &SubscribeLandRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeLandRequest, _impl_._cached_size_), + false, + }, + &SubscribeLandRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeLandRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeLandRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::SubscribeLandRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeLandRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeRebootRequest::_Internal { - public: +public: }; SubscribeRebootRequest::SubscribeRebootRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeRebootRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeRebootRequest) } SubscribeRebootRequest::SubscribeRebootRequest( - ::google::protobuf::Arena* arena, - const SubscribeRebootRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeRebootRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeRebootRequest) -} - - - - - - - - - -::google::protobuf::Metadata SubscribeRebootRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[9]); + ::google::protobuf::Arena* arena, const SubscribeRebootRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeRebootRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeRebootRequest) +} + +inline void* +SubscribeRebootRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeRebootRequest(arena); +} +constexpr auto SubscribeRebootRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeRebootRequest), alignof(SubscribeRebootRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeRebootRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeRebootRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeRebootRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeRebootRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &SubscribeRebootRequest::ByteSizeLong, + &SubscribeRebootRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeRebootRequest, _impl_._cached_size_), + false, + }, + &SubscribeRebootRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeRebootRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeRebootRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::SubscribeRebootRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeRebootRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeShutdownRequest::_Internal { - public: +public: }; SubscribeShutdownRequest::SubscribeShutdownRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeShutdownRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeShutdownRequest) } SubscribeShutdownRequest::SubscribeShutdownRequest( - ::google::protobuf::Arena* arena, - const SubscribeShutdownRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeShutdownRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeShutdownRequest) -} - - - - - - - - - -::google::protobuf::Metadata SubscribeShutdownRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[10]); + ::google::protobuf::Arena* arena, const SubscribeShutdownRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeShutdownRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeShutdownRequest) +} + +inline void* +SubscribeShutdownRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeShutdownRequest(arena); +} +constexpr auto SubscribeShutdownRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeShutdownRequest), alignof(SubscribeShutdownRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeShutdownRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeShutdownRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeShutdownRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeShutdownRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &SubscribeShutdownRequest::ByteSizeLong, + &SubscribeShutdownRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeShutdownRequest, _impl_._cached_size_), + false, + }, + &SubscribeShutdownRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeShutdownRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeShutdownRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::SubscribeShutdownRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeShutdownRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeTerminateRequest::_Internal { - public: +public: }; SubscribeTerminateRequest::SubscribeTerminateRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeTerminateRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeTerminateRequest) } SubscribeTerminateRequest::SubscribeTerminateRequest( - ::google::protobuf::Arena* arena, - const SubscribeTerminateRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeTerminateRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeTerminateRequest) -} - - - - - - - - - -::google::protobuf::Metadata SubscribeTerminateRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[11]); + ::google::protobuf::Arena* arena, const SubscribeTerminateRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeTerminateRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeTerminateRequest) +} + +inline void* +SubscribeTerminateRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeTerminateRequest(arena); +} +constexpr auto SubscribeTerminateRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeTerminateRequest), alignof(SubscribeTerminateRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeTerminateRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeTerminateRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeTerminateRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeTerminateRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &SubscribeTerminateRequest::ByteSizeLong, + &SubscribeTerminateRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeTerminateRequest, _impl_._cached_size_), + false, + }, + &SubscribeTerminateRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeTerminateRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeTerminateRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::SubscribeTerminateRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeTerminateRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ArmDisarmResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const ArmDisarmResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::action_server::ArmDisarm& arm(const ArmDisarmResponse* msg); - static void set_has_arm(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& ArmDisarmResponse::_Internal::action_server_result(const ArmDisarmResponse* msg) { - return *msg->_impl_.action_server_result_; -} -const ::mavsdk::rpc::action_server::ArmDisarm& ArmDisarmResponse::_Internal::arm(const ArmDisarmResponse* msg) { - return *msg->_impl_.arm_; -} ArmDisarmResponse::ArmDisarmResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ArmDisarmResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ArmDisarmResponse) } inline PROTOBUF_NDEBUG_INLINE ArmDisarmResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action_server::ArmDisarmResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} ArmDisarmResponse::ArmDisarmResponse( - ::google::protobuf::Arena* arena, - const ArmDisarmResponse& from) - : ::google::protobuf::Message(arena) { - ArmDisarmResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; - _impl_.arm_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ArmDisarm>(arena, *from._impl_.arm_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.ArmDisarmResponse) + ::google::protobuf::Arena* arena, const ArmDisarmResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ArmDisarmResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) : + nullptr; + _impl_.arm_ = + (cached_has_bits & 0x00000002u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ArmDisarm>( + arena, *from._impl_.arm_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.ArmDisarmResponse) } inline PROTOBUF_NDEBUG_INLINE ArmDisarmResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ArmDisarmResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, action_server_result_), - 0, - offsetof(Impl_, arm_) - - offsetof(Impl_, action_server_result_) + - sizeof(Impl_::arm_)); -} -ArmDisarmResponse::~ArmDisarmResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.ArmDisarmResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ArmDisarmResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - delete _impl_.arm_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ArmDisarmResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ArmDisarmResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.arm_ != nullptr); - _impl_.arm_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ArmDisarmResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> ArmDisarmResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ArmDisarmResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action_server.ArmDisarm arm = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.arm_)}}, - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.action_server_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.action_server_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .mavsdk.rpc.action_server.ArmDisarm arm = 2; - {PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.arm_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ArmDisarm>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ArmDisarmResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, action_server_result_), + 0, + offsetof(Impl_, arm_) - offsetof(Impl_, action_server_result_) + sizeof(Impl_::arm_)); +} +ArmDisarmResponse::~ArmDisarmResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.ArmDisarmResponse) + SharedDtor(*this); +} +inline void ArmDisarmResponse::SharedDtor(MessageLite& self) +{ + ArmDisarmResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + delete this_._impl_.arm_; + this_._impl_.~Impl_(); +} + +inline void* +ArmDisarmResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ArmDisarmResponse(arena); +} +constexpr auto ArmDisarmResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ArmDisarmResponse), alignof(ArmDisarmResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmDisarmResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmDisarmResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmDisarmResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmDisarmResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ArmDisarmResponse::ByteSizeLong, + &ArmDisarmResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_._cached_size_), + false, + }, + &ArmDisarmResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* ArmDisarmResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> + ArmDisarmResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::ArmDisarmResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action_server.ArmDisarm arm = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 1, PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.arm_)}}, + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.action_server_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.action_server_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .mavsdk.rpc.action_server.ArmDisarm arm = 2; + {PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.arm_), + _Internal::kHasBitsOffset + 1, + 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ArmDisarm>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void ArmDisarmResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ArmDisarmResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.arm_ != nullptr); + _impl_.arm_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* ArmDisarmResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ArmDisarmResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* ArmDisarmResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ArmDisarmResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.action_server.ArmDisarm arm = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::arm(this), - _Internal::arm(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ArmDisarmResponse) - return target; -} - -::size_t ArmDisarmResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ArmDisarmResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ArmDisarmResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ArmDisarmResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_server_result_, + this_._impl_.action_server_result_->GetCachedSize(), + target, + stream); } // .mavsdk.rpc.action_server.ArmDisarm arm = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.arm_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.arm_, this_._impl_.arm_->GetCachedSize(), target, stream); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ArmDisarmResponse::_class_data_ = { - ArmDisarmResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ArmDisarmResponse::GetClassData() const { - return &_class_data_; -} - -void ArmDisarmResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ArmDisarmResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_arm()->::mavsdk::rpc::action_server::ArmDisarm::MergeFrom( - from._internal_arm()); + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ArmDisarmResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ArmDisarmResponse::ByteSizeLong(const MessageLite& base) +{ + const ArmDisarmResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ArmDisarmResponse::ByteSizeLong() const +{ + const ArmDisarmResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ArmDisarmResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_server_result_); + } + // .mavsdk.rpc.action_server.ArmDisarm arm = 2; + if (cached_has_bits & 0x00000002u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.arm_); + } } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ArmDisarmResponse::CopyFrom(const ArmDisarmResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.ArmDisarmResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void ArmDisarmResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ArmDisarmResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(from._impl_.arm_ != nullptr); + if (_this->_impl_.arm_ == nullptr) { + _this->_impl_.arm_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ArmDisarm>(arena, *from._impl_.arm_); + } else { + _this->_impl_.arm_->MergeFrom(*from._impl_.arm_); + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -PROTOBUF_NOINLINE bool ArmDisarmResponse::IsInitialized() const { - return true; +void ArmDisarmResponse::CopyFrom(const ArmDisarmResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.ArmDisarmResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -::_pbi::CachedSize* ArmDisarmResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ArmDisarmResponse::InternalSwap(ArmDisarmResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.arm_) - + sizeof(ArmDisarmResponse::_impl_.arm_) - - PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.action_server_result_)>( - reinterpret_cast(&_impl_.action_server_result_), - reinterpret_cast(&other->_impl_.action_server_result_)); +void ArmDisarmResponse::InternalSwap(ArmDisarmResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.arm_) + + sizeof(ArmDisarmResponse::_impl_.arm_) - + PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.action_server_result_)>( + reinterpret_cast(&_impl_.action_server_result_), + reinterpret_cast(&other->_impl_.action_server_result_)); } -::google::protobuf::Metadata ArmDisarmResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[12]); +::google::protobuf::Metadata ArmDisarmResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FlightModeChangeResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const FlightModeChangeResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& FlightModeChangeResponse::_Internal::action_server_result(const FlightModeChangeResponse* msg) { - return *msg->_impl_.action_server_result_; -} FlightModeChangeResponse::FlightModeChangeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.FlightModeChangeResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.FlightModeChangeResponse) } inline PROTOBUF_NDEBUG_INLINE FlightModeChangeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action_server::FlightModeChangeResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} FlightModeChangeResponse::FlightModeChangeResponse( - ::google::protobuf::Arena* arena, - const FlightModeChangeResponse& from) - : ::google::protobuf::Message(arena) { - FlightModeChangeResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; - _impl_.flight_mode_ = from._impl_.flight_mode_; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.FlightModeChangeResponse) + ::google::protobuf::Arena* arena, const FlightModeChangeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + FlightModeChangeResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) : + nullptr; + _impl_.flight_mode_ = from._impl_.flight_mode_; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.FlightModeChangeResponse) } inline PROTOBUF_NDEBUG_INLINE FlightModeChangeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void FlightModeChangeResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, action_server_result_), - 0, - offsetof(Impl_, flight_mode_) - - offsetof(Impl_, action_server_result_) + - sizeof(Impl_::flight_mode_)); -} -FlightModeChangeResponse::~FlightModeChangeResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.FlightModeChangeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FlightModeChangeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void FlightModeChangeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.FlightModeChangeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_.flight_mode_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FlightModeChangeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> FlightModeChangeResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FlightModeChangeResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FlightModeChangeResponse, _impl_.flight_mode_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.flight_mode_)}}, - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.action_server_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.action_server_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; - {PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.flight_mode_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void FlightModeChangeResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, action_server_result_), + 0, + offsetof(Impl_, flight_mode_) - offsetof(Impl_, action_server_result_) + + sizeof(Impl_::flight_mode_)); +} +FlightModeChangeResponse::~FlightModeChangeResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.FlightModeChangeResponse) + SharedDtor(*this); +} +inline void FlightModeChangeResponse::SharedDtor(MessageLite& self) +{ + FlightModeChangeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* +FlightModeChangeResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) FlightModeChangeResponse(arena); +} +constexpr auto FlightModeChangeResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(FlightModeChangeResponse), alignof(FlightModeChangeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FlightModeChangeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FlightModeChangeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FlightModeChangeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FlightModeChangeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &FlightModeChangeResponse::ByteSizeLong, + &FlightModeChangeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_._cached_size_), + false, + }, + &FlightModeChangeResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* FlightModeChangeResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> + FlightModeChangeResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::FlightModeChangeResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(FlightModeChangeResponse, _impl_.flight_mode_), + 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.flight_mode_)}}, + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.action_server_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.action_server_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; + {PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.flight_mode_), + -1, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void FlightModeChangeResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.FlightModeChangeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); + } + _impl_.flight_mode_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* FlightModeChangeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.FlightModeChangeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; - if (this->_internal_flight_mode() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_flight_mode(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.FlightModeChangeResponse) - return target; -} - -::size_t FlightModeChangeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.FlightModeChangeResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; - if (this->_internal_flight_mode() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_flight_mode()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FlightModeChangeResponse::_class_data_ = { - FlightModeChangeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FlightModeChangeResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const FlightModeChangeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* FlightModeChangeResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const FlightModeChangeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.FlightModeChangeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_server_result_, + this_._impl_.action_server_result_->GetCachedSize(), + target, + stream); + } -void FlightModeChangeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.FlightModeChangeResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; + if (this_._internal_flight_mode() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray(2, this_._internal_flight_mode(), target); + } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); - } - if (from._internal_flight_mode() != 0) { - _this->_internal_set_flight_mode(from._internal_flight_mode()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.FlightModeChangeResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t FlightModeChangeResponse::ByteSizeLong(const MessageLite& base) +{ + const FlightModeChangeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t FlightModeChangeResponse::ByteSizeLong() const +{ + const FlightModeChangeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.FlightModeChangeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_server_result_); + } + } + { + // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; + if (this_._internal_flight_mode() != 0) { + total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_flight_mode()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void FlightModeChangeResponse::CopyFrom(const FlightModeChangeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.FlightModeChangeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void FlightModeChangeResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.FlightModeChangeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool FlightModeChangeResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } + } + if (from._internal_flight_mode() != 0) { + _this->_impl_.flight_mode_ = from._impl_.flight_mode_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* FlightModeChangeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void FlightModeChangeResponse::CopyFrom(const FlightModeChangeResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.FlightModeChangeResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void FlightModeChangeResponse::InternalSwap(FlightModeChangeResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.flight_mode_) - + sizeof(FlightModeChangeResponse::_impl_.flight_mode_) - - PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.action_server_result_)>( - reinterpret_cast(&_impl_.action_server_result_), - reinterpret_cast(&other->_impl_.action_server_result_)); + +void FlightModeChangeResponse::InternalSwap(FlightModeChangeResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.flight_mode_) + + sizeof(FlightModeChangeResponse::_impl_.flight_mode_) - + PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.action_server_result_)>( + reinterpret_cast(&_impl_.action_server_result_), + reinterpret_cast(&other->_impl_.action_server_result_)); } -::google::protobuf::Metadata FlightModeChangeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[13]); +::google::protobuf::Metadata FlightModeChangeResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TakeoffResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const TakeoffResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& TakeoffResponse::_Internal::action_server_result(const TakeoffResponse* msg) { - return *msg->_impl_.action_server_result_; -} TakeoffResponse::TakeoffResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.TakeoffResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.TakeoffResponse) } inline PROTOBUF_NDEBUG_INLINE TakeoffResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -TakeoffResponse::TakeoffResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const TakeoffResponse& from) - : ::google::protobuf::Message(arena) { - TakeoffResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; - _impl_.takeoff_ = from._impl_.takeoff_; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.TakeoffResponse) + const Impl_& from, + const ::mavsdk::rpc::action_server::TakeoffResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +TakeoffResponse::TakeoffResponse(::google::protobuf::Arena* arena, const TakeoffResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TakeoffResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) : + nullptr; + _impl_.takeoff_ = from._impl_.takeoff_; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.TakeoffResponse) } inline PROTOBUF_NDEBUG_INLINE TakeoffResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void TakeoffResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, action_server_result_), - 0, - offsetof(Impl_, takeoff_) - - offsetof(Impl_, action_server_result_) + - sizeof(Impl_::takeoff_)); -} -TakeoffResponse::~TakeoffResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.TakeoffResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TakeoffResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TakeoffResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.TakeoffResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_.takeoff_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TakeoffResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> TakeoffResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TakeoffResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool takeoff = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.takeoff_)}}, - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.action_server_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.action_server_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool takeoff = 2; - {PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.takeoff_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void TakeoffResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, action_server_result_), + 0, + offsetof(Impl_, takeoff_) - offsetof(Impl_, action_server_result_) + + sizeof(Impl_::takeoff_)); +} +TakeoffResponse::~TakeoffResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.TakeoffResponse) + SharedDtor(*this); +} +inline void TakeoffResponse::SharedDtor(MessageLite& self) +{ + TakeoffResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* +TakeoffResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TakeoffResponse(arena); +} +constexpr auto TakeoffResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TakeoffResponse), alignof(TakeoffResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TakeoffResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TakeoffResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TakeoffResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TakeoffResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &TakeoffResponse::ByteSizeLong, + &TakeoffResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._cached_size_), + false, + }, + &TakeoffResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* TakeoffResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> + TakeoffResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::TakeoffResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // bool takeoff = 2; + {::_pbi::TcParser:: + SingularVarintNoZag1(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.takeoff_)}}, + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.action_server_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.action_server_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // bool takeoff = 2; + {PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.takeoff_), + -1, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void TakeoffResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.TakeoffResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); + } + _impl_.takeoff_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* TakeoffResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.TakeoffResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - // bool takeoff = 2; - if (this->_internal_takeoff() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_takeoff(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.TakeoffResponse) - return target; -} - -::size_t TakeoffResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.TakeoffResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - // bool takeoff = 2; - if (this->_internal_takeoff() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TakeoffResponse::_class_data_ = { - TakeoffResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TakeoffResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const TakeoffResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* TakeoffResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const TakeoffResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.TakeoffResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_server_result_, + this_._impl_.action_server_result_->GetCachedSize(), + target, + stream); + } -void TakeoffResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.TakeoffResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // bool takeoff = 2; + if (this_._internal_takeoff() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this_._internal_takeoff(), target); + } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); - } - if (from._internal_takeoff() != 0) { - _this->_internal_set_takeoff(from._internal_takeoff()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.TakeoffResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TakeoffResponse::ByteSizeLong(const MessageLite& base) +{ + const TakeoffResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t TakeoffResponse::ByteSizeLong() const +{ + const TakeoffResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.TakeoffResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_server_result_); + } + } + { + // bool takeoff = 2; + if (this_._internal_takeoff() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void TakeoffResponse::CopyFrom(const TakeoffResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.TakeoffResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void TakeoffResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.TakeoffResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool TakeoffResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } + } + if (from._internal_takeoff() != 0) { + _this->_impl_.takeoff_ = from._impl_.takeoff_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* TakeoffResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void TakeoffResponse::CopyFrom(const TakeoffResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.TakeoffResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void TakeoffResponse::InternalSwap(TakeoffResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.takeoff_) - + sizeof(TakeoffResponse::_impl_.takeoff_) - - PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.action_server_result_)>( - reinterpret_cast(&_impl_.action_server_result_), - reinterpret_cast(&other->_impl_.action_server_result_)); + +void TakeoffResponse::InternalSwap(TakeoffResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.takeoff_) + + sizeof(TakeoffResponse::_impl_.takeoff_) - + PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.action_server_result_)>( + reinterpret_cast(&_impl_.action_server_result_), + reinterpret_cast(&other->_impl_.action_server_result_)); } -::google::protobuf::Metadata TakeoffResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[14]); +::google::protobuf::Metadata TakeoffResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class LandResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const LandResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& LandResponse::_Internal::action_server_result(const LandResponse* msg) { - return *msg->_impl_.action_server_result_; -} LandResponse::LandResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.LandResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.LandResponse) } inline PROTOBUF_NDEBUG_INLINE LandResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -LandResponse::LandResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const LandResponse& from) - : ::google::protobuf::Message(arena) { - LandResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; - _impl_.land_ = from._impl_.land_; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.LandResponse) + const Impl_& from, + const ::mavsdk::rpc::action_server::LandResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +LandResponse::LandResponse(::google::protobuf::Arena* arena, const LandResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + LandResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) : + nullptr; + _impl_.land_ = from._impl_.land_; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.LandResponse) } inline PROTOBUF_NDEBUG_INLINE LandResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void LandResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, action_server_result_), - 0, - offsetof(Impl_, land_) - - offsetof(Impl_, action_server_result_) + - sizeof(Impl_::land_)); -} -LandResponse::~LandResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.LandResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void LandResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void LandResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.LandResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_.land_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* LandResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> LandResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_LandResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool land = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.land_)}}, - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.action_server_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.action_server_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool land = 2; - {PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.land_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void LandResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, action_server_result_), + 0, + offsetof(Impl_, land_) - offsetof(Impl_, action_server_result_) + sizeof(Impl_::land_)); +} +LandResponse::~LandResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.LandResponse) + SharedDtor(*this); +} +inline void LandResponse::SharedDtor(MessageLite& self) +{ + LandResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* LandResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) LandResponse(arena); +} +constexpr auto LandResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(LandResponse), alignof(LandResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull LandResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_LandResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &LandResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &LandResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &LandResponse::ByteSizeLong, + &LandResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._cached_size_), + false, + }, + &LandResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* LandResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> + LandResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::LandResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // bool land = 2; + {::_pbi::TcParser:: + SingularVarintNoZag1(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.land_)}}, + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.action_server_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.action_server_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // bool land = 2; + {PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.land_), + -1, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void LandResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.LandResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); + } + _impl_.land_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* LandResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.LandResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - // bool land = 2; - if (this->_internal_land() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_land(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.LandResponse) - return target; -} - -::size_t LandResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.LandResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - // bool land = 2; - if (this->_internal_land() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData LandResponse::_class_data_ = { - LandResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* LandResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const LandResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* LandResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const LandResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.LandResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_server_result_, + this_._impl_.action_server_result_->GetCachedSize(), + target, + stream); + } -void LandResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.LandResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // bool land = 2; + if (this_._internal_land() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this_._internal_land(), target); + } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); - } - if (from._internal_land() != 0) { - _this->_internal_set_land(from._internal_land()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.LandResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t LandResponse::ByteSizeLong(const MessageLite& base) +{ + const LandResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t LandResponse::ByteSizeLong() const +{ + const LandResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.LandResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_server_result_); + } + } + { + // bool land = 2; + if (this_._internal_land() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void LandResponse::CopyFrom(const LandResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.LandResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void LandResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.LandResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool LandResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } + } + if (from._internal_land() != 0) { + _this->_impl_.land_ = from._impl_.land_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* LandResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void LandResponse::CopyFrom(const LandResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.LandResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void LandResponse::InternalSwap(LandResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.land_) - + sizeof(LandResponse::_impl_.land_) - - PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.action_server_result_)>( - reinterpret_cast(&_impl_.action_server_result_), - reinterpret_cast(&other->_impl_.action_server_result_)); + +void LandResponse::InternalSwap(LandResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.land_) + sizeof(LandResponse::_impl_.land_) - + PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.action_server_result_)>( + reinterpret_cast(&_impl_.action_server_result_), + reinterpret_cast(&other->_impl_.action_server_result_)); } -::google::protobuf::Metadata LandResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[15]); +::google::protobuf::Metadata LandResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class RebootResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const RebootResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& RebootResponse::_Internal::action_server_result(const RebootResponse* msg) { - return *msg->_impl_.action_server_result_; -} RebootResponse::RebootResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.RebootResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.RebootResponse) } inline PROTOBUF_NDEBUG_INLINE RebootResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -RebootResponse::RebootResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const RebootResponse& from) - : ::google::protobuf::Message(arena) { - RebootResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; - _impl_.reboot_ = from._impl_.reboot_; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.RebootResponse) + const Impl_& from, + const ::mavsdk::rpc::action_server::RebootResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +RebootResponse::RebootResponse(::google::protobuf::Arena* arena, const RebootResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + RebootResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) : + nullptr; + _impl_.reboot_ = from._impl_.reboot_; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.RebootResponse) } inline PROTOBUF_NDEBUG_INLINE RebootResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void RebootResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, action_server_result_), - 0, - offsetof(Impl_, reboot_) - - offsetof(Impl_, action_server_result_) + - sizeof(Impl_::reboot_)); -} -RebootResponse::~RebootResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.RebootResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void RebootResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void RebootResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.RebootResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_.reboot_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RebootResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> RebootResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RebootResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool reboot = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.reboot_)}}, - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.action_server_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.action_server_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool reboot = 2; - {PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.reboot_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void RebootResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, action_server_result_), + 0, + offsetof(Impl_, reboot_) - offsetof(Impl_, action_server_result_) + sizeof(Impl_::reboot_)); +} +RebootResponse::~RebootResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.RebootResponse) + SharedDtor(*this); +} +inline void RebootResponse::SharedDtor(MessageLite& self) +{ + RebootResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* RebootResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) RebootResponse(arena); +} +constexpr auto RebootResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(RebootResponse), alignof(RebootResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull RebootResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_RebootResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RebootResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RebootResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &RebootResponse::ByteSizeLong, + &RebootResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._cached_size_), + false, + }, + &RebootResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* RebootResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> + RebootResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::RebootResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // bool reboot = 2; + {::_pbi::TcParser:: + SingularVarintNoZag1(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.reboot_)}}, + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.action_server_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.action_server_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // bool reboot = 2; + {PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.reboot_), + -1, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void RebootResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.RebootResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); + } + _impl_.reboot_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* RebootResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.RebootResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - // bool reboot = 2; - if (this->_internal_reboot() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_reboot(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.RebootResponse) - return target; -} - -::size_t RebootResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.RebootResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - // bool reboot = 2; - if (this->_internal_reboot() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData RebootResponse::_class_data_ = { - RebootResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* RebootResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const RebootResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* RebootResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const RebootResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.RebootResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_server_result_, + this_._impl_.action_server_result_->GetCachedSize(), + target, + stream); + } -void RebootResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.RebootResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // bool reboot = 2; + if (this_._internal_reboot() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this_._internal_reboot(), target); + } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); - } - if (from._internal_reboot() != 0) { - _this->_internal_set_reboot(from._internal_reboot()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.RebootResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t RebootResponse::ByteSizeLong(const MessageLite& base) +{ + const RebootResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RebootResponse::ByteSizeLong() const +{ + const RebootResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.RebootResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_server_result_); + } + } + { + // bool reboot = 2; + if (this_._internal_reboot() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void RebootResponse::CopyFrom(const RebootResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.RebootResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void RebootResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.RebootResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool RebootResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } + } + if (from._internal_reboot() != 0) { + _this->_impl_.reboot_ = from._impl_.reboot_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* RebootResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void RebootResponse::CopyFrom(const RebootResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.RebootResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void RebootResponse::InternalSwap(RebootResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.reboot_) - + sizeof(RebootResponse::_impl_.reboot_) - - PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.action_server_result_)>( - reinterpret_cast(&_impl_.action_server_result_), - reinterpret_cast(&other->_impl_.action_server_result_)); + +void RebootResponse::InternalSwap(RebootResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.reboot_) + + sizeof(RebootResponse::_impl_.reboot_) - + PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.action_server_result_)>( + reinterpret_cast(&_impl_.action_server_result_), + reinterpret_cast(&other->_impl_.action_server_result_)); } -::google::protobuf::Metadata RebootResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[16]); +::google::protobuf::Metadata RebootResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ShutdownResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const ShutdownResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& ShutdownResponse::_Internal::action_server_result(const ShutdownResponse* msg) { - return *msg->_impl_.action_server_result_; -} ShutdownResponse::ShutdownResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ShutdownResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ShutdownResponse) } inline PROTOBUF_NDEBUG_INLINE ShutdownResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ShutdownResponse::ShutdownResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const ShutdownResponse& from) - : ::google::protobuf::Message(arena) { - ShutdownResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; - _impl_.shutdown_ = from._impl_.shutdown_; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.ShutdownResponse) + const Impl_& from, + const ::mavsdk::rpc::action_server::ShutdownResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +ShutdownResponse::ShutdownResponse(::google::protobuf::Arena* arena, const ShutdownResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ShutdownResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) : + nullptr; + _impl_.shutdown_ = from._impl_.shutdown_; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.ShutdownResponse) } inline PROTOBUF_NDEBUG_INLINE ShutdownResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ShutdownResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, action_server_result_), - 0, - offsetof(Impl_, shutdown_) - - offsetof(Impl_, action_server_result_) + - sizeof(Impl_::shutdown_)); -} -ShutdownResponse::~ShutdownResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.ShutdownResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ShutdownResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ShutdownResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ShutdownResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_.shutdown_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ShutdownResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> ShutdownResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ShutdownResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool shutdown = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.shutdown_)}}, - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.action_server_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.action_server_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool shutdown = 2; - {PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.shutdown_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ShutdownResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, action_server_result_), + 0, + offsetof(Impl_, shutdown_) - offsetof(Impl_, action_server_result_) + + sizeof(Impl_::shutdown_)); +} +ShutdownResponse::~ShutdownResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.ShutdownResponse) + SharedDtor(*this); +} +inline void ShutdownResponse::SharedDtor(MessageLite& self) +{ + ShutdownResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* +ShutdownResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ShutdownResponse(arena); +} +constexpr auto ShutdownResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ShutdownResponse), alignof(ShutdownResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ShutdownResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ShutdownResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShutdownResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShutdownResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ShutdownResponse::ByteSizeLong, + &ShutdownResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._cached_size_), + false, + }, + &ShutdownResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* ShutdownResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> + ShutdownResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::ShutdownResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // bool shutdown = 2; + {::_pbi::TcParser:: + SingularVarintNoZag1(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.shutdown_)}}, + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.action_server_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.action_server_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // bool shutdown = 2; + {PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.shutdown_), + -1, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void ShutdownResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ShutdownResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); + } + _impl_.shutdown_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* ShutdownResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ShutdownResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - // bool shutdown = 2; - if (this->_internal_shutdown() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_shutdown(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ShutdownResponse) - return target; -} - -::size_t ShutdownResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ShutdownResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - // bool shutdown = 2; - if (this->_internal_shutdown() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ShutdownResponse::_class_data_ = { - ShutdownResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ShutdownResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ShutdownResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ShutdownResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ShutdownResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ShutdownResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_server_result_, + this_._impl_.action_server_result_->GetCachedSize(), + target, + stream); + } -void ShutdownResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ShutdownResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // bool shutdown = 2; + if (this_._internal_shutdown() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this_._internal_shutdown(), target); + } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); - } - if (from._internal_shutdown() != 0) { - _this->_internal_set_shutdown(from._internal_shutdown()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ShutdownResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ShutdownResponse::ByteSizeLong(const MessageLite& base) +{ + const ShutdownResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ShutdownResponse::ByteSizeLong() const +{ + const ShutdownResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ShutdownResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_server_result_); + } + } + { + // bool shutdown = 2; + if (this_._internal_shutdown() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void ShutdownResponse::CopyFrom(const ShutdownResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.ShutdownResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void ShutdownResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ShutdownResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool ShutdownResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } + } + if (from._internal_shutdown() != 0) { + _this->_impl_.shutdown_ = from._impl_.shutdown_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* ShutdownResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void ShutdownResponse::CopyFrom(const ShutdownResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.ShutdownResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void ShutdownResponse::InternalSwap(ShutdownResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.shutdown_) - + sizeof(ShutdownResponse::_impl_.shutdown_) - - PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.action_server_result_)>( - reinterpret_cast(&_impl_.action_server_result_), - reinterpret_cast(&other->_impl_.action_server_result_)); + +void ShutdownResponse::InternalSwap(ShutdownResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.shutdown_) + + sizeof(ShutdownResponse::_impl_.shutdown_) - + PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.action_server_result_)>( + reinterpret_cast(&_impl_.action_server_result_), + reinterpret_cast(&other->_impl_.action_server_result_)); } -::google::protobuf::Metadata ShutdownResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[17]); +::google::protobuf::Metadata ShutdownResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TerminateResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const TerminateResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& TerminateResponse::_Internal::action_server_result(const TerminateResponse* msg) { - return *msg->_impl_.action_server_result_; -} TerminateResponse::TerminateResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.TerminateResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.TerminateResponse) } inline PROTOBUF_NDEBUG_INLINE TerminateResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action_server::TerminateResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} TerminateResponse::TerminateResponse( - ::google::protobuf::Arena* arena, - const TerminateResponse& from) - : ::google::protobuf::Message(arena) { - TerminateResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; - _impl_.terminate_ = from._impl_.terminate_; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.TerminateResponse) + ::google::protobuf::Arena* arena, const TerminateResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TerminateResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) : + nullptr; + _impl_.terminate_ = from._impl_.terminate_; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.TerminateResponse) } inline PROTOBUF_NDEBUG_INLINE TerminateResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void TerminateResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, action_server_result_), - 0, - offsetof(Impl_, terminate_) - - offsetof(Impl_, action_server_result_) + - sizeof(Impl_::terminate_)); -} -TerminateResponse::~TerminateResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.TerminateResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TerminateResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TerminateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.TerminateResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_.terminate_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TerminateResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> TerminateResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TerminateResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool terminate = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.terminate_)}}, - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.action_server_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.action_server_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool terminate = 2; - {PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.terminate_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void TerminateResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, action_server_result_), + 0, + offsetof(Impl_, terminate_) - offsetof(Impl_, action_server_result_) + + sizeof(Impl_::terminate_)); +} +TerminateResponse::~TerminateResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.TerminateResponse) + SharedDtor(*this); +} +inline void TerminateResponse::SharedDtor(MessageLite& self) +{ + TerminateResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* +TerminateResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TerminateResponse(arena); +} +constexpr auto TerminateResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TerminateResponse), alignof(TerminateResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TerminateResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TerminateResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TerminateResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TerminateResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &TerminateResponse::ByteSizeLong, + &TerminateResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._cached_size_), + false, + }, + &TerminateResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* TerminateResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> + TerminateResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::TerminateResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // bool terminate = 2; + {::_pbi::TcParser:: + SingularVarintNoZag1(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.terminate_)}}, + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.action_server_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.action_server_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // bool terminate = 2; + {PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.terminate_), + -1, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void TerminateResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.TerminateResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); + } + _impl_.terminate_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* TerminateResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.TerminateResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - // bool terminate = 2; - if (this->_internal_terminate() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_terminate(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.TerminateResponse) - return target; -} - -::size_t TerminateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.TerminateResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - // bool terminate = 2; - if (this->_internal_terminate() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TerminateResponse::_class_data_ = { - TerminateResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TerminateResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const TerminateResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* TerminateResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const TerminateResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.TerminateResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_server_result_, + this_._impl_.action_server_result_->GetCachedSize(), + target, + stream); + } -void TerminateResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.TerminateResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // bool terminate = 2; + if (this_._internal_terminate() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this_._internal_terminate(), target); + } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); - } - if (from._internal_terminate() != 0) { - _this->_internal_set_terminate(from._internal_terminate()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.TerminateResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TerminateResponse::ByteSizeLong(const MessageLite& base) +{ + const TerminateResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t TerminateResponse::ByteSizeLong() const +{ + const TerminateResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.TerminateResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_server_result_); + } + } + { + // bool terminate = 2; + if (this_._internal_terminate() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void TerminateResponse::CopyFrom(const TerminateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.TerminateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void TerminateResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.TerminateResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool TerminateResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } + } + if (from._internal_terminate() != 0) { + _this->_impl_.terminate_ = from._impl_.terminate_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* TerminateResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void TerminateResponse::CopyFrom(const TerminateResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.TerminateResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void TerminateResponse::InternalSwap(TerminateResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.terminate_) - + sizeof(TerminateResponse::_impl_.terminate_) - - PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.action_server_result_)>( - reinterpret_cast(&_impl_.action_server_result_), - reinterpret_cast(&other->_impl_.action_server_result_)); + +void TerminateResponse::InternalSwap(TerminateResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.terminate_) + + sizeof(TerminateResponse::_impl_.terminate_) - + PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.action_server_result_)>( + reinterpret_cast(&_impl_.action_server_result_), + reinterpret_cast(&other->_impl_.action_server_result_)); } -::google::protobuf::Metadata TerminateResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[18]); +::google::protobuf::Metadata TerminateResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetArmableResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetArmableResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const SetArmableResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetArmableResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& SetArmableResponse::_Internal::action_server_result(const SetArmableResponse* msg) { - return *msg->_impl_.action_server_result_; -} SetArmableResponse::SetArmableResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetArmableResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetArmableResponse) } inline PROTOBUF_NDEBUG_INLINE SetArmableResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action_server::SetArmableResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} SetArmableResponse::SetArmableResponse( - ::google::protobuf::Arena* arena, - const SetArmableResponse& from) - : ::google::protobuf::Message(arena) { - SetArmableResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetArmableResponse) + ::google::protobuf::Arena* arena, const SetArmableResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SetArmableResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetArmableResponse) } inline PROTOBUF_NDEBUG_INLINE SetArmableResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetArmableResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_server_result_ = {}; -} -SetArmableResponse::~SetArmableResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetArmableResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetArmableResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetArmableResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetArmableResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetArmableResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetArmableResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetArmableResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetArmableResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetArmableResponse, _impl_.action_server_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {PROTOBUF_FIELD_OFFSET(SetArmableResponse, _impl_.action_server_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetArmableResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_server_result_ = {}; +} +SetArmableResponse::~SetArmableResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetArmableResponse) + SharedDtor(*this); +} +inline void SetArmableResponse::SharedDtor(MessageLite& self) +{ + SetArmableResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* +SetArmableResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetArmableResponse(arena); +} +constexpr auto SetArmableResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetArmableResponse), alignof(SetArmableResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetArmableResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetArmableResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetArmableResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetArmableResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetArmableResponse::ByteSizeLong, + &SetArmableResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetArmableResponse, _impl_._cached_size_), + false, + }, + &SetArmableResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* SetArmableResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + SetArmableResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SetArmableResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::SetArmableResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetArmableResponse, _impl_.action_server_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {PROTOBUF_FIELD_OFFSET(SetArmableResponse, _impl_.action_server_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void SetArmableResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetArmableResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetArmableResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetArmableResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetArmableResponse) - return target; -} - -::size_t SetArmableResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetArmableResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetArmableResponse::_class_data_ = { - SetArmableResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetArmableResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetArmableResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetArmableResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetArmableResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetArmableResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_server_result_, + this_._impl_.action_server_result_->GetCachedSize(), + target, + stream); + } -void SetArmableResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetArmableResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetArmableResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetArmableResponse::ByteSizeLong(const MessageLite& base) +{ + const SetArmableResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetArmableResponse::ByteSizeLong() const +{ + const SetArmableResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetArmableResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_server_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void SetArmableResponse::CopyFrom(const SetArmableResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetArmableResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void SetArmableResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetArmableResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool SetArmableResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* SetArmableResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void SetArmableResponse::CopyFrom(const SetArmableResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetArmableResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void SetArmableResponse::InternalSwap(SetArmableResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_server_result_, other->_impl_.action_server_result_); + +void SetArmableResponse::InternalSwap(SetArmableResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_server_result_, other->_impl_.action_server_result_); } -::google::protobuf::Metadata SetArmableResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[19]); +::google::protobuf::Metadata SetArmableResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetDisarmableResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetDisarmableResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const SetDisarmableResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetDisarmableResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& SetDisarmableResponse::_Internal::action_server_result(const SetDisarmableResponse* msg) { - return *msg->_impl_.action_server_result_; -} SetDisarmableResponse::SetDisarmableResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetDisarmableResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetDisarmableResponse) } inline PROTOBUF_NDEBUG_INLINE SetDisarmableResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action_server::SetDisarmableResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} SetDisarmableResponse::SetDisarmableResponse( - ::google::protobuf::Arena* arena, - const SetDisarmableResponse& from) - : ::google::protobuf::Message(arena) { - SetDisarmableResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetDisarmableResponse) + ::google::protobuf::Arena* arena, const SetDisarmableResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SetDisarmableResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetDisarmableResponse) } inline PROTOBUF_NDEBUG_INLINE SetDisarmableResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetDisarmableResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_server_result_ = {}; -} -SetDisarmableResponse::~SetDisarmableResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetDisarmableResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetDisarmableResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetDisarmableResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetDisarmableResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetDisarmableResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetDisarmableResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetDisarmableResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetDisarmableResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetDisarmableResponse, _impl_.action_server_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {PROTOBUF_FIELD_OFFSET(SetDisarmableResponse, _impl_.action_server_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetDisarmableResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_server_result_ = {}; +} +SetDisarmableResponse::~SetDisarmableResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetDisarmableResponse) + SharedDtor(*this); +} +inline void SetDisarmableResponse::SharedDtor(MessageLite& self) +{ + SetDisarmableResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* +SetDisarmableResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetDisarmableResponse(arena); +} +constexpr auto SetDisarmableResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetDisarmableResponse), alignof(SetDisarmableResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetDisarmableResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetDisarmableResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetDisarmableResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetDisarmableResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetDisarmableResponse::ByteSizeLong, + &SetDisarmableResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetDisarmableResponse, _impl_._cached_size_), + false, + }, + &SetDisarmableResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* SetDisarmableResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + SetDisarmableResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SetDisarmableResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::SetDisarmableResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET(SetDisarmableResponse, _impl_.action_server_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {PROTOBUF_FIELD_OFFSET(SetDisarmableResponse, _impl_.action_server_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void SetDisarmableResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetDisarmableResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetDisarmableResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetDisarmableResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetDisarmableResponse) - return target; -} - -::size_t SetDisarmableResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetDisarmableResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetDisarmableResponse::_class_data_ = { - SetDisarmableResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetDisarmableResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetDisarmableResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetDisarmableResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetDisarmableResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetDisarmableResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_server_result_, + this_._impl_.action_server_result_->GetCachedSize(), + target, + stream); + } -void SetDisarmableResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetDisarmableResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetDisarmableResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetDisarmableResponse::ByteSizeLong(const MessageLite& base) +{ + const SetDisarmableResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetDisarmableResponse::ByteSizeLong() const +{ + const SetDisarmableResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetDisarmableResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_server_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void SetDisarmableResponse::CopyFrom(const SetDisarmableResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetDisarmableResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void SetDisarmableResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetDisarmableResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool SetDisarmableResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* SetDisarmableResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void SetDisarmableResponse::CopyFrom(const SetDisarmableResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetDisarmableResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void SetDisarmableResponse::InternalSwap(SetDisarmableResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_server_result_, other->_impl_.action_server_result_); + +void SetDisarmableResponse::InternalSwap(SetDisarmableResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_server_result_, other->_impl_.action_server_result_); } -::google::protobuf::Metadata SetDisarmableResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[20]); +::google::protobuf::Metadata SetDisarmableResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetAllowableFlightModesResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const SetAllowableFlightModesResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowableFlightModesResponse::_Internal::action_server_result(const SetAllowableFlightModesResponse* msg) { - return *msg->_impl_.action_server_result_; -} SetAllowableFlightModesResponse::SetAllowableFlightModesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) } inline PROTOBUF_NDEBUG_INLINE SetAllowableFlightModesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action_server::SetAllowableFlightModesResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} SetAllowableFlightModesResponse::SetAllowableFlightModesResponse( - ::google::protobuf::Arena* arena, - const SetAllowableFlightModesResponse& from) - : ::google::protobuf::Message(arena) { - SetAllowableFlightModesResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + ::google::protobuf::Arena* arena, const SetAllowableFlightModesResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SetAllowableFlightModesResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) } inline PROTOBUF_NDEBUG_INLINE SetAllowableFlightModesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetAllowableFlightModesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_server_result_ = {}; -} -SetAllowableFlightModesResponse::~SetAllowableFlightModesResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetAllowableFlightModesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetAllowableFlightModesResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetAllowableFlightModesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetAllowableFlightModesResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetAllowableFlightModesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesResponse, _impl_.action_server_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesResponse, _impl_.action_server_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetAllowableFlightModesResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_server_result_ = {}; +} +SetAllowableFlightModesResponse::~SetAllowableFlightModesResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + SharedDtor(*this); +} +inline void SetAllowableFlightModesResponse::SharedDtor(MessageLite& self) +{ + SetAllowableFlightModesResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* SetAllowableFlightModesResponse::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetAllowableFlightModesResponse(arena); +} +constexpr auto SetAllowableFlightModesResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetAllowableFlightModesResponse), alignof(SetAllowableFlightModesResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetAllowableFlightModesResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetAllowableFlightModesResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetAllowableFlightModesResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetAllowableFlightModesResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetAllowableFlightModesResponse::ByteSizeLong, + &SetAllowableFlightModesResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesResponse, _impl_._cached_size_), + false, + }, + &SetAllowableFlightModesResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* SetAllowableFlightModesResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + SetAllowableFlightModesResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::SetAllowableFlightModesResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET( + SetAllowableFlightModesResponse, _impl_.action_server_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesResponse, _impl_.action_server_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void SetAllowableFlightModesResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetAllowableFlightModesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - return target; -} - -::size_t SetAllowableFlightModesResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetAllowableFlightModesResponse::_class_data_ = { - SetAllowableFlightModesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetAllowableFlightModesResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetAllowableFlightModesResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetAllowableFlightModesResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetAllowableFlightModesResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_server_result_, + this_._impl_.action_server_result_->GetCachedSize(), + target, + stream); + } -void SetAllowableFlightModesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetAllowableFlightModesResponse::ByteSizeLong(const MessageLite& base) +{ + const SetAllowableFlightModesResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetAllowableFlightModesResponse::ByteSizeLong() const +{ + const SetAllowableFlightModesResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_server_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void SetAllowableFlightModesResponse::CopyFrom(const SetAllowableFlightModesResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void SetAllowableFlightModesResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool SetAllowableFlightModesResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* SetAllowableFlightModesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void SetAllowableFlightModesResponse::CopyFrom(const SetAllowableFlightModesResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void SetAllowableFlightModesResponse::InternalSwap(SetAllowableFlightModesResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_server_result_, other->_impl_.action_server_result_); + +void SetAllowableFlightModesResponse::InternalSwap( + SetAllowableFlightModesResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_server_result_, other->_impl_.action_server_result_); } -::google::protobuf::Metadata SetAllowableFlightModesResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[21]); +::google::protobuf::Metadata SetAllowableFlightModesResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetAllowTakeoffResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetAllowTakeoffResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const SetAllowTakeoffResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetAllowTakeoffResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowTakeoffResponse::_Internal::action_server_result(const SetAllowTakeoffResponse* msg) { - return *msg->_impl_.action_server_result_; -} SetAllowTakeoffResponse::SetAllowTakeoffResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowTakeoffResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowTakeoffResponse) } inline PROTOBUF_NDEBUG_INLINE SetAllowTakeoffResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action_server::SetAllowTakeoffResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} SetAllowTakeoffResponse::SetAllowTakeoffResponse( - ::google::protobuf::Arena* arena, - const SetAllowTakeoffResponse& from) - : ::google::protobuf::Message(arena) { - SetAllowTakeoffResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetAllowTakeoffResponse) + ::google::protobuf::Arena* arena, const SetAllowTakeoffResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SetAllowTakeoffResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetAllowTakeoffResponse) } inline PROTOBUF_NDEBUG_INLINE SetAllowTakeoffResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetAllowTakeoffResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_server_result_ = {}; -} -SetAllowTakeoffResponse::~SetAllowTakeoffResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetAllowTakeoffResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetAllowTakeoffResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetAllowTakeoffResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetAllowTakeoffResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetAllowTakeoffResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetAllowTakeoffResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetAllowTakeoffResponse, _impl_.action_server_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - {PROTOBUF_FIELD_OFFSET(SetAllowTakeoffResponse, _impl_.action_server_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetAllowTakeoffResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_server_result_ = {}; +} +SetAllowTakeoffResponse::~SetAllowTakeoffResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowTakeoffResponse) + SharedDtor(*this); +} +inline void SetAllowTakeoffResponse::SharedDtor(MessageLite& self) +{ + SetAllowTakeoffResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* +SetAllowTakeoffResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetAllowTakeoffResponse(arena); +} +constexpr auto SetAllowTakeoffResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetAllowTakeoffResponse), alignof(SetAllowTakeoffResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetAllowTakeoffResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetAllowTakeoffResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetAllowTakeoffResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetAllowTakeoffResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetAllowTakeoffResponse::ByteSizeLong, + &SetAllowTakeoffResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetAllowTakeoffResponse, _impl_._cached_size_), + false, + }, + &SetAllowTakeoffResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* SetAllowTakeoffResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + SetAllowTakeoffResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SetAllowTakeoffResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::SetAllowTakeoffResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET(SetAllowTakeoffResponse, _impl_.action_server_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + {PROTOBUF_FIELD_OFFSET(SetAllowTakeoffResponse, _impl_.action_server_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void SetAllowTakeoffResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetAllowTakeoffResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - return target; -} - -::size_t SetAllowTakeoffResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetAllowTakeoffResponse::_class_data_ = { - SetAllowTakeoffResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetAllowTakeoffResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetAllowTakeoffResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetAllowTakeoffResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetAllowTakeoffResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.action_server_result_, + this_._impl_.action_server_result_->GetCachedSize(), + target, + stream); + } -void SetAllowTakeoffResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowTakeoffResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetAllowTakeoffResponse::ByteSizeLong(const MessageLite& base) +{ + const SetAllowTakeoffResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetAllowTakeoffResponse::ByteSizeLong() const +{ + const SetAllowTakeoffResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.action_server_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void SetAllowTakeoffResponse::CopyFrom(const SetAllowTakeoffResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void SetAllowTakeoffResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool SetAllowTakeoffResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* SetAllowTakeoffResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void SetAllowTakeoffResponse::CopyFrom(const SetAllowTakeoffResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void SetAllowTakeoffResponse::InternalSwap(SetAllowTakeoffResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_server_result_, other->_impl_.action_server_result_); + +void SetAllowTakeoffResponse::InternalSwap(SetAllowTakeoffResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_server_result_, other->_impl_.action_server_result_); } -::google::protobuf::Metadata SetAllowTakeoffResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[22]); +::google::protobuf::Metadata SetAllowTakeoffResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetAllowableFlightModesResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetAllowableFlightModesResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::AllowableFlightModes& flight_modes(const GetAllowableFlightModesResponse* msg); - static void set_has_flight_modes(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetAllowableFlightModesResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::AllowableFlightModes& GetAllowableFlightModesResponse::_Internal::flight_modes(const GetAllowableFlightModesResponse* msg) { - return *msg->_impl_.flight_modes_; -} GetAllowableFlightModesResponse::GetAllowableFlightModesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) } inline PROTOBUF_NDEBUG_INLINE GetAllowableFlightModesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::action_server::GetAllowableFlightModesResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} GetAllowableFlightModesResponse::GetAllowableFlightModesResponse( - ::google::protobuf::Arena* arena, - const GetAllowableFlightModesResponse& from) - : ::google::protobuf::Message(arena) { - GetAllowableFlightModesResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.flight_modes_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::AllowableFlightModes>(arena, *from._impl_.flight_modes_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) + ::google::protobuf::Arena* arena, const GetAllowableFlightModesResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + GetAllowableFlightModesResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.flight_modes_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::AllowableFlightModes>( + arena, *from._impl_.flight_modes_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) } inline PROTOBUF_NDEBUG_INLINE GetAllowableFlightModesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void GetAllowableFlightModesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.flight_modes_ = {}; -} -GetAllowableFlightModesResponse::~GetAllowableFlightModesResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetAllowableFlightModesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.flight_modes_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void GetAllowableFlightModesResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.flight_modes_ != nullptr); - _impl_.flight_modes_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetAllowableFlightModesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetAllowableFlightModesResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetAllowableFlightModesResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetAllowableFlightModesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetAllowableFlightModesResponse, _impl_.flight_modes_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - {PROTOBUF_FIELD_OFFSET(GetAllowableFlightModesResponse, _impl_.flight_modes_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::AllowableFlightModes>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void GetAllowableFlightModesResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.flight_modes_ = {}; +} +GetAllowableFlightModesResponse::~GetAllowableFlightModesResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) + SharedDtor(*this); +} +inline void GetAllowableFlightModesResponse::SharedDtor(MessageLite& self) +{ + GetAllowableFlightModesResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.flight_modes_; + this_._impl_.~Impl_(); +} + +inline void* GetAllowableFlightModesResponse::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) GetAllowableFlightModesResponse(arena); +} +constexpr auto GetAllowableFlightModesResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GetAllowableFlightModesResponse), alignof(GetAllowableFlightModesResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetAllowableFlightModesResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GetAllowableFlightModesResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetAllowableFlightModesResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetAllowableFlightModesResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &GetAllowableFlightModesResponse::ByteSizeLong, + &GetAllowableFlightModesResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetAllowableFlightModesResponse, _impl_._cached_size_), + false, + }, + &GetAllowableFlightModesResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* GetAllowableFlightModesResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + GetAllowableFlightModesResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GetAllowableFlightModesResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::GetAllowableFlightModesResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET(GetAllowableFlightModesResponse, _impl_.flight_modes_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; + {PROTOBUF_FIELD_OFFSET(GetAllowableFlightModesResponse, _impl_.flight_modes_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::AllowableFlightModes>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void GetAllowableFlightModesResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.flight_modes_ != nullptr); + _impl_.flight_modes_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* GetAllowableFlightModesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::flight_modes(this), - _Internal::flight_modes(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - return target; -} - -::size_t GetAllowableFlightModesResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.flight_modes_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GetAllowableFlightModesResponse::_class_data_ = { - GetAllowableFlightModesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetAllowableFlightModesResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const GetAllowableFlightModesResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* GetAllowableFlightModesResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const GetAllowableFlightModesResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.flight_modes_, + this_._impl_.flight_modes_->GetCachedSize(), + target, + stream); + } -void GetAllowableFlightModesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetAllowableFlightModesResponse::ByteSizeLong(const MessageLite& base) +{ + const GetAllowableFlightModesResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GetAllowableFlightModesResponse::ByteSizeLong() const +{ + const GetAllowableFlightModesResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_flight_modes()->::mavsdk::rpc::action_server::AllowableFlightModes::MergeFrom( - from._internal_flight_modes()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.flight_modes_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void GetAllowableFlightModesResponse::CopyFrom(const GetAllowableFlightModesResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void GetAllowableFlightModesResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool GetAllowableFlightModesResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.flight_modes_ != nullptr); + if (_this->_impl_.flight_modes_ == nullptr) { + _this->_impl_.flight_modes_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::action_server::AllowableFlightModes>( + arena, *from._impl_.flight_modes_); + } else { + _this->_impl_.flight_modes_->MergeFrom(*from._impl_.flight_modes_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* GetAllowableFlightModesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void GetAllowableFlightModesResponse::CopyFrom(const GetAllowableFlightModesResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void GetAllowableFlightModesResponse::InternalSwap(GetAllowableFlightModesResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.flight_modes_, other->_impl_.flight_modes_); + +void GetAllowableFlightModesResponse::InternalSwap( + GetAllowableFlightModesResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.flight_modes_, other->_impl_.flight_modes_); } -::google::protobuf::Metadata GetAllowableFlightModesResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[23]); +::google::protobuf::Metadata GetAllowableFlightModesResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class AllowableFlightModes::_Internal { - public: +public: }; AllowableFlightModes::AllowableFlightModes(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.AllowableFlightModes) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.AllowableFlightModes) } AllowableFlightModes::AllowableFlightModes( - ::google::protobuf::Arena* arena, const AllowableFlightModes& from) - : AllowableFlightModes(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const AllowableFlightModes& from) : + AllowableFlightModes(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE AllowableFlightModes::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AllowableFlightModes::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, can_auto_mode_), - 0, - offsetof(Impl_, can_stabilize_mode_) - - offsetof(Impl_, can_auto_mode_) + - sizeof(Impl_::can_stabilize_mode_)); -} -AllowableFlightModes::~AllowableFlightModes() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.AllowableFlightModes) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AllowableFlightModes::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AllowableFlightModes::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.AllowableFlightModes) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.can_auto_mode_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.can_stabilize_mode_) - - reinterpret_cast(&_impl_.can_auto_mode_)) + sizeof(_impl_.can_stabilize_mode_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AllowableFlightModes::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> AllowableFlightModes::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AllowableFlightModes_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bool can_auto_mode = 1; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_auto_mode_)}}, - // bool can_guided_mode = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_guided_mode_)}}, - // bool can_stabilize_mode = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_stabilize_mode_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void AllowableFlightModes::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, can_auto_mode_), + 0, + offsetof(Impl_, can_stabilize_mode_) - offsetof(Impl_, can_auto_mode_) + + sizeof(Impl_::can_stabilize_mode_)); +} +AllowableFlightModes::~AllowableFlightModes() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.AllowableFlightModes) + SharedDtor(*this); +} +inline void AllowableFlightModes::SharedDtor(MessageLite& self) +{ + AllowableFlightModes& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +AllowableFlightModes::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) AllowableFlightModes(arena); +} +constexpr auto AllowableFlightModes::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(AllowableFlightModes), alignof(AllowableFlightModes)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull AllowableFlightModes::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_AllowableFlightModes_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AllowableFlightModes::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AllowableFlightModes::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &AllowableFlightModes::ByteSizeLong, + &AllowableFlightModes::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_._cached_size_), + false, + }, + &AllowableFlightModes::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* AllowableFlightModes::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> + AllowableFlightModes::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, + 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::AllowableFlightModes>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + // bool can_auto_mode = 1; + {::_pbi::TcParser::SingularVarintNoZag1< + bool, + offsetof(AllowableFlightModes, _impl_.can_auto_mode_), + 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_auto_mode_)}}, + // bool can_guided_mode = 2; + {::_pbi::TcParser::SingularVarintNoZag1< + bool, + offsetof(AllowableFlightModes, _impl_.can_guided_mode_), + 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_guided_mode_)}}, + // bool can_stabilize_mode = 3; + {::_pbi::TcParser::SingularVarintNoZag1< + bool, + offsetof(AllowableFlightModes, _impl_.can_stabilize_mode_), + 63>(), + {24, 63, 0, PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_stabilize_mode_)}}, + }}, + {{65535, 65535}}, + {{ + // bool can_auto_mode = 1; + {PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_auto_mode_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // bool can_guided_mode = 2; + {PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_guided_mode_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // bool can_stabilize_mode = 3; + {PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_stabilize_mode_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void AllowableFlightModes::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.AllowableFlightModes) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::memset( + &_impl_.can_auto_mode_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.can_stabilize_mode_) - + reinterpret_cast(&_impl_.can_auto_mode_)) + + sizeof(_impl_.can_stabilize_mode_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* AllowableFlightModes::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const AllowableFlightModes& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* AllowableFlightModes::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const AllowableFlightModes& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.AllowableFlightModes) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // bool can_auto_mode = 1; - {PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_auto_mode_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + if (this_._internal_can_auto_mode() != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteBoolToArray(1, this_._internal_can_auto_mode(), target); + } + // bool can_guided_mode = 2; - {PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_guided_mode_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + if (this_._internal_can_guided_mode() != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteBoolToArray(2, this_._internal_can_guided_mode(), target); + } + // bool can_stabilize_mode = 3; - {PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_stabilize_mode_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; + if (this_._internal_can_stabilize_mode() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_can_stabilize_mode(), target); + } -::uint8_t* AllowableFlightModes::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.AllowableFlightModes) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool can_auto_mode = 1; - if (this->_internal_can_auto_mode() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_can_auto_mode(), target); - } - - // bool can_guided_mode = 2; - if (this->_internal_can_guided_mode() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_can_guided_mode(), target); - } - - // bool can_stabilize_mode = 3; - if (this->_internal_can_stabilize_mode() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_can_stabilize_mode(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.AllowableFlightModes) - return target; -} - -::size_t AllowableFlightModes::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.AllowableFlightModes) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bool can_auto_mode = 1; - if (this->_internal_can_auto_mode() != 0) { - total_size += 2; - } - - // bool can_guided_mode = 2; - if (this->_internal_can_guided_mode() != 0) { - total_size += 2; - } - - // bool can_stabilize_mode = 3; - if (this->_internal_can_stabilize_mode() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AllowableFlightModes::_class_data_ = { - AllowableFlightModes::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AllowableFlightModes::GetClassData() const { - return &_class_data_; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.AllowableFlightModes) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t AllowableFlightModes::ByteSizeLong(const MessageLite& base) +{ + const AllowableFlightModes& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t AllowableFlightModes::ByteSizeLong() const +{ + const AllowableFlightModes& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.AllowableFlightModes) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // bool can_auto_mode = 1; + if (this_._internal_can_auto_mode() != 0) { + total_size += 2; + } + // bool can_guided_mode = 2; + if (this_._internal_can_guided_mode() != 0) { + total_size += 2; + } + // bool can_stabilize_mode = 3; + if (this_._internal_can_stabilize_mode() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void AllowableFlightModes::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.AllowableFlightModes) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; +void AllowableFlightModes::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.AllowableFlightModes) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (from._internal_can_auto_mode() != 0) { - _this->_internal_set_can_auto_mode(from._internal_can_auto_mode()); - } - if (from._internal_can_guided_mode() != 0) { - _this->_internal_set_can_guided_mode(from._internal_can_guided_mode()); - } - if (from._internal_can_stabilize_mode() != 0) { - _this->_internal_set_can_stabilize_mode(from._internal_can_stabilize_mode()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AllowableFlightModes::CopyFrom(const AllowableFlightModes& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.AllowableFlightModes) - if (&from == this) return; - Clear(); - MergeFrom(from); + if (from._internal_can_auto_mode() != 0) { + _this->_impl_.can_auto_mode_ = from._impl_.can_auto_mode_; + } + if (from._internal_can_guided_mode() != 0) { + _this->_impl_.can_guided_mode_ = from._impl_.can_guided_mode_; + } + if (from._internal_can_stabilize_mode() != 0) { + _this->_impl_.can_stabilize_mode_ = from._impl_.can_stabilize_mode_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -PROTOBUF_NOINLINE bool AllowableFlightModes::IsInitialized() const { - return true; +void AllowableFlightModes::CopyFrom(const AllowableFlightModes& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.AllowableFlightModes) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -::_pbi::CachedSize* AllowableFlightModes::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AllowableFlightModes::InternalSwap(AllowableFlightModes* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_stabilize_mode_) - + sizeof(AllowableFlightModes::_impl_.can_stabilize_mode_) - - PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_auto_mode_)>( - reinterpret_cast(&_impl_.can_auto_mode_), - reinterpret_cast(&other->_impl_.can_auto_mode_)); +void AllowableFlightModes::InternalSwap(AllowableFlightModes* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_stabilize_mode_) + + sizeof(AllowableFlightModes::_impl_.can_stabilize_mode_) - + PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_auto_mode_)>( + reinterpret_cast(&_impl_.can_auto_mode_), + reinterpret_cast(&other->_impl_.can_auto_mode_)); } -::google::protobuf::Metadata AllowableFlightModes::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[24]); +::google::protobuf::Metadata AllowableFlightModes::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ArmDisarm::_Internal { - public: +public: }; ArmDisarm::ArmDisarm(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ArmDisarm) -} -ArmDisarm::ArmDisarm( - ::google::protobuf::Arena* arena, const ArmDisarm& from) - : ArmDisarm(arena) { - MergeFrom(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ArmDisarm) +} +ArmDisarm::ArmDisarm(::google::protobuf::Arena* arena, const ArmDisarm& from) : ArmDisarm(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE ArmDisarm::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ArmDisarm::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, arm_), - 0, - offsetof(Impl_, force_) - - offsetof(Impl_, arm_) + - sizeof(Impl_::force_)); -} -ArmDisarm::~ArmDisarm() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.ArmDisarm) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ArmDisarm::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ArmDisarm::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ArmDisarm) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.arm_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.force_) - - reinterpret_cast(&_impl_.arm_)) + sizeof(_impl_.force_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ArmDisarm::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ArmDisarm::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ArmDisarm_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool force = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.force_)}}, - // bool arm = 1; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.arm_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool arm = 1; - {PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.arm_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool force = 2; - {PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.force_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ArmDisarm::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, arm_), + 0, + offsetof(Impl_, force_) - offsetof(Impl_, arm_) + sizeof(Impl_::force_)); +} +ArmDisarm::~ArmDisarm() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.ArmDisarm) + SharedDtor(*this); +} +inline void ArmDisarm::SharedDtor(MessageLite& self) +{ + ArmDisarm& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* ArmDisarm::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ArmDisarm(arena); +} +constexpr auto ArmDisarm::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ArmDisarm), alignof(ArmDisarm)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmDisarm::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmDisarm_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmDisarm::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmDisarm::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ArmDisarm::ByteSizeLong, + &ArmDisarm::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_._cached_size_), + false, + }, + &ArmDisarm::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; - +const ::google::protobuf::internal::ClassData* ArmDisarm::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 0, 2> + ArmDisarm::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ArmDisarm>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // bool force = 2; + {::_pbi::TcParser::SingularVarintNoZag1(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.force_)}}, + // bool arm = 1; + {::_pbi::TcParser::SingularVarintNoZag1(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.arm_)}}, + }}, + {{65535, 65535}}, + {{ + // bool arm = 1; + {PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.arm_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // bool force = 2; + {PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.force_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void ArmDisarm::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ArmDisarm) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::memset( + &_impl_.arm_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.force_) - reinterpret_cast(&_impl_.arm_)) + + sizeof(_impl_.force_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* ArmDisarm::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ArmDisarm) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool arm = 1; - if (this->_internal_arm() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_arm(), target); - } - - // bool force = 2; - if (this->_internal_force() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_force(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ArmDisarm) - return target; -} - -::size_t ArmDisarm::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ArmDisarm) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bool arm = 1; - if (this->_internal_arm() != 0) { - total_size += 2; - } - - // bool force = 2; - if (this->_internal_force() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ArmDisarm::_class_data_ = { - ArmDisarm::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ArmDisarm::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ArmDisarm& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ArmDisarm::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ArmDisarm& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ArmDisarm) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void ArmDisarm::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ArmDisarm) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // bool arm = 1; + if (this_._internal_arm() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this_._internal_arm(), target); + } - if (from._internal_arm() != 0) { - _this->_internal_set_arm(from._internal_arm()); - } - if (from._internal_force() != 0) { - _this->_internal_set_force(from._internal_force()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} + // bool force = 2; + if (this_._internal_force() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this_._internal_force(), target); + } -void ArmDisarm::CopyFrom(const ArmDisarm& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.ArmDisarm) - if (&from == this) return; - Clear(); - MergeFrom(from); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ArmDisarm) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ArmDisarm::ByteSizeLong(const MessageLite& base) +{ + const ArmDisarm& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ArmDisarm::ByteSizeLong() const +{ + const ArmDisarm& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ArmDisarm) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // bool arm = 1; + if (this_._internal_arm() != 0) { + total_size += 2; + } + // bool force = 2; + if (this_._internal_force() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -PROTOBUF_NOINLINE bool ArmDisarm::IsInitialized() const { - return true; +void ArmDisarm::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ArmDisarm) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (from._internal_arm() != 0) { + _this->_impl_.arm_ = from._impl_.arm_; + } + if (from._internal_force() != 0) { + _this->_impl_.force_ = from._impl_.force_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* ArmDisarm::AccessCachedSize() const { - return &_impl_._cached_size_; +void ArmDisarm::CopyFrom(const ArmDisarm& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.ArmDisarm) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void ArmDisarm::InternalSwap(ArmDisarm* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.force_) - + sizeof(ArmDisarm::_impl_.force_) - - PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.arm_)>( - reinterpret_cast(&_impl_.arm_), - reinterpret_cast(&other->_impl_.arm_)); + +void ArmDisarm::InternalSwap(ArmDisarm* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.force_) + sizeof(ArmDisarm::_impl_.force_) - + PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.arm_)>( + reinterpret_cast(&_impl_.arm_), reinterpret_cast(&other->_impl_.arm_)); } -::google::protobuf::Metadata ArmDisarm::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[25]); +::google::protobuf::Metadata ArmDisarm::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ActionServerResult::_Internal { - public: +public: }; ActionServerResult::ActionServerResult(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ActionServerResult) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ActionServerResult) } inline PROTOBUF_NDEBUG_INLINE ActionServerResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : result_str_(arena, from.result_str_), - _cached_size_{0} {} - -ActionServerResult::ActionServerResult( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const ActionServerResult& from) - : ::google::protobuf::Message(arena) { - ActionServerResult* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.result_ = from._impl_.result_; + const Impl_& from, + const ::mavsdk::rpc::action_server::ActionServerResult& from_msg) : + result_str_(arena, from.result_str_), + _cached_size_{0} +{} - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.ActionServerResult) +ActionServerResult::ActionServerResult( + ::google::protobuf::Arena* arena, const ActionServerResult& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ActionServerResult* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.result_ = from._impl_.result_; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.ActionServerResult) } inline PROTOBUF_NDEBUG_INLINE ActionServerResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : result_str_(arena), - _cached_size_{0} {} - -inline void ActionServerResult::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.result_ = {}; -} -ActionServerResult::~ActionServerResult() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.ActionServerResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ActionServerResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.result_str_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ActionServerResult::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ActionServerResult) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_str_.ClearToEmpty(); - _impl_.result_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ActionServerResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 62, 2> ActionServerResult::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ActionServerResult_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string result_str = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ActionServerResult, _impl_.result_str_)}}, - // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ActionServerResult, _impl_.result_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ActionServerResult, _impl_.result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; - {PROTOBUF_FIELD_OFFSET(ActionServerResult, _impl_.result_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // string result_str = 2; - {PROTOBUF_FIELD_OFFSET(ActionServerResult, _impl_.result_str_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\53\0\12\0\0\0\0\0" - "mavsdk.rpc.action_server.ActionServerResult" - "result_str" - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + result_str_(arena), + _cached_size_{0} +{} + +inline void ActionServerResult::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.result_ = {}; +} +ActionServerResult::~ActionServerResult() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.ActionServerResult) + SharedDtor(*this); +} +inline void ActionServerResult::SharedDtor(MessageLite& self) +{ + ActionServerResult& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.result_str_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* +ActionServerResult::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ActionServerResult(arena); +} +constexpr auto ActionServerResult::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(ActionServerResult), alignof(ActionServerResult)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ActionServerResult::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ActionServerResult_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ActionServerResult::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ActionServerResult::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ActionServerResult::ByteSizeLong, + &ActionServerResult::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ActionServerResult, _impl_._cached_size_), + false, + }, + &ActionServerResult::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker }; - +const ::google::protobuf::internal::ClassData* ActionServerResult::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 62, 2> + ActionServerResult::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::action_server::ActionServerResult>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // string result_str = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(ActionServerResult, _impl_.result_str_)}}, + // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(ActionServerResult, _impl_.result_), + 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(ActionServerResult, _impl_.result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; + {PROTOBUF_FIELD_OFFSET(ActionServerResult, _impl_.result_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // string result_str = 2; + {PROTOBUF_FIELD_OFFSET(ActionServerResult, _impl_.result_str_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{"\53\0\12\0\0\0\0\0" + "mavsdk.rpc.action_server.ActionServerResult" + "result_str"}}, + }; + +PROTOBUF_NOINLINE void ActionServerResult::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ActionServerResult) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.result_str_.ClearToEmpty(); + _impl_.result_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* ActionServerResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ActionServerResult) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; - if (this->_internal_result() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); - } - - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - const std::string& _s = this->_internal_result_str(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.action_server.ActionServerResult.result_str"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ActionServerResult) - return target; -} - -::size_t ActionServerResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ActionServerResult) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_result_str()); - } - - // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; - if (this->_internal_result() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ActionServerResult::_class_data_ = { - ActionServerResult::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ActionServerResult::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ActionServerResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ActionServerResult::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ActionServerResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ActionServerResult) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void ActionServerResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ActionServerResult) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; + if (this_._internal_result() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray(1, this_._internal_result(), target); + } - if (!from._internal_result_str().empty()) { - _this->_internal_set_result_str(from._internal_result_str()); - } - if (from._internal_result() != 0) { - _this->_internal_set_result(from._internal_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + const std::string& _s = this_._internal_result_str(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), + static_cast(_s.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "mavsdk.rpc.action_server.ActionServerResult.result_str"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } -void ActionServerResult::CopyFrom(const ActionServerResult& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.ActionServerResult) - if (&from == this) return; - Clear(); - MergeFrom(from); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ActionServerResult) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ActionServerResult::ByteSizeLong(const MessageLite& base) +{ + const ActionServerResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ActionServerResult::ByteSizeLong() const +{ + const ActionServerResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ActionServerResult) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_result_str()); + } + // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; + if (this_._internal_result() != 0) { + total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_result()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -PROTOBUF_NOINLINE bool ActionServerResult::IsInitialized() const { - return true; +void ActionServerResult::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ActionServerResult) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (!from._internal_result_str().empty()) { + _this->_internal_set_result_str(from._internal_result_str()); + } + if (from._internal_result() != 0) { + _this->_impl_.result_ = from._impl_.result_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* ActionServerResult::AccessCachedSize() const { - return &_impl_._cached_size_; +void ActionServerResult::CopyFrom(const ActionServerResult& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action_server.ActionServerResult) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void ActionServerResult::InternalSwap(ActionServerResult* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, &other->_impl_.result_str_, arena); - swap(_impl_.result_, other->_impl_.result_); + +void ActionServerResult::InternalSwap(ActionServerResult* PROTOBUF_RESTRICT other) +{ + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, &other->_impl_.result_str_, arena); + swap(_impl_.result_, other->_impl_.result_); } -::google::protobuf::Metadata ActionServerResult::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[26]); +::google::protobuf::Metadata ActionServerResult::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) -} // namespace action_server -} // namespace rpc -} // namespace mavsdk +} // namespace action_server +} // namespace rpc +} // namespace mavsdk namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +namespace protobuf {} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_action_5fserver_2faction_5fserver_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/src/mavsdk_server/src/generated/action_server/action_server.pb.h b/src/mavsdk_server/src/generated/action_server/action_server.pb.h index da1941390c..b3c73dc709 100644 --- a/src/mavsdk_server/src/generated/action_server/action_server.pb.h +++ b/src/mavsdk_server/src/generated/action_server/action_server.pb.h @@ -1,28 +1,22 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: action_server/action_server.proto -// Protobuf C++ Version: 4.25.1 +// Protobuf C++ Version: 5.29.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_action_5fserver_2faction_5fserver_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_action_5fserver_2faction_5fserver_2eproto_2epb_2eh +#ifndef action_5fserver_2faction_5fserver_2eproto_2epb_2eh +#define action_5fserver_2faction_5fserver_2eproto_2epb_2eh #include #include #include #include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" @@ -32,8 +26,9 @@ #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export #include "google/protobuf/generated_enum_reflection.h" #include "google/protobuf/unknown_field_set.h" #include "mavsdk_options.pb.h" @@ -47,14 +42,14 @@ namespace google { namespace protobuf { namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google +template::absl::string_view GetAnyMessageName(); +} // namespace internal +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_action_5fserver_2faction_5fserver_2eproto { - static const ::uint32_t offsets[]; + static const ::uint32_t offsets[]; }; extern const ::google::protobuf::internal::DescriptorTable descriptor_table_action_5fserver_2faction_5fserver_2eproto; @@ -78,10 +73,12 @@ struct FlightModeChangeResponseDefaultTypeInternal; extern FlightModeChangeResponseDefaultTypeInternal _FlightModeChangeResponse_default_instance_; class GetAllowableFlightModesRequest; struct GetAllowableFlightModesRequestDefaultTypeInternal; -extern GetAllowableFlightModesRequestDefaultTypeInternal _GetAllowableFlightModesRequest_default_instance_; +extern GetAllowableFlightModesRequestDefaultTypeInternal + _GetAllowableFlightModesRequest_default_instance_; class GetAllowableFlightModesResponse; struct GetAllowableFlightModesResponseDefaultTypeInternal; -extern GetAllowableFlightModesResponseDefaultTypeInternal _GetAllowableFlightModesResponse_default_instance_; +extern GetAllowableFlightModesResponseDefaultTypeInternal + _GetAllowableFlightModesResponse_default_instance_; class LandResponse; struct LandResponseDefaultTypeInternal; extern LandResponseDefaultTypeInternal _LandResponse_default_instance_; @@ -96,10 +93,12 @@ struct SetAllowTakeoffResponseDefaultTypeInternal; extern SetAllowTakeoffResponseDefaultTypeInternal _SetAllowTakeoffResponse_default_instance_; class SetAllowableFlightModesRequest; struct SetAllowableFlightModesRequestDefaultTypeInternal; -extern SetAllowableFlightModesRequestDefaultTypeInternal _SetAllowableFlightModesRequest_default_instance_; +extern SetAllowableFlightModesRequestDefaultTypeInternal + _SetAllowableFlightModesRequest_default_instance_; class SetAllowableFlightModesResponse; struct SetAllowableFlightModesResponseDefaultTypeInternal; -extern SetAllowableFlightModesResponseDefaultTypeInternal _SetAllowableFlightModesResponse_default_instance_; +extern SetAllowableFlightModesResponseDefaultTypeInternal + _SetAllowableFlightModesResponse_default_instance_; class SetArmableRequest; struct SetArmableRequestDefaultTypeInternal; extern SetArmableRequestDefaultTypeInternal _SetArmableRequest_default_instance_; @@ -120,7 +119,8 @@ struct SubscribeArmDisarmRequestDefaultTypeInternal; extern SubscribeArmDisarmRequestDefaultTypeInternal _SubscribeArmDisarmRequest_default_instance_; class SubscribeFlightModeChangeRequest; struct SubscribeFlightModeChangeRequestDefaultTypeInternal; -extern SubscribeFlightModeChangeRequestDefaultTypeInternal _SubscribeFlightModeChangeRequest_default_instance_; +extern SubscribeFlightModeChangeRequestDefaultTypeInternal + _SubscribeFlightModeChangeRequest_default_instance_; class SubscribeLandRequest; struct SubscribeLandRequestDefaultTypeInternal; extern SubscribeLandRequestDefaultTypeInternal _SubscribeLandRequest_default_instance_; @@ -142,80 +142,79 @@ extern TakeoffResponseDefaultTypeInternal _TakeoffResponse_default_instance_; class TerminateResponse; struct TerminateResponseDefaultTypeInternal; extern TerminateResponseDefaultTypeInternal _TerminateResponse_default_instance_; -} // namespace action_server -} // namespace rpc -} // namespace mavsdk +} // namespace action_server +} // namespace rpc +} // namespace mavsdk namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +namespace protobuf {} // namespace protobuf +} // namespace google namespace mavsdk { namespace rpc { namespace action_server { enum ActionServerResult_Result : int { - ActionServerResult_Result_RESULT_UNKNOWN = 0, - ActionServerResult_Result_RESULT_SUCCESS = 1, - ActionServerResult_Result_RESULT_NO_SYSTEM = 2, - ActionServerResult_Result_RESULT_CONNECTION_ERROR = 3, - ActionServerResult_Result_RESULT_BUSY = 4, - ActionServerResult_Result_RESULT_COMMAND_DENIED = 5, - ActionServerResult_Result_RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN = 6, - ActionServerResult_Result_RESULT_COMMAND_DENIED_NOT_LANDED = 7, - ActionServerResult_Result_RESULT_TIMEOUT = 8, - ActionServerResult_Result_RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN = 9, - ActionServerResult_Result_RESULT_NO_VTOL_TRANSITION_SUPPORT = 10, - ActionServerResult_Result_RESULT_PARAMETER_ERROR = 11, - ActionServerResult_Result_RESULT_NEXT = 12, - ActionServerResult_Result_ActionServerResult_Result_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - ActionServerResult_Result_ActionServerResult_Result_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ActionServerResult_Result_RESULT_UNKNOWN = 0, + ActionServerResult_Result_RESULT_SUCCESS = 1, + ActionServerResult_Result_RESULT_NO_SYSTEM = 2, + ActionServerResult_Result_RESULT_CONNECTION_ERROR = 3, + ActionServerResult_Result_RESULT_BUSY = 4, + ActionServerResult_Result_RESULT_COMMAND_DENIED = 5, + ActionServerResult_Result_RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN = 6, + ActionServerResult_Result_RESULT_COMMAND_DENIED_NOT_LANDED = 7, + ActionServerResult_Result_RESULT_TIMEOUT = 8, + ActionServerResult_Result_RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN = 9, + ActionServerResult_Result_RESULT_NO_VTOL_TRANSITION_SUPPORT = 10, + ActionServerResult_Result_RESULT_PARAMETER_ERROR = 11, + ActionServerResult_Result_RESULT_NEXT = 12, + ActionServerResult_Result_ActionServerResult_Result_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + ActionServerResult_Result_ActionServerResult_Result_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; bool ActionServerResult_Result_IsValid(int value); extern const uint32_t ActionServerResult_Result_internal_data_[]; -constexpr ActionServerResult_Result ActionServerResult_Result_Result_MIN = static_cast(0); -constexpr ActionServerResult_Result ActionServerResult_Result_Result_MAX = static_cast(12); +constexpr ActionServerResult_Result ActionServerResult_Result_Result_MIN = + static_cast(0); +constexpr ActionServerResult_Result ActionServerResult_Result_Result_MAX = + static_cast(12); constexpr int ActionServerResult_Result_Result_ARRAYSIZE = 12 + 1; -const ::google::protobuf::EnumDescriptor* -ActionServerResult_Result_descriptor(); -template -const std::string& ActionServerResult_Result_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to Result_Name()."); - return ActionServerResult_Result_Name(static_cast(value)); -} -template <> -inline const std::string& ActionServerResult_Result_Name(ActionServerResult_Result value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool ActionServerResult_Result_Parse(absl::string_view name, ActionServerResult_Result* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ActionServerResult_Result_descriptor(), name, value); +const ::google::protobuf::EnumDescriptor* ActionServerResult_Result_descriptor(); +template const std::string& ActionServerResult_Result_Name(T value) +{ + static_assert( + std::is_same::value || std::is_integral::value, + "Incorrect type passed to Result_Name()."); + return ActionServerResult_Result_Name(static_cast(value)); +} +template<> inline const std::string& ActionServerResult_Result_Name(ActionServerResult_Result value) +{ + return ::google::protobuf::internal:: + NameOfDenseEnum(static_cast(value)); +} +inline bool +ActionServerResult_Result_Parse(absl::string_view name, ActionServerResult_Result* value) +{ + return ::google::protobuf::internal::ParseNamedEnum( + ActionServerResult_Result_descriptor(), name, value); } enum FlightMode : int { - FLIGHT_MODE_UNKNOWN = 0, - FLIGHT_MODE_READY = 1, - FLIGHT_MODE_TAKEOFF = 2, - FLIGHT_MODE_HOLD = 3, - FLIGHT_MODE_MISSION = 4, - FLIGHT_MODE_RETURN_TO_LAUNCH = 5, - FLIGHT_MODE_LAND = 6, - FLIGHT_MODE_OFFBOARD = 7, - FLIGHT_MODE_FOLLOW_ME = 8, - FLIGHT_MODE_MANUAL = 9, - FLIGHT_MODE_ALTCTL = 10, - FLIGHT_MODE_POSCTL = 11, - FLIGHT_MODE_ACRO = 12, - FLIGHT_MODE_STABILIZED = 13, - FlightMode_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - FlightMode_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + FLIGHT_MODE_UNKNOWN = 0, + FLIGHT_MODE_READY = 1, + FLIGHT_MODE_TAKEOFF = 2, + FLIGHT_MODE_HOLD = 3, + FLIGHT_MODE_MISSION = 4, + FLIGHT_MODE_RETURN_TO_LAUNCH = 5, + FLIGHT_MODE_LAND = 6, + FLIGHT_MODE_OFFBOARD = 7, + FLIGHT_MODE_FOLLOW_ME = 8, + FLIGHT_MODE_MANUAL = 9, + FLIGHT_MODE_ALTCTL = 10, + FLIGHT_MODE_POSCTL = 11, + FLIGHT_MODE_ACRO = 12, + FLIGHT_MODE_STABILIZED = 13, + FlightMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(), + FlightMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max(), }; bool FlightMode_IsValid(int value); @@ -223,5185 +222,6131 @@ extern const uint32_t FlightMode_internal_data_[]; constexpr FlightMode FlightMode_MIN = static_cast(0); constexpr FlightMode FlightMode_MAX = static_cast(13); constexpr int FlightMode_ARRAYSIZE = 13 + 1; -const ::google::protobuf::EnumDescriptor* -FlightMode_descriptor(); -template -const std::string& FlightMode_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to FlightMode_Name()."); - return FlightMode_Name(static_cast(value)); -} -template <> -inline const std::string& FlightMode_Name(FlightMode value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool FlightMode_Parse(absl::string_view name, FlightMode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - FlightMode_descriptor(), name, value); +const ::google::protobuf::EnumDescriptor* FlightMode_descriptor(); +template const std::string& FlightMode_Name(T value) +{ + static_assert( + std::is_same::value || std::is_integral::value, + "Incorrect type passed to FlightMode_Name()."); + return FlightMode_Name(static_cast(value)); +} +template<> inline const std::string& FlightMode_Name(FlightMode value) +{ + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool FlightMode_Parse(absl::string_view name, FlightMode* value) +{ + return ::google::protobuf::internal::ParseNamedEnum( + FlightMode_descriptor(), name, value); } // =================================================================== - // ------------------------------------------------------------------- -class SubscribeTerminateRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeTerminateRequest) */ { - public: - inline SubscribeTerminateRequest() : SubscribeTerminateRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeTerminateRequest(::google::protobuf::internal::ConstantInitialized); - - inline SubscribeTerminateRequest(const SubscribeTerminateRequest& from) - : SubscribeTerminateRequest(nullptr, from) {} - SubscribeTerminateRequest(SubscribeTerminateRequest&& from) noexcept - : SubscribeTerminateRequest() { - *this = ::std::move(from); - } - - inline SubscribeTerminateRequest& operator=(const SubscribeTerminateRequest& from) { - CopyFrom(from); - return *this; - } - inline SubscribeTerminateRequest& operator=(SubscribeTerminateRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubscribeTerminateRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubscribeTerminateRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeTerminateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(SubscribeTerminateRequest& a, SubscribeTerminateRequest& b) { - a.Swap(&b); - } - inline void Swap(SubscribeTerminateRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubscribeTerminateRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubscribeTerminateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeTerminateRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeTerminateRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeTerminateRequest"; - } - protected: - explicit SubscribeTerminateRequest(::google::protobuf::Arena* arena); - SubscribeTerminateRequest(::google::protobuf::Arena* arena, const SubscribeTerminateRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeTerminateRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class SubscribeTakeoffRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeTakeoffRequest) */ { - public: - inline SubscribeTakeoffRequest() : SubscribeTakeoffRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeTakeoffRequest(::google::protobuf::internal::ConstantInitialized); - - inline SubscribeTakeoffRequest(const SubscribeTakeoffRequest& from) - : SubscribeTakeoffRequest(nullptr, from) {} - SubscribeTakeoffRequest(SubscribeTakeoffRequest&& from) noexcept - : SubscribeTakeoffRequest() { - *this = ::std::move(from); - } - - inline SubscribeTakeoffRequest& operator=(const SubscribeTakeoffRequest& from) { - CopyFrom(from); - return *this; - } - inline SubscribeTakeoffRequest& operator=(SubscribeTakeoffRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubscribeTakeoffRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubscribeTakeoffRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeTakeoffRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(SubscribeTakeoffRequest& a, SubscribeTakeoffRequest& b) { - a.Swap(&b); - } - inline void Swap(SubscribeTakeoffRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubscribeTakeoffRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubscribeTakeoffRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeTakeoffRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeTakeoffRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeTakeoffRequest"; - } - protected: - explicit SubscribeTakeoffRequest(::google::protobuf::Arena* arena); - SubscribeTakeoffRequest(::google::protobuf::Arena* arena, const SubscribeTakeoffRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeTakeoffRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class SubscribeShutdownRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeShutdownRequest) */ { - public: - inline SubscribeShutdownRequest() : SubscribeShutdownRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeShutdownRequest(::google::protobuf::internal::ConstantInitialized); - - inline SubscribeShutdownRequest(const SubscribeShutdownRequest& from) - : SubscribeShutdownRequest(nullptr, from) {} - SubscribeShutdownRequest(SubscribeShutdownRequest&& from) noexcept - : SubscribeShutdownRequest() { - *this = ::std::move(from); - } - - inline SubscribeShutdownRequest& operator=(const SubscribeShutdownRequest& from) { - CopyFrom(from); - return *this; - } - inline SubscribeShutdownRequest& operator=(SubscribeShutdownRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubscribeShutdownRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubscribeShutdownRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeShutdownRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(SubscribeShutdownRequest& a, SubscribeShutdownRequest& b) { - a.Swap(&b); - } - inline void Swap(SubscribeShutdownRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubscribeShutdownRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubscribeShutdownRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeShutdownRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeShutdownRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeShutdownRequest"; - } - protected: - explicit SubscribeShutdownRequest(::google::protobuf::Arena* arena); - SubscribeShutdownRequest(::google::protobuf::Arena* arena, const SubscribeShutdownRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeShutdownRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class SubscribeRebootRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeRebootRequest) */ { - public: - inline SubscribeRebootRequest() : SubscribeRebootRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeRebootRequest(::google::protobuf::internal::ConstantInitialized); - - inline SubscribeRebootRequest(const SubscribeRebootRequest& from) - : SubscribeRebootRequest(nullptr, from) {} - SubscribeRebootRequest(SubscribeRebootRequest&& from) noexcept - : SubscribeRebootRequest() { - *this = ::std::move(from); - } - - inline SubscribeRebootRequest& operator=(const SubscribeRebootRequest& from) { - CopyFrom(from); - return *this; - } - inline SubscribeRebootRequest& operator=(SubscribeRebootRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubscribeRebootRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubscribeRebootRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeRebootRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(SubscribeRebootRequest& a, SubscribeRebootRequest& b) { - a.Swap(&b); - } - inline void Swap(SubscribeRebootRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubscribeRebootRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubscribeRebootRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeRebootRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeRebootRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeRebootRequest"; - } - protected: - explicit SubscribeRebootRequest(::google::protobuf::Arena* arena); - SubscribeRebootRequest(::google::protobuf::Arena* arena, const SubscribeRebootRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeRebootRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class SubscribeLandRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeLandRequest) */ { - public: - inline SubscribeLandRequest() : SubscribeLandRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeLandRequest(::google::protobuf::internal::ConstantInitialized); - - inline SubscribeLandRequest(const SubscribeLandRequest& from) - : SubscribeLandRequest(nullptr, from) {} - SubscribeLandRequest(SubscribeLandRequest&& from) noexcept - : SubscribeLandRequest() { - *this = ::std::move(from); - } - - inline SubscribeLandRequest& operator=(const SubscribeLandRequest& from) { - CopyFrom(from); - return *this; - } - inline SubscribeLandRequest& operator=(SubscribeLandRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubscribeLandRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubscribeLandRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeLandRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(SubscribeLandRequest& a, SubscribeLandRequest& b) { - a.Swap(&b); - } - inline void Swap(SubscribeLandRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubscribeLandRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubscribeLandRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeLandRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeLandRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeLandRequest"; - } - protected: - explicit SubscribeLandRequest(::google::protobuf::Arena* arena); - SubscribeLandRequest(::google::protobuf::Arena* arena, const SubscribeLandRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeLandRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class SubscribeFlightModeChangeRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) */ { - public: - inline SubscribeFlightModeChangeRequest() : SubscribeFlightModeChangeRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequest(::google::protobuf::internal::ConstantInitialized); - - inline SubscribeFlightModeChangeRequest(const SubscribeFlightModeChangeRequest& from) - : SubscribeFlightModeChangeRequest(nullptr, from) {} - SubscribeFlightModeChangeRequest(SubscribeFlightModeChangeRequest&& from) noexcept - : SubscribeFlightModeChangeRequest() { - *this = ::std::move(from); - } - - inline SubscribeFlightModeChangeRequest& operator=(const SubscribeFlightModeChangeRequest& from) { - CopyFrom(from); - return *this; - } - inline SubscribeFlightModeChangeRequest& operator=(SubscribeFlightModeChangeRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubscribeFlightModeChangeRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubscribeFlightModeChangeRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeFlightModeChangeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(SubscribeFlightModeChangeRequest& a, SubscribeFlightModeChangeRequest& b) { - a.Swap(&b); - } - inline void Swap(SubscribeFlightModeChangeRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubscribeFlightModeChangeRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubscribeFlightModeChangeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeFlightModeChangeRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeFlightModeChangeRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest"; - } - protected: - explicit SubscribeFlightModeChangeRequest(::google::protobuf::Arena* arena); - SubscribeFlightModeChangeRequest(::google::protobuf::Arena* arena, const SubscribeFlightModeChangeRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class SubscribeArmDisarmRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) */ { - public: - inline SubscribeArmDisarmRequest() : SubscribeArmDisarmRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeArmDisarmRequest(::google::protobuf::internal::ConstantInitialized); - - inline SubscribeArmDisarmRequest(const SubscribeArmDisarmRequest& from) - : SubscribeArmDisarmRequest(nullptr, from) {} - SubscribeArmDisarmRequest(SubscribeArmDisarmRequest&& from) noexcept - : SubscribeArmDisarmRequest() { - *this = ::std::move(from); - } - - inline SubscribeArmDisarmRequest& operator=(const SubscribeArmDisarmRequest& from) { - CopyFrom(from); - return *this; - } - inline SubscribeArmDisarmRequest& operator=(SubscribeArmDisarmRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubscribeArmDisarmRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubscribeArmDisarmRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeArmDisarmRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(SubscribeArmDisarmRequest& a, SubscribeArmDisarmRequest& b) { - a.Swap(&b); - } - inline void Swap(SubscribeArmDisarmRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubscribeArmDisarmRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubscribeArmDisarmRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeArmDisarmRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeArmDisarmRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeArmDisarmRequest"; - } - protected: - explicit SubscribeArmDisarmRequest(::google::protobuf::Arena* arena); - SubscribeArmDisarmRequest(::google::protobuf::Arena* arena, const SubscribeArmDisarmRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class SetDisarmableRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetDisarmableRequest) */ { - public: - inline SetDisarmableRequest() : SetDisarmableRequest(nullptr) {} - ~SetDisarmableRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetDisarmableRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetDisarmableRequest(const SetDisarmableRequest& from) - : SetDisarmableRequest(nullptr, from) {} - SetDisarmableRequest(SetDisarmableRequest&& from) noexcept - : SetDisarmableRequest() { - *this = ::std::move(from); - } - - inline SetDisarmableRequest& operator=(const SetDisarmableRequest& from) { - CopyFrom(from); - return *this; - } - inline SetDisarmableRequest& operator=(SetDisarmableRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetDisarmableRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SetDisarmableRequest* internal_default_instance() { - return reinterpret_cast( - &_SetDisarmableRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(SetDisarmableRequest& a, SetDisarmableRequest& b) { - a.Swap(&b); - } - inline void Swap(SetDisarmableRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetDisarmableRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetDisarmableRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetDisarmableRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetDisarmableRequest& from) { - SetDisarmableRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetDisarmableRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetDisarmableRequest"; - } - protected: - explicit SetDisarmableRequest(::google::protobuf::Arena* arena); - SetDisarmableRequest(::google::protobuf::Arena* arena, const SetDisarmableRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDisarmableFieldNumber = 1, - kForceDisarmableFieldNumber = 2, - }; - // bool disarmable = 1; - void clear_disarmable() ; - bool disarmable() const; - void set_disarmable(bool value); - - private: - bool _internal_disarmable() const; - void _internal_set_disarmable(bool value); - - public: - // bool force_disarmable = 2; - void clear_force_disarmable() ; - bool force_disarmable() const; - void set_force_disarmable(bool value); - - private: - bool _internal_force_disarmable() const; - void _internal_set_force_disarmable(bool value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetDisarmableRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool disarmable_; - bool force_disarmable_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class SetArmableRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetArmableRequest) */ { - public: - inline SetArmableRequest() : SetArmableRequest(nullptr) {} - ~SetArmableRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetArmableRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetArmableRequest(const SetArmableRequest& from) - : SetArmableRequest(nullptr, from) {} - SetArmableRequest(SetArmableRequest&& from) noexcept - : SetArmableRequest() { - *this = ::std::move(from); - } - - inline SetArmableRequest& operator=(const SetArmableRequest& from) { - CopyFrom(from); - return *this; - } - inline SetArmableRequest& operator=(SetArmableRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetArmableRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SetArmableRequest* internal_default_instance() { - return reinterpret_cast( - &_SetArmableRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(SetArmableRequest& a, SetArmableRequest& b) { - a.Swap(&b); - } - inline void Swap(SetArmableRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetArmableRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetArmableRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetArmableRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetArmableRequest& from) { - SetArmableRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetArmableRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetArmableRequest"; - } - protected: - explicit SetArmableRequest(::google::protobuf::Arena* arena); - SetArmableRequest(::google::protobuf::Arena* arena, const SetArmableRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArmableFieldNumber = 1, - kForceArmableFieldNumber = 2, - }; - // bool armable = 1; - void clear_armable() ; - bool armable() const; - void set_armable(bool value); - - private: - bool _internal_armable() const; - void _internal_set_armable(bool value); - - public: - // bool force_armable = 2; - void clear_force_armable() ; - bool force_armable() const; - void set_force_armable(bool value); - - private: - bool _internal_force_armable() const; - void _internal_set_force_armable(bool value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetArmableRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool armable_; - bool force_armable_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class SetAllowTakeoffRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowTakeoffRequest) */ { - public: - inline SetAllowTakeoffRequest() : SetAllowTakeoffRequest(nullptr) {} - ~SetAllowTakeoffRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetAllowTakeoffRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetAllowTakeoffRequest(const SetAllowTakeoffRequest& from) - : SetAllowTakeoffRequest(nullptr, from) {} - SetAllowTakeoffRequest(SetAllowTakeoffRequest&& from) noexcept - : SetAllowTakeoffRequest() { - *this = ::std::move(from); - } - - inline SetAllowTakeoffRequest& operator=(const SetAllowTakeoffRequest& from) { - CopyFrom(from); - return *this; - } - inline SetAllowTakeoffRequest& operator=(SetAllowTakeoffRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetAllowTakeoffRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SetAllowTakeoffRequest* internal_default_instance() { - return reinterpret_cast( - &_SetAllowTakeoffRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(SetAllowTakeoffRequest& a, SetAllowTakeoffRequest& b) { - a.Swap(&b); - } - inline void Swap(SetAllowTakeoffRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetAllowTakeoffRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetAllowTakeoffRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetAllowTakeoffRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetAllowTakeoffRequest& from) { - SetAllowTakeoffRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetAllowTakeoffRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetAllowTakeoffRequest"; - } - protected: - explicit SetAllowTakeoffRequest(::google::protobuf::Arena* arena); - SetAllowTakeoffRequest(::google::protobuf::Arena* arena, const SetAllowTakeoffRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAllowTakeoffFieldNumber = 1, - }; - // bool allow_takeoff = 1; - void clear_allow_takeoff() ; - bool allow_takeoff() const; - void set_allow_takeoff(bool value); - - private: - bool _internal_allow_takeoff() const; - void _internal_set_allow_takeoff(bool value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool allow_takeoff_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class GetAllowableFlightModesRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) */ { - public: - inline GetAllowableFlightModesRequest() : GetAllowableFlightModesRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetAllowableFlightModesRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetAllowableFlightModesRequest(const GetAllowableFlightModesRequest& from) - : GetAllowableFlightModesRequest(nullptr, from) {} - GetAllowableFlightModesRequest(GetAllowableFlightModesRequest&& from) noexcept - : GetAllowableFlightModesRequest() { - *this = ::std::move(from); - } - - inline GetAllowableFlightModesRequest& operator=(const GetAllowableFlightModesRequest& from) { - CopyFrom(from); - return *this; - } - inline GetAllowableFlightModesRequest& operator=(GetAllowableFlightModesRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetAllowableFlightModesRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetAllowableFlightModesRequest* internal_default_instance() { - return reinterpret_cast( - &_GetAllowableFlightModesRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(GetAllowableFlightModesRequest& a, GetAllowableFlightModesRequest& b) { - a.Swap(&b); - } - inline void Swap(GetAllowableFlightModesRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetAllowableFlightModesRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetAllowableFlightModesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetAllowableFlightModesRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetAllowableFlightModesRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.GetAllowableFlightModesRequest"; - } - protected: - explicit GetAllowableFlightModesRequest(::google::protobuf::Arena* arena); - GetAllowableFlightModesRequest(::google::protobuf::Arena* arena, const GetAllowableFlightModesRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class ArmDisarm final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ArmDisarm) */ { - public: - inline ArmDisarm() : ArmDisarm(nullptr) {} - ~ArmDisarm() override; - template - explicit PROTOBUF_CONSTEXPR ArmDisarm(::google::protobuf::internal::ConstantInitialized); - - inline ArmDisarm(const ArmDisarm& from) - : ArmDisarm(nullptr, from) {} - ArmDisarm(ArmDisarm&& from) noexcept - : ArmDisarm() { - *this = ::std::move(from); - } - - inline ArmDisarm& operator=(const ArmDisarm& from) { - CopyFrom(from); - return *this; - } - inline ArmDisarm& operator=(ArmDisarm&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ArmDisarm& default_instance() { - return *internal_default_instance(); - } - static inline const ArmDisarm* internal_default_instance() { - return reinterpret_cast( - &_ArmDisarm_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(ArmDisarm& a, ArmDisarm& b) { - a.Swap(&b); - } - inline void Swap(ArmDisarm* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ArmDisarm* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ArmDisarm* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ArmDisarm& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ArmDisarm& from) { - ArmDisarm::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ArmDisarm* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.ArmDisarm"; - } - protected: - explicit ArmDisarm(::google::protobuf::Arena* arena); - ArmDisarm(::google::protobuf::Arena* arena, const ArmDisarm& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArmFieldNumber = 1, - kForceFieldNumber = 2, - }; - // bool arm = 1; - void clear_arm() ; - bool arm() const; - void set_arm(bool value); - - private: - bool _internal_arm() const; - void _internal_set_arm(bool value); - - public: - // bool force = 2; - void clear_force() ; - bool force() const; - void set_force(bool value); - - private: - bool _internal_force() const; - void _internal_set_force(bool value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ArmDisarm) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool arm_; - bool force_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class AllowableFlightModes final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.AllowableFlightModes) */ { - public: - inline AllowableFlightModes() : AllowableFlightModes(nullptr) {} - ~AllowableFlightModes() override; - template - explicit PROTOBUF_CONSTEXPR AllowableFlightModes(::google::protobuf::internal::ConstantInitialized); - - inline AllowableFlightModes(const AllowableFlightModes& from) - : AllowableFlightModes(nullptr, from) {} - AllowableFlightModes(AllowableFlightModes&& from) noexcept - : AllowableFlightModes() { - *this = ::std::move(from); - } - - inline AllowableFlightModes& operator=(const AllowableFlightModes& from) { - CopyFrom(from); - return *this; - } - inline AllowableFlightModes& operator=(AllowableFlightModes&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AllowableFlightModes& default_instance() { - return *internal_default_instance(); - } - static inline const AllowableFlightModes* internal_default_instance() { - return reinterpret_cast( - &_AllowableFlightModes_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(AllowableFlightModes& a, AllowableFlightModes& b) { - a.Swap(&b); - } - inline void Swap(AllowableFlightModes* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AllowableFlightModes* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AllowableFlightModes* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AllowableFlightModes& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AllowableFlightModes& from) { - AllowableFlightModes::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AllowableFlightModes* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.AllowableFlightModes"; - } - protected: - explicit AllowableFlightModes(::google::protobuf::Arena* arena); - AllowableFlightModes(::google::protobuf::Arena* arena, const AllowableFlightModes& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCanAutoModeFieldNumber = 1, - kCanGuidedModeFieldNumber = 2, - kCanStabilizeModeFieldNumber = 3, - }; - // bool can_auto_mode = 1; - void clear_can_auto_mode() ; - bool can_auto_mode() const; - void set_can_auto_mode(bool value); - - private: - bool _internal_can_auto_mode() const; - void _internal_set_can_auto_mode(bool value); - - public: - // bool can_guided_mode = 2; - void clear_can_guided_mode() ; - bool can_guided_mode() const; - void set_can_guided_mode(bool value); - - private: - bool _internal_can_guided_mode() const; - void _internal_set_can_guided_mode(bool value); - - public: - // bool can_stabilize_mode = 3; - void clear_can_stabilize_mode() ; - bool can_stabilize_mode() const; - void set_can_stabilize_mode(bool value); - - private: - bool _internal_can_stabilize_mode() const; - void _internal_set_can_stabilize_mode(bool value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.AllowableFlightModes) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool can_auto_mode_; - bool can_guided_mode_; - bool can_stabilize_mode_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class ActionServerResult final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ActionServerResult) */ { - public: - inline ActionServerResult() : ActionServerResult(nullptr) {} - ~ActionServerResult() override; - template - explicit PROTOBUF_CONSTEXPR ActionServerResult(::google::protobuf::internal::ConstantInitialized); - - inline ActionServerResult(const ActionServerResult& from) - : ActionServerResult(nullptr, from) {} - ActionServerResult(ActionServerResult&& from) noexcept - : ActionServerResult() { - *this = ::std::move(from); - } - - inline ActionServerResult& operator=(const ActionServerResult& from) { - CopyFrom(from); - return *this; - } - inline ActionServerResult& operator=(ActionServerResult&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ActionServerResult& default_instance() { - return *internal_default_instance(); - } - static inline const ActionServerResult* internal_default_instance() { - return reinterpret_cast( - &_ActionServerResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - friend void swap(ActionServerResult& a, ActionServerResult& b) { - a.Swap(&b); - } - inline void Swap(ActionServerResult* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ActionServerResult* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ActionServerResult* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ActionServerResult& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ActionServerResult& from) { - ActionServerResult::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ActionServerResult* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.ActionServerResult"; - } - protected: - explicit ActionServerResult(::google::protobuf::Arena* arena); - ActionServerResult(::google::protobuf::Arena* arena, const ActionServerResult& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - using Result = ActionServerResult_Result; - static constexpr Result RESULT_UNKNOWN = ActionServerResult_Result_RESULT_UNKNOWN; - static constexpr Result RESULT_SUCCESS = ActionServerResult_Result_RESULT_SUCCESS; - static constexpr Result RESULT_NO_SYSTEM = ActionServerResult_Result_RESULT_NO_SYSTEM; - static constexpr Result RESULT_CONNECTION_ERROR = ActionServerResult_Result_RESULT_CONNECTION_ERROR; - static constexpr Result RESULT_BUSY = ActionServerResult_Result_RESULT_BUSY; - static constexpr Result RESULT_COMMAND_DENIED = ActionServerResult_Result_RESULT_COMMAND_DENIED; - static constexpr Result RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN = ActionServerResult_Result_RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN; - static constexpr Result RESULT_COMMAND_DENIED_NOT_LANDED = ActionServerResult_Result_RESULT_COMMAND_DENIED_NOT_LANDED; - static constexpr Result RESULT_TIMEOUT = ActionServerResult_Result_RESULT_TIMEOUT; - static constexpr Result RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN = ActionServerResult_Result_RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN; - static constexpr Result RESULT_NO_VTOL_TRANSITION_SUPPORT = ActionServerResult_Result_RESULT_NO_VTOL_TRANSITION_SUPPORT; - static constexpr Result RESULT_PARAMETER_ERROR = ActionServerResult_Result_RESULT_PARAMETER_ERROR; - static constexpr Result RESULT_NEXT = ActionServerResult_Result_RESULT_NEXT; - static inline bool Result_IsValid(int value) { - return ActionServerResult_Result_IsValid(value); - } - static constexpr Result Result_MIN = ActionServerResult_Result_Result_MIN; - static constexpr Result Result_MAX = ActionServerResult_Result_Result_MAX; - static constexpr int Result_ARRAYSIZE = ActionServerResult_Result_Result_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* Result_descriptor() { - return ActionServerResult_Result_descriptor(); - } - template - static inline const std::string& Result_Name(T value) { - return ActionServerResult_Result_Name(value); - } - static inline bool Result_Parse(absl::string_view name, Result* value) { - return ActionServerResult_Result_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kResultStrFieldNumber = 2, - kResultFieldNumber = 1, - }; - // string result_str = 2; - void clear_result_str() ; - const std::string& result_str() const; - template - void set_result_str(Arg_&& arg, Args_... args); - std::string* mutable_result_str(); - PROTOBUF_NODISCARD std::string* release_result_str(); - void set_allocated_result_str(std::string* value); - - private: - const std::string& _internal_result_str() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str( - const std::string& value); - std::string* _internal_mutable_result_str(); - - public: - // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; - void clear_result() ; - ::mavsdk::rpc::action_server::ActionServerResult_Result result() const; - void set_result(::mavsdk::rpc::action_server::ActionServerResult_Result value); - - private: - ::mavsdk::rpc::action_server::ActionServerResult_Result _internal_result() const; - void _internal_set_result(::mavsdk::rpc::action_server::ActionServerResult_Result value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ActionServerResult) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 62, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr result_str_; - int result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class TerminateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.TerminateResponse) */ { - public: - inline TerminateResponse() : TerminateResponse(nullptr) {} - ~TerminateResponse() override; - template - explicit PROTOBUF_CONSTEXPR TerminateResponse(::google::protobuf::internal::ConstantInitialized); - - inline TerminateResponse(const TerminateResponse& from) - : TerminateResponse(nullptr, from) {} - TerminateResponse(TerminateResponse&& from) noexcept - : TerminateResponse() { - *this = ::std::move(from); - } - - inline TerminateResponse& operator=(const TerminateResponse& from) { - CopyFrom(from); - return *this; - } - inline TerminateResponse& operator=(TerminateResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TerminateResponse& default_instance() { - return *internal_default_instance(); - } - static inline const TerminateResponse* internal_default_instance() { - return reinterpret_cast( - &_TerminateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(TerminateResponse& a, TerminateResponse& b) { - a.Swap(&b); - } - inline void Swap(TerminateResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TerminateResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TerminateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TerminateResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TerminateResponse& from) { - TerminateResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TerminateResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.TerminateResponse"; - } - protected: - explicit TerminateResponse(::google::protobuf::Arena* arena); - TerminateResponse(::google::protobuf::Arena* arena, const TerminateResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionServerResultFieldNumber = 1, - kTerminateFieldNumber = 2, - }; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - bool has_action_server_result() const; - void clear_action_server_result() ; - const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); - ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); - void set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - void unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - - private: - const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; - ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); - - public: - // bool terminate = 2; - void clear_terminate() ; - bool terminate() const; - void set_terminate(bool value); - - private: - bool _internal_terminate() const; - void _internal_set_terminate(bool value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.TerminateResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - bool terminate_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class TakeoffResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.TakeoffResponse) */ { - public: - inline TakeoffResponse() : TakeoffResponse(nullptr) {} - ~TakeoffResponse() override; - template - explicit PROTOBUF_CONSTEXPR TakeoffResponse(::google::protobuf::internal::ConstantInitialized); - - inline TakeoffResponse(const TakeoffResponse& from) - : TakeoffResponse(nullptr, from) {} - TakeoffResponse(TakeoffResponse&& from) noexcept - : TakeoffResponse() { - *this = ::std::move(from); - } - - inline TakeoffResponse& operator=(const TakeoffResponse& from) { - CopyFrom(from); - return *this; - } - inline TakeoffResponse& operator=(TakeoffResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TakeoffResponse& default_instance() { - return *internal_default_instance(); - } - static inline const TakeoffResponse* internal_default_instance() { - return reinterpret_cast( - &_TakeoffResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(TakeoffResponse& a, TakeoffResponse& b) { - a.Swap(&b); - } - inline void Swap(TakeoffResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TakeoffResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TakeoffResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TakeoffResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TakeoffResponse& from) { - TakeoffResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TakeoffResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.TakeoffResponse"; - } - protected: - explicit TakeoffResponse(::google::protobuf::Arena* arena); - TakeoffResponse(::google::protobuf::Arena* arena, const TakeoffResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionServerResultFieldNumber = 1, - kTakeoffFieldNumber = 2, - }; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - bool has_action_server_result() const; - void clear_action_server_result() ; - const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); - ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); - void set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - void unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - - private: - const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; - ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); - - public: - // bool takeoff = 2; - void clear_takeoff() ; - bool takeoff() const; - void set_takeoff(bool value); - - private: - bool _internal_takeoff() const; - void _internal_set_takeoff(bool value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.TakeoffResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - bool takeoff_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class ShutdownResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ShutdownResponse) */ { - public: - inline ShutdownResponse() : ShutdownResponse(nullptr) {} - ~ShutdownResponse() override; - template - explicit PROTOBUF_CONSTEXPR ShutdownResponse(::google::protobuf::internal::ConstantInitialized); - - inline ShutdownResponse(const ShutdownResponse& from) - : ShutdownResponse(nullptr, from) {} - ShutdownResponse(ShutdownResponse&& from) noexcept - : ShutdownResponse() { - *this = ::std::move(from); - } - - inline ShutdownResponse& operator=(const ShutdownResponse& from) { - CopyFrom(from); - return *this; - } - inline ShutdownResponse& operator=(ShutdownResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShutdownResponse& default_instance() { - return *internal_default_instance(); - } - static inline const ShutdownResponse* internal_default_instance() { - return reinterpret_cast( - &_ShutdownResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(ShutdownResponse& a, ShutdownResponse& b) { - a.Swap(&b); - } - inline void Swap(ShutdownResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShutdownResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShutdownResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShutdownResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ShutdownResponse& from) { - ShutdownResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ShutdownResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.ShutdownResponse"; - } - protected: - explicit ShutdownResponse(::google::protobuf::Arena* arena); - ShutdownResponse(::google::protobuf::Arena* arena, const ShutdownResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionServerResultFieldNumber = 1, - kShutdownFieldNumber = 2, - }; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - bool has_action_server_result() const; - void clear_action_server_result() ; - const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); - ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); - void set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - void unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - - private: - const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; - ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); - - public: - // bool shutdown = 2; - void clear_shutdown() ; - bool shutdown() const; - void set_shutdown(bool value); - - private: - bool _internal_shutdown() const; - void _internal_set_shutdown(bool value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ShutdownResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - bool shutdown_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class SetDisarmableResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetDisarmableResponse) */ { - public: - inline SetDisarmableResponse() : SetDisarmableResponse(nullptr) {} - ~SetDisarmableResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetDisarmableResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetDisarmableResponse(const SetDisarmableResponse& from) - : SetDisarmableResponse(nullptr, from) {} - SetDisarmableResponse(SetDisarmableResponse&& from) noexcept - : SetDisarmableResponse() { - *this = ::std::move(from); - } - - inline SetDisarmableResponse& operator=(const SetDisarmableResponse& from) { - CopyFrom(from); - return *this; - } - inline SetDisarmableResponse& operator=(SetDisarmableResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetDisarmableResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SetDisarmableResponse* internal_default_instance() { - return reinterpret_cast( - &_SetDisarmableResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(SetDisarmableResponse& a, SetDisarmableResponse& b) { - a.Swap(&b); - } - inline void Swap(SetDisarmableResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetDisarmableResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetDisarmableResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetDisarmableResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetDisarmableResponse& from) { - SetDisarmableResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetDisarmableResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetDisarmableResponse"; - } - protected: - explicit SetDisarmableResponse(::google::protobuf::Arena* arena); - SetDisarmableResponse(::google::protobuf::Arena* arena, const SetDisarmableResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionServerResultFieldNumber = 1, - }; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - bool has_action_server_result() const; - void clear_action_server_result() ; - const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); - ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); - void set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - void unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - - private: - const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; - ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetDisarmableResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class SetArmableResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetArmableResponse) */ { - public: - inline SetArmableResponse() : SetArmableResponse(nullptr) {} - ~SetArmableResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetArmableResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetArmableResponse(const SetArmableResponse& from) - : SetArmableResponse(nullptr, from) {} - SetArmableResponse(SetArmableResponse&& from) noexcept - : SetArmableResponse() { - *this = ::std::move(from); - } - - inline SetArmableResponse& operator=(const SetArmableResponse& from) { - CopyFrom(from); - return *this; - } - inline SetArmableResponse& operator=(SetArmableResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetArmableResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SetArmableResponse* internal_default_instance() { - return reinterpret_cast( - &_SetArmableResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(SetArmableResponse& a, SetArmableResponse& b) { - a.Swap(&b); - } - inline void Swap(SetArmableResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetArmableResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetArmableResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetArmableResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetArmableResponse& from) { - SetArmableResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetArmableResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetArmableResponse"; - } - protected: - explicit SetArmableResponse(::google::protobuf::Arena* arena); - SetArmableResponse(::google::protobuf::Arena* arena, const SetArmableResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionServerResultFieldNumber = 1, - }; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - bool has_action_server_result() const; - void clear_action_server_result() ; - const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); - ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); - void set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - void unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - - private: - const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; - ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetArmableResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class SetAllowableFlightModesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) */ { - public: - inline SetAllowableFlightModesResponse() : SetAllowableFlightModesResponse(nullptr) {} - ~SetAllowableFlightModesResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetAllowableFlightModesResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetAllowableFlightModesResponse(const SetAllowableFlightModesResponse& from) - : SetAllowableFlightModesResponse(nullptr, from) {} - SetAllowableFlightModesResponse(SetAllowableFlightModesResponse&& from) noexcept - : SetAllowableFlightModesResponse() { - *this = ::std::move(from); - } - - inline SetAllowableFlightModesResponse& operator=(const SetAllowableFlightModesResponse& from) { - CopyFrom(from); - return *this; - } - inline SetAllowableFlightModesResponse& operator=(SetAllowableFlightModesResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetAllowableFlightModesResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SetAllowableFlightModesResponse* internal_default_instance() { - return reinterpret_cast( - &_SetAllowableFlightModesResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(SetAllowableFlightModesResponse& a, SetAllowableFlightModesResponse& b) { - a.Swap(&b); - } - inline void Swap(SetAllowableFlightModesResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetAllowableFlightModesResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetAllowableFlightModesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetAllowableFlightModesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetAllowableFlightModesResponse& from) { - SetAllowableFlightModesResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetAllowableFlightModesResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetAllowableFlightModesResponse"; - } - protected: - explicit SetAllowableFlightModesResponse(::google::protobuf::Arena* arena); - SetAllowableFlightModesResponse(::google::protobuf::Arena* arena, const SetAllowableFlightModesResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionServerResultFieldNumber = 1, - }; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - bool has_action_server_result() const; - void clear_action_server_result() ; - const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); - ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); - void set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - void unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - - private: - const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; - ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class SetAllowableFlightModesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) */ { - public: - inline SetAllowableFlightModesRequest() : SetAllowableFlightModesRequest(nullptr) {} - ~SetAllowableFlightModesRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetAllowableFlightModesRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetAllowableFlightModesRequest(const SetAllowableFlightModesRequest& from) - : SetAllowableFlightModesRequest(nullptr, from) {} - SetAllowableFlightModesRequest(SetAllowableFlightModesRequest&& from) noexcept - : SetAllowableFlightModesRequest() { - *this = ::std::move(from); - } - - inline SetAllowableFlightModesRequest& operator=(const SetAllowableFlightModesRequest& from) { - CopyFrom(from); - return *this; - } - inline SetAllowableFlightModesRequest& operator=(SetAllowableFlightModesRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetAllowableFlightModesRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SetAllowableFlightModesRequest* internal_default_instance() { - return reinterpret_cast( - &_SetAllowableFlightModesRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(SetAllowableFlightModesRequest& a, SetAllowableFlightModesRequest& b) { - a.Swap(&b); - } - inline void Swap(SetAllowableFlightModesRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetAllowableFlightModesRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetAllowableFlightModesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetAllowableFlightModesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetAllowableFlightModesRequest& from) { - SetAllowableFlightModesRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetAllowableFlightModesRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetAllowableFlightModesRequest"; - } - protected: - explicit SetAllowableFlightModesRequest(::google::protobuf::Arena* arena); - SetAllowableFlightModesRequest(::google::protobuf::Arena* arena, const SetAllowableFlightModesRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFlightModesFieldNumber = 1, - }; - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - bool has_flight_modes() const; - void clear_flight_modes() ; - const ::mavsdk::rpc::action_server::AllowableFlightModes& flight_modes() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::AllowableFlightModes* release_flight_modes(); - ::mavsdk::rpc::action_server::AllowableFlightModes* mutable_flight_modes(); - void set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* value); - void unsafe_arena_set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* value); - ::mavsdk::rpc::action_server::AllowableFlightModes* unsafe_arena_release_flight_modes(); - - private: - const ::mavsdk::rpc::action_server::AllowableFlightModes& _internal_flight_modes() const; - ::mavsdk::rpc::action_server::AllowableFlightModes* _internal_mutable_flight_modes(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class SetAllowTakeoffResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowTakeoffResponse) */ { - public: - inline SetAllowTakeoffResponse() : SetAllowTakeoffResponse(nullptr) {} - ~SetAllowTakeoffResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetAllowTakeoffResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetAllowTakeoffResponse(const SetAllowTakeoffResponse& from) - : SetAllowTakeoffResponse(nullptr, from) {} - SetAllowTakeoffResponse(SetAllowTakeoffResponse&& from) noexcept - : SetAllowTakeoffResponse() { - *this = ::std::move(from); - } - - inline SetAllowTakeoffResponse& operator=(const SetAllowTakeoffResponse& from) { - CopyFrom(from); - return *this; - } - inline SetAllowTakeoffResponse& operator=(SetAllowTakeoffResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetAllowTakeoffResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SetAllowTakeoffResponse* internal_default_instance() { - return reinterpret_cast( - &_SetAllowTakeoffResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(SetAllowTakeoffResponse& a, SetAllowTakeoffResponse& b) { - a.Swap(&b); - } - inline void Swap(SetAllowTakeoffResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetAllowTakeoffResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetAllowTakeoffResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetAllowTakeoffResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetAllowTakeoffResponse& from) { - SetAllowTakeoffResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetAllowTakeoffResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetAllowTakeoffResponse"; - } - protected: - explicit SetAllowTakeoffResponse(::google::protobuf::Arena* arena); - SetAllowTakeoffResponse(::google::protobuf::Arena* arena, const SetAllowTakeoffResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionServerResultFieldNumber = 1, - }; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - bool has_action_server_result() const; - void clear_action_server_result() ; - const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); - ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); - void set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - void unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - - private: - const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; - ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class RebootResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.RebootResponse) */ { - public: - inline RebootResponse() : RebootResponse(nullptr) {} - ~RebootResponse() override; - template - explicit PROTOBUF_CONSTEXPR RebootResponse(::google::protobuf::internal::ConstantInitialized); - - inline RebootResponse(const RebootResponse& from) - : RebootResponse(nullptr, from) {} - RebootResponse(RebootResponse&& from) noexcept - : RebootResponse() { - *this = ::std::move(from); - } - - inline RebootResponse& operator=(const RebootResponse& from) { - CopyFrom(from); - return *this; - } - inline RebootResponse& operator=(RebootResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RebootResponse& default_instance() { - return *internal_default_instance(); - } - static inline const RebootResponse* internal_default_instance() { - return reinterpret_cast( - &_RebootResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(RebootResponse& a, RebootResponse& b) { - a.Swap(&b); - } - inline void Swap(RebootResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RebootResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RebootResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RebootResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RebootResponse& from) { - RebootResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(RebootResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.RebootResponse"; - } - protected: - explicit RebootResponse(::google::protobuf::Arena* arena); - RebootResponse(::google::protobuf::Arena* arena, const RebootResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionServerResultFieldNumber = 1, - kRebootFieldNumber = 2, - }; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - bool has_action_server_result() const; - void clear_action_server_result() ; - const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); - ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); - void set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - void unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - - private: - const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; - ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); - - public: - // bool reboot = 2; - void clear_reboot() ; - bool reboot() const; - void set_reboot(bool value); - - private: - bool _internal_reboot() const; - void _internal_set_reboot(bool value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.RebootResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - bool reboot_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class LandResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.LandResponse) */ { - public: - inline LandResponse() : LandResponse(nullptr) {} - ~LandResponse() override; - template - explicit PROTOBUF_CONSTEXPR LandResponse(::google::protobuf::internal::ConstantInitialized); - - inline LandResponse(const LandResponse& from) - : LandResponse(nullptr, from) {} - LandResponse(LandResponse&& from) noexcept - : LandResponse() { - *this = ::std::move(from); - } - - inline LandResponse& operator=(const LandResponse& from) { - CopyFrom(from); - return *this; - } - inline LandResponse& operator=(LandResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const LandResponse& default_instance() { - return *internal_default_instance(); - } - static inline const LandResponse* internal_default_instance() { - return reinterpret_cast( - &_LandResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(LandResponse& a, LandResponse& b) { - a.Swap(&b); - } - inline void Swap(LandResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LandResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LandResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LandResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LandResponse& from) { - LandResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(LandResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.LandResponse"; - } - protected: - explicit LandResponse(::google::protobuf::Arena* arena); - LandResponse(::google::protobuf::Arena* arena, const LandResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionServerResultFieldNumber = 1, - kLandFieldNumber = 2, - }; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - bool has_action_server_result() const; - void clear_action_server_result() ; - const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); - ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); - void set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - void unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - - private: - const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; - ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); - - public: - // bool land = 2; - void clear_land() ; - bool land() const; - void set_land(bool value); - - private: - bool _internal_land() const; - void _internal_set_land(bool value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.LandResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - bool land_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class GetAllowableFlightModesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) */ { - public: - inline GetAllowableFlightModesResponse() : GetAllowableFlightModesResponse(nullptr) {} - ~GetAllowableFlightModesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetAllowableFlightModesResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetAllowableFlightModesResponse(const GetAllowableFlightModesResponse& from) - : GetAllowableFlightModesResponse(nullptr, from) {} - GetAllowableFlightModesResponse(GetAllowableFlightModesResponse&& from) noexcept - : GetAllowableFlightModesResponse() { - *this = ::std::move(from); - } - - inline GetAllowableFlightModesResponse& operator=(const GetAllowableFlightModesResponse& from) { - CopyFrom(from); - return *this; - } - inline GetAllowableFlightModesResponse& operator=(GetAllowableFlightModesResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetAllowableFlightModesResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetAllowableFlightModesResponse* internal_default_instance() { - return reinterpret_cast( - &_GetAllowableFlightModesResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - friend void swap(GetAllowableFlightModesResponse& a, GetAllowableFlightModesResponse& b) { - a.Swap(&b); - } - inline void Swap(GetAllowableFlightModesResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetAllowableFlightModesResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetAllowableFlightModesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetAllowableFlightModesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetAllowableFlightModesResponse& from) { - GetAllowableFlightModesResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetAllowableFlightModesResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.GetAllowableFlightModesResponse"; - } - protected: - explicit GetAllowableFlightModesResponse(::google::protobuf::Arena* arena); - GetAllowableFlightModesResponse(::google::protobuf::Arena* arena, const GetAllowableFlightModesResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFlightModesFieldNumber = 1, - }; - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - bool has_flight_modes() const; - void clear_flight_modes() ; - const ::mavsdk::rpc::action_server::AllowableFlightModes& flight_modes() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::AllowableFlightModes* release_flight_modes(); - ::mavsdk::rpc::action_server::AllowableFlightModes* mutable_flight_modes(); - void set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* value); - void unsafe_arena_set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* value); - ::mavsdk::rpc::action_server::AllowableFlightModes* unsafe_arena_release_flight_modes(); - - private: - const ::mavsdk::rpc::action_server::AllowableFlightModes& _internal_flight_modes() const; - ::mavsdk::rpc::action_server::AllowableFlightModes* _internal_mutable_flight_modes(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class FlightModeChangeResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.FlightModeChangeResponse) */ { - public: - inline FlightModeChangeResponse() : FlightModeChangeResponse(nullptr) {} - ~FlightModeChangeResponse() override; - template - explicit PROTOBUF_CONSTEXPR FlightModeChangeResponse(::google::protobuf::internal::ConstantInitialized); - - inline FlightModeChangeResponse(const FlightModeChangeResponse& from) - : FlightModeChangeResponse(nullptr, from) {} - FlightModeChangeResponse(FlightModeChangeResponse&& from) noexcept - : FlightModeChangeResponse() { - *this = ::std::move(from); - } - - inline FlightModeChangeResponse& operator=(const FlightModeChangeResponse& from) { - CopyFrom(from); - return *this; - } - inline FlightModeChangeResponse& operator=(FlightModeChangeResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const FlightModeChangeResponse& default_instance() { - return *internal_default_instance(); - } - static inline const FlightModeChangeResponse* internal_default_instance() { - return reinterpret_cast( - &_FlightModeChangeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(FlightModeChangeResponse& a, FlightModeChangeResponse& b) { - a.Swap(&b); - } - inline void Swap(FlightModeChangeResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FlightModeChangeResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FlightModeChangeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FlightModeChangeResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FlightModeChangeResponse& from) { - FlightModeChangeResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(FlightModeChangeResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.FlightModeChangeResponse"; - } - protected: - explicit FlightModeChangeResponse(::google::protobuf::Arena* arena); - FlightModeChangeResponse(::google::protobuf::Arena* arena, const FlightModeChangeResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionServerResultFieldNumber = 1, - kFlightModeFieldNumber = 2, - }; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - bool has_action_server_result() const; - void clear_action_server_result() ; - const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); - ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); - void set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - void unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - - private: - const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; - ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); - - public: - // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; - void clear_flight_mode() ; - ::mavsdk::rpc::action_server::FlightMode flight_mode() const; - void set_flight_mode(::mavsdk::rpc::action_server::FlightMode value); - - private: - ::mavsdk::rpc::action_server::FlightMode _internal_flight_mode() const; - void _internal_set_flight_mode(::mavsdk::rpc::action_server::FlightMode value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.FlightModeChangeResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - int flight_mode_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class ArmDisarmResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ArmDisarmResponse) */ { - public: - inline ArmDisarmResponse() : ArmDisarmResponse(nullptr) {} - ~ArmDisarmResponse() override; - template - explicit PROTOBUF_CONSTEXPR ArmDisarmResponse(::google::protobuf::internal::ConstantInitialized); - - inline ArmDisarmResponse(const ArmDisarmResponse& from) - : ArmDisarmResponse(nullptr, from) {} - ArmDisarmResponse(ArmDisarmResponse&& from) noexcept - : ArmDisarmResponse() { - *this = ::std::move(from); - } - - inline ArmDisarmResponse& operator=(const ArmDisarmResponse& from) { - CopyFrom(from); - return *this; - } - inline ArmDisarmResponse& operator=(ArmDisarmResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ArmDisarmResponse& default_instance() { - return *internal_default_instance(); - } - static inline const ArmDisarmResponse* internal_default_instance() { - return reinterpret_cast( - &_ArmDisarmResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(ArmDisarmResponse& a, ArmDisarmResponse& b) { - a.Swap(&b); - } - inline void Swap(ArmDisarmResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ArmDisarmResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ArmDisarmResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ArmDisarmResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ArmDisarmResponse& from) { - ArmDisarmResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ArmDisarmResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.ArmDisarmResponse"; - } - protected: - explicit ArmDisarmResponse(::google::protobuf::Arena* arena); - ArmDisarmResponse(::google::protobuf::Arena* arena, const ArmDisarmResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionServerResultFieldNumber = 1, - kArmFieldNumber = 2, - }; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - bool has_action_server_result() const; - void clear_action_server_result() ; - const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); - ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); - void set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - void unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - - private: - const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; - ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); - - public: - // .mavsdk.rpc.action_server.ArmDisarm arm = 2; - bool has_arm() const; - void clear_arm() ; - const ::mavsdk::rpc::action_server::ArmDisarm& arm() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ArmDisarm* release_arm(); - ::mavsdk::rpc::action_server::ArmDisarm* mutable_arm(); - void set_allocated_arm(::mavsdk::rpc::action_server::ArmDisarm* value); - void unsafe_arena_set_allocated_arm(::mavsdk::rpc::action_server::ArmDisarm* value); - ::mavsdk::rpc::action_server::ArmDisarm* unsafe_arena_release_arm(); - - private: - const ::mavsdk::rpc::action_server::ArmDisarm& _internal_arm() const; - ::mavsdk::rpc::action_server::ArmDisarm* _internal_mutable_arm(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ArmDisarmResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - ::mavsdk::rpc::action_server::ArmDisarm* arm_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; +class SubscribeTerminateRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeTerminateRequest) */ +{ +public: + inline SubscribeTerminateRequest() : SubscribeTerminateRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeTerminateRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeTerminateRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SubscribeTerminateRequest(::google::protobuf::internal::ConstantInitialized); + + inline SubscribeTerminateRequest(const SubscribeTerminateRequest& from) : + SubscribeTerminateRequest(nullptr, from) + {} + inline SubscribeTerminateRequest(SubscribeTerminateRequest&& from) noexcept : + SubscribeTerminateRequest(nullptr, std::move(from)) + {} + inline SubscribeTerminateRequest& operator=(const SubscribeTerminateRequest& from) + { + CopyFrom(from); + return *this; + } + inline SubscribeTerminateRequest& operator=(SubscribeTerminateRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } -// =================================================================== + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SubscribeTerminateRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const SubscribeTerminateRequest* internal_default_instance() + { + return reinterpret_cast( + &_SubscribeTerminateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 11; + friend void swap(SubscribeTerminateRequest& a, SubscribeTerminateRequest& b) { a.Swap(&b); } + inline void Swap(SubscribeTerminateRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SubscribeTerminateRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + // implements Message ---------------------------------------------- + SubscribeTerminateRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + SubscribeTerminateRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeTerminateRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeTerminateRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } -// =================================================================== +public: + bool IsInitialized() const { return true; } +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.SubscribeTerminateRequest"; + } -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ +protected: + explicit SubscribeTerminateRequest(::google::protobuf::Arena* arena); + SubscribeTerminateRequest( + ::google::protobuf::Arena* arena, const SubscribeTerminateRequest& from); + SubscribeTerminateRequest( + ::google::protobuf::Arena* arena, SubscribeTerminateRequest&& from) noexcept : + SubscribeTerminateRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeTerminateRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SubscribeTerminateRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; // ------------------------------------------------------------------- -// SetAllowTakeoffRequest +class SubscribeTakeoffRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeTakeoffRequest) */ { +public: + inline SubscribeTakeoffRequest() : SubscribeTakeoffRequest(nullptr) {} -// bool allow_takeoff = 1; -inline void SetAllowTakeoffRequest::clear_allow_takeoff() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.allow_takeoff_ = false; -} -inline bool SetAllowTakeoffRequest::allow_takeoff() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetAllowTakeoffRequest.allow_takeoff) - return _internal_allow_takeoff(); -} -inline void SetAllowTakeoffRequest::set_allow_takeoff(bool value) { - _internal_set_allow_takeoff(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.SetAllowTakeoffRequest.allow_takeoff) -} -inline bool SetAllowTakeoffRequest::_internal_allow_takeoff() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.allow_takeoff_; -} -inline void SetAllowTakeoffRequest::_internal_set_allow_takeoff(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.allow_takeoff_ = value; -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeTakeoffRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeTakeoffRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SubscribeTakeoffRequest(::google::protobuf::internal::ConstantInitialized); + + inline SubscribeTakeoffRequest(const SubscribeTakeoffRequest& from) : + SubscribeTakeoffRequest(nullptr, from) + {} + inline SubscribeTakeoffRequest(SubscribeTakeoffRequest&& from) noexcept : + SubscribeTakeoffRequest(nullptr, std::move(from)) + {} + inline SubscribeTakeoffRequest& operator=(const SubscribeTakeoffRequest& from) + { + CopyFrom(from); + return *this; + } + inline SubscribeTakeoffRequest& operator=(SubscribeTakeoffRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } -// ------------------------------------------------------------------- + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } -// SetArmableRequest + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SubscribeTakeoffRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const SubscribeTakeoffRequest* internal_default_instance() + { + return reinterpret_cast( + &_SubscribeTakeoffRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 7; + friend void swap(SubscribeTakeoffRequest& a, SubscribeTakeoffRequest& b) { a.Swap(&b); } + inline void Swap(SubscribeTakeoffRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SubscribeTakeoffRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } -// bool armable = 1; -inline void SetArmableRequest::clear_armable() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.armable_ = false; -} -inline bool SetArmableRequest::armable() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetArmableRequest.armable) - return _internal_armable(); -} -inline void SetArmableRequest::set_armable(bool value) { - _internal_set_armable(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.SetArmableRequest.armable) -} -inline bool SetArmableRequest::_internal_armable() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.armable_; -} -inline void SetArmableRequest::_internal_set_armable(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.armable_ = value; -} + // implements Message ---------------------------------------------- -// bool force_armable = 2; -inline void SetArmableRequest::clear_force_armable() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.force_armable_ = false; -} -inline bool SetArmableRequest::force_armable() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetArmableRequest.force_armable) - return _internal_force_armable(); -} -inline void SetArmableRequest::set_force_armable(bool value) { - _internal_set_force_armable(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.SetArmableRequest.force_armable) -} -inline bool SetArmableRequest::_internal_force_armable() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.force_armable_; -} -inline void SetArmableRequest::_internal_set_force_armable(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.force_armable_ = value; -} + SubscribeTakeoffRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + SubscribeTakeoffRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeTakeoffRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeTakeoffRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.SubscribeTakeoffRequest"; + } +protected: + explicit SubscribeTakeoffRequest(::google::protobuf::Arena* arena); + SubscribeTakeoffRequest(::google::protobuf::Arena* arena, const SubscribeTakeoffRequest& from); + SubscribeTakeoffRequest( + ::google::protobuf::Arena* arena, SubscribeTakeoffRequest&& from) noexcept : + SubscribeTakeoffRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeTakeoffRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SubscribeTakeoffRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; // ------------------------------------------------------------------- -// SetDisarmableRequest +class SubscribeShutdownRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeShutdownRequest) */ { +public: + inline SubscribeShutdownRequest() : SubscribeShutdownRequest(nullptr) {} -// bool disarmable = 1; -inline void SetDisarmableRequest::clear_disarmable() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.disarmable_ = false; -} -inline bool SetDisarmableRequest::disarmable() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetDisarmableRequest.disarmable) - return _internal_disarmable(); -} -inline void SetDisarmableRequest::set_disarmable(bool value) { - _internal_set_disarmable(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.SetDisarmableRequest.disarmable) -} -inline bool SetDisarmableRequest::_internal_disarmable() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.disarmable_; -} -inline void SetDisarmableRequest::_internal_set_disarmable(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.disarmable_ = value; -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeShutdownRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeShutdownRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SubscribeShutdownRequest(::google::protobuf::internal::ConstantInitialized); + + inline SubscribeShutdownRequest(const SubscribeShutdownRequest& from) : + SubscribeShutdownRequest(nullptr, from) + {} + inline SubscribeShutdownRequest(SubscribeShutdownRequest&& from) noexcept : + SubscribeShutdownRequest(nullptr, std::move(from)) + {} + inline SubscribeShutdownRequest& operator=(const SubscribeShutdownRequest& from) + { + CopyFrom(from); + return *this; + } + inline SubscribeShutdownRequest& operator=(SubscribeShutdownRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } -// bool force_disarmable = 2; -inline void SetDisarmableRequest::clear_force_disarmable() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.force_disarmable_ = false; -} -inline bool SetDisarmableRequest::force_disarmable() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetDisarmableRequest.force_disarmable) - return _internal_force_disarmable(); -} -inline void SetDisarmableRequest::set_force_disarmable(bool value) { - _internal_set_force_disarmable(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.SetDisarmableRequest.force_disarmable) -} -inline bool SetDisarmableRequest::_internal_force_disarmable() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.force_disarmable_; -} -inline void SetDisarmableRequest::_internal_set_force_disarmable(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.force_disarmable_ = value; -} + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } -// ------------------------------------------------------------------- + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SubscribeShutdownRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const SubscribeShutdownRequest* internal_default_instance() + { + return reinterpret_cast( + &_SubscribeShutdownRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 10; + friend void swap(SubscribeShutdownRequest& a, SubscribeShutdownRequest& b) { a.Swap(&b); } + inline void Swap(SubscribeShutdownRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SubscribeShutdownRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } -// SetAllowableFlightModesRequest + // implements Message ---------------------------------------------- -// .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; -inline bool SetAllowableFlightModesRequest::has_flight_modes() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.flight_modes_ != nullptr); - return value; -} -inline void SetAllowableFlightModesRequest::clear_flight_modes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.flight_modes_ != nullptr) _impl_.flight_modes_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action_server::AllowableFlightModes& SetAllowableFlightModesRequest::_internal_flight_modes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action_server::AllowableFlightModes* p = _impl_.flight_modes_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_AllowableFlightModes_default_instance_); -} -inline const ::mavsdk::rpc::action_server::AllowableFlightModes& SetAllowableFlightModesRequest::flight_modes() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) - return _internal_flight_modes(); -} -inline void SetAllowableFlightModesRequest::unsafe_arena_set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.flight_modes_); - } - _impl_.flight_modes_ = reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) -} -inline ::mavsdk::rpc::action_server::AllowableFlightModes* SetAllowableFlightModesRequest::release_flight_modes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::AllowableFlightModes* released = _impl_.flight_modes_; - _impl_.flight_modes_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action_server::AllowableFlightModes* SetAllowableFlightModesRequest::unsafe_arena_release_flight_modes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::AllowableFlightModes* temp = _impl_.flight_modes_; - _impl_.flight_modes_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action_server::AllowableFlightModes* SetAllowableFlightModesRequest::_internal_mutable_flight_modes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.flight_modes_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::AllowableFlightModes>(GetArena()); - _impl_.flight_modes_ = reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(p); - } - return _impl_.flight_modes_; -} -inline ::mavsdk::rpc::action_server::AllowableFlightModes* SetAllowableFlightModesRequest::mutable_flight_modes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action_server::AllowableFlightModes* _msg = _internal_mutable_flight_modes(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) - return _msg; -} -inline void SetAllowableFlightModesRequest::set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(_impl_.flight_modes_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + SubscribeShutdownRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + SubscribeShutdownRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeShutdownRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeShutdownRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.flight_modes_ = reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) -} +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.SubscribeShutdownRequest"; + } +protected: + explicit SubscribeShutdownRequest(::google::protobuf::Arena* arena); + SubscribeShutdownRequest( + ::google::protobuf::Arena* arena, const SubscribeShutdownRequest& from); + SubscribeShutdownRequest( + ::google::protobuf::Arena* arena, SubscribeShutdownRequest&& from) noexcept : + SubscribeShutdownRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeShutdownRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SubscribeShutdownRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; // ------------------------------------------------------------------- -// GetAllowableFlightModesRequest +class SubscribeRebootRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeRebootRequest) */ { +public: + inline SubscribeRebootRequest() : SubscribeRebootRequest(nullptr) {} -// ------------------------------------------------------------------- +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeRebootRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeRebootRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SubscribeRebootRequest(::google::protobuf::internal::ConstantInitialized); + + inline SubscribeRebootRequest(const SubscribeRebootRequest& from) : + SubscribeRebootRequest(nullptr, from) + {} + inline SubscribeRebootRequest(SubscribeRebootRequest&& from) noexcept : + SubscribeRebootRequest(nullptr, std::move(from)) + {} + inline SubscribeRebootRequest& operator=(const SubscribeRebootRequest& from) + { + CopyFrom(from); + return *this; + } + inline SubscribeRebootRequest& operator=(SubscribeRebootRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } -// SubscribeArmDisarmRequest + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } -// ------------------------------------------------------------------- + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SubscribeRebootRequest& default_instance() { return *internal_default_instance(); } + static inline const SubscribeRebootRequest* internal_default_instance() + { + return reinterpret_cast( + &_SubscribeRebootRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 9; + friend void swap(SubscribeRebootRequest& a, SubscribeRebootRequest& b) { a.Swap(&b); } + inline void Swap(SubscribeRebootRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SubscribeRebootRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } -// SubscribeFlightModeChangeRequest + // implements Message ---------------------------------------------- -// ------------------------------------------------------------------- + SubscribeRebootRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + SubscribeRebootRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeRebootRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeRebootRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } -// SubscribeTakeoffRequest +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.SubscribeRebootRequest"; + } +protected: + explicit SubscribeRebootRequest(::google::protobuf::Arena* arena); + SubscribeRebootRequest(::google::protobuf::Arena* arena, const SubscribeRebootRequest& from); + SubscribeRebootRequest(::google::protobuf::Arena* arena, SubscribeRebootRequest&& from) noexcept + : + SubscribeRebootRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeRebootRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SubscribeRebootRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; // ------------------------------------------------------------------- -// SubscribeLandRequest +class SubscribeLandRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeLandRequest) */ { +public: + inline SubscribeLandRequest() : SubscribeLandRequest(nullptr) {} -// ------------------------------------------------------------------- +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeLandRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeLandRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SubscribeLandRequest(::google::protobuf::internal::ConstantInitialized); + + inline SubscribeLandRequest(const SubscribeLandRequest& from) : + SubscribeLandRequest(nullptr, from) + {} + inline SubscribeLandRequest(SubscribeLandRequest&& from) noexcept : + SubscribeLandRequest(nullptr, std::move(from)) + {} + inline SubscribeLandRequest& operator=(const SubscribeLandRequest& from) + { + CopyFrom(from); + return *this; + } + inline SubscribeLandRequest& operator=(SubscribeLandRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } -// SubscribeRebootRequest + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } -// ------------------------------------------------------------------- + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SubscribeLandRequest& default_instance() { return *internal_default_instance(); } + static inline const SubscribeLandRequest* internal_default_instance() + { + return reinterpret_cast( + &_SubscribeLandRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 8; + friend void swap(SubscribeLandRequest& a, SubscribeLandRequest& b) { a.Swap(&b); } + inline void Swap(SubscribeLandRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SubscribeLandRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } -// SubscribeShutdownRequest + // implements Message ---------------------------------------------- -// ------------------------------------------------------------------- + SubscribeLandRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct( + arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeLandRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeLandRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } -// SubscribeTerminateRequest +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.SubscribeLandRequest"; + } +protected: + explicit SubscribeLandRequest(::google::protobuf::Arena* arena); + SubscribeLandRequest(::google::protobuf::Arena* arena, const SubscribeLandRequest& from); + SubscribeLandRequest(::google::protobuf::Arena* arena, SubscribeLandRequest&& from) noexcept : + SubscribeLandRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeLandRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SubscribeLandRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; // ------------------------------------------------------------------- -// ArmDisarmResponse +class SubscribeFlightModeChangeRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) + */ +{ +public: + inline SubscribeFlightModeChangeRequest() : SubscribeFlightModeChangeRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeFlightModeChangeRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeFlightModeChangeRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SubscribeFlightModeChangeRequest(::google::protobuf::internal::ConstantInitialized); + + inline SubscribeFlightModeChangeRequest(const SubscribeFlightModeChangeRequest& from) : + SubscribeFlightModeChangeRequest(nullptr, from) + {} + inline SubscribeFlightModeChangeRequest(SubscribeFlightModeChangeRequest&& from) noexcept : + SubscribeFlightModeChangeRequest(nullptr, std::move(from)) + {} + inline SubscribeFlightModeChangeRequest& operator=(const SubscribeFlightModeChangeRequest& from) + { + CopyFrom(from); + return *this; + } + inline SubscribeFlightModeChangeRequest& + operator=(SubscribeFlightModeChangeRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } -// .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool ArmDisarmResponse::has_action_server_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); - return value; -} -inline void ArmDisarmResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& ArmDisarmResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& ArmDisarmResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ArmDisarmResponse.action_server_result) - return _internal_action_server_result(); -} -inline void ArmDisarmResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); - } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.ArmDisarmResponse.action_server_result) -} -inline ::mavsdk::rpc::action_server::ActionServerResult* ArmDisarmResponse::release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* ArmDisarmResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ArmDisarmResponse.action_server_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* ArmDisarmResponse::_internal_mutable_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); - } - return _impl_.action_server_result_; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* ArmDisarmResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.ArmDisarmResponse.action_server_result) - return _msg; -} -inline void ArmDisarmResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.ArmDisarmResponse.action_server_result) -} + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SubscribeFlightModeChangeRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const SubscribeFlightModeChangeRequest* internal_default_instance() + { + return reinterpret_cast( + &_SubscribeFlightModeChangeRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 6; + friend void swap(SubscribeFlightModeChangeRequest& a, SubscribeFlightModeChangeRequest& b) + { + a.Swap(&b); + } + inline void Swap(SubscribeFlightModeChangeRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SubscribeFlightModeChangeRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } -// .mavsdk.rpc.action_server.ArmDisarm arm = 2; -inline bool ArmDisarmResponse::has_arm() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.arm_ != nullptr); - return value; -} -inline void ArmDisarmResponse::clear_arm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.arm_ != nullptr) _impl_.arm_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const ::mavsdk::rpc::action_server::ArmDisarm& ArmDisarmResponse::_internal_arm() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action_server::ArmDisarm* p = _impl_.arm_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ArmDisarm_default_instance_); -} -inline const ::mavsdk::rpc::action_server::ArmDisarm& ArmDisarmResponse::arm() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ArmDisarmResponse.arm) - return _internal_arm(); -} -inline void ArmDisarmResponse::unsafe_arena_set_allocated_arm(::mavsdk::rpc::action_server::ArmDisarm* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.arm_); - } - _impl_.arm_ = reinterpret_cast<::mavsdk::rpc::action_server::ArmDisarm*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.ArmDisarmResponse.arm) -} -inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::release_arm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::mavsdk::rpc::action_server::ArmDisarm* released = _impl_.arm_; - _impl_.arm_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::unsafe_arena_release_arm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ArmDisarmResponse.arm) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::mavsdk::rpc::action_server::ArmDisarm* temp = _impl_.arm_; - _impl_.arm_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::_internal_mutable_arm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.arm_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ArmDisarm>(GetArena()); - _impl_.arm_ = reinterpret_cast<::mavsdk::rpc::action_server::ArmDisarm*>(p); - } - return _impl_.arm_; -} -inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::mutable_arm() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action_server::ArmDisarm* _msg = _internal_mutable_arm(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.ArmDisarmResponse.arm) - return _msg; -} -inline void ArmDisarmResponse::set_allocated_arm(::mavsdk::rpc::action_server::ArmDisarm* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ArmDisarm*>(_impl_.arm_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ArmDisarm*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + // implements Message ---------------------------------------------- + + SubscribeFlightModeChangeRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + SubscribeFlightModeChangeRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeFlightModeChangeRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeFlightModeChangeRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest"; + } + +protected: + explicit SubscribeFlightModeChangeRequest(::google::protobuf::Arena* arena); + SubscribeFlightModeChangeRequest( + ::google::protobuf::Arena* arena, const SubscribeFlightModeChangeRequest& from); + SubscribeFlightModeChangeRequest( + ::google::protobuf::Arena* arena, SubscribeFlightModeChangeRequest&& from) noexcept : + SubscribeFlightModeChangeRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SubscribeFlightModeChangeRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class SubscribeArmDisarmRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) */ +{ +public: + inline SubscribeArmDisarmRequest() : SubscribeArmDisarmRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeArmDisarmRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeArmDisarmRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SubscribeArmDisarmRequest(::google::protobuf::internal::ConstantInitialized); + + inline SubscribeArmDisarmRequest(const SubscribeArmDisarmRequest& from) : + SubscribeArmDisarmRequest(nullptr, from) + {} + inline SubscribeArmDisarmRequest(SubscribeArmDisarmRequest&& from) noexcept : + SubscribeArmDisarmRequest(nullptr, std::move(from)) + {} + inline SubscribeArmDisarmRequest& operator=(const SubscribeArmDisarmRequest& from) + { + CopyFrom(from); + return *this; + } + inline SubscribeArmDisarmRequest& operator=(SubscribeArmDisarmRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SubscribeArmDisarmRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const SubscribeArmDisarmRequest* internal_default_instance() + { + return reinterpret_cast( + &_SubscribeArmDisarmRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 5; + friend void swap(SubscribeArmDisarmRequest& a, SubscribeArmDisarmRequest& b) { a.Swap(&b); } + inline void Swap(SubscribeArmDisarmRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SubscribeArmDisarmRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SubscribeArmDisarmRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + SubscribeArmDisarmRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeArmDisarmRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeArmDisarmRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.SubscribeArmDisarmRequest"; + } + +protected: + explicit SubscribeArmDisarmRequest(::google::protobuf::Arena* arena); + SubscribeArmDisarmRequest( + ::google::protobuf::Arena* arena, const SubscribeArmDisarmRequest& from); + SubscribeArmDisarmRequest( + ::google::protobuf::Arena* arena, SubscribeArmDisarmRequest&& from) noexcept : + SubscribeArmDisarmRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SubscribeArmDisarmRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class SetDisarmableRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetDisarmableRequest) */ { +public: + inline SetDisarmableRequest() : SetDisarmableRequest(nullptr) {} + ~SetDisarmableRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetDisarmableRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetDisarmableRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetDisarmableRequest(::google::protobuf::internal::ConstantInitialized); + + inline SetDisarmableRequest(const SetDisarmableRequest& from) : + SetDisarmableRequest(nullptr, from) + {} + inline SetDisarmableRequest(SetDisarmableRequest&& from) noexcept : + SetDisarmableRequest(nullptr, std::move(from)) + {} + inline SetDisarmableRequest& operator=(const SetDisarmableRequest& from) + { + CopyFrom(from); + return *this; + } + inline SetDisarmableRequest& operator=(SetDisarmableRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetDisarmableRequest& default_instance() { return *internal_default_instance(); } + static inline const SetDisarmableRequest* internal_default_instance() + { + return reinterpret_cast( + &_SetDisarmableRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(SetDisarmableRequest& a, SetDisarmableRequest& b) { a.Swap(&b); } + inline void Swap(SetDisarmableRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetDisarmableRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetDisarmableRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetDisarmableRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetDisarmableRequest& from) + { + SetDisarmableRequest::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetDisarmableRequest* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.SetDisarmableRequest"; + } + +protected: + explicit SetDisarmableRequest(::google::protobuf::Arena* arena); + SetDisarmableRequest(::google::protobuf::Arena* arena, const SetDisarmableRequest& from); + SetDisarmableRequest(::google::protobuf::Arena* arena, SetDisarmableRequest&& from) noexcept : + SetDisarmableRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kDisarmableFieldNumber = 1, + kForceDisarmableFieldNumber = 2, + }; + // bool disarmable = 1; + void clear_disarmable(); + bool disarmable() const; + void set_disarmable(bool value); + +private: + bool _internal_disarmable() const; + void _internal_set_disarmable(bool value); + +public: + // bool force_disarmable = 2; + void clear_force_disarmable(); + bool force_disarmable() const; + void set_force_disarmable(bool value); + +private: + bool _internal_force_disarmable() const; + void _internal_set_force_disarmable(bool value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetDisarmableRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetDisarmableRequest& from_msg); + bool disarmable_; + bool force_disarmable_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class SetArmableRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetArmableRequest) */ { +public: + inline SetArmableRequest() : SetArmableRequest(nullptr) {} + ~SetArmableRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetArmableRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetArmableRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetArmableRequest(::google::protobuf::internal::ConstantInitialized); + + inline SetArmableRequest(const SetArmableRequest& from) : SetArmableRequest(nullptr, from) {} + inline SetArmableRequest(SetArmableRequest&& from) noexcept : + SetArmableRequest(nullptr, std::move(from)) + {} + inline SetArmableRequest& operator=(const SetArmableRequest& from) + { + CopyFrom(from); + return *this; + } + inline SetArmableRequest& operator=(SetArmableRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetArmableRequest& default_instance() { return *internal_default_instance(); } + static inline const SetArmableRequest* internal_default_instance() + { + return reinterpret_cast(&_SetArmableRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(SetArmableRequest& a, SetArmableRequest& b) { a.Swap(&b); } + inline void Swap(SetArmableRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetArmableRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetArmableRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetArmableRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetArmableRequest& from) { SetArmableRequest::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetArmableRequest* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.SetArmableRequest"; + } + +protected: + explicit SetArmableRequest(::google::protobuf::Arena* arena); + SetArmableRequest(::google::protobuf::Arena* arena, const SetArmableRequest& from); + SetArmableRequest(::google::protobuf::Arena* arena, SetArmableRequest&& from) noexcept : + SetArmableRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kArmableFieldNumber = 1, + kForceArmableFieldNumber = 2, + }; + // bool armable = 1; + void clear_armable(); + bool armable() const; + void set_armable(bool value); + +private: + bool _internal_armable() const; + void _internal_set_armable(bool value); + +public: + // bool force_armable = 2; + void clear_force_armable(); + bool force_armable() const; + void set_force_armable(bool value); + +private: + bool _internal_force_armable() const; + void _internal_set_force_armable(bool value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetArmableRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetArmableRequest& from_msg); + bool armable_; + bool force_armable_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class SetAllowTakeoffRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowTakeoffRequest) */ { +public: + inline SetAllowTakeoffRequest() : SetAllowTakeoffRequest(nullptr) {} + ~SetAllowTakeoffRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetAllowTakeoffRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetAllowTakeoffRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetAllowTakeoffRequest(::google::protobuf::internal::ConstantInitialized); + + inline SetAllowTakeoffRequest(const SetAllowTakeoffRequest& from) : + SetAllowTakeoffRequest(nullptr, from) + {} + inline SetAllowTakeoffRequest(SetAllowTakeoffRequest&& from) noexcept : + SetAllowTakeoffRequest(nullptr, std::move(from)) + {} + inline SetAllowTakeoffRequest& operator=(const SetAllowTakeoffRequest& from) + { + CopyFrom(from); + return *this; + } + inline SetAllowTakeoffRequest& operator=(SetAllowTakeoffRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetAllowTakeoffRequest& default_instance() { return *internal_default_instance(); } + static inline const SetAllowTakeoffRequest* internal_default_instance() + { + return reinterpret_cast( + &_SetAllowTakeoffRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(SetAllowTakeoffRequest& a, SetAllowTakeoffRequest& b) { a.Swap(&b); } + inline void Swap(SetAllowTakeoffRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetAllowTakeoffRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetAllowTakeoffRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetAllowTakeoffRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetAllowTakeoffRequest& from) + { + SetAllowTakeoffRequest::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetAllowTakeoffRequest* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.SetAllowTakeoffRequest"; + } + +protected: + explicit SetAllowTakeoffRequest(::google::protobuf::Arena* arena); + SetAllowTakeoffRequest(::google::protobuf::Arena* arena, const SetAllowTakeoffRequest& from); + SetAllowTakeoffRequest(::google::protobuf::Arena* arena, SetAllowTakeoffRequest&& from) noexcept + : + SetAllowTakeoffRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kAllowTakeoffFieldNumber = 1, + }; + // bool allow_takeoff = 1; + void clear_allow_takeoff(); + bool allow_takeoff() const; + void set_allow_takeoff(bool value); + +private: + bool _internal_allow_takeoff() const; + void _internal_set_allow_takeoff(bool value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowTakeoffRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetAllowTakeoffRequest& from_msg); + bool allow_takeoff_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class GetAllowableFlightModesRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) + */ +{ +public: + inline GetAllowableFlightModesRequest() : GetAllowableFlightModesRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetAllowableFlightModesRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetAllowableFlightModesRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + GetAllowableFlightModesRequest(::google::protobuf::internal::ConstantInitialized); + + inline GetAllowableFlightModesRequest(const GetAllowableFlightModesRequest& from) : + GetAllowableFlightModesRequest(nullptr, from) + {} + inline GetAllowableFlightModesRequest(GetAllowableFlightModesRequest&& from) noexcept : + GetAllowableFlightModesRequest(nullptr, std::move(from)) + {} + inline GetAllowableFlightModesRequest& operator=(const GetAllowableFlightModesRequest& from) + { + CopyFrom(from); + return *this; + } + inline GetAllowableFlightModesRequest& operator=(GetAllowableFlightModesRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const GetAllowableFlightModesRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const GetAllowableFlightModesRequest* internal_default_instance() + { + return reinterpret_cast( + &_GetAllowableFlightModesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(GetAllowableFlightModesRequest& a, GetAllowableFlightModesRequest& b) + { + a.Swap(&b); + } + inline void Swap(GetAllowableFlightModesRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetAllowableFlightModesRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetAllowableFlightModesRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + GetAllowableFlightModesRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GetAllowableFlightModesRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GetAllowableFlightModesRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.GetAllowableFlightModesRequest"; + } + +protected: + explicit GetAllowableFlightModesRequest(::google::protobuf::Arena* arena); + GetAllowableFlightModesRequest( + ::google::protobuf::Arena* arena, const GetAllowableFlightModesRequest& from); + GetAllowableFlightModesRequest( + ::google::protobuf::Arena* arena, GetAllowableFlightModesRequest&& from) noexcept : + GetAllowableFlightModesRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const GetAllowableFlightModesRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class ArmDisarm final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ArmDisarm) */ { +public: + inline ArmDisarm() : ArmDisarm(nullptr) {} + ~ArmDisarm() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmDisarm* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmDisarm)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ArmDisarm(::google::protobuf::internal::ConstantInitialized); + + inline ArmDisarm(const ArmDisarm& from) : ArmDisarm(nullptr, from) {} + inline ArmDisarm(ArmDisarm&& from) noexcept : ArmDisarm(nullptr, std::move(from)) {} + inline ArmDisarm& operator=(const ArmDisarm& from) + { + CopyFrom(from); + return *this; + } + inline ArmDisarm& operator=(ArmDisarm&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ArmDisarm& default_instance() { return *internal_default_instance(); } + static inline const ArmDisarm* internal_default_instance() + { + return reinterpret_cast(&_ArmDisarm_default_instance_); + } + static constexpr int kIndexInFileMessages = 25; + friend void swap(ArmDisarm& a, ArmDisarm& b) { a.Swap(&b); } + inline void Swap(ArmDisarm* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ArmDisarm* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ArmDisarm* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ArmDisarm& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ArmDisarm& from) { ArmDisarm::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ArmDisarm* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.ArmDisarm"; } + +protected: + explicit ArmDisarm(::google::protobuf::Arena* arena); + ArmDisarm(::google::protobuf::Arena* arena, const ArmDisarm& from); + ArmDisarm(::google::protobuf::Arena* arena, ArmDisarm&& from) noexcept : ArmDisarm(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kArmFieldNumber = 1, + kForceFieldNumber = 2, + }; + // bool arm = 1; + void clear_arm(); + bool arm() const; + void set_arm(bool value); + +private: + bool _internal_arm() const; + void _internal_set_arm(bool value); + +public: + // bool force = 2; + void clear_force(); + bool force() const; + void set_force(bool value); + +private: + bool _internal_force() const; + void _internal_set_force(bool value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ArmDisarm) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ArmDisarm& from_msg); + bool arm_; + bool force_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class AllowableFlightModes final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.AllowableFlightModes) */ { +public: + inline AllowableFlightModes() : AllowableFlightModes(nullptr) {} + ~AllowableFlightModes() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AllowableFlightModes* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AllowableFlightModes)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + AllowableFlightModes(::google::protobuf::internal::ConstantInitialized); + + inline AllowableFlightModes(const AllowableFlightModes& from) : + AllowableFlightModes(nullptr, from) + {} + inline AllowableFlightModes(AllowableFlightModes&& from) noexcept : + AllowableFlightModes(nullptr, std::move(from)) + {} + inline AllowableFlightModes& operator=(const AllowableFlightModes& from) + { + CopyFrom(from); + return *this; + } + inline AllowableFlightModes& operator=(AllowableFlightModes&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const AllowableFlightModes& default_instance() { return *internal_default_instance(); } + static inline const AllowableFlightModes* internal_default_instance() + { + return reinterpret_cast( + &_AllowableFlightModes_default_instance_); + } + static constexpr int kIndexInFileMessages = 24; + friend void swap(AllowableFlightModes& a, AllowableFlightModes& b) { a.Swap(&b); } + inline void Swap(AllowableFlightModes* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AllowableFlightModes* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AllowableFlightModes* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const AllowableFlightModes& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const AllowableFlightModes& from) + { + AllowableFlightModes::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(AllowableFlightModes* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.AllowableFlightModes"; + } + +protected: + explicit AllowableFlightModes(::google::protobuf::Arena* arena); + AllowableFlightModes(::google::protobuf::Arena* arena, const AllowableFlightModes& from); + AllowableFlightModes(::google::protobuf::Arena* arena, AllowableFlightModes&& from) noexcept : + AllowableFlightModes(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kCanAutoModeFieldNumber = 1, + kCanGuidedModeFieldNumber = 2, + kCanStabilizeModeFieldNumber = 3, + }; + // bool can_auto_mode = 1; + void clear_can_auto_mode(); + bool can_auto_mode() const; + void set_can_auto_mode(bool value); + +private: + bool _internal_can_auto_mode() const; + void _internal_set_can_auto_mode(bool value); + +public: + // bool can_guided_mode = 2; + void clear_can_guided_mode(); + bool can_guided_mode() const; + void set_can_guided_mode(bool value); + +private: + bool _internal_can_guided_mode() const; + void _internal_set_can_guided_mode(bool value); + +public: + // bool can_stabilize_mode = 3; + void clear_can_stabilize_mode(); + bool can_stabilize_mode() const; + void set_can_stabilize_mode(bool value); + +private: + bool _internal_can_stabilize_mode() const; + void _internal_set_can_stabilize_mode(bool value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.AllowableFlightModes) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const AllowableFlightModes& from_msg); + bool can_auto_mode_; + bool can_guided_mode_; + bool can_stabilize_mode_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class ActionServerResult final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ActionServerResult) */ { +public: + inline ActionServerResult() : ActionServerResult(nullptr) {} + ~ActionServerResult() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ActionServerResult* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ActionServerResult)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + ActionServerResult(::google::protobuf::internal::ConstantInitialized); + + inline ActionServerResult(const ActionServerResult& from) : ActionServerResult(nullptr, from) {} + inline ActionServerResult(ActionServerResult&& from) noexcept : + ActionServerResult(nullptr, std::move(from)) + {} + inline ActionServerResult& operator=(const ActionServerResult& from) + { + CopyFrom(from); + return *this; + } + inline ActionServerResult& operator=(ActionServerResult&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ActionServerResult& default_instance() { return *internal_default_instance(); } + static inline const ActionServerResult* internal_default_instance() + { + return reinterpret_cast(&_ActionServerResult_default_instance_); + } + static constexpr int kIndexInFileMessages = 26; + friend void swap(ActionServerResult& a, ActionServerResult& b) { a.Swap(&b); } + inline void Swap(ActionServerResult* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ActionServerResult* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ActionServerResult* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ActionServerResult& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ActionServerResult& from) { ActionServerResult::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ActionServerResult* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.ActionServerResult"; + } + +protected: + explicit ActionServerResult(::google::protobuf::Arena* arena); + ActionServerResult(::google::protobuf::Arena* arena, const ActionServerResult& from); + ActionServerResult(::google::protobuf::Arena* arena, ActionServerResult&& from) noexcept : + ActionServerResult(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + using Result = ActionServerResult_Result; + static constexpr Result RESULT_UNKNOWN = ActionServerResult_Result_RESULT_UNKNOWN; + static constexpr Result RESULT_SUCCESS = ActionServerResult_Result_RESULT_SUCCESS; + static constexpr Result RESULT_NO_SYSTEM = ActionServerResult_Result_RESULT_NO_SYSTEM; + static constexpr Result RESULT_CONNECTION_ERROR = + ActionServerResult_Result_RESULT_CONNECTION_ERROR; + static constexpr Result RESULT_BUSY = ActionServerResult_Result_RESULT_BUSY; + static constexpr Result RESULT_COMMAND_DENIED = ActionServerResult_Result_RESULT_COMMAND_DENIED; + static constexpr Result RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN = + ActionServerResult_Result_RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN; + static constexpr Result RESULT_COMMAND_DENIED_NOT_LANDED = + ActionServerResult_Result_RESULT_COMMAND_DENIED_NOT_LANDED; + static constexpr Result RESULT_TIMEOUT = ActionServerResult_Result_RESULT_TIMEOUT; + static constexpr Result RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN = + ActionServerResult_Result_RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN; + static constexpr Result RESULT_NO_VTOL_TRANSITION_SUPPORT = + ActionServerResult_Result_RESULT_NO_VTOL_TRANSITION_SUPPORT; + static constexpr Result RESULT_PARAMETER_ERROR = + ActionServerResult_Result_RESULT_PARAMETER_ERROR; + static constexpr Result RESULT_NEXT = ActionServerResult_Result_RESULT_NEXT; + static inline bool Result_IsValid(int value) + { + return ActionServerResult_Result_IsValid(value); + } + static constexpr Result Result_MIN = ActionServerResult_Result_Result_MIN; + static constexpr Result Result_MAX = ActionServerResult_Result_Result_MAX; + static constexpr int Result_ARRAYSIZE = ActionServerResult_Result_Result_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Result_descriptor() + { + return ActionServerResult_Result_descriptor(); + } + template static inline const std::string& Result_Name(T value) + { + return ActionServerResult_Result_Name(value); + } + static inline bool Result_Parse(absl::string_view name, Result* value) + { + return ActionServerResult_Result_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kResultStrFieldNumber = 2, + kResultFieldNumber = 1, + }; + // string result_str = 2; + void clear_result_str(); + const std::string& result_str() const; + template + void set_result_str(Arg_&& arg, Args_... args); + std::string* mutable_result_str(); + PROTOBUF_NODISCARD std::string* release_result_str(); + void set_allocated_result_str(std::string* value); + +private: + const std::string& _internal_result_str() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str(const std::string& value); + std::string* _internal_mutable_result_str(); + +public: + // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; + void clear_result(); + ::mavsdk::rpc::action_server::ActionServerResult_Result result() const; + void set_result(::mavsdk::rpc::action_server::ActionServerResult_Result value); + +private: + ::mavsdk::rpc::action_server::ActionServerResult_Result _internal_result() const; + void _internal_set_result(::mavsdk::rpc::action_server::ActionServerResult_Result value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ActionServerResult) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 62, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ActionServerResult& from_msg); + ::google::protobuf::internal::ArenaStringPtr result_str_; + int result_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class TerminateResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.TerminateResponse) */ { +public: + inline TerminateResponse() : TerminateResponse(nullptr) {} + ~TerminateResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TerminateResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TerminateResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + TerminateResponse(::google::protobuf::internal::ConstantInitialized); + + inline TerminateResponse(const TerminateResponse& from) : TerminateResponse(nullptr, from) {} + inline TerminateResponse(TerminateResponse&& from) noexcept : + TerminateResponse(nullptr, std::move(from)) + {} + inline TerminateResponse& operator=(const TerminateResponse& from) + { + CopyFrom(from); + return *this; + } + inline TerminateResponse& operator=(TerminateResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const TerminateResponse& default_instance() { return *internal_default_instance(); } + static inline const TerminateResponse* internal_default_instance() + { + return reinterpret_cast(&_TerminateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 18; + friend void swap(TerminateResponse& a, TerminateResponse& b) { a.Swap(&b); } + inline void Swap(TerminateResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TerminateResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TerminateResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const TerminateResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const TerminateResponse& from) { TerminateResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(TerminateResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.TerminateResponse"; + } + +protected: + explicit TerminateResponse(::google::protobuf::Arena* arena); + TerminateResponse(::google::protobuf::Arena* arena, const TerminateResponse& from); + TerminateResponse(::google::protobuf::Arena* arena, TerminateResponse&& from) noexcept : + TerminateResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionServerResultFieldNumber = 1, + kTerminateFieldNumber = 2, + }; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + bool has_action_server_result() const; + void clear_action_server_result(); + const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* + release_action_server_result(); + ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); + void + set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); + void unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value); + ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); + +private: + const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; + ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); + +public: + // bool terminate = 2; + void clear_terminate(); + bool terminate() const; + void set_terminate(bool value); + +private: + bool _internal_terminate() const; + void _internal_set_terminate(bool value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.TerminateResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const TerminateResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + bool terminate_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class TakeoffResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.TakeoffResponse) */ { +public: + inline TakeoffResponse() : TakeoffResponse(nullptr) {} + ~TakeoffResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TakeoffResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TakeoffResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR TakeoffResponse(::google::protobuf::internal::ConstantInitialized); + + inline TakeoffResponse(const TakeoffResponse& from) : TakeoffResponse(nullptr, from) {} + inline TakeoffResponse(TakeoffResponse&& from) noexcept : + TakeoffResponse(nullptr, std::move(from)) + {} + inline TakeoffResponse& operator=(const TakeoffResponse& from) + { + CopyFrom(from); + return *this; + } + inline TakeoffResponse& operator=(TakeoffResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const TakeoffResponse& default_instance() { return *internal_default_instance(); } + static inline const TakeoffResponse* internal_default_instance() + { + return reinterpret_cast(&_TakeoffResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 14; + friend void swap(TakeoffResponse& a, TakeoffResponse& b) { a.Swap(&b); } + inline void Swap(TakeoffResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TakeoffResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TakeoffResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const TakeoffResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const TakeoffResponse& from) { TakeoffResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(TakeoffResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.TakeoffResponse"; + } + +protected: + explicit TakeoffResponse(::google::protobuf::Arena* arena); + TakeoffResponse(::google::protobuf::Arena* arena, const TakeoffResponse& from); + TakeoffResponse(::google::protobuf::Arena* arena, TakeoffResponse&& from) noexcept : + TakeoffResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionServerResultFieldNumber = 1, + kTakeoffFieldNumber = 2, + }; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + bool has_action_server_result() const; + void clear_action_server_result(); + const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* + release_action_server_result(); + ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); + void + set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); + void unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value); + ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); + +private: + const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; + ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); + +public: + // bool takeoff = 2; + void clear_takeoff(); + bool takeoff() const; + void set_takeoff(bool value); + +private: + bool _internal_takeoff() const; + void _internal_set_takeoff(bool value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.TakeoffResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const TakeoffResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + bool takeoff_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class ShutdownResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ShutdownResponse) */ { +public: + inline ShutdownResponse() : ShutdownResponse(nullptr) {} + ~ShutdownResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ShutdownResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ShutdownResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ShutdownResponse(::google::protobuf::internal::ConstantInitialized); + + inline ShutdownResponse(const ShutdownResponse& from) : ShutdownResponse(nullptr, from) {} + inline ShutdownResponse(ShutdownResponse&& from) noexcept : + ShutdownResponse(nullptr, std::move(from)) + {} + inline ShutdownResponse& operator=(const ShutdownResponse& from) + { + CopyFrom(from); + return *this; + } + inline ShutdownResponse& operator=(ShutdownResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ShutdownResponse& default_instance() { return *internal_default_instance(); } + static inline const ShutdownResponse* internal_default_instance() + { + return reinterpret_cast(&_ShutdownResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 17; + friend void swap(ShutdownResponse& a, ShutdownResponse& b) { a.Swap(&b); } + inline void Swap(ShutdownResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ShutdownResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ShutdownResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ShutdownResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ShutdownResponse& from) { ShutdownResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ShutdownResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.ShutdownResponse"; + } + +protected: + explicit ShutdownResponse(::google::protobuf::Arena* arena); + ShutdownResponse(::google::protobuf::Arena* arena, const ShutdownResponse& from); + ShutdownResponse(::google::protobuf::Arena* arena, ShutdownResponse&& from) noexcept : + ShutdownResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionServerResultFieldNumber = 1, + kShutdownFieldNumber = 2, + }; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + bool has_action_server_result() const; + void clear_action_server_result(); + const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* + release_action_server_result(); + ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); + void + set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); + void unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value); + ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); + +private: + const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; + ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); + +public: + // bool shutdown = 2; + void clear_shutdown(); + bool shutdown() const; + void set_shutdown(bool value); + +private: + bool _internal_shutdown() const; + void _internal_set_shutdown(bool value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ShutdownResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ShutdownResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + bool shutdown_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class SetDisarmableResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetDisarmableResponse) */ { +public: + inline SetDisarmableResponse() : SetDisarmableResponse(nullptr) {} + ~SetDisarmableResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetDisarmableResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetDisarmableResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetDisarmableResponse(::google::protobuf::internal::ConstantInitialized); + + inline SetDisarmableResponse(const SetDisarmableResponse& from) : + SetDisarmableResponse(nullptr, from) + {} + inline SetDisarmableResponse(SetDisarmableResponse&& from) noexcept : + SetDisarmableResponse(nullptr, std::move(from)) + {} + inline SetDisarmableResponse& operator=(const SetDisarmableResponse& from) + { + CopyFrom(from); + return *this; + } + inline SetDisarmableResponse& operator=(SetDisarmableResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetDisarmableResponse& default_instance() { return *internal_default_instance(); } + static inline const SetDisarmableResponse* internal_default_instance() + { + return reinterpret_cast( + &_SetDisarmableResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 20; + friend void swap(SetDisarmableResponse& a, SetDisarmableResponse& b) { a.Swap(&b); } + inline void Swap(SetDisarmableResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetDisarmableResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetDisarmableResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetDisarmableResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetDisarmableResponse& from) + { + SetDisarmableResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetDisarmableResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.SetDisarmableResponse"; + } + +protected: + explicit SetDisarmableResponse(::google::protobuf::Arena* arena); + SetDisarmableResponse(::google::protobuf::Arena* arena, const SetDisarmableResponse& from); + SetDisarmableResponse(::google::protobuf::Arena* arena, SetDisarmableResponse&& from) noexcept : + SetDisarmableResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionServerResultFieldNumber = 1, + }; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + bool has_action_server_result() const; + void clear_action_server_result(); + const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* + release_action_server_result(); + ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); + void + set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); + void unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value); + ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); + +private: + const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; + ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetDisarmableResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetDisarmableResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class SetArmableResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetArmableResponse) */ { +public: + inline SetArmableResponse() : SetArmableResponse(nullptr) {} + ~SetArmableResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetArmableResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetArmableResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetArmableResponse(::google::protobuf::internal::ConstantInitialized); + + inline SetArmableResponse(const SetArmableResponse& from) : SetArmableResponse(nullptr, from) {} + inline SetArmableResponse(SetArmableResponse&& from) noexcept : + SetArmableResponse(nullptr, std::move(from)) + {} + inline SetArmableResponse& operator=(const SetArmableResponse& from) + { + CopyFrom(from); + return *this; + } + inline SetArmableResponse& operator=(SetArmableResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetArmableResponse& default_instance() { return *internal_default_instance(); } + static inline const SetArmableResponse* internal_default_instance() + { + return reinterpret_cast(&_SetArmableResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 19; + friend void swap(SetArmableResponse& a, SetArmableResponse& b) { a.Swap(&b); } + inline void Swap(SetArmableResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetArmableResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetArmableResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetArmableResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetArmableResponse& from) { SetArmableResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetArmableResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.SetArmableResponse"; + } + +protected: + explicit SetArmableResponse(::google::protobuf::Arena* arena); + SetArmableResponse(::google::protobuf::Arena* arena, const SetArmableResponse& from); + SetArmableResponse(::google::protobuf::Arena* arena, SetArmableResponse&& from) noexcept : + SetArmableResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionServerResultFieldNumber = 1, + }; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + bool has_action_server_result() const; + void clear_action_server_result(); + const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* + release_action_server_result(); + ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); + void + set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); + void unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value); + ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); + +private: + const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; + ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetArmableResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetArmableResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class SetAllowableFlightModesResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + */ +{ +public: + inline SetAllowableFlightModesResponse() : SetAllowableFlightModesResponse(nullptr) {} + ~SetAllowableFlightModesResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetAllowableFlightModesResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetAllowableFlightModesResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetAllowableFlightModesResponse(::google::protobuf::internal::ConstantInitialized); + + inline SetAllowableFlightModesResponse(const SetAllowableFlightModesResponse& from) : + SetAllowableFlightModesResponse(nullptr, from) + {} + inline SetAllowableFlightModesResponse(SetAllowableFlightModesResponse&& from) noexcept : + SetAllowableFlightModesResponse(nullptr, std::move(from)) + {} + inline SetAllowableFlightModesResponse& operator=(const SetAllowableFlightModesResponse& from) + { + CopyFrom(from); + return *this; + } + inline SetAllowableFlightModesResponse& + operator=(SetAllowableFlightModesResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetAllowableFlightModesResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const SetAllowableFlightModesResponse* internal_default_instance() + { + return reinterpret_cast( + &_SetAllowableFlightModesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 21; + friend void swap(SetAllowableFlightModesResponse& a, SetAllowableFlightModesResponse& b) + { + a.Swap(&b); + } + inline void Swap(SetAllowableFlightModesResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetAllowableFlightModesResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetAllowableFlightModesResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct( + arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetAllowableFlightModesResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetAllowableFlightModesResponse& from) + { + SetAllowableFlightModesResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetAllowableFlightModesResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.SetAllowableFlightModesResponse"; + } + +protected: + explicit SetAllowableFlightModesResponse(::google::protobuf::Arena* arena); + SetAllowableFlightModesResponse( + ::google::protobuf::Arena* arena, const SetAllowableFlightModesResponse& from); + SetAllowableFlightModesResponse( + ::google::protobuf::Arena* arena, SetAllowableFlightModesResponse&& from) noexcept : + SetAllowableFlightModesResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionServerResultFieldNumber = 1, + }; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + bool has_action_server_result() const; + void clear_action_server_result(); + const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* + release_action_server_result(); + ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); + void + set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); + void unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value); + ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); + +private: + const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; + ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetAllowableFlightModesResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class SetAllowableFlightModesRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) + */ +{ +public: + inline SetAllowableFlightModesRequest() : SetAllowableFlightModesRequest(nullptr) {} + ~SetAllowableFlightModesRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetAllowableFlightModesRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetAllowableFlightModesRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetAllowableFlightModesRequest(::google::protobuf::internal::ConstantInitialized); + + inline SetAllowableFlightModesRequest(const SetAllowableFlightModesRequest& from) : + SetAllowableFlightModesRequest(nullptr, from) + {} + inline SetAllowableFlightModesRequest(SetAllowableFlightModesRequest&& from) noexcept : + SetAllowableFlightModesRequest(nullptr, std::move(from)) + {} + inline SetAllowableFlightModesRequest& operator=(const SetAllowableFlightModesRequest& from) + { + CopyFrom(from); + return *this; + } + inline SetAllowableFlightModesRequest& operator=(SetAllowableFlightModesRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetAllowableFlightModesRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const SetAllowableFlightModesRequest* internal_default_instance() + { + return reinterpret_cast( + &_SetAllowableFlightModesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(SetAllowableFlightModesRequest& a, SetAllowableFlightModesRequest& b) + { + a.Swap(&b); + } + inline void Swap(SetAllowableFlightModesRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetAllowableFlightModesRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetAllowableFlightModesRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetAllowableFlightModesRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetAllowableFlightModesRequest& from) + { + SetAllowableFlightModesRequest::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetAllowableFlightModesRequest* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.SetAllowableFlightModesRequest"; + } + +protected: + explicit SetAllowableFlightModesRequest(::google::protobuf::Arena* arena); + SetAllowableFlightModesRequest( + ::google::protobuf::Arena* arena, const SetAllowableFlightModesRequest& from); + SetAllowableFlightModesRequest( + ::google::protobuf::Arena* arena, SetAllowableFlightModesRequest&& from) noexcept : + SetAllowableFlightModesRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kFlightModesFieldNumber = 1, + }; + // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; + bool has_flight_modes() const; + void clear_flight_modes(); + const ::mavsdk::rpc::action_server::AllowableFlightModes& flight_modes() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::AllowableFlightModes* release_flight_modes(); + ::mavsdk::rpc::action_server::AllowableFlightModes* mutable_flight_modes(); + void set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* value); + void unsafe_arena_set_allocated_flight_modes( + ::mavsdk::rpc::action_server::AllowableFlightModes* value); + ::mavsdk::rpc::action_server::AllowableFlightModes* unsafe_arena_release_flight_modes(); + +private: + const ::mavsdk::rpc::action_server::AllowableFlightModes& _internal_flight_modes() const; + ::mavsdk::rpc::action_server::AllowableFlightModes* _internal_mutable_flight_modes(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetAllowableFlightModesRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class SetAllowTakeoffResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowTakeoffResponse) */ { +public: + inline SetAllowTakeoffResponse() : SetAllowTakeoffResponse(nullptr) {} + ~SetAllowTakeoffResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetAllowTakeoffResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetAllowTakeoffResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SetAllowTakeoffResponse(::google::protobuf::internal::ConstantInitialized); + + inline SetAllowTakeoffResponse(const SetAllowTakeoffResponse& from) : + SetAllowTakeoffResponse(nullptr, from) + {} + inline SetAllowTakeoffResponse(SetAllowTakeoffResponse&& from) noexcept : + SetAllowTakeoffResponse(nullptr, std::move(from)) + {} + inline SetAllowTakeoffResponse& operator=(const SetAllowTakeoffResponse& from) + { + CopyFrom(from); + return *this; + } + inline SetAllowTakeoffResponse& operator=(SetAllowTakeoffResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SetAllowTakeoffResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const SetAllowTakeoffResponse* internal_default_instance() + { + return reinterpret_cast( + &_SetAllowTakeoffResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 22; + friend void swap(SetAllowTakeoffResponse& a, SetAllowTakeoffResponse& b) { a.Swap(&b); } + inline void Swap(SetAllowTakeoffResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SetAllowTakeoffResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetAllowTakeoffResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetAllowTakeoffResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SetAllowTakeoffResponse& from) + { + SetAllowTakeoffResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SetAllowTakeoffResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.SetAllowTakeoffResponse"; + } + +protected: + explicit SetAllowTakeoffResponse(::google::protobuf::Arena* arena); + SetAllowTakeoffResponse(::google::protobuf::Arena* arena, const SetAllowTakeoffResponse& from); + SetAllowTakeoffResponse( + ::google::protobuf::Arena* arena, SetAllowTakeoffResponse&& from) noexcept : + SetAllowTakeoffResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionServerResultFieldNumber = 1, + }; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + bool has_action_server_result() const; + void clear_action_server_result(); + const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* + release_action_server_result(); + ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); + void + set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); + void unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value); + ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); + +private: + const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; + ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowTakeoffResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SetAllowTakeoffResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class RebootResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.RebootResponse) */ { +public: + inline RebootResponse() : RebootResponse(nullptr) {} + ~RebootResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(RebootResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(RebootResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR RebootResponse(::google::protobuf::internal::ConstantInitialized); + + inline RebootResponse(const RebootResponse& from) : RebootResponse(nullptr, from) {} + inline RebootResponse(RebootResponse&& from) noexcept : RebootResponse(nullptr, std::move(from)) + {} + inline RebootResponse& operator=(const RebootResponse& from) + { + CopyFrom(from); + return *this; + } + inline RebootResponse& operator=(RebootResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const RebootResponse& default_instance() { return *internal_default_instance(); } + static inline const RebootResponse* internal_default_instance() + { + return reinterpret_cast(&_RebootResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 16; + friend void swap(RebootResponse& a, RebootResponse& b) { a.Swap(&b); } + inline void Swap(RebootResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RebootResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RebootResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const RebootResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const RebootResponse& from) { RebootResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(RebootResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.RebootResponse"; + } + +protected: + explicit RebootResponse(::google::protobuf::Arena* arena); + RebootResponse(::google::protobuf::Arena* arena, const RebootResponse& from); + RebootResponse(::google::protobuf::Arena* arena, RebootResponse&& from) noexcept : + RebootResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionServerResultFieldNumber = 1, + kRebootFieldNumber = 2, + }; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + bool has_action_server_result() const; + void clear_action_server_result(); + const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* + release_action_server_result(); + ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); + void + set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); + void unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value); + ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); + +private: + const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; + ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); + +public: + // bool reboot = 2; + void clear_reboot(); + bool reboot() const; + void set_reboot(bool value); + +private: + bool _internal_reboot() const; + void _internal_set_reboot(bool value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.RebootResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const RebootResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + bool reboot_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class LandResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.LandResponse) */ { +public: + inline LandResponse() : LandResponse(nullptr) {} + ~LandResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(LandResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(LandResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR LandResponse(::google::protobuf::internal::ConstantInitialized); + + inline LandResponse(const LandResponse& from) : LandResponse(nullptr, from) {} + inline LandResponse(LandResponse&& from) noexcept : LandResponse(nullptr, std::move(from)) {} + inline LandResponse& operator=(const LandResponse& from) + { + CopyFrom(from); + return *this; + } + inline LandResponse& operator=(LandResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const LandResponse& default_instance() { return *internal_default_instance(); } + static inline const LandResponse* internal_default_instance() + { + return reinterpret_cast(&_LandResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 15; + friend void swap(LandResponse& a, LandResponse& b) { a.Swap(&b); } + inline void Swap(LandResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LandResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LandResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const LandResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const LandResponse& from) { LandResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(LandResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.LandResponse"; } + +protected: + explicit LandResponse(::google::protobuf::Arena* arena); + LandResponse(::google::protobuf::Arena* arena, const LandResponse& from); + LandResponse(::google::protobuf::Arena* arena, LandResponse&& from) noexcept : + LandResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionServerResultFieldNumber = 1, + kLandFieldNumber = 2, + }; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + bool has_action_server_result() const; + void clear_action_server_result(); + const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* + release_action_server_result(); + ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); + void + set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); + void unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value); + ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); + +private: + const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; + ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); + +public: + // bool land = 2; + void clear_land(); + bool land() const; + void set_land(bool value); + +private: + bool _internal_land() const; + void _internal_set_land(bool value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.LandResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const LandResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + bool land_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class GetAllowableFlightModesResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) + */ +{ +public: + inline GetAllowableFlightModesResponse() : GetAllowableFlightModesResponse(nullptr) {} + ~GetAllowableFlightModesResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetAllowableFlightModesResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetAllowableFlightModesResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + GetAllowableFlightModesResponse(::google::protobuf::internal::ConstantInitialized); + + inline GetAllowableFlightModesResponse(const GetAllowableFlightModesResponse& from) : + GetAllowableFlightModesResponse(nullptr, from) + {} + inline GetAllowableFlightModesResponse(GetAllowableFlightModesResponse&& from) noexcept : + GetAllowableFlightModesResponse(nullptr, std::move(from)) + {} + inline GetAllowableFlightModesResponse& operator=(const GetAllowableFlightModesResponse& from) + { + CopyFrom(from); + return *this; + } + inline GetAllowableFlightModesResponse& + operator=(GetAllowableFlightModesResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const GetAllowableFlightModesResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const GetAllowableFlightModesResponse* internal_default_instance() + { + return reinterpret_cast( + &_GetAllowableFlightModesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 23; + friend void swap(GetAllowableFlightModesResponse& a, GetAllowableFlightModesResponse& b) + { + a.Swap(&b); + } + inline void Swap(GetAllowableFlightModesResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetAllowableFlightModesResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetAllowableFlightModesResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct( + arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetAllowableFlightModesResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GetAllowableFlightModesResponse& from) + { + GetAllowableFlightModesResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetAllowableFlightModesResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.GetAllowableFlightModesResponse"; + } + +protected: + explicit GetAllowableFlightModesResponse(::google::protobuf::Arena* arena); + GetAllowableFlightModesResponse( + ::google::protobuf::Arena* arena, const GetAllowableFlightModesResponse& from); + GetAllowableFlightModesResponse( + ::google::protobuf::Arena* arena, GetAllowableFlightModesResponse&& from) noexcept : + GetAllowableFlightModesResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kFlightModesFieldNumber = 1, + }; + // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; + bool has_flight_modes() const; + void clear_flight_modes(); + const ::mavsdk::rpc::action_server::AllowableFlightModes& flight_modes() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::AllowableFlightModes* release_flight_modes(); + ::mavsdk::rpc::action_server::AllowableFlightModes* mutable_flight_modes(); + void set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* value); + void unsafe_arena_set_allocated_flight_modes( + ::mavsdk::rpc::action_server::AllowableFlightModes* value); + ::mavsdk::rpc::action_server::AllowableFlightModes* unsafe_arena_release_flight_modes(); + +private: + const ::mavsdk::rpc::action_server::AllowableFlightModes& _internal_flight_modes() const; + ::mavsdk::rpc::action_server::AllowableFlightModes* _internal_mutable_flight_modes(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const GetAllowableFlightModesResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class FlightModeChangeResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.FlightModeChangeResponse) */ { +public: + inline FlightModeChangeResponse() : FlightModeChangeResponse(nullptr) {} + ~FlightModeChangeResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(FlightModeChangeResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(FlightModeChangeResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + FlightModeChangeResponse(::google::protobuf::internal::ConstantInitialized); + + inline FlightModeChangeResponse(const FlightModeChangeResponse& from) : + FlightModeChangeResponse(nullptr, from) + {} + inline FlightModeChangeResponse(FlightModeChangeResponse&& from) noexcept : + FlightModeChangeResponse(nullptr, std::move(from)) + {} + inline FlightModeChangeResponse& operator=(const FlightModeChangeResponse& from) + { + CopyFrom(from); + return *this; + } + inline FlightModeChangeResponse& operator=(FlightModeChangeResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const FlightModeChangeResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const FlightModeChangeResponse* internal_default_instance() + { + return reinterpret_cast( + &_FlightModeChangeResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 13; + friend void swap(FlightModeChangeResponse& a, FlightModeChangeResponse& b) { a.Swap(&b); } + inline void Swap(FlightModeChangeResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(FlightModeChangeResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + FlightModeChangeResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const FlightModeChangeResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const FlightModeChangeResponse& from) + { + FlightModeChangeResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(FlightModeChangeResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.FlightModeChangeResponse"; + } + +protected: + explicit FlightModeChangeResponse(::google::protobuf::Arena* arena); + FlightModeChangeResponse( + ::google::protobuf::Arena* arena, const FlightModeChangeResponse& from); + FlightModeChangeResponse( + ::google::protobuf::Arena* arena, FlightModeChangeResponse&& from) noexcept : + FlightModeChangeResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionServerResultFieldNumber = 1, + kFlightModeFieldNumber = 2, + }; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + bool has_action_server_result() const; + void clear_action_server_result(); + const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* + release_action_server_result(); + ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); + void + set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); + void unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value); + ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); + +private: + const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; + ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); + +public: + // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; + void clear_flight_mode(); + ::mavsdk::rpc::action_server::FlightMode flight_mode() const; + void set_flight_mode(::mavsdk::rpc::action_server::FlightMode value); + +private: + ::mavsdk::rpc::action_server::FlightMode _internal_flight_mode() const; + void _internal_set_flight_mode(::mavsdk::rpc::action_server::FlightMode value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.FlightModeChangeResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const FlightModeChangeResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + int flight_mode_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class ArmDisarmResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ArmDisarmResponse) */ { +public: + inline ArmDisarmResponse() : ArmDisarmResponse(nullptr) {} + ~ArmDisarmResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmDisarmResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmDisarmResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + ArmDisarmResponse(::google::protobuf::internal::ConstantInitialized); + + inline ArmDisarmResponse(const ArmDisarmResponse& from) : ArmDisarmResponse(nullptr, from) {} + inline ArmDisarmResponse(ArmDisarmResponse&& from) noexcept : + ArmDisarmResponse(nullptr, std::move(from)) + {} + inline ArmDisarmResponse& operator=(const ArmDisarmResponse& from) + { + CopyFrom(from); + return *this; + } + inline ArmDisarmResponse& operator=(ArmDisarmResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ArmDisarmResponse& default_instance() { return *internal_default_instance(); } + static inline const ArmDisarmResponse* internal_default_instance() + { + return reinterpret_cast(&_ArmDisarmResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 12; + friend void swap(ArmDisarmResponse& a, ArmDisarmResponse& b) { a.Swap(&b); } + inline void Swap(ArmDisarmResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ArmDisarmResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ArmDisarmResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ArmDisarmResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ArmDisarmResponse& from) { ArmDisarmResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ArmDisarmResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.action_server.ArmDisarmResponse"; + } + +protected: + explicit ArmDisarmResponse(::google::protobuf::Arena* arena); + ArmDisarmResponse(::google::protobuf::Arena* arena, const ArmDisarmResponse& from); + ArmDisarmResponse(::google::protobuf::Arena* arena, ArmDisarmResponse&& from) noexcept : + ArmDisarmResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionServerResultFieldNumber = 1, + kArmFieldNumber = 2, + }; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + bool has_action_server_result() const; + void clear_action_server_result(); + const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* + release_action_server_result(); + ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); + void + set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value); + void unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value); + ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); + +private: + const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; + ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); + +public: + // .mavsdk.rpc.action_server.ArmDisarm arm = 2; + bool has_arm() const; + void clear_arm(); + const ::mavsdk::rpc::action_server::ArmDisarm& arm() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ArmDisarm* release_arm(); + ::mavsdk::rpc::action_server::ArmDisarm* mutable_arm(); + void set_allocated_arm(::mavsdk::rpc::action_server::ArmDisarm* value); + void unsafe_arena_set_allocated_arm(::mavsdk::rpc::action_server::ArmDisarm* value); + ::mavsdk::rpc::action_server::ArmDisarm* unsafe_arena_release_arm(); + +private: + const ::mavsdk::rpc::action_server::ArmDisarm& _internal_arm() const; + ::mavsdk::rpc::action_server::ArmDisarm* _internal_mutable_arm(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ArmDisarmResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 2, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ArmDisarmResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + ::mavsdk::rpc::action_server::ArmDisarm* arm_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; +}; + +// =================================================================== + +// =================================================================== + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// SetAllowTakeoffRequest + +// bool allow_takeoff = 1; +inline void SetAllowTakeoffRequest::clear_allow_takeoff() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.allow_takeoff_ = false; +} +inline bool SetAllowTakeoffRequest::allow_takeoff() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetAllowTakeoffRequest.allow_takeoff) + return _internal_allow_takeoff(); +} +inline void SetAllowTakeoffRequest::set_allow_takeoff(bool value) +{ + _internal_set_allow_takeoff(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.SetAllowTakeoffRequest.allow_takeoff) +} +inline bool SetAllowTakeoffRequest::_internal_allow_takeoff() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.allow_takeoff_; +} +inline void SetAllowTakeoffRequest::_internal_set_allow_takeoff(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.allow_takeoff_ = value; +} + +// ------------------------------------------------------------------- + +// SetArmableRequest + +// bool armable = 1; +inline void SetArmableRequest::clear_armable() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.armable_ = false; +} +inline bool SetArmableRequest::armable() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetArmableRequest.armable) + return _internal_armable(); +} +inline void SetArmableRequest::set_armable(bool value) +{ + _internal_set_armable(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.SetArmableRequest.armable) +} +inline bool SetArmableRequest::_internal_armable() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.armable_; +} +inline void SetArmableRequest::_internal_set_armable(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.armable_ = value; +} + +// bool force_armable = 2; +inline void SetArmableRequest::clear_force_armable() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.force_armable_ = false; +} +inline bool SetArmableRequest::force_armable() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetArmableRequest.force_armable) + return _internal_force_armable(); +} +inline void SetArmableRequest::set_force_armable(bool value) +{ + _internal_set_force_armable(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.SetArmableRequest.force_armable) +} +inline bool SetArmableRequest::_internal_force_armable() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.force_armable_; +} +inline void SetArmableRequest::_internal_set_force_armable(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.force_armable_ = value; +} + +// ------------------------------------------------------------------- + +// SetDisarmableRequest + +// bool disarmable = 1; +inline void SetDisarmableRequest::clear_disarmable() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.disarmable_ = false; +} +inline bool SetDisarmableRequest::disarmable() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetDisarmableRequest.disarmable) + return _internal_disarmable(); +} +inline void SetDisarmableRequest::set_disarmable(bool value) +{ + _internal_set_disarmable(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.SetDisarmableRequest.disarmable) +} +inline bool SetDisarmableRequest::_internal_disarmable() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.disarmable_; +} +inline void SetDisarmableRequest::_internal_set_disarmable(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.disarmable_ = value; +} + +// bool force_disarmable = 2; +inline void SetDisarmableRequest::clear_force_disarmable() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.force_disarmable_ = false; +} +inline bool SetDisarmableRequest::force_disarmable() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetDisarmableRequest.force_disarmable) + return _internal_force_disarmable(); +} +inline void SetDisarmableRequest::set_force_disarmable(bool value) +{ + _internal_set_force_disarmable(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.SetDisarmableRequest.force_disarmable) +} +inline bool SetDisarmableRequest::_internal_force_disarmable() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.force_disarmable_; +} +inline void SetDisarmableRequest::_internal_set_force_disarmable(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.force_disarmable_ = value; +} + +// ------------------------------------------------------------------- + +// SetAllowableFlightModesRequest + +// .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; +inline bool SetAllowableFlightModesRequest::has_flight_modes() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.flight_modes_ != nullptr); + return value; +} +inline void SetAllowableFlightModesRequest::clear_flight_modes() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.flight_modes_ != nullptr) + _impl_.flight_modes_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::mavsdk::rpc::action_server::AllowableFlightModes& +SetAllowableFlightModesRequest::_internal_flight_modes() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action_server::AllowableFlightModes* p = _impl_.flight_modes_; + return p != nullptr ? + *p : + reinterpret_cast( + ::mavsdk::rpc::action_server::_AllowableFlightModes_default_instance_); +} +inline const ::mavsdk::rpc::action_server::AllowableFlightModes& +SetAllowableFlightModesRequest::flight_modes() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) + return _internal_flight_modes(); +} +inline void SetAllowableFlightModesRequest::unsafe_arena_set_allocated_flight_modes( + ::mavsdk::rpc::action_server::AllowableFlightModes* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.flight_modes_); + } + _impl_.flight_modes_ = + reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) +} +inline ::mavsdk::rpc::action_server::AllowableFlightModes* +SetAllowableFlightModesRequest::release_flight_modes() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::AllowableFlightModes* released = _impl_.flight_modes_; + _impl_.flight_modes_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action_server::AllowableFlightModes* +SetAllowableFlightModesRequest::unsafe_arena_release_flight_modes() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::AllowableFlightModes* temp = _impl_.flight_modes_; + _impl_.flight_modes_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action_server::AllowableFlightModes* +SetAllowableFlightModesRequest::_internal_mutable_flight_modes() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.flight_modes_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::action_server::AllowableFlightModes>(GetArena()); + _impl_.flight_modes_ = + reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(p); + } + return _impl_.flight_modes_; +} +inline ::mavsdk::rpc::action_server::AllowableFlightModes* +SetAllowableFlightModesRequest::mutable_flight_modes() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action_server::AllowableFlightModes* _msg = _internal_mutable_flight_modes(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) + return _msg; +} +inline void SetAllowableFlightModesRequest::set_allocated_flight_modes( + ::mavsdk::rpc::action_server::AllowableFlightModes* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.flight_modes_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.flight_modes_ = + reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) +} + +// ------------------------------------------------------------------- + +// GetAllowableFlightModesRequest + +// ------------------------------------------------------------------- + +// SubscribeArmDisarmRequest + +// ------------------------------------------------------------------- + +// SubscribeFlightModeChangeRequest + +// ------------------------------------------------------------------- + +// SubscribeTakeoffRequest + +// ------------------------------------------------------------------- + +// SubscribeLandRequest + +// ------------------------------------------------------------------- + +// SubscribeRebootRequest + +// ------------------------------------------------------------------- + +// SubscribeShutdownRequest + +// ------------------------------------------------------------------- + +// SubscribeTerminateRequest + +// ------------------------------------------------------------------- + +// ArmDisarmResponse + +// .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; +inline bool ArmDisarmResponse::has_action_server_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; +} +inline void ArmDisarmResponse::clear_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ != nullptr) + _impl_.action_server_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +ArmDisarmResponse::_internal_action_server_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +ArmDisarmResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ArmDisarmResponse.action_server_result) + return _internal_action_server_result(); +} +inline void ArmDisarmResponse::unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); + } + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.ArmDisarmResponse.action_server_result) +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +ArmDisarmResponse::release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +ArmDisarmResponse::unsafe_arena_release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ArmDisarmResponse.action_server_result) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +ArmDisarmResponse::_internal_mutable_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); + } + return _impl_.action_server_result_; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +ArmDisarmResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* _msg = + _internal_mutable_action_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.ArmDisarmResponse.action_server_result) + return _msg; +} +inline void ArmDisarmResponse::set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_server_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.ArmDisarmResponse.action_server_result) +} + +// .mavsdk.rpc.action_server.ArmDisarm arm = 2; +inline bool ArmDisarmResponse::has_arm() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.arm_ != nullptr); + return value; +} +inline void ArmDisarmResponse::clear_arm() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.arm_ != nullptr) + _impl_.arm_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline const ::mavsdk::rpc::action_server::ArmDisarm& ArmDisarmResponse::_internal_arm() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action_server::ArmDisarm* p = _impl_.arm_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action_server::_ArmDisarm_default_instance_); +} +inline const ::mavsdk::rpc::action_server::ArmDisarm& +ArmDisarmResponse::arm() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ArmDisarmResponse.arm) + return _internal_arm(); +} +inline void +ArmDisarmResponse::unsafe_arena_set_allocated_arm(::mavsdk::rpc::action_server::ArmDisarm* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.arm_); + } + _impl_.arm_ = reinterpret_cast<::mavsdk::rpc::action_server::ArmDisarm*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.ArmDisarmResponse.arm) +} +inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::release_arm() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::action_server::ArmDisarm* released = _impl_.arm_; + _impl_.arm_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::unsafe_arena_release_arm() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ArmDisarmResponse.arm) + + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::action_server::ArmDisarm* temp = _impl_.arm_; + _impl_.arm_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::_internal_mutable_arm() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.arm_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action_server::ArmDisarm>( + GetArena()); + _impl_.arm_ = reinterpret_cast<::mavsdk::rpc::action_server::ArmDisarm*>(p); + } + return _impl_.arm_; +} +inline ::mavsdk::rpc::action_server::ArmDisarm* +ArmDisarmResponse::mutable_arm() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000002u; + ::mavsdk::rpc::action_server::ArmDisarm* _msg = _internal_mutable_arm(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.ArmDisarmResponse.arm) + return _msg; +} +inline void ArmDisarmResponse::set_allocated_arm(::mavsdk::rpc::action_server::ArmDisarm* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.arm_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - _impl_.arm_ = reinterpret_cast<::mavsdk::rpc::action_server::ArmDisarm*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.ArmDisarmResponse.arm) + _impl_.arm_ = reinterpret_cast<::mavsdk::rpc::action_server::ArmDisarm*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.ArmDisarmResponse.arm) } // ------------------------------------------------------------------- @@ -5409,122 +6354,156 @@ inline void ArmDisarmResponse::set_allocated_arm(::mavsdk::rpc::action_server::A // FlightModeChangeResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool FlightModeChangeResponse::has_action_server_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); - return value; -} -inline void FlightModeChangeResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& FlightModeChangeResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& FlightModeChangeResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.FlightModeChangeResponse.action_server_result) - return _internal_action_server_result(); -} -inline void FlightModeChangeResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); - } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool FlightModeChangeResponse::has_action_server_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; +} +inline void FlightModeChangeResponse::clear_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ != nullptr) + _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.FlightModeChangeResponse.action_server_result) -} -inline ::mavsdk::rpc::action_server::ActionServerResult* FlightModeChangeResponse::release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* FlightModeChangeResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.FlightModeChangeResponse.action_server_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* FlightModeChangeResponse::_internal_mutable_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); - } - return _impl_.action_server_result_; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* FlightModeChangeResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.FlightModeChangeResponse.action_server_result) - return _msg; -} -inline void FlightModeChangeResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +FlightModeChangeResponse::_internal_action_server_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +FlightModeChangeResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.FlightModeChangeResponse.action_server_result) + return _internal_action_server_result(); +} +inline void FlightModeChangeResponse::unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.FlightModeChangeResponse.action_server_result) + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.FlightModeChangeResponse.action_server_result) } +inline ::mavsdk::rpc::action_server::ActionServerResult* +FlightModeChangeResponse::release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); -// .mavsdk.rpc.action_server.FlightMode flight_mode = 2; -inline void FlightModeChangeResponse::clear_flight_mode() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.flight_mode_ = 0; -} -inline ::mavsdk::rpc::action_server::FlightMode FlightModeChangeResponse::flight_mode() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.FlightModeChangeResponse.flight_mode) - return _internal_flight_mode(); + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } -inline void FlightModeChangeResponse::set_flight_mode(::mavsdk::rpc::action_server::FlightMode value) { - _internal_set_flight_mode(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.FlightModeChangeResponse.flight_mode) +inline ::mavsdk::rpc::action_server::ActionServerResult* +FlightModeChangeResponse::unsafe_arena_release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.FlightModeChangeResponse.action_server_result) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +FlightModeChangeResponse::_internal_mutable_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); + } + return _impl_.action_server_result_; } -inline ::mavsdk::rpc::action_server::FlightMode FlightModeChangeResponse::_internal_flight_mode() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::mavsdk::rpc::action_server::FlightMode>(_impl_.flight_mode_); +inline ::mavsdk::rpc::action_server::ActionServerResult* +FlightModeChangeResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* _msg = + _internal_mutable_action_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.FlightModeChangeResponse.action_server_result) + return _msg; +} +inline void FlightModeChangeResponse::set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_server_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.FlightModeChangeResponse.action_server_result) } -inline void FlightModeChangeResponse::_internal_set_flight_mode(::mavsdk::rpc::action_server::FlightMode value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.flight_mode_ = value; + +// .mavsdk.rpc.action_server.FlightMode flight_mode = 2; +inline void FlightModeChangeResponse::clear_flight_mode() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flight_mode_ = 0; +} +inline ::mavsdk::rpc::action_server::FlightMode FlightModeChangeResponse::flight_mode() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.FlightModeChangeResponse.flight_mode) + return _internal_flight_mode(); +} +inline void +FlightModeChangeResponse::set_flight_mode(::mavsdk::rpc::action_server::FlightMode value) +{ + _internal_set_flight_mode(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.FlightModeChangeResponse.flight_mode) +} +inline ::mavsdk::rpc::action_server::FlightMode +FlightModeChangeResponse::_internal_flight_mode() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::mavsdk::rpc::action_server::FlightMode>(_impl_.flight_mode_); +} +inline void +FlightModeChangeResponse::_internal_set_flight_mode(::mavsdk::rpc::action_server::FlightMode value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flight_mode_ = value; } // ------------------------------------------------------------------- @@ -5532,122 +6511,153 @@ inline void FlightModeChangeResponse::_internal_set_flight_mode(::mavsdk::rpc::a // TakeoffResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool TakeoffResponse::has_action_server_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); - return value; -} -inline void TakeoffResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& TakeoffResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& TakeoffResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.TakeoffResponse.action_server_result) - return _internal_action_server_result(); -} -inline void TakeoffResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); - } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool TakeoffResponse::has_action_server_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; +} +inline void TakeoffResponse::clear_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ != nullptr) + _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.TakeoffResponse.action_server_result) -} -inline ::mavsdk::rpc::action_server::ActionServerResult* TakeoffResponse::release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* TakeoffResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.TakeoffResponse.action_server_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* TakeoffResponse::_internal_mutable_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); - } - return _impl_.action_server_result_; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* TakeoffResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.TakeoffResponse.action_server_result) - return _msg; -} -inline void TakeoffResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +TakeoffResponse::_internal_action_server_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +TakeoffResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.TakeoffResponse.action_server_result) + return _internal_action_server_result(); +} +inline void TakeoffResponse::unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.TakeoffResponse.action_server_result) +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +TakeoffResponse::release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +TakeoffResponse::unsafe_arena_release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.TakeoffResponse.action_server_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +TakeoffResponse::_internal_mutable_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); + } + return _impl_.action_server_result_; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +TakeoffResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* _msg = + _internal_mutable_action_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.TakeoffResponse.action_server_result) + return _msg; +} +inline void TakeoffResponse::set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_server_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.TakeoffResponse.action_server_result) + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.TakeoffResponse.action_server_result) } // bool takeoff = 2; -inline void TakeoffResponse::clear_takeoff() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.takeoff_ = false; +inline void TakeoffResponse::clear_takeoff() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.takeoff_ = false; } -inline bool TakeoffResponse::takeoff() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.TakeoffResponse.takeoff) - return _internal_takeoff(); +inline bool TakeoffResponse::takeoff() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.TakeoffResponse.takeoff) + return _internal_takeoff(); } -inline void TakeoffResponse::set_takeoff(bool value) { - _internal_set_takeoff(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.TakeoffResponse.takeoff) +inline void TakeoffResponse::set_takeoff(bool value) +{ + _internal_set_takeoff(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.TakeoffResponse.takeoff) } -inline bool TakeoffResponse::_internal_takeoff() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.takeoff_; +inline bool TakeoffResponse::_internal_takeoff() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.takeoff_; } -inline void TakeoffResponse::_internal_set_takeoff(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.takeoff_ = value; +inline void TakeoffResponse::_internal_set_takeoff(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.takeoff_ = value; } // ------------------------------------------------------------------- @@ -5655,122 +6665,153 @@ inline void TakeoffResponse::_internal_set_takeoff(bool value) { // LandResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool LandResponse::has_action_server_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); - return value; -} -inline void LandResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& LandResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& LandResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.LandResponse.action_server_result) - return _internal_action_server_result(); -} -inline void LandResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); - } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool LandResponse::has_action_server_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; +} +inline void LandResponse::clear_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ != nullptr) + _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.LandResponse.action_server_result) -} -inline ::mavsdk::rpc::action_server::ActionServerResult* LandResponse::release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* LandResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.LandResponse.action_server_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* LandResponse::_internal_mutable_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); - } - return _impl_.action_server_result_; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* LandResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.LandResponse.action_server_result) - return _msg; -} -inline void LandResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +LandResponse::_internal_action_server_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +LandResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.LandResponse.action_server_result) + return _internal_action_server_result(); +} +inline void LandResponse::unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.LandResponse.action_server_result) +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +LandResponse::release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +LandResponse::unsafe_arena_release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.LandResponse.action_server_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +LandResponse::_internal_mutable_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); + } + return _impl_.action_server_result_; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +LandResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* _msg = + _internal_mutable_action_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.LandResponse.action_server_result) + return _msg; +} +inline void LandResponse::set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_server_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.LandResponse.action_server_result) + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.LandResponse.action_server_result) } // bool land = 2; -inline void LandResponse::clear_land() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.land_ = false; +inline void LandResponse::clear_land() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.land_ = false; } -inline bool LandResponse::land() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.LandResponse.land) - return _internal_land(); +inline bool LandResponse::land() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.LandResponse.land) + return _internal_land(); } -inline void LandResponse::set_land(bool value) { - _internal_set_land(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.LandResponse.land) +inline void LandResponse::set_land(bool value) +{ + _internal_set_land(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.LandResponse.land) } -inline bool LandResponse::_internal_land() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.land_; +inline bool LandResponse::_internal_land() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.land_; } -inline void LandResponse::_internal_set_land(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.land_ = value; +inline void LandResponse::_internal_set_land(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.land_ = value; } // ------------------------------------------------------------------- @@ -5778,122 +6819,153 @@ inline void LandResponse::_internal_set_land(bool value) { // RebootResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool RebootResponse::has_action_server_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); - return value; -} -inline void RebootResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& RebootResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& RebootResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.RebootResponse.action_server_result) - return _internal_action_server_result(); -} -inline void RebootResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); - } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool RebootResponse::has_action_server_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; +} +inline void RebootResponse::clear_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ != nullptr) + _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.RebootResponse.action_server_result) -} -inline ::mavsdk::rpc::action_server::ActionServerResult* RebootResponse::release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* RebootResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.RebootResponse.action_server_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* RebootResponse::_internal_mutable_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); - } - return _impl_.action_server_result_; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* RebootResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.RebootResponse.action_server_result) - return _msg; -} -inline void RebootResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +RebootResponse::_internal_action_server_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +RebootResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.RebootResponse.action_server_result) + return _internal_action_server_result(); +} +inline void RebootResponse::unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.RebootResponse.action_server_result) +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +RebootResponse::release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +RebootResponse::unsafe_arena_release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.RebootResponse.action_server_result) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +RebootResponse::_internal_mutable_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); + } + return _impl_.action_server_result_; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +RebootResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* _msg = + _internal_mutable_action_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.RebootResponse.action_server_result) + return _msg; +} +inline void RebootResponse::set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_server_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.RebootResponse.action_server_result) + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.RebootResponse.action_server_result) } // bool reboot = 2; -inline void RebootResponse::clear_reboot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reboot_ = false; +inline void RebootResponse::clear_reboot() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.reboot_ = false; } -inline bool RebootResponse::reboot() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.RebootResponse.reboot) - return _internal_reboot(); +inline bool RebootResponse::reboot() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.RebootResponse.reboot) + return _internal_reboot(); } -inline void RebootResponse::set_reboot(bool value) { - _internal_set_reboot(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.RebootResponse.reboot) +inline void RebootResponse::set_reboot(bool value) +{ + _internal_set_reboot(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.RebootResponse.reboot) } -inline bool RebootResponse::_internal_reboot() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reboot_; +inline bool RebootResponse::_internal_reboot() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.reboot_; } -inline void RebootResponse::_internal_set_reboot(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.reboot_ = value; +inline void RebootResponse::_internal_set_reboot(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.reboot_ = value; } // ------------------------------------------------------------------- @@ -5901,122 +6973,153 @@ inline void RebootResponse::_internal_set_reboot(bool value) { // ShutdownResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool ShutdownResponse::has_action_server_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); - return value; -} -inline void ShutdownResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& ShutdownResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& ShutdownResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ShutdownResponse.action_server_result) - return _internal_action_server_result(); -} -inline void ShutdownResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); - } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool ShutdownResponse::has_action_server_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; +} +inline void ShutdownResponse::clear_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ != nullptr) + _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.ShutdownResponse.action_server_result) -} -inline ::mavsdk::rpc::action_server::ActionServerResult* ShutdownResponse::release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* ShutdownResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ShutdownResponse.action_server_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* ShutdownResponse::_internal_mutable_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); - } - return _impl_.action_server_result_; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* ShutdownResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.ShutdownResponse.action_server_result) - return _msg; -} -inline void ShutdownResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +ShutdownResponse::_internal_action_server_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +ShutdownResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ShutdownResponse.action_server_result) + return _internal_action_server_result(); +} +inline void ShutdownResponse::unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.ShutdownResponse.action_server_result) +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +ShutdownResponse::release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +ShutdownResponse::unsafe_arena_release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ShutdownResponse.action_server_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +ShutdownResponse::_internal_mutable_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); + } + return _impl_.action_server_result_; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +ShutdownResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* _msg = + _internal_mutable_action_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.ShutdownResponse.action_server_result) + return _msg; +} +inline void ShutdownResponse::set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_server_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.ShutdownResponse.action_server_result) + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.ShutdownResponse.action_server_result) } // bool shutdown = 2; -inline void ShutdownResponse::clear_shutdown() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.shutdown_ = false; +inline void ShutdownResponse::clear_shutdown() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.shutdown_ = false; } -inline bool ShutdownResponse::shutdown() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ShutdownResponse.shutdown) - return _internal_shutdown(); +inline bool ShutdownResponse::shutdown() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ShutdownResponse.shutdown) + return _internal_shutdown(); } -inline void ShutdownResponse::set_shutdown(bool value) { - _internal_set_shutdown(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ShutdownResponse.shutdown) +inline void ShutdownResponse::set_shutdown(bool value) +{ + _internal_set_shutdown(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ShutdownResponse.shutdown) } -inline bool ShutdownResponse::_internal_shutdown() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.shutdown_; +inline bool ShutdownResponse::_internal_shutdown() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.shutdown_; } -inline void ShutdownResponse::_internal_set_shutdown(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.shutdown_ = value; +inline void ShutdownResponse::_internal_set_shutdown(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.shutdown_ = value; } // ------------------------------------------------------------------- @@ -6024,122 +7127,153 @@ inline void ShutdownResponse::_internal_set_shutdown(bool value) { // TerminateResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool TerminateResponse::has_action_server_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); - return value; -} -inline void TerminateResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& TerminateResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& TerminateResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.TerminateResponse.action_server_result) - return _internal_action_server_result(); -} -inline void TerminateResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); - } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool TerminateResponse::has_action_server_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; +} +inline void TerminateResponse::clear_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ != nullptr) + _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.TerminateResponse.action_server_result) -} -inline ::mavsdk::rpc::action_server::ActionServerResult* TerminateResponse::release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* TerminateResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.TerminateResponse.action_server_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* TerminateResponse::_internal_mutable_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); - } - return _impl_.action_server_result_; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* TerminateResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.TerminateResponse.action_server_result) - return _msg; -} -inline void TerminateResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +TerminateResponse::_internal_action_server_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +TerminateResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.TerminateResponse.action_server_result) + return _internal_action_server_result(); +} +inline void TerminateResponse::unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.TerminateResponse.action_server_result) +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +TerminateResponse::release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +TerminateResponse::unsafe_arena_release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.TerminateResponse.action_server_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +TerminateResponse::_internal_mutable_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); + } + return _impl_.action_server_result_; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +TerminateResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* _msg = + _internal_mutable_action_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.TerminateResponse.action_server_result) + return _msg; +} +inline void TerminateResponse::set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_server_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.TerminateResponse.action_server_result) + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.TerminateResponse.action_server_result) } // bool terminate = 2; -inline void TerminateResponse::clear_terminate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.terminate_ = false; +inline void TerminateResponse::clear_terminate() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.terminate_ = false; } -inline bool TerminateResponse::terminate() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.TerminateResponse.terminate) - return _internal_terminate(); +inline bool TerminateResponse::terminate() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.TerminateResponse.terminate) + return _internal_terminate(); } -inline void TerminateResponse::set_terminate(bool value) { - _internal_set_terminate(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.TerminateResponse.terminate) +inline void TerminateResponse::set_terminate(bool value) +{ + _internal_set_terminate(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.TerminateResponse.terminate) } -inline bool TerminateResponse::_internal_terminate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.terminate_; +inline bool TerminateResponse::_internal_terminate() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.terminate_; } -inline void TerminateResponse::_internal_set_terminate(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.terminate_ = value; +inline void TerminateResponse::_internal_set_terminate(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.terminate_ = value; } // ------------------------------------------------------------------- @@ -6147,99 +7281,126 @@ inline void TerminateResponse::_internal_set_terminate(bool value) { // SetArmableResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool SetArmableResponse::has_action_server_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); - return value; -} -inline void SetArmableResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& SetArmableResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& SetArmableResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetArmableResponse.action_server_result) - return _internal_action_server_result(); -} -inline void SetArmableResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); - } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool SetArmableResponse::has_action_server_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; +} +inline void SetArmableResponse::clear_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ != nullptr) + _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.SetArmableResponse.action_server_result) -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetArmableResponse::release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetArmableResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetArmableResponse.action_server_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetArmableResponse::_internal_mutable_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); - } - return _impl_.action_server_result_; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetArmableResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.SetArmableResponse.action_server_result) - return _msg; -} -inline void SetArmableResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +SetArmableResponse::_internal_action_server_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +SetArmableResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetArmableResponse.action_server_result) + return _internal_action_server_result(); +} +inline void SetArmableResponse::unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.SetArmableResponse.action_server_result) +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetArmableResponse::release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetArmableResponse::unsafe_arena_release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetArmableResponse.action_server_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetArmableResponse::_internal_mutable_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); + } + return _impl_.action_server_result_; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetArmableResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* _msg = + _internal_mutable_action_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.SetArmableResponse.action_server_result) + return _msg; +} +inline void SetArmableResponse::set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_server_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetArmableResponse.action_server_result) + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetArmableResponse.action_server_result) } // ------------------------------------------------------------------- @@ -6247,99 +7408,126 @@ inline void SetArmableResponse::set_allocated_action_server_result(::mavsdk::rpc // SetDisarmableResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool SetDisarmableResponse::has_action_server_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); - return value; -} -inline void SetDisarmableResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& SetDisarmableResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& SetDisarmableResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetDisarmableResponse.action_server_result) - return _internal_action_server_result(); -} -inline void SetDisarmableResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); - } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool SetDisarmableResponse::has_action_server_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; +} +inline void SetDisarmableResponse::clear_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ != nullptr) + _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.SetDisarmableResponse.action_server_result) -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetDisarmableResponse::release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetDisarmableResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetDisarmableResponse.action_server_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetDisarmableResponse::_internal_mutable_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); - } - return _impl_.action_server_result_; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetDisarmableResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.SetDisarmableResponse.action_server_result) - return _msg; -} -inline void SetDisarmableResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +SetDisarmableResponse::_internal_action_server_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +SetDisarmableResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetDisarmableResponse.action_server_result) + return _internal_action_server_result(); +} +inline void SetDisarmableResponse::unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.SetDisarmableResponse.action_server_result) +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetDisarmableResponse::release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetDisarmableResponse::unsafe_arena_release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetDisarmableResponse.action_server_result) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetDisarmableResponse::_internal_mutable_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); + } + return _impl_.action_server_result_; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetDisarmableResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* _msg = + _internal_mutable_action_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.SetDisarmableResponse.action_server_result) + return _msg; +} +inline void SetDisarmableResponse::set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_server_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetDisarmableResponse.action_server_result) + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetDisarmableResponse.action_server_result) } // ------------------------------------------------------------------- @@ -6347,99 +7535,126 @@ inline void SetDisarmableResponse::set_allocated_action_server_result(::mavsdk:: // SetAllowableFlightModesResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool SetAllowableFlightModesResponse::has_action_server_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); - return value; -} -inline void SetAllowableFlightModesResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowableFlightModesResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowableFlightModesResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetAllowableFlightModesResponse.action_server_result) - return _internal_action_server_result(); -} -inline void SetAllowableFlightModesResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); - } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool SetAllowableFlightModesResponse::has_action_server_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; +} +inline void SetAllowableFlightModesResponse::clear_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ != nullptr) + _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.SetAllowableFlightModesResponse.action_server_result) -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowableFlightModesResponse::release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowableFlightModesResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetAllowableFlightModesResponse.action_server_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowableFlightModesResponse::_internal_mutable_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); - } - return _impl_.action_server_result_; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowableFlightModesResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.SetAllowableFlightModesResponse.action_server_result) - return _msg; -} -inline void SetAllowableFlightModesResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +SetAllowableFlightModesResponse::_internal_action_server_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +SetAllowableFlightModesResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetAllowableFlightModesResponse.action_server_result) + return _internal_action_server_result(); +} +inline void SetAllowableFlightModesResponse::unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.SetAllowableFlightModesResponse.action_server_result) +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetAllowableFlightModesResponse::release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetAllowableFlightModesResponse::unsafe_arena_release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetAllowableFlightModesResponse.action_server_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetAllowableFlightModesResponse::_internal_mutable_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); + } + return _impl_.action_server_result_; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetAllowableFlightModesResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* _msg = + _internal_mutable_action_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.SetAllowableFlightModesResponse.action_server_result) + return _msg; +} +inline void SetAllowableFlightModesResponse::set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_server_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetAllowableFlightModesResponse.action_server_result) + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetAllowableFlightModesResponse.action_server_result) } // ------------------------------------------------------------------- @@ -6447,99 +7662,126 @@ inline void SetAllowableFlightModesResponse::set_allocated_action_server_result( // SetAllowTakeoffResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool SetAllowTakeoffResponse::has_action_server_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); - return value; -} -inline void SetAllowTakeoffResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowTakeoffResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); -} -inline const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowTakeoffResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetAllowTakeoffResponse.action_server_result) - return _internal_action_server_result(); -} -inline void SetAllowTakeoffResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); - } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool SetAllowTakeoffResponse::has_action_server_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; +} +inline void SetAllowTakeoffResponse::clear_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ != nullptr) + _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.SetAllowTakeoffResponse.action_server_result) -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowTakeoffResponse::release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowTakeoffResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetAllowTakeoffResponse.action_server_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; - _impl_.action_server_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowTakeoffResponse::_internal_mutable_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); - } - return _impl_.action_server_result_; -} -inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowTakeoffResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.SetAllowTakeoffResponse.action_server_result) - return _msg; -} -inline void SetAllowTakeoffResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +SetAllowTakeoffResponse::_internal_action_server_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); +} +inline const ::mavsdk::rpc::action_server::ActionServerResult& +SetAllowTakeoffResponse::action_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetAllowTakeoffResponse.action_server_result) + return _internal_action_server_result(); +} +inline void SetAllowTakeoffResponse::unsafe_arena_set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.SetAllowTakeoffResponse.action_server_result) +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetAllowTakeoffResponse::release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetAllowTakeoffResponse::unsafe_arena_release_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetAllowTakeoffResponse.action_server_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetAllowTakeoffResponse::_internal_mutable_action_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.action_server_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); + } + return _impl_.action_server_result_; +} +inline ::mavsdk::rpc::action_server::ActionServerResult* +SetAllowTakeoffResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* _msg = + _internal_mutable_action_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.SetAllowTakeoffResponse.action_server_result) + return _msg; +} +inline void SetAllowTakeoffResponse::set_allocated_action_server_result( + ::mavsdk::rpc::action_server::ActionServerResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.action_server_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetAllowTakeoffResponse.action_server_result) + _impl_.action_server_result_ = + reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetAllowTakeoffResponse.action_server_result) } // ------------------------------------------------------------------- @@ -6547,99 +7789,126 @@ inline void SetAllowTakeoffResponse::set_allocated_action_server_result(::mavsdk // GetAllowableFlightModesResponse // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; -inline bool GetAllowableFlightModesResponse::has_flight_modes() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.flight_modes_ != nullptr); - return value; -} -inline void GetAllowableFlightModesResponse::clear_flight_modes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.flight_modes_ != nullptr) _impl_.flight_modes_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action_server::AllowableFlightModes& GetAllowableFlightModesResponse::_internal_flight_modes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action_server::AllowableFlightModes* p = _impl_.flight_modes_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_AllowableFlightModes_default_instance_); -} -inline const ::mavsdk::rpc::action_server::AllowableFlightModes& GetAllowableFlightModesResponse::flight_modes() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.GetAllowableFlightModesResponse.flight_modes) - return _internal_flight_modes(); -} -inline void GetAllowableFlightModesResponse::unsafe_arena_set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.flight_modes_); - } - _impl_.flight_modes_ = reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool GetAllowableFlightModesResponse::has_flight_modes() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.flight_modes_ != nullptr); + return value; +} +inline void GetAllowableFlightModesResponse::clear_flight_modes() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.flight_modes_ != nullptr) + _impl_.flight_modes_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.GetAllowableFlightModesResponse.flight_modes) -} -inline ::mavsdk::rpc::action_server::AllowableFlightModes* GetAllowableFlightModesResponse::release_flight_modes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::AllowableFlightModes* released = _impl_.flight_modes_; - _impl_.flight_modes_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action_server::AllowableFlightModes* GetAllowableFlightModesResponse::unsafe_arena_release_flight_modes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.GetAllowableFlightModesResponse.flight_modes) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action_server::AllowableFlightModes* temp = _impl_.flight_modes_; - _impl_.flight_modes_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action_server::AllowableFlightModes* GetAllowableFlightModesResponse::_internal_mutable_flight_modes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.flight_modes_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::AllowableFlightModes>(GetArena()); - _impl_.flight_modes_ = reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(p); - } - return _impl_.flight_modes_; -} -inline ::mavsdk::rpc::action_server::AllowableFlightModes* GetAllowableFlightModesResponse::mutable_flight_modes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action_server::AllowableFlightModes* _msg = _internal_mutable_flight_modes(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.GetAllowableFlightModesResponse.flight_modes) - return _msg; -} -inline void GetAllowableFlightModesResponse::set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(_impl_.flight_modes_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::action_server::AllowableFlightModes& +GetAllowableFlightModesResponse::_internal_flight_modes() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::action_server::AllowableFlightModes* p = _impl_.flight_modes_; + return p != nullptr ? + *p : + reinterpret_cast( + ::mavsdk::rpc::action_server::_AllowableFlightModes_default_instance_); +} +inline const ::mavsdk::rpc::action_server::AllowableFlightModes& +GetAllowableFlightModesResponse::flight_modes() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.GetAllowableFlightModesResponse.flight_modes) + return _internal_flight_modes(); +} +inline void GetAllowableFlightModesResponse::unsafe_arena_set_allocated_flight_modes( + ::mavsdk::rpc::action_server::AllowableFlightModes* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.flight_modes_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.flight_modes_ = + reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.GetAllowableFlightModesResponse.flight_modes) +} +inline ::mavsdk::rpc::action_server::AllowableFlightModes* +GetAllowableFlightModesResponse::release_flight_modes() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::AllowableFlightModes* released = _impl_.flight_modes_; + _impl_.flight_modes_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::action_server::AllowableFlightModes* +GetAllowableFlightModesResponse::unsafe_arena_release_flight_modes() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.GetAllowableFlightModesResponse.flight_modes) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::action_server::AllowableFlightModes* temp = _impl_.flight_modes_; + _impl_.flight_modes_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::action_server::AllowableFlightModes* +GetAllowableFlightModesResponse::_internal_mutable_flight_modes() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.flight_modes_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::action_server::AllowableFlightModes>(GetArena()); + _impl_.flight_modes_ = + reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(p); + } + return _impl_.flight_modes_; +} +inline ::mavsdk::rpc::action_server::AllowableFlightModes* +GetAllowableFlightModesResponse::mutable_flight_modes() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::action_server::AllowableFlightModes* _msg = _internal_mutable_flight_modes(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.GetAllowableFlightModesResponse.flight_modes) + return _msg; +} +inline void GetAllowableFlightModesResponse::set_allocated_flight_modes( + ::mavsdk::rpc::action_server::AllowableFlightModes* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.flight_modes_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.flight_modes_ = reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.GetAllowableFlightModesResponse.flight_modes) + _impl_.flight_modes_ = + reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.GetAllowableFlightModesResponse.flight_modes) } // ------------------------------------------------------------------- @@ -6647,72 +7916,84 @@ inline void GetAllowableFlightModesResponse::set_allocated_flight_modes(::mavsdk // AllowableFlightModes // bool can_auto_mode = 1; -inline void AllowableFlightModes::clear_can_auto_mode() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.can_auto_mode_ = false; +inline void AllowableFlightModes::clear_can_auto_mode() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.can_auto_mode_ = false; } -inline bool AllowableFlightModes::can_auto_mode() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.AllowableFlightModes.can_auto_mode) - return _internal_can_auto_mode(); +inline bool AllowableFlightModes::can_auto_mode() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.AllowableFlightModes.can_auto_mode) + return _internal_can_auto_mode(); } -inline void AllowableFlightModes::set_can_auto_mode(bool value) { - _internal_set_can_auto_mode(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.AllowableFlightModes.can_auto_mode) +inline void AllowableFlightModes::set_can_auto_mode(bool value) +{ + _internal_set_can_auto_mode(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.AllowableFlightModes.can_auto_mode) } -inline bool AllowableFlightModes::_internal_can_auto_mode() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.can_auto_mode_; +inline bool AllowableFlightModes::_internal_can_auto_mode() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.can_auto_mode_; } -inline void AllowableFlightModes::_internal_set_can_auto_mode(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.can_auto_mode_ = value; +inline void AllowableFlightModes::_internal_set_can_auto_mode(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.can_auto_mode_ = value; } // bool can_guided_mode = 2; -inline void AllowableFlightModes::clear_can_guided_mode() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.can_guided_mode_ = false; +inline void AllowableFlightModes::clear_can_guided_mode() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.can_guided_mode_ = false; } -inline bool AllowableFlightModes::can_guided_mode() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.AllowableFlightModes.can_guided_mode) - return _internal_can_guided_mode(); +inline bool AllowableFlightModes::can_guided_mode() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.AllowableFlightModes.can_guided_mode) + return _internal_can_guided_mode(); } -inline void AllowableFlightModes::set_can_guided_mode(bool value) { - _internal_set_can_guided_mode(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.AllowableFlightModes.can_guided_mode) +inline void AllowableFlightModes::set_can_guided_mode(bool value) +{ + _internal_set_can_guided_mode(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.AllowableFlightModes.can_guided_mode) } -inline bool AllowableFlightModes::_internal_can_guided_mode() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.can_guided_mode_; +inline bool AllowableFlightModes::_internal_can_guided_mode() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.can_guided_mode_; } -inline void AllowableFlightModes::_internal_set_can_guided_mode(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.can_guided_mode_ = value; +inline void AllowableFlightModes::_internal_set_can_guided_mode(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.can_guided_mode_ = value; } // bool can_stabilize_mode = 3; -inline void AllowableFlightModes::clear_can_stabilize_mode() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.can_stabilize_mode_ = false; +inline void AllowableFlightModes::clear_can_stabilize_mode() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.can_stabilize_mode_ = false; } -inline bool AllowableFlightModes::can_stabilize_mode() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.AllowableFlightModes.can_stabilize_mode) - return _internal_can_stabilize_mode(); +inline bool AllowableFlightModes::can_stabilize_mode() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.AllowableFlightModes.can_stabilize_mode) + return _internal_can_stabilize_mode(); } -inline void AllowableFlightModes::set_can_stabilize_mode(bool value) { - _internal_set_can_stabilize_mode(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.AllowableFlightModes.can_stabilize_mode) +inline void AllowableFlightModes::set_can_stabilize_mode(bool value) +{ + _internal_set_can_stabilize_mode(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.AllowableFlightModes.can_stabilize_mode) } -inline bool AllowableFlightModes::_internal_can_stabilize_mode() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.can_stabilize_mode_; +inline bool AllowableFlightModes::_internal_can_stabilize_mode() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.can_stabilize_mode_; } -inline void AllowableFlightModes::_internal_set_can_stabilize_mode(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.can_stabilize_mode_ = value; +inline void AllowableFlightModes::_internal_set_can_stabilize_mode(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.can_stabilize_mode_ = value; } // ------------------------------------------------------------------- @@ -6720,49 +8001,57 @@ inline void AllowableFlightModes::_internal_set_can_stabilize_mode(bool value) { // ArmDisarm // bool arm = 1; -inline void ArmDisarm::clear_arm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.arm_ = false; +inline void ArmDisarm::clear_arm() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.arm_ = false; } -inline bool ArmDisarm::arm() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ArmDisarm.arm) - return _internal_arm(); +inline bool ArmDisarm::arm() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ArmDisarm.arm) + return _internal_arm(); } -inline void ArmDisarm::set_arm(bool value) { - _internal_set_arm(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ArmDisarm.arm) +inline void ArmDisarm::set_arm(bool value) +{ + _internal_set_arm(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ArmDisarm.arm) } -inline bool ArmDisarm::_internal_arm() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.arm_; +inline bool ArmDisarm::_internal_arm() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.arm_; } -inline void ArmDisarm::_internal_set_arm(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.arm_ = value; +inline void ArmDisarm::_internal_set_arm(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.arm_ = value; } // bool force = 2; -inline void ArmDisarm::clear_force() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.force_ = false; +inline void ArmDisarm::clear_force() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.force_ = false; } -inline bool ArmDisarm::force() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ArmDisarm.force) - return _internal_force(); +inline bool ArmDisarm::force() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ArmDisarm.force) + return _internal_force(); } -inline void ArmDisarm::set_force(bool value) { - _internal_set_force(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ArmDisarm.force) +inline void ArmDisarm::set_force(bool value) +{ + _internal_set_force(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ArmDisarm.force) } -inline bool ArmDisarm::_internal_force() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.force_; +inline bool ArmDisarm::_internal_force() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.force_; } -inline void ArmDisarm::_internal_set_force(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.force_ = value; +inline void ArmDisarm::_internal_set_force(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.force_ = value; } // ------------------------------------------------------------------- @@ -6770,112 +8059,123 @@ inline void ArmDisarm::_internal_set_force(bool value) { // ActionServerResult // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; -inline void ActionServerResult::clear_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_ = 0; -} -inline ::mavsdk::rpc::action_server::ActionServerResult_Result ActionServerResult::result() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ActionServerResult.result) - return _internal_result(); -} -inline void ActionServerResult::set_result(::mavsdk::rpc::action_server::ActionServerResult_Result value) { - _internal_set_result(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ActionServerResult.result) -} -inline ::mavsdk::rpc::action_server::ActionServerResult_Result ActionServerResult::_internal_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::mavsdk::rpc::action_server::ActionServerResult_Result>(_impl_.result_); -} -inline void ActionServerResult::_internal_set_result(::mavsdk::rpc::action_server::ActionServerResult_Result value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.result_ = value; +inline void ActionServerResult::clear_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_ = 0; +} +inline ::mavsdk::rpc::action_server::ActionServerResult_Result ActionServerResult::result() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ActionServerResult.result) + return _internal_result(); +} +inline void +ActionServerResult::set_result(::mavsdk::rpc::action_server::ActionServerResult_Result value) +{ + _internal_set_result(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ActionServerResult.result) +} +inline ::mavsdk::rpc::action_server::ActionServerResult_Result +ActionServerResult::_internal_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::mavsdk::rpc::action_server::ActionServerResult_Result>(_impl_.result_); +} +inline void ActionServerResult::_internal_set_result( + ::mavsdk::rpc::action_server::ActionServerResult_Result value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_ = value; } // string result_str = 2; -inline void ActionServerResult::clear_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_str_.ClearToEmpty(); -} -inline const std::string& ActionServerResult::result_str() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ActionServerResult.result_str) - return _internal_result_str(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ActionServerResult::set_result_str(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.result_str_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ActionServerResult.result_str) -} -inline std::string* ActionServerResult::mutable_result_str() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_result_str(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.ActionServerResult.result_str) - return _s; -} -inline const std::string& ActionServerResult::_internal_result_str() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.result_str_.Get(); -} -inline void ActionServerResult::_internal_set_result_str(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.result_str_.Set(value, GetArena()); -} -inline std::string* ActionServerResult::_internal_mutable_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.result_str_.Mutable( GetArena()); -} -inline std::string* ActionServerResult::release_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ActionServerResult.result_str) - return _impl_.result_str_.Release(); -} -inline void ActionServerResult::set_allocated_result_str(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_str_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.result_str_.IsDefault()) { - _impl_.result_str_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.ActionServerResult.result_str) +inline void ActionServerResult::clear_result_str() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.ClearToEmpty(); +} +inline const std::string& ActionServerResult::result_str() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ActionServerResult.result_str) + return _internal_result_str(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ActionServerResult::set_result_str(Arg_&& arg, Args_... args) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ActionServerResult.result_str) +} +inline std::string* ActionServerResult::mutable_result_str() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + std::string* _s = _internal_mutable_result_str(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.ActionServerResult.result_str) + return _s; +} +inline const std::string& ActionServerResult::_internal_result_str() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.result_str_.Get(); +} +inline void ActionServerResult::_internal_set_result_str(const std::string& value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.Set(value, GetArena()); +} +inline std::string* ActionServerResult::_internal_mutable_result_str() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.result_str_.Mutable(GetArena()); +} +inline std::string* ActionServerResult::release_result_str() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ActionServerResult.result_str) + return _impl_.result_str_.Release(); +} +inline void ActionServerResult::set_allocated_result_str(std::string* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && + _impl_.result_str_.IsDefault()) { + _impl_.result_str_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.ActionServerResult.result_str) } #ifdef __GNUC__ #pragma GCC diagnostic pop -#endif // __GNUC__ +#endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) -} // namespace action_server -} // namespace rpc -} // namespace mavsdk - +} // namespace action_server +} // namespace rpc +} // namespace mavsdk namespace google { namespace protobuf { -template <> +template<> struct is_proto_enum<::mavsdk::rpc::action_server::ActionServerResult_Result> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::action_server::ActionServerResult_Result>() { - return ::mavsdk::rpc::action_server::ActionServerResult_Result_descriptor(); +template<> +inline const EnumDescriptor* +GetEnumDescriptor<::mavsdk::rpc::action_server::ActionServerResult_Result>() +{ + return ::mavsdk::rpc::action_server::ActionServerResult_Result_descriptor(); } -template <> -struct is_proto_enum<::mavsdk::rpc::action_server::FlightMode> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::action_server::FlightMode>() { - return ::mavsdk::rpc::action_server::FlightMode_descriptor(); +template<> struct is_proto_enum<::mavsdk::rpc::action_server::FlightMode> : std::true_type {}; +template<> +inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::action_server::FlightMode>() +{ + return ::mavsdk::rpc::action_server::FlightMode_descriptor(); } -} // namespace protobuf -} // namespace google +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_action_5fserver_2faction_5fserver_2eproto_2epb_2eh +#endif // action_5fserver_2faction_5fserver_2eproto_2epb_2eh diff --git a/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.cc b/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.cc index 3972b19909..4cecb6b93c 100644 --- a/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.cc +++ b/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.cc @@ -1,17 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: arm_authorizer_server/arm_authorizer_server.proto +// Protobuf C++ Version: 5.29.1 #include "arm_authorizer_server/arm_authorizer_server.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -23,333 +27,437 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace mavsdk { namespace rpc { namespace arm_authorizer_server { - template -PROTOBUF_CONSTEXPR SubscribeArmAuthorizationRequest::SubscribeArmAuthorizationRequest(::_pbi::ConstantInitialized) {} -struct SubscribeArmAuthorizationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeArmAuthorizationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeArmAuthorizationRequestDefaultTypeInternal() {} - union { - SubscribeArmAuthorizationRequest _instance; - }; +template +PROTOBUF_CONSTEXPR +SubscribeArmAuthorizationRequest::SubscribeArmAuthorizationRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeArmAuthorizationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeArmAuthorizationRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeArmAuthorizationRequestDefaultTypeInternal() {} + union { + SubscribeArmAuthorizationRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeArmAuthorizationRequestDefaultTypeInternal _SubscribeArmAuthorizationRequest_default_instance_; - -inline constexpr RejectArmAuthorizationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : temporarily_{false}, - reason_{static_cast< ::mavsdk::rpc::arm_authorizer_server::RejectionReason >(0)}, - extra_info_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR RejectArmAuthorizationRequest::RejectArmAuthorizationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeArmAuthorizationRequestDefaultTypeInternal + _SubscribeArmAuthorizationRequest_default_instance_; + +inline constexpr RejectArmAuthorizationRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + temporarily_{false}, + reason_{static_cast<::mavsdk::rpc::arm_authorizer_server::RejectionReason>(0)}, + extra_info_{0}, + _cached_size_{0} +{} + +template +PROTOBUF_CONSTEXPR + RejectArmAuthorizationRequest::RejectArmAuthorizationRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct RejectArmAuthorizationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RejectArmAuthorizationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RejectArmAuthorizationRequestDefaultTypeInternal() {} - union { - RejectArmAuthorizationRequest _instance; - }; + PROTOBUF_CONSTEXPR RejectArmAuthorizationRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~RejectArmAuthorizationRequestDefaultTypeInternal() {} + union { + RejectArmAuthorizationRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RejectArmAuthorizationRequestDefaultTypeInternal _RejectArmAuthorizationRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + RejectArmAuthorizationRequestDefaultTypeInternal + _RejectArmAuthorizationRequest_default_instance_; -inline constexpr ArmAuthorizerServerResult::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : result_str_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - result_{static_cast< ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result >(0)}, - _cached_size_{0} {} +inline constexpr ArmAuthorizerServerResult::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + result_str_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + result_{static_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result>(0)}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR ArmAuthorizerServerResult::ArmAuthorizerServerResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ArmAuthorizerServerResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArmAuthorizerServerResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ArmAuthorizerServerResultDefaultTypeInternal() {} - union { - ArmAuthorizerServerResult _instance; - }; + PROTOBUF_CONSTEXPR ArmAuthorizerServerResultDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ArmAuthorizerServerResultDefaultTypeInternal() {} + union { + ArmAuthorizerServerResult _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmAuthorizerServerResultDefaultTypeInternal _ArmAuthorizerServerResult_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ArmAuthorizerServerResultDefaultTypeInternal _ArmAuthorizerServerResult_default_instance_; -inline constexpr ArmAuthorizationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : system_id_{0u}, - _cached_size_{0} {} +inline constexpr ArmAuthorizationResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + system_id_{0u}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR ArmAuthorizationResponse::ArmAuthorizationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ArmAuthorizationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArmAuthorizationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ArmAuthorizationResponseDefaultTypeInternal() {} - union { - ArmAuthorizationResponse _instance; - }; + PROTOBUF_CONSTEXPR ArmAuthorizationResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ArmAuthorizationResponseDefaultTypeInternal() {} + union { + ArmAuthorizationResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmAuthorizationResponseDefaultTypeInternal _ArmAuthorizationResponse_default_instance_; - -inline constexpr AcceptArmAuthorizationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : valid_time_s_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR AcceptArmAuthorizationRequest::AcceptArmAuthorizationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ArmAuthorizationResponseDefaultTypeInternal _ArmAuthorizationResponse_default_instance_; + +inline constexpr AcceptArmAuthorizationRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + valid_time_s_{0}, + _cached_size_{0} +{} + +template +PROTOBUF_CONSTEXPR + AcceptArmAuthorizationRequest::AcceptArmAuthorizationRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct AcceptArmAuthorizationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR AcceptArmAuthorizationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AcceptArmAuthorizationRequestDefaultTypeInternal() {} - union { - AcceptArmAuthorizationRequest _instance; - }; + PROTOBUF_CONSTEXPR AcceptArmAuthorizationRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~AcceptArmAuthorizationRequestDefaultTypeInternal() {} + union { + AcceptArmAuthorizationRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AcceptArmAuthorizationRequestDefaultTypeInternal _AcceptArmAuthorizationRequest_default_instance_; - -inline constexpr RejectArmAuthorizationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - arm_authorizer_server_result_{nullptr} {} - -template -PROTOBUF_CONSTEXPR RejectArmAuthorizationResponse::RejectArmAuthorizationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + AcceptArmAuthorizationRequestDefaultTypeInternal + _AcceptArmAuthorizationRequest_default_instance_; + +inline constexpr RejectArmAuthorizationResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept + : + _cached_size_{0}, + arm_authorizer_server_result_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR + RejectArmAuthorizationResponse::RejectArmAuthorizationResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct RejectArmAuthorizationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RejectArmAuthorizationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RejectArmAuthorizationResponseDefaultTypeInternal() {} - union { - RejectArmAuthorizationResponse _instance; - }; + PROTOBUF_CONSTEXPR RejectArmAuthorizationResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~RejectArmAuthorizationResponseDefaultTypeInternal() {} + union { + RejectArmAuthorizationResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RejectArmAuthorizationResponseDefaultTypeInternal _RejectArmAuthorizationResponse_default_instance_; - -inline constexpr AcceptArmAuthorizationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - arm_authorizer_server_result_{nullptr} {} - -template -PROTOBUF_CONSTEXPR AcceptArmAuthorizationResponse::AcceptArmAuthorizationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + RejectArmAuthorizationResponseDefaultTypeInternal + _RejectArmAuthorizationResponse_default_instance_; + +inline constexpr AcceptArmAuthorizationResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept + : + _cached_size_{0}, + arm_authorizer_server_result_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR + AcceptArmAuthorizationResponse::AcceptArmAuthorizationResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct AcceptArmAuthorizationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AcceptArmAuthorizationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AcceptArmAuthorizationResponseDefaultTypeInternal() {} - union { - AcceptArmAuthorizationResponse _instance; - }; + PROTOBUF_CONSTEXPR AcceptArmAuthorizationResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~AcceptArmAuthorizationResponseDefaultTypeInternal() {} + union { + AcceptArmAuthorizationResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AcceptArmAuthorizationResponseDefaultTypeInternal _AcceptArmAuthorizationResponse_default_instance_; -} // namespace arm_authorizer_server -} // namespace rpc -} // namespace mavsdk -static ::_pb::Metadata file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[7]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[2]; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + AcceptArmAuthorizationResponseDefaultTypeInternal + _AcceptArmAuthorizationResponse_default_instance_; +} // namespace arm_authorizer_server +} // namespace rpc +} // namespace mavsdk +static const ::_pb::EnumDescriptor* + file_level_enum_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[2]; static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto = nullptr; -const ::uint32_t TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::SubscribeArmAuthorizationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizationResponse, _impl_.system_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationRequest, _impl_.valid_time_s_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse, _impl_.arm_authorizer_server_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, _impl_.temporarily_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, _impl_.reason_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, _impl_.extra_info_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse, _impl_.arm_authorizer_server_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult, _impl_.result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult, _impl_.result_str_), + file_level_service_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto = + nullptr; +const ::uint32_t TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto::offsets + [] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::SubscribeArmAuthorizationRequest, + _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizationResponse, _impl_.system_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationRequest, + _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationRequest, + _impl_.valid_time_s_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse, + _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse, + _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse, + _impl_.arm_authorizer_server_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, + _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, + _impl_.temporarily_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, _impl_.reason_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, + _impl_.extra_info_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse, + _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse, + _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse, + _impl_.arm_authorizer_server_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult, _impl_.result_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult, _impl_.result_str_), }; -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::SubscribeArmAuthorizationRequest)}, - {8, -1, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizationResponse)}, - {17, -1, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationRequest)}, - {26, 35, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse)}, - {36, -1, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest)}, - {47, 56, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse)}, - {57, -1, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult)}, +static const ::_pbi::MigrationSchema schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, -1, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::SubscribeArmAuthorizationRequest)}, + {8, -1, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizationResponse)}, + {17, -1, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationRequest)}, + {26, 35, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse)}, + {36, -1, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest)}, + {47, 56, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse)}, + {57, -1, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult)}, }; - static const ::_pb::Message* const file_default_instances[] = { - &::mavsdk::rpc::arm_authorizer_server::_SubscribeArmAuthorizationRequest_default_instance_._instance, + &::mavsdk::rpc::arm_authorizer_server::_SubscribeArmAuthorizationRequest_default_instance_ + ._instance, &::mavsdk::rpc::arm_authorizer_server::_ArmAuthorizationResponse_default_instance_._instance, - &::mavsdk::rpc::arm_authorizer_server::_AcceptArmAuthorizationRequest_default_instance_._instance, - &::mavsdk::rpc::arm_authorizer_server::_AcceptArmAuthorizationResponse_default_instance_._instance, - &::mavsdk::rpc::arm_authorizer_server::_RejectArmAuthorizationRequest_default_instance_._instance, - &::mavsdk::rpc::arm_authorizer_server::_RejectArmAuthorizationResponse_default_instance_._instance, + &::mavsdk::rpc::arm_authorizer_server::_AcceptArmAuthorizationRequest_default_instance_ + ._instance, + &::mavsdk::rpc::arm_authorizer_server::_AcceptArmAuthorizationResponse_default_instance_ + ._instance, + &::mavsdk::rpc::arm_authorizer_server::_RejectArmAuthorizationRequest_default_instance_ + ._instance, + &::mavsdk::rpc::arm_authorizer_server::_RejectArmAuthorizationResponse_default_instance_ + ._instance, &::mavsdk::rpc::arm_authorizer_server::_ArmAuthorizerServerResult_default_instance_._instance, }; -const char descriptor_table_protodef_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n1arm_authorizer_server/arm_authorizer_s" - "erver.proto\022 mavsdk.rpc.arm_authorizer_s" - "erver\032\024mavsdk_options.proto\"\"\n Subscribe" - "ArmAuthorizationRequest\"-\n\030ArmAuthorizat" - "ionResponse\022\021\n\tsystem_id\030\001 \001(\r\"5\n\035Accept" - "ArmAuthorizationRequest\022\024\n\014valid_time_s\030" - "\001 \001(\005\"\203\001\n\036AcceptArmAuthorizationResponse" - "\022a\n\034arm_authorizer_server_result\030\001 \001(\0132;" - ".mavsdk.rpc.arm_authorizer_server.ArmAut" - "horizerServerResult\"\213\001\n\035RejectArmAuthori" - "zationRequest\022\023\n\013temporarily\030\001 \001(\010\022A\n\006re" - "ason\030\002 \001(\01621.mavsdk.rpc.arm_authorizer_s" - "erver.RejectionReason\022\022\n\nextra_info\030\003 \001(" - "\005\"\203\001\n\036RejectArmAuthorizationResponse\022a\n\034" - "arm_authorizer_server_result\030\001 \001(\0132;.mav" - "sdk.rpc.arm_authorizer_server.ArmAuthori" - "zerServerResult\"\310\001\n\031ArmAuthorizerServerR" - "esult\022R\n\006result\030\001 \001(\0162B.mavsdk.rpc.arm_a" - "uthorizer_server.ArmAuthorizerServerResu" - "lt.Result\022\022\n\nresult_str\030\002 \001(\t\"C\n\006Result\022" - "\022\n\016RESULT_UNKNOWN\020\000\022\022\n\016RESULT_SUCCESS\020\001\022" - "\021\n\rRESULT_FAILED\020\002*\327\001\n\017RejectionReason\022\034" - "\n\030REJECTION_REASON_GENERIC\020\000\022\031\n\025REJECTIO" - "N_REASON_NONE\020\001\022%\n!REJECTION_REASON_INVA" - "LID_WAYPOINT\020\002\022\034\n\030REJECTION_REASON_TIMEO" - "UT\020\003\022$\n REJECTION_REASON_AIRSPACE_IN_USE" - "\020\004\022 \n\034REJECTION_REASON_BAD_WEATHER\020\0052\212\004\n" - "\032ArmAuthorizerServerService\022\243\001\n\031Subscrib" - "eArmAuthorization\022B.mavsdk.rpc.arm_autho" - "rizer_server.SubscribeArmAuthorizationRe" - "quest\032:.mavsdk.rpc.arm_authorizer_server" - ".ArmAuthorizationResponse\"\004\200\265\030\0000\001\022\241\001\n\026Ac" - "ceptArmAuthorization\022\?.mavsdk.rpc.arm_au" - "thorizer_server.AcceptArmAuthorizationRe" - "quest\032@.mavsdk.rpc.arm_authorizer_server" - ".AcceptArmAuthorizationResponse\"\004\200\265\030\001\022\241\001" - "\n\026RejectArmAuthorization\022\?.mavsdk.rpc.ar" - "m_authorizer_server.RejectArmAuthorizati" - "onRequest\032@.mavsdk.rpc.arm_authorizer_se" - "rver.RejectArmAuthorizationResponse\"\004\200\265\030" - "\001B4\n\030io.mavsdk.arm_authorizerB\030ArmAuthor" - "izerServerProtob\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_deps[1] = - { +const char descriptor_table_protodef_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto + [] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n1arm_authorizer_server/arm_authorizer_s" + "erver.proto\022 mavsdk.rpc.arm_authorizer_s" + "erver\032\024mavsdk_options.proto\"\"\n Subscribe" + "ArmAuthorizationRequest\"-\n\030ArmAuthorizat" + "ionResponse\022\021\n\tsystem_id\030\001 \001(\r\"5\n\035Accept" + "ArmAuthorizationRequest\022\024\n\014valid_time_s\030" + "\001 \001(\005\"\203\001\n\036AcceptArmAuthorizationResponse" + "\022a\n\034arm_authorizer_server_result\030\001 \001(\0132;" + ".mavsdk.rpc.arm_authorizer_server.ArmAut" + "horizerServerResult\"\213\001\n\035RejectArmAuthori" + "zationRequest\022\023\n\013temporarily\030\001 \001(\010\022A\n\006re" + "ason\030\002 \001(\01621.mavsdk.rpc.arm_authorizer_s" + "erver.RejectionReason\022\022\n\nextra_info\030\003 \001(" + "\005\"\203\001\n\036RejectArmAuthorizationResponse\022a\n\034" + "arm_authorizer_server_result\030\001 \001(\0132;.mav" + "sdk.rpc.arm_authorizer_server.ArmAuthori" + "zerServerResult\"\310\001\n\031ArmAuthorizerServerR" + "esult\022R\n\006result\030\001 \001(\0162B.mavsdk.rpc.arm_a" + "uthorizer_server.ArmAuthorizerServerResu" + "lt.Result\022\022\n\nresult_str\030\002 \001(\t\"C\n\006Result\022" + "\022\n\016RESULT_UNKNOWN\020\000\022\022\n\016RESULT_SUCCESS\020\001\022" + "\021\n\rRESULT_FAILED\020\002*\327\001\n\017RejectionReason\022\034" + "\n\030REJECTION_REASON_GENERIC\020\000\022\031\n\025REJECTIO" + "N_REASON_NONE\020\001\022%\n!REJECTION_REASON_INVA" + "LID_WAYPOINT\020\002\022\034\n\030REJECTION_REASON_TIMEO" + "UT\020\003\022$\n REJECTION_REASON_AIRSPACE_IN_USE" + "\020\004\022 \n\034REJECTION_REASON_BAD_WEATHER\020\0052\212\004\n" + "\032ArmAuthorizerServerService\022\243\001\n\031Subscrib" + "eArmAuthorization\022B.mavsdk.rpc.arm_autho" + "rizer_server.SubscribeArmAuthorizationRe" + "quest\032:.mavsdk.rpc.arm_authorizer_server" + ".ArmAuthorizationResponse\"\004\200\265\030\0000\001\022\241\001\n\026Ac" + "ceptArmAuthorization\022\?.mavsdk.rpc.arm_au" + "thorizer_server.AcceptArmAuthorizationRe" + "quest\032@.mavsdk.rpc.arm_authorizer_server" + ".AcceptArmAuthorizationResponse\"\004\200\265\030\001\022\241\001" + "\n\026RejectArmAuthorization\022\?.mavsdk.rpc.ar" + "m_authorizer_server.RejectArmAuthorizati" + "onRequest\032@.mavsdk.rpc.arm_authorizer_se" + "rver.RejectArmAuthorizationResponse\"\004\200\265\030" + "\001B4\n\030io.mavsdk.arm_authorizerB\030ArmAuthor" + "izerServerProtob\006proto3"}; +static const ::_pbi::DescriptorTable* const + descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_deps[1] = { &::descriptor_table_mavsdk_5foptions_2eproto, }; -static ::absl::once_flag descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto = { - false, - false, - 1663, - descriptor_table_protodef_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, - "arm_authorizer_server/arm_authorizer_server.proto", - &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, - descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_deps, - 1, - 7, - schemas, - file_default_instances, - TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto::offsets, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, - file_level_enum_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, - file_level_service_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, +static ::absl::once_flag + descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable + descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto = { + false, + false, + 1663, + descriptor_table_protodef_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + "arm_authorizer_server/arm_authorizer_server.proto", + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, + descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_deps, + 1, + 7, + schemas, + file_default_instances, + TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto::offsets, + file_level_enum_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + file_level_service_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter() { - return &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; -} -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto(&descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto); namespace mavsdk { namespace rpc { namespace arm_authorizer_server { -const ::google::protobuf::EnumDescriptor* ArmAuthorizerServerResult_Result_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto); - return file_level_enum_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[0]; +const ::google::protobuf::EnumDescriptor* ArmAuthorizerServerResult_Result_descriptor() +{ + ::google::protobuf::internal::AssignDescriptors( + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto); + return file_level_enum_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto + [0]; } PROTOBUF_CONSTINIT const uint32_t ArmAuthorizerServerResult_Result_internal_data_[] = { - 196608u, 0u, }; -bool ArmAuthorizerServerResult_Result_IsValid(int value) { - return 0 <= value && value <= 2; + 196608u, + 0u, +}; +bool ArmAuthorizerServerResult_Result_IsValid(int value) +{ + return 0 <= value && value <= 2; } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ArmAuthorizerServerResult_Result ArmAuthorizerServerResult::RESULT_UNKNOWN; constexpr ArmAuthorizerServerResult_Result ArmAuthorizerServerResult::RESULT_SUCCESS; @@ -358,1255 +466,1812 @@ constexpr ArmAuthorizerServerResult_Result ArmAuthorizerServerResult::Result_MIN constexpr ArmAuthorizerServerResult_Result ArmAuthorizerServerResult::Result_MAX; constexpr int ArmAuthorizerServerResult::Result_ARRAYSIZE; -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::google::protobuf::EnumDescriptor* RejectionReason_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto); - return file_level_enum_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[1]; +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* RejectionReason_descriptor() +{ + ::google::protobuf::internal::AssignDescriptors( + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto); + return file_level_enum_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto + [1]; } PROTOBUF_CONSTINIT const uint32_t RejectionReason_internal_data_[] = { - 393216u, 0u, }; -bool RejectionReason_IsValid(int value) { - return 0 <= value && value <= 5; + 393216u, + 0u, +}; +bool RejectionReason_IsValid(int value) +{ + return 0 <= value && value <= 5; } // =================================================================== class SubscribeArmAuthorizationRequest::_Internal { - public: +public: }; SubscribeArmAuthorizationRequest::SubscribeArmAuthorizationRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest) } SubscribeArmAuthorizationRequest::SubscribeArmAuthorizationRequest( - ::google::protobuf::Arena* arena, - const SubscribeArmAuthorizationRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeArmAuthorizationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest) -} - - - - - - - - - -::google::protobuf::Metadata SubscribeArmAuthorizationRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter, &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[0]); + ::google::protobuf::Arena* arena, const SubscribeArmAuthorizationRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeArmAuthorizationRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest) +} + +inline void* SubscribeArmAuthorizationRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeArmAuthorizationRequest(arena); +} +constexpr auto SubscribeArmAuthorizationRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeArmAuthorizationRequest), alignof(SubscribeArmAuthorizationRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeArmAuthorizationRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeArmAuthorizationRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeArmAuthorizationRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl< + SubscribeArmAuthorizationRequest>(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeArmAuthorizationRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl< + SubscribeArmAuthorizationRequest>(), + &SubscribeArmAuthorizationRequest::ByteSizeLong, + &SubscribeArmAuthorizationRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeArmAuthorizationRequest, _impl_._cached_size_), + false, + }, + &SubscribeArmAuthorizationRequest::kDescriptorMethods, + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* +SubscribeArmAuthorizationRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeArmAuthorizationRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::arm_authorizer_server:: + SubscribeArmAuthorizationRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeArmAuthorizationRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ArmAuthorizationResponse::_Internal { - public: +public: }; ArmAuthorizationResponse::ArmAuthorizationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) } ArmAuthorizationResponse::ArmAuthorizationResponse( - ::google::protobuf::Arena* arena, const ArmAuthorizationResponse& from) - : ArmAuthorizationResponse(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const ArmAuthorizationResponse& from) : + ArmAuthorizationResponse(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE ArmAuthorizationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ArmAuthorizationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.system_id_ = {}; -} -ArmAuthorizationResponse::~ArmAuthorizationResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ArmAuthorizationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ArmAuthorizationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.system_id_ = 0u; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ArmAuthorizationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ArmAuthorizationResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ArmAuthorizationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // uint32 system_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ArmAuthorizationResponse, _impl_.system_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ArmAuthorizationResponse, _impl_.system_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint32 system_id = 1; - {PROTOBUF_FIELD_OFFSET(ArmAuthorizationResponse, _impl_.system_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ArmAuthorizationResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.system_id_ = {}; +} +ArmAuthorizationResponse::~ArmAuthorizationResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) + SharedDtor(*this); +} +inline void ArmAuthorizationResponse::SharedDtor(MessageLite& self) +{ + ArmAuthorizationResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +ArmAuthorizationResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ArmAuthorizationResponse(arena); +} +constexpr auto ArmAuthorizationResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ArmAuthorizationResponse), alignof(ArmAuthorizationResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmAuthorizationResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmAuthorizationResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmAuthorizationResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmAuthorizationResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ArmAuthorizationResponse::ByteSizeLong, + &ArmAuthorizationResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmAuthorizationResponse, _impl_._cached_size_), + false, + }, + &ArmAuthorizationResponse::kDescriptorMethods, + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + nullptr, // tracker }; - +const ::google::protobuf::internal::ClassData* ArmAuthorizationResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + ArmAuthorizationResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizationResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // uint32 system_id = 1; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(ArmAuthorizationResponse, _impl_.system_id_), + 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(ArmAuthorizationResponse, _impl_.system_id_)}}, + }}, + {{65535, 65535}}, + {{ + // uint32 system_id = 1; + {PROTOBUF_FIELD_OFFSET(ArmAuthorizationResponse, _impl_.system_id_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void ArmAuthorizationResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.system_id_ = 0u; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* ArmAuthorizationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint32 system_id = 1; - if (this->_internal_system_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_system_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) - return target; -} - -::size_t ArmAuthorizationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // uint32 system_id = 1; - if (this->_internal_system_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_system_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ArmAuthorizationResponse::_class_data_ = { - ArmAuthorizationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ArmAuthorizationResponse::GetClassData() const { - return &_class_data_; -} - -void ArmAuthorizationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_system_id() != 0) { - _this->_internal_set_system_id(from._internal_system_id()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ArmAuthorizationResponse::CopyFrom(const ArmAuthorizationResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ArmAuthorizationResponse::IsInitialized() const { - return true; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ArmAuthorizationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ArmAuthorizationResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ArmAuthorizationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -::_pbi::CachedSize* ArmAuthorizationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ArmAuthorizationResponse::InternalSwap(ArmAuthorizationResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.system_id_, other->_impl_.system_id_); -} + // uint32 system_id = 1; + if (this_._internal_system_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this_._internal_system_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ArmAuthorizationResponse::ByteSizeLong(const MessageLite& base) +{ + const ArmAuthorizationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ArmAuthorizationResponse::ByteSizeLong() const +{ + const ArmAuthorizationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata ArmAuthorizationResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter, &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[1]); + { + // uint32 system_id = 1; + if (this_._internal_system_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this_._internal_system_id()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void ArmAuthorizationResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (from._internal_system_id() != 0) { + _this->_impl_.system_id_ = from._impl_.system_id_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void ArmAuthorizationResponse::CopyFrom(const ArmAuthorizationResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void ArmAuthorizationResponse::InternalSwap(ArmAuthorizationResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.system_id_, other->_impl_.system_id_); +} + +::google::protobuf::Metadata ArmAuthorizationResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class AcceptArmAuthorizationRequest::_Internal { - public: +public: }; AcceptArmAuthorizationRequest::AcceptArmAuthorizationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) } AcceptArmAuthorizationRequest::AcceptArmAuthorizationRequest( - ::google::protobuf::Arena* arena, const AcceptArmAuthorizationRequest& from) - : AcceptArmAuthorizationRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const AcceptArmAuthorizationRequest& from) : + AcceptArmAuthorizationRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE AcceptArmAuthorizationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AcceptArmAuthorizationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.valid_time_s_ = {}; -} -AcceptArmAuthorizationRequest::~AcceptArmAuthorizationRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AcceptArmAuthorizationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AcceptArmAuthorizationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.valid_time_s_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AcceptArmAuthorizationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AcceptArmAuthorizationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AcceptArmAuthorizationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int32 valid_time_s = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AcceptArmAuthorizationRequest, _impl_.valid_time_s_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationRequest, _impl_.valid_time_s_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 valid_time_s = 1; - {PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationRequest, _impl_.valid_time_s_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void AcceptArmAuthorizationRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.valid_time_s_ = {}; +} +AcceptArmAuthorizationRequest::~AcceptArmAuthorizationRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) + SharedDtor(*this); +} +inline void AcceptArmAuthorizationRequest::SharedDtor(MessageLite& self) +{ + AcceptArmAuthorizationRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* AcceptArmAuthorizationRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) AcceptArmAuthorizationRequest(arena); +} +constexpr auto AcceptArmAuthorizationRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(AcceptArmAuthorizationRequest), alignof(AcceptArmAuthorizationRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull AcceptArmAuthorizationRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_AcceptArmAuthorizationRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AcceptArmAuthorizationRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AcceptArmAuthorizationRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &AcceptArmAuthorizationRequest::ByteSizeLong, + &AcceptArmAuthorizationRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationRequest, _impl_._cached_size_), + false, + }, + &AcceptArmAuthorizationRequest::kDescriptorMethods, + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + nullptr, // tracker }; - +const ::google::protobuf::internal::ClassData* AcceptArmAuthorizationRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + AcceptArmAuthorizationRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::arm_authorizer_server:: + AcceptArmAuthorizationRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // int32 valid_time_s = 1; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(AcceptArmAuthorizationRequest, _impl_.valid_time_s_), + 63>(), + {8, + 63, + 0, + PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationRequest, _impl_.valid_time_s_)}}, + }}, + {{65535, 65535}}, + {{ + // int32 valid_time_s = 1; + {PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationRequest, _impl_.valid_time_s_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void AcceptArmAuthorizationRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.valid_time_s_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* AcceptArmAuthorizationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 valid_time_s = 1; - if (this->_internal_valid_time_s() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_valid_time_s(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) - return target; -} - -::size_t AcceptArmAuthorizationRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int32 valid_time_s = 1; - if (this->_internal_valid_time_s() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_valid_time_s()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AcceptArmAuthorizationRequest::_class_data_ = { - AcceptArmAuthorizationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AcceptArmAuthorizationRequest::GetClassData() const { - return &_class_data_; -} - -void AcceptArmAuthorizationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_valid_time_s() != 0) { - _this->_internal_set_valid_time_s(from._internal_valid_time_s()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AcceptArmAuthorizationRequest::CopyFrom(const AcceptArmAuthorizationRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AcceptArmAuthorizationRequest::IsInitialized() const { - return true; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const AcceptArmAuthorizationRequest& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* AcceptArmAuthorizationRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const AcceptArmAuthorizationRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -::_pbi::CachedSize* AcceptArmAuthorizationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AcceptArmAuthorizationRequest::InternalSwap(AcceptArmAuthorizationRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.valid_time_s_, other->_impl_.valid_time_s_); -} + // int32 valid_time_s = 1; + if (this_._internal_valid_time_s() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_valid_time_s(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t AcceptArmAuthorizationRequest::ByteSizeLong(const MessageLite& base) +{ + const AcceptArmAuthorizationRequest& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t AcceptArmAuthorizationRequest::ByteSizeLong() const +{ + const AcceptArmAuthorizationRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata AcceptArmAuthorizationRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter, &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[2]); + { + // int32 valid_time_s = 1; + if (this_._internal_valid_time_s() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this_._internal_valid_time_s()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void AcceptArmAuthorizationRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (from._internal_valid_time_s() != 0) { + _this->_impl_.valid_time_s_ = from._impl_.valid_time_s_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void AcceptArmAuthorizationRequest::CopyFrom(const AcceptArmAuthorizationRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void AcceptArmAuthorizationRequest::InternalSwap( + AcceptArmAuthorizationRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.valid_time_s_, other->_impl_.valid_time_s_); +} + +::google::protobuf::Metadata AcceptArmAuthorizationRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class AcceptArmAuthorizationResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& arm_authorizer_server_result(const AcceptArmAuthorizationResponse* msg); - static void set_has_arm_authorizer_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& AcceptArmAuthorizationResponse::_Internal::arm_authorizer_server_result(const AcceptArmAuthorizationResponse* msg) { - return *msg->_impl_.arm_authorizer_server_result_; -} AcceptArmAuthorizationResponse::AcceptArmAuthorizationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) } inline PROTOBUF_NDEBUG_INLINE AcceptArmAuthorizationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} AcceptArmAuthorizationResponse::AcceptArmAuthorizationResponse( - ::google::protobuf::Arena* arena, - const AcceptArmAuthorizationResponse& from) - : ::google::protobuf::Message(arena) { - AcceptArmAuthorizationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.arm_authorizer_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(arena, *from._impl_.arm_authorizer_server_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) + ::google::protobuf::Arena* arena, const AcceptArmAuthorizationResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + AcceptArmAuthorizationResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.arm_authorizer_server_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>( + arena, *from._impl_.arm_authorizer_server_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) } inline PROTOBUF_NDEBUG_INLINE AcceptArmAuthorizationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AcceptArmAuthorizationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.arm_authorizer_server_result_ = {}; -} -AcceptArmAuthorizationResponse::~AcceptArmAuthorizationResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AcceptArmAuthorizationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.arm_authorizer_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AcceptArmAuthorizationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.arm_authorizer_server_result_ != nullptr); - _impl_.arm_authorizer_server_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AcceptArmAuthorizationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> AcceptArmAuthorizationResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AcceptArmAuthorizationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationResponse, _impl_.arm_authorizer_server_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; - {PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationResponse, _impl_.arm_authorizer_server_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void AcceptArmAuthorizationResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.arm_authorizer_server_result_ = {}; +} +AcceptArmAuthorizationResponse::~AcceptArmAuthorizationResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) + SharedDtor(*this); +} +inline void AcceptArmAuthorizationResponse::SharedDtor(MessageLite& self) +{ + AcceptArmAuthorizationResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.arm_authorizer_server_result_; + this_._impl_.~Impl_(); +} + +inline void* AcceptArmAuthorizationResponse::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) AcceptArmAuthorizationResponse(arena); +} +constexpr auto AcceptArmAuthorizationResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(AcceptArmAuthorizationResponse), alignof(AcceptArmAuthorizationResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull AcceptArmAuthorizationResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_AcceptArmAuthorizationResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AcceptArmAuthorizationResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AcceptArmAuthorizationResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &AcceptArmAuthorizationResponse::ByteSizeLong, + &AcceptArmAuthorizationResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationResponse, _impl_._cached_size_), + false, + }, + &AcceptArmAuthorizationResponse::kDescriptorMethods, + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + nullptr, // tracker }; - +const ::google::protobuf::internal::ClassData* AcceptArmAuthorizationResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + AcceptArmAuthorizationResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::arm_authorizer_server:: + AcceptArmAuthorizationResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult + // arm_authorizer_server_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET( + AcceptArmAuthorizationResponse, _impl_.arm_authorizer_server_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult + // arm_authorizer_server_result = 1; + {PROTOBUF_FIELD_OFFSET( + AcceptArmAuthorizationResponse, _impl_.arm_authorizer_server_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable< + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void AcceptArmAuthorizationResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.arm_authorizer_server_result_ != nullptr); + _impl_.arm_authorizer_server_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* AcceptArmAuthorizationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::arm_authorizer_server_result(this), - _Internal::arm_authorizer_server_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) - return target; -} - -::size_t AcceptArmAuthorizationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.arm_authorizer_server_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AcceptArmAuthorizationResponse::_class_data_ = { - AcceptArmAuthorizationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AcceptArmAuthorizationResponse::GetClassData() const { - return &_class_data_; -} - -void AcceptArmAuthorizationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_arm_authorizer_server_result()->::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult::MergeFrom( - from._internal_arm_authorizer_server_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AcceptArmAuthorizationResponse::CopyFrom(const AcceptArmAuthorizationResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AcceptArmAuthorizationResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* AcceptArmAuthorizationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AcceptArmAuthorizationResponse::InternalSwap(AcceptArmAuthorizationResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.arm_authorizer_server_result_, other->_impl_.arm_authorizer_server_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const AcceptArmAuthorizationResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* AcceptArmAuthorizationResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const AcceptArmAuthorizationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.arm_authorizer_server_result_, + this_._impl_.arm_authorizer_server_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t AcceptArmAuthorizationResponse::ByteSizeLong(const MessageLite& base) +{ + const AcceptArmAuthorizationResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t AcceptArmAuthorizationResponse::ByteSizeLong() const +{ + const AcceptArmAuthorizationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata AcceptArmAuthorizationResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter, &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[3]); + { + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result + // = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.arm_authorizer_server_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void AcceptArmAuthorizationResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.arm_authorizer_server_result_ != nullptr); + if (_this->_impl_.arm_authorizer_server_result_ == nullptr) { + _this->_impl_.arm_authorizer_server_result_ = + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>( + arena, *from._impl_.arm_authorizer_server_result_); + } else { + _this->_impl_.arm_authorizer_server_result_->MergeFrom( + *from._impl_.arm_authorizer_server_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void AcceptArmAuthorizationResponse::CopyFrom(const AcceptArmAuthorizationResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void AcceptArmAuthorizationResponse::InternalSwap( + AcceptArmAuthorizationResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.arm_authorizer_server_result_, other->_impl_.arm_authorizer_server_result_); +} + +::google::protobuf::Metadata AcceptArmAuthorizationResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class RejectArmAuthorizationRequest::_Internal { - public: +public: }; RejectArmAuthorizationRequest::RejectArmAuthorizationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) } RejectArmAuthorizationRequest::RejectArmAuthorizationRequest( - ::google::protobuf::Arena* arena, const RejectArmAuthorizationRequest& from) - : RejectArmAuthorizationRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const RejectArmAuthorizationRequest& from) : + RejectArmAuthorizationRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE RejectArmAuthorizationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void RejectArmAuthorizationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, temporarily_), - 0, - offsetof(Impl_, extra_info_) - - offsetof(Impl_, temporarily_) + - sizeof(Impl_::extra_info_)); -} -RejectArmAuthorizationRequest::~RejectArmAuthorizationRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void RejectArmAuthorizationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void RejectArmAuthorizationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.temporarily_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.extra_info_) - - reinterpret_cast(&_impl_.temporarily_)) + sizeof(_impl_.extra_info_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RejectArmAuthorizationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> RejectArmAuthorizationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_RejectArmAuthorizationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bool temporarily = 1; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.temporarily_)}}, - // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RejectArmAuthorizationRequest, _impl_.reason_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.reason_)}}, - // int32 extra_info = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RejectArmAuthorizationRequest, _impl_.extra_info_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.extra_info_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool temporarily = 1; - {PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.temporarily_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; - {PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.reason_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // int32 extra_info = 3; - {PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.extra_info_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void RejectArmAuthorizationRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, temporarily_), + 0, + offsetof(Impl_, extra_info_) - offsetof(Impl_, temporarily_) + sizeof(Impl_::extra_info_)); +} +RejectArmAuthorizationRequest::~RejectArmAuthorizationRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) + SharedDtor(*this); +} +inline void RejectArmAuthorizationRequest::SharedDtor(MessageLite& self) +{ + RejectArmAuthorizationRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* RejectArmAuthorizationRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) RejectArmAuthorizationRequest(arena); +} +constexpr auto RejectArmAuthorizationRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(RejectArmAuthorizationRequest), alignof(RejectArmAuthorizationRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull RejectArmAuthorizationRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_RejectArmAuthorizationRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RejectArmAuthorizationRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RejectArmAuthorizationRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &RejectArmAuthorizationRequest::ByteSizeLong, + &RejectArmAuthorizationRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_._cached_size_), + false, + }, + &RejectArmAuthorizationRequest::kDescriptorMethods, + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + nullptr, // tracker }; - +const ::google::protobuf::internal::ClassData* RejectArmAuthorizationRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> + RejectArmAuthorizationRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, + 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::arm_authorizer_server:: + RejectArmAuthorizationRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + // bool temporarily = 1; + {::_pbi::TcParser::SingularVarintNoZag1< + bool, + offsetof(RejectArmAuthorizationRequest, _impl_.temporarily_), + 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.temporarily_)}}, + // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(RejectArmAuthorizationRequest, _impl_.reason_), + 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.reason_)}}, + // int32 extra_info = 3; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(RejectArmAuthorizationRequest, _impl_.extra_info_), + 63>(), + {24, 63, 0, PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.extra_info_)}}, + }}, + {{65535, 65535}}, + {{ + // bool temporarily = 1; + {PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.temporarily_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; + {PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.reason_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // int32 extra_info = 3; + {PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.extra_info_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void RejectArmAuthorizationRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::memset( + &_impl_.temporarily_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.extra_info_) - + reinterpret_cast(&_impl_.temporarily_)) + + sizeof(_impl_.extra_info_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* RejectArmAuthorizationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool temporarily = 1; - if (this->_internal_temporarily() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_temporarily(), target); - } - - // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; - if (this->_internal_reason() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_reason(), target); - } - - // int32 extra_info = 3; - if (this->_internal_extra_info() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_extra_info(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) - return target; -} - -::size_t RejectArmAuthorizationRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bool temporarily = 1; - if (this->_internal_temporarily() != 0) { - total_size += 2; - } - - // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; - if (this->_internal_reason() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_reason()); - } - - // int32 extra_info = 3; - if (this->_internal_extra_info() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_extra_info()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData RejectArmAuthorizationRequest::_class_data_ = { - RejectArmAuthorizationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* RejectArmAuthorizationRequest::GetClassData() const { - return &_class_data_; -} - -void RejectArmAuthorizationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_temporarily() != 0) { - _this->_internal_set_temporarily(from._internal_temporarily()); - } - if (from._internal_reason() != 0) { - _this->_internal_set_reason(from._internal_reason()); - } - if (from._internal_extra_info() != 0) { - _this->_internal_set_extra_info(from._internal_extra_info()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void RejectArmAuthorizationRequest::CopyFrom(const RejectArmAuthorizationRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const RejectArmAuthorizationRequest& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* RejectArmAuthorizationRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const RejectArmAuthorizationRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool RejectArmAuthorizationRequest::IsInitialized() const { - return true; -} + // bool temporarily = 1; + if (this_._internal_temporarily() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this_._internal_temporarily(), target); + } -::_pbi::CachedSize* RejectArmAuthorizationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RejectArmAuthorizationRequest::InternalSwap(RejectArmAuthorizationRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.extra_info_) - + sizeof(RejectArmAuthorizationRequest::_impl_.extra_info_) - - PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.temporarily_)>( - reinterpret_cast(&_impl_.temporarily_), - reinterpret_cast(&other->_impl_.temporarily_)); -} + // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; + if (this_._internal_reason() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray(2, this_._internal_reason(), target); + } -::google::protobuf::Metadata RejectArmAuthorizationRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter, &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[4]); + // int32 extra_info = 3; + if (this_._internal_extra_info() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_extra_info(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t RejectArmAuthorizationRequest::ByteSizeLong(const MessageLite& base) +{ + const RejectArmAuthorizationRequest& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RejectArmAuthorizationRequest::ByteSizeLong() const +{ + const RejectArmAuthorizationRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // bool temporarily = 1; + if (this_._internal_temporarily() != 0) { + total_size += 2; + } + // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; + if (this_._internal_reason() != 0) { + total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_reason()); + } + // int32 extra_info = 3; + if (this_._internal_extra_info() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this_._internal_extra_info()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void RejectArmAuthorizationRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (from._internal_temporarily() != 0) { + _this->_impl_.temporarily_ = from._impl_.temporarily_; + } + if (from._internal_reason() != 0) { + _this->_impl_.reason_ = from._impl_.reason_; + } + if (from._internal_extra_info() != 0) { + _this->_impl_.extra_info_ = from._impl_.extra_info_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void RejectArmAuthorizationRequest::CopyFrom(const RejectArmAuthorizationRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void RejectArmAuthorizationRequest::InternalSwap( + RejectArmAuthorizationRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.extra_info_) + + sizeof(RejectArmAuthorizationRequest::_impl_.extra_info_) - + PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_.temporarily_)>( + reinterpret_cast(&_impl_.temporarily_), + reinterpret_cast(&other->_impl_.temporarily_)); +} + +::google::protobuf::Metadata RejectArmAuthorizationRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class RejectArmAuthorizationResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& arm_authorizer_server_result(const RejectArmAuthorizationResponse* msg); - static void set_has_arm_authorizer_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& RejectArmAuthorizationResponse::_Internal::arm_authorizer_server_result(const RejectArmAuthorizationResponse* msg) { - return *msg->_impl_.arm_authorizer_server_result_; -} RejectArmAuthorizationResponse::RejectArmAuthorizationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) } inline PROTOBUF_NDEBUG_INLINE RejectArmAuthorizationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} RejectArmAuthorizationResponse::RejectArmAuthorizationResponse( - ::google::protobuf::Arena* arena, - const RejectArmAuthorizationResponse& from) - : ::google::protobuf::Message(arena) { - RejectArmAuthorizationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.arm_authorizer_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(arena, *from._impl_.arm_authorizer_server_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) + ::google::protobuf::Arena* arena, const RejectArmAuthorizationResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + RejectArmAuthorizationResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.arm_authorizer_server_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>( + arena, *from._impl_.arm_authorizer_server_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) } inline PROTOBUF_NDEBUG_INLINE RejectArmAuthorizationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void RejectArmAuthorizationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.arm_authorizer_server_result_ = {}; -} -RejectArmAuthorizationResponse::~RejectArmAuthorizationResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void RejectArmAuthorizationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.arm_authorizer_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void RejectArmAuthorizationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.arm_authorizer_server_result_ != nullptr); - _impl_.arm_authorizer_server_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RejectArmAuthorizationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> RejectArmAuthorizationResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RejectArmAuthorizationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationResponse, _impl_.arm_authorizer_server_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; - {PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationResponse, _impl_.arm_authorizer_server_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void RejectArmAuthorizationResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.arm_authorizer_server_result_ = {}; +} +RejectArmAuthorizationResponse::~RejectArmAuthorizationResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) + SharedDtor(*this); +} +inline void RejectArmAuthorizationResponse::SharedDtor(MessageLite& self) +{ + RejectArmAuthorizationResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.arm_authorizer_server_result_; + this_._impl_.~Impl_(); +} + +inline void* RejectArmAuthorizationResponse::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) RejectArmAuthorizationResponse(arena); +} +constexpr auto RejectArmAuthorizationResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(RejectArmAuthorizationResponse), alignof(RejectArmAuthorizationResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull RejectArmAuthorizationResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_RejectArmAuthorizationResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RejectArmAuthorizationResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RejectArmAuthorizationResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &RejectArmAuthorizationResponse::ByteSizeLong, + &RejectArmAuthorizationResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationResponse, _impl_._cached_size_), + false, + }, + &RejectArmAuthorizationResponse::kDescriptorMethods, + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + nullptr, // tracker }; - +const ::google::protobuf::internal::ClassData* RejectArmAuthorizationResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + RejectArmAuthorizationResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::arm_authorizer_server:: + RejectArmAuthorizationResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult + // arm_authorizer_server_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET( + RejectArmAuthorizationResponse, _impl_.arm_authorizer_server_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult + // arm_authorizer_server_result = 1; + {PROTOBUF_FIELD_OFFSET( + RejectArmAuthorizationResponse, _impl_.arm_authorizer_server_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable< + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void RejectArmAuthorizationResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.arm_authorizer_server_result_ != nullptr); + _impl_.arm_authorizer_server_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* RejectArmAuthorizationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::arm_authorizer_server_result(this), - _Internal::arm_authorizer_server_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) - return target; -} - -::size_t RejectArmAuthorizationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.arm_authorizer_server_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData RejectArmAuthorizationResponse::_class_data_ = { - RejectArmAuthorizationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* RejectArmAuthorizationResponse::GetClassData() const { - return &_class_data_; -} - -void RejectArmAuthorizationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_arm_authorizer_server_result()->::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult::MergeFrom( - from._internal_arm_authorizer_server_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void RejectArmAuthorizationResponse::CopyFrom(const RejectArmAuthorizationResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool RejectArmAuthorizationResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* RejectArmAuthorizationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RejectArmAuthorizationResponse::InternalSwap(RejectArmAuthorizationResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.arm_authorizer_server_result_, other->_impl_.arm_authorizer_server_result_); -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const RejectArmAuthorizationResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* RejectArmAuthorizationResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const RejectArmAuthorizationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.arm_authorizer_server_result_, + this_._impl_.arm_authorizer_server_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t RejectArmAuthorizationResponse::ByteSizeLong(const MessageLite& base) +{ + const RejectArmAuthorizationResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RejectArmAuthorizationResponse::ByteSizeLong() const +{ + const RejectArmAuthorizationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -::google::protobuf::Metadata RejectArmAuthorizationResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter, &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[5]); + { + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result + // = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.arm_authorizer_server_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void RejectArmAuthorizationResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.arm_authorizer_server_result_ != nullptr); + if (_this->_impl_.arm_authorizer_server_result_ == nullptr) { + _this->_impl_.arm_authorizer_server_result_ = + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>( + arena, *from._impl_.arm_authorizer_server_result_); + } else { + _this->_impl_.arm_authorizer_server_result_->MergeFrom( + *from._impl_.arm_authorizer_server_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void RejectArmAuthorizationResponse::CopyFrom(const RejectArmAuthorizationResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void RejectArmAuthorizationResponse::InternalSwap( + RejectArmAuthorizationResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.arm_authorizer_server_result_, other->_impl_.arm_authorizer_server_result_); +} + +::google::protobuf::Metadata RejectArmAuthorizationResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ArmAuthorizerServerResult::_Internal { - public: +public: }; ArmAuthorizerServerResult::ArmAuthorizerServerResult(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) } inline PROTOBUF_NDEBUG_INLINE ArmAuthorizerServerResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : result_str_(arena, from.result_str_), - _cached_size_{0} {} - -ArmAuthorizerServerResult::ArmAuthorizerServerResult( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const ArmAuthorizerServerResult& from) - : ::google::protobuf::Message(arena) { - ArmAuthorizerServerResult* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.result_ = from._impl_.result_; + const Impl_& from, + const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& from_msg) : + result_str_(arena, from.result_str_), + _cached_size_{0} +{} - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) +ArmAuthorizerServerResult::ArmAuthorizerServerResult( + ::google::protobuf::Arena* arena, const ArmAuthorizerServerResult& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ArmAuthorizerServerResult* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.result_ = from._impl_.result_; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) } inline PROTOBUF_NDEBUG_INLINE ArmAuthorizerServerResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : result_str_(arena), - _cached_size_{0} {} - -inline void ArmAuthorizerServerResult::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.result_ = {}; -} -ArmAuthorizerServerResult::~ArmAuthorizerServerResult() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ArmAuthorizerServerResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.result_str_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ArmAuthorizerServerResult::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_str_.ClearToEmpty(); - _impl_.result_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ArmAuthorizerServerResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 77, 2> ArmAuthorizerServerResult::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ArmAuthorizerServerResult_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string result_str = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ArmAuthorizerServerResult, _impl_.result_str_)}}, - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ArmAuthorizerServerResult, _impl_.result_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ArmAuthorizerServerResult, _impl_.result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; - {PROTOBUF_FIELD_OFFSET(ArmAuthorizerServerResult, _impl_.result_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // string result_str = 2; - {PROTOBUF_FIELD_OFFSET(ArmAuthorizerServerResult, _impl_.result_str_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\72\0\12\0\0\0\0\0" - "mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult" - "result_str" - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + result_str_(arena), + _cached_size_{0} +{} + +inline void ArmAuthorizerServerResult::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.result_ = {}; +} +ArmAuthorizerServerResult::~ArmAuthorizerServerResult() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) + SharedDtor(*this); +} +inline void ArmAuthorizerServerResult::SharedDtor(MessageLite& self) +{ + ArmAuthorizerServerResult& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.result_str_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* +ArmAuthorizerServerResult::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ArmAuthorizerServerResult(arena); +} +constexpr auto ArmAuthorizerServerResult::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(ArmAuthorizerServerResult), alignof(ArmAuthorizerServerResult)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmAuthorizerServerResult::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmAuthorizerServerResult_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmAuthorizerServerResult::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmAuthorizerServerResult::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ArmAuthorizerServerResult::ByteSizeLong, + &ArmAuthorizerServerResult::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmAuthorizerServerResult, _impl_._cached_size_), + false, + }, + &ArmAuthorizerServerResult::kDescriptorMethods, + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + nullptr, // tracker }; - +const ::google::protobuf::internal::ClassData* ArmAuthorizerServerResult::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 77, 2> + ArmAuthorizerServerResult::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // string result_str = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(ArmAuthorizerServerResult, _impl_.result_str_)}}, + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(ArmAuthorizerServerResult, _impl_.result_), + 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(ArmAuthorizerServerResult, _impl_.result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; + {PROTOBUF_FIELD_OFFSET(ArmAuthorizerServerResult, _impl_.result_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // string result_str = 2; + {PROTOBUF_FIELD_OFFSET(ArmAuthorizerServerResult, _impl_.result_str_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{"\72\0\12\0\0\0\0\0" + "mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult" + "result_str"}}, + }; + +PROTOBUF_NOINLINE void ArmAuthorizerServerResult::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.result_str_.ClearToEmpty(); + _impl_.result_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* ArmAuthorizerServerResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; - if (this->_internal_result() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); - } - - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - const std::string& _s = this->_internal_result_str(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) - return target; -} - -::size_t ArmAuthorizerServerResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_result_str()); - } - - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; - if (this->_internal_result() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ArmAuthorizerServerResult::_class_data_ = { - ArmAuthorizerServerResult::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ArmAuthorizerServerResult::GetClassData() const { - return &_class_data_; -} - -void ArmAuthorizerServerResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_result_str().empty()) { - _this->_internal_set_result_str(from._internal_result_str()); - } - if (from._internal_result() != 0) { - _this->_internal_set_result(from._internal_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ArmAuthorizerServerResult::CopyFrom(const ArmAuthorizerServerResult& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ArmAuthorizerServerResult::IsInitialized() const { - return true; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ArmAuthorizerServerResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ArmAuthorizerServerResult::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ArmAuthorizerServerResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -::_pbi::CachedSize* ArmAuthorizerServerResult::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ArmAuthorizerServerResult::InternalSwap(ArmAuthorizerServerResult* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, &other->_impl_.result_str_, arena); - swap(_impl_.result_, other->_impl_.result_); -} + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; + if (this_._internal_result() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray(1, this_._internal_result(), target); + } -::google::protobuf::Metadata ArmAuthorizerServerResult::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter, &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[6]); + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + const std::string& _s = this_._internal_result_str(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), + static_cast(_s.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ArmAuthorizerServerResult::ByteSizeLong(const MessageLite& base) +{ + const ArmAuthorizerServerResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ArmAuthorizerServerResult::ByteSizeLong() const +{ + const ArmAuthorizerServerResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_result_str()); + } + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; + if (this_._internal_result() != 0) { + total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_result()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void ArmAuthorizerServerResult::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (!from._internal_result_str().empty()) { + _this->_internal_set_result_str(from._internal_result_str()); + } + if (from._internal_result() != 0) { + _this->_impl_.result_ = from._impl_.result_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void ArmAuthorizerServerResult::CopyFrom(const ArmAuthorizerServerResult& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void ArmAuthorizerServerResult::InternalSwap(ArmAuthorizerServerResult* PROTOBUF_RESTRICT other) +{ + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, &other->_impl_.result_str_, arena); + swap(_impl_.result_, other->_impl_.result_); +} + +::google::protobuf::Metadata ArmAuthorizerServerResult::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) -} // namespace arm_authorizer_server -} // namespace rpc -} // namespace mavsdk +} // namespace arm_authorizer_server +} // namespace rpc +} // namespace mavsdk namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +namespace protobuf {} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors( + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.h b/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.h index 56ccb4f480..9bf5aeb711 100644 --- a/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.h +++ b/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.h @@ -1,28 +1,22 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: arm_authorizer_server/arm_authorizer_server.proto -// Protobuf C++ Version: 4.25.1 +// Protobuf C++ Version: 5.29.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_2epb_2eh +#ifndef arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_2epb_2eh +#define arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_2epb_2eh #include #include #include #include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" @@ -32,8 +26,9 @@ #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export #include "google/protobuf/generated_enum_reflection.h" #include "google/protobuf/unknown_field_set.h" #include "mavsdk_options.pb.h" @@ -47,14 +42,14 @@ namespace google { namespace protobuf { namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google +template::absl::string_view GetAnyMessageName(); +} // namespace internal +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto { - static const ::uint32_t offsets[]; + static const ::uint32_t offsets[]; }; extern const ::google::protobuf::internal::DescriptorTable descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; @@ -63,10 +58,12 @@ namespace rpc { namespace arm_authorizer_server { class AcceptArmAuthorizationRequest; struct AcceptArmAuthorizationRequestDefaultTypeInternal; -extern AcceptArmAuthorizationRequestDefaultTypeInternal _AcceptArmAuthorizationRequest_default_instance_; +extern AcceptArmAuthorizationRequestDefaultTypeInternal + _AcceptArmAuthorizationRequest_default_instance_; class AcceptArmAuthorizationResponse; struct AcceptArmAuthorizationResponseDefaultTypeInternal; -extern AcceptArmAuthorizationResponseDefaultTypeInternal _AcceptArmAuthorizationResponse_default_instance_; +extern AcceptArmAuthorizationResponseDefaultTypeInternal + _AcceptArmAuthorizationResponse_default_instance_; class ArmAuthorizationResponse; struct ArmAuthorizationResponseDefaultTypeInternal; extern ArmAuthorizationResponseDefaultTypeInternal _ArmAuthorizationResponse_default_instance_; @@ -75,69 +72,74 @@ struct ArmAuthorizerServerResultDefaultTypeInternal; extern ArmAuthorizerServerResultDefaultTypeInternal _ArmAuthorizerServerResult_default_instance_; class RejectArmAuthorizationRequest; struct RejectArmAuthorizationRequestDefaultTypeInternal; -extern RejectArmAuthorizationRequestDefaultTypeInternal _RejectArmAuthorizationRequest_default_instance_; +extern RejectArmAuthorizationRequestDefaultTypeInternal + _RejectArmAuthorizationRequest_default_instance_; class RejectArmAuthorizationResponse; struct RejectArmAuthorizationResponseDefaultTypeInternal; -extern RejectArmAuthorizationResponseDefaultTypeInternal _RejectArmAuthorizationResponse_default_instance_; +extern RejectArmAuthorizationResponseDefaultTypeInternal + _RejectArmAuthorizationResponse_default_instance_; class SubscribeArmAuthorizationRequest; struct SubscribeArmAuthorizationRequestDefaultTypeInternal; -extern SubscribeArmAuthorizationRequestDefaultTypeInternal _SubscribeArmAuthorizationRequest_default_instance_; -} // namespace arm_authorizer_server -} // namespace rpc -} // namespace mavsdk +extern SubscribeArmAuthorizationRequestDefaultTypeInternal + _SubscribeArmAuthorizationRequest_default_instance_; +} // namespace arm_authorizer_server +} // namespace rpc +} // namespace mavsdk namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +namespace protobuf {} // namespace protobuf +} // namespace google namespace mavsdk { namespace rpc { namespace arm_authorizer_server { enum ArmAuthorizerServerResult_Result : int { - ArmAuthorizerServerResult_Result_RESULT_UNKNOWN = 0, - ArmAuthorizerServerResult_Result_RESULT_SUCCESS = 1, - ArmAuthorizerServerResult_Result_RESULT_FAILED = 2, - ArmAuthorizerServerResult_Result_ArmAuthorizerServerResult_Result_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - ArmAuthorizerServerResult_Result_ArmAuthorizerServerResult_Result_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ArmAuthorizerServerResult_Result_RESULT_UNKNOWN = 0, + ArmAuthorizerServerResult_Result_RESULT_SUCCESS = 1, + ArmAuthorizerServerResult_Result_RESULT_FAILED = 2, + ArmAuthorizerServerResult_Result_ArmAuthorizerServerResult_Result_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + ArmAuthorizerServerResult_Result_ArmAuthorizerServerResult_Result_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; bool ArmAuthorizerServerResult_Result_IsValid(int value); extern const uint32_t ArmAuthorizerServerResult_Result_internal_data_[]; -constexpr ArmAuthorizerServerResult_Result ArmAuthorizerServerResult_Result_Result_MIN = static_cast(0); -constexpr ArmAuthorizerServerResult_Result ArmAuthorizerServerResult_Result_Result_MAX = static_cast(2); +constexpr ArmAuthorizerServerResult_Result ArmAuthorizerServerResult_Result_Result_MIN = + static_cast(0); +constexpr ArmAuthorizerServerResult_Result ArmAuthorizerServerResult_Result_Result_MAX = + static_cast(2); constexpr int ArmAuthorizerServerResult_Result_Result_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -ArmAuthorizerServerResult_Result_descriptor(); -template -const std::string& ArmAuthorizerServerResult_Result_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to Result_Name()."); - return ArmAuthorizerServerResult_Result_Name(static_cast(value)); -} -template <> -inline const std::string& ArmAuthorizerServerResult_Result_Name(ArmAuthorizerServerResult_Result value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool ArmAuthorizerServerResult_Result_Parse(absl::string_view name, ArmAuthorizerServerResult_Result* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ArmAuthorizerServerResult_Result_descriptor(), name, value); +const ::google::protobuf::EnumDescriptor* ArmAuthorizerServerResult_Result_descriptor(); +template const std::string& ArmAuthorizerServerResult_Result_Name(T value) +{ + static_assert( + std::is_same::value || std::is_integral::value, + "Incorrect type passed to Result_Name()."); + return ArmAuthorizerServerResult_Result_Name( + static_cast(value)); +} +template<> +inline const std::string& +ArmAuthorizerServerResult_Result_Name(ArmAuthorizerServerResult_Result value) +{ + return ::google::protobuf::internal:: + NameOfDenseEnum(static_cast(value)); +} +inline bool ArmAuthorizerServerResult_Result_Parse( + absl::string_view name, ArmAuthorizerServerResult_Result* value) +{ + return ::google::protobuf::internal::ParseNamedEnum( + ArmAuthorizerServerResult_Result_descriptor(), name, value); } enum RejectionReason : int { - REJECTION_REASON_GENERIC = 0, - REJECTION_REASON_NONE = 1, - REJECTION_REASON_INVALID_WAYPOINT = 2, - REJECTION_REASON_TIMEOUT = 3, - REJECTION_REASON_AIRSPACE_IN_USE = 4, - REJECTION_REASON_BAD_WEATHER = 5, - RejectionReason_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - RejectionReason_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + REJECTION_REASON_GENERIC = 0, + REJECTION_REASON_NONE = 1, + REJECTION_REASON_INVALID_WAYPOINT = 2, + REJECTION_REASON_TIMEOUT = 3, + REJECTION_REASON_AIRSPACE_IN_USE = 4, + REJECTION_REASON_BAD_WEATHER = 5, + RejectionReason_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(), + RejectionReason_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max(), }; bool RejectionReason_IsValid(int value); @@ -145,1304 +147,1599 @@ extern const uint32_t RejectionReason_internal_data_[]; constexpr RejectionReason RejectionReason_MIN = static_cast(0); constexpr RejectionReason RejectionReason_MAX = static_cast(5); constexpr int RejectionReason_ARRAYSIZE = 5 + 1; -const ::google::protobuf::EnumDescriptor* -RejectionReason_descriptor(); -template -const std::string& RejectionReason_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to RejectionReason_Name()."); - return RejectionReason_Name(static_cast(value)); -} -template <> -inline const std::string& RejectionReason_Name(RejectionReason value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool RejectionReason_Parse(absl::string_view name, RejectionReason* value) { - return ::google::protobuf::internal::ParseNamedEnum( - RejectionReason_descriptor(), name, value); +const ::google::protobuf::EnumDescriptor* RejectionReason_descriptor(); +template const std::string& RejectionReason_Name(T value) +{ + static_assert( + std::is_same::value || std::is_integral::value, + "Incorrect type passed to RejectionReason_Name()."); + return RejectionReason_Name(static_cast(value)); +} +template<> inline const std::string& RejectionReason_Name(RejectionReason value) +{ + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool RejectionReason_Parse(absl::string_view name, RejectionReason* value) +{ + return ::google::protobuf::internal::ParseNamedEnum( + RejectionReason_descriptor(), name, value); } // =================================================================== +// ------------------------------------------------------------------- + +class SubscribeArmAuthorizationRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest) + */ +{ +public: + inline SubscribeArmAuthorizationRequest() : SubscribeArmAuthorizationRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeArmAuthorizationRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeArmAuthorizationRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SubscribeArmAuthorizationRequest(::google::protobuf::internal::ConstantInitialized); + + inline SubscribeArmAuthorizationRequest(const SubscribeArmAuthorizationRequest& from) : + SubscribeArmAuthorizationRequest(nullptr, from) + {} + inline SubscribeArmAuthorizationRequest(SubscribeArmAuthorizationRequest&& from) noexcept : + SubscribeArmAuthorizationRequest(nullptr, std::move(from)) + {} + inline SubscribeArmAuthorizationRequest& operator=(const SubscribeArmAuthorizationRequest& from) + { + CopyFrom(from); + return *this; + } + inline SubscribeArmAuthorizationRequest& + operator=(SubscribeArmAuthorizationRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SubscribeArmAuthorizationRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const SubscribeArmAuthorizationRequest* internal_default_instance() + { + return reinterpret_cast( + &_SubscribeArmAuthorizationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(SubscribeArmAuthorizationRequest& a, SubscribeArmAuthorizationRequest& b) + { + a.Swap(&b); + } + inline void Swap(SubscribeArmAuthorizationRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SubscribeArmAuthorizationRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + SubscribeArmAuthorizationRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + SubscribeArmAuthorizationRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeArmAuthorizationRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeArmAuthorizationRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest"; + } + +protected: + explicit SubscribeArmAuthorizationRequest(::google::protobuf::Arena* arena); + SubscribeArmAuthorizationRequest( + ::google::protobuf::Arena* arena, const SubscribeArmAuthorizationRequest& from); + SubscribeArmAuthorizationRequest( + ::google::protobuf::Arena* arena, SubscribeArmAuthorizationRequest&& from) noexcept : + SubscribeArmAuthorizationRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SubscribeArmAuthorizationRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; +}; // ------------------------------------------------------------------- -class SubscribeArmAuthorizationRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest) */ { - public: - inline SubscribeArmAuthorizationRequest() : SubscribeArmAuthorizationRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeArmAuthorizationRequest(::google::protobuf::internal::ConstantInitialized); - - inline SubscribeArmAuthorizationRequest(const SubscribeArmAuthorizationRequest& from) - : SubscribeArmAuthorizationRequest(nullptr, from) {} - SubscribeArmAuthorizationRequest(SubscribeArmAuthorizationRequest&& from) noexcept - : SubscribeArmAuthorizationRequest() { - *this = ::std::move(from); - } - - inline SubscribeArmAuthorizationRequest& operator=(const SubscribeArmAuthorizationRequest& from) { - CopyFrom(from); - return *this; - } - inline SubscribeArmAuthorizationRequest& operator=(SubscribeArmAuthorizationRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubscribeArmAuthorizationRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubscribeArmAuthorizationRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeArmAuthorizationRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(SubscribeArmAuthorizationRequest& a, SubscribeArmAuthorizationRequest& b) { - a.Swap(&b); - } - inline void Swap(SubscribeArmAuthorizationRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubscribeArmAuthorizationRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubscribeArmAuthorizationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeArmAuthorizationRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeArmAuthorizationRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest"; - } - protected: - explicit SubscribeArmAuthorizationRequest(::google::protobuf::Arena* arena); - SubscribeArmAuthorizationRequest(::google::protobuf::Arena* arena, const SubscribeArmAuthorizationRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class RejectArmAuthorizationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) */ { - public: - inline RejectArmAuthorizationRequest() : RejectArmAuthorizationRequest(nullptr) {} - ~RejectArmAuthorizationRequest() override; - template - explicit PROTOBUF_CONSTEXPR RejectArmAuthorizationRequest(::google::protobuf::internal::ConstantInitialized); - - inline RejectArmAuthorizationRequest(const RejectArmAuthorizationRequest& from) - : RejectArmAuthorizationRequest(nullptr, from) {} - RejectArmAuthorizationRequest(RejectArmAuthorizationRequest&& from) noexcept - : RejectArmAuthorizationRequest() { - *this = ::std::move(from); - } - - inline RejectArmAuthorizationRequest& operator=(const RejectArmAuthorizationRequest& from) { - CopyFrom(from); - return *this; - } - inline RejectArmAuthorizationRequest& operator=(RejectArmAuthorizationRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RejectArmAuthorizationRequest& default_instance() { - return *internal_default_instance(); - } - static inline const RejectArmAuthorizationRequest* internal_default_instance() { - return reinterpret_cast( - &_RejectArmAuthorizationRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(RejectArmAuthorizationRequest& a, RejectArmAuthorizationRequest& b) { - a.Swap(&b); - } - inline void Swap(RejectArmAuthorizationRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RejectArmAuthorizationRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RejectArmAuthorizationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RejectArmAuthorizationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RejectArmAuthorizationRequest& from) { - RejectArmAuthorizationRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(RejectArmAuthorizationRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest"; - } - protected: - explicit RejectArmAuthorizationRequest(::google::protobuf::Arena* arena); - RejectArmAuthorizationRequest(::google::protobuf::Arena* arena, const RejectArmAuthorizationRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTemporarilyFieldNumber = 1, - kReasonFieldNumber = 2, - kExtraInfoFieldNumber = 3, - }; - // bool temporarily = 1; - void clear_temporarily() ; - bool temporarily() const; - void set_temporarily(bool value); - - private: - bool _internal_temporarily() const; - void _internal_set_temporarily(bool value); - - public: - // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; - void clear_reason() ; - ::mavsdk::rpc::arm_authorizer_server::RejectionReason reason() const; - void set_reason(::mavsdk::rpc::arm_authorizer_server::RejectionReason value); - - private: - ::mavsdk::rpc::arm_authorizer_server::RejectionReason _internal_reason() const; - void _internal_set_reason(::mavsdk::rpc::arm_authorizer_server::RejectionReason value); - - public: - // int32 extra_info = 3; - void clear_extra_info() ; - ::int32_t extra_info() const; - void set_extra_info(::int32_t value); - - private: - ::int32_t _internal_extra_info() const; - void _internal_set_extra_info(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool temporarily_; - int reason_; - ::int32_t extra_info_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class ArmAuthorizerServerResult final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) */ { - public: - inline ArmAuthorizerServerResult() : ArmAuthorizerServerResult(nullptr) {} - ~ArmAuthorizerServerResult() override; - template - explicit PROTOBUF_CONSTEXPR ArmAuthorizerServerResult(::google::protobuf::internal::ConstantInitialized); - - inline ArmAuthorizerServerResult(const ArmAuthorizerServerResult& from) - : ArmAuthorizerServerResult(nullptr, from) {} - ArmAuthorizerServerResult(ArmAuthorizerServerResult&& from) noexcept - : ArmAuthorizerServerResult() { - *this = ::std::move(from); - } - - inline ArmAuthorizerServerResult& operator=(const ArmAuthorizerServerResult& from) { - CopyFrom(from); - return *this; - } - inline ArmAuthorizerServerResult& operator=(ArmAuthorizerServerResult&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ArmAuthorizerServerResult& default_instance() { - return *internal_default_instance(); - } - static inline const ArmAuthorizerServerResult* internal_default_instance() { - return reinterpret_cast( - &_ArmAuthorizerServerResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(ArmAuthorizerServerResult& a, ArmAuthorizerServerResult& b) { - a.Swap(&b); - } - inline void Swap(ArmAuthorizerServerResult* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ArmAuthorizerServerResult* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ArmAuthorizerServerResult* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ArmAuthorizerServerResult& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ArmAuthorizerServerResult& from) { - ArmAuthorizerServerResult::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ArmAuthorizerServerResult* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult"; - } - protected: - explicit ArmAuthorizerServerResult(::google::protobuf::Arena* arena); - ArmAuthorizerServerResult(::google::protobuf::Arena* arena, const ArmAuthorizerServerResult& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - using Result = ArmAuthorizerServerResult_Result; - static constexpr Result RESULT_UNKNOWN = ArmAuthorizerServerResult_Result_RESULT_UNKNOWN; - static constexpr Result RESULT_SUCCESS = ArmAuthorizerServerResult_Result_RESULT_SUCCESS; - static constexpr Result RESULT_FAILED = ArmAuthorizerServerResult_Result_RESULT_FAILED; - static inline bool Result_IsValid(int value) { - return ArmAuthorizerServerResult_Result_IsValid(value); - } - static constexpr Result Result_MIN = ArmAuthorizerServerResult_Result_Result_MIN; - static constexpr Result Result_MAX = ArmAuthorizerServerResult_Result_Result_MAX; - static constexpr int Result_ARRAYSIZE = ArmAuthorizerServerResult_Result_Result_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* Result_descriptor() { - return ArmAuthorizerServerResult_Result_descriptor(); - } - template - static inline const std::string& Result_Name(T value) { - return ArmAuthorizerServerResult_Result_Name(value); - } - static inline bool Result_Parse(absl::string_view name, Result* value) { - return ArmAuthorizerServerResult_Result_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kResultStrFieldNumber = 2, - kResultFieldNumber = 1, - }; - // string result_str = 2; - void clear_result_str() ; - const std::string& result_str() const; - template - void set_result_str(Arg_&& arg, Args_... args); - std::string* mutable_result_str(); - PROTOBUF_NODISCARD std::string* release_result_str(); - void set_allocated_result_str(std::string* value); - - private: - const std::string& _internal_result_str() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str( - const std::string& value); - std::string* _internal_mutable_result_str(); - - public: - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; - void clear_result() ; - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result result() const; - void set_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result value); - - private: - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result _internal_result() const; - void _internal_set_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 77, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr result_str_; - int result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class ArmAuthorizationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) */ { - public: - inline ArmAuthorizationResponse() : ArmAuthorizationResponse(nullptr) {} - ~ArmAuthorizationResponse() override; - template - explicit PROTOBUF_CONSTEXPR ArmAuthorizationResponse(::google::protobuf::internal::ConstantInitialized); - - inline ArmAuthorizationResponse(const ArmAuthorizationResponse& from) - : ArmAuthorizationResponse(nullptr, from) {} - ArmAuthorizationResponse(ArmAuthorizationResponse&& from) noexcept - : ArmAuthorizationResponse() { - *this = ::std::move(from); - } - - inline ArmAuthorizationResponse& operator=(const ArmAuthorizationResponse& from) { - CopyFrom(from); - return *this; - } - inline ArmAuthorizationResponse& operator=(ArmAuthorizationResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ArmAuthorizationResponse& default_instance() { - return *internal_default_instance(); - } - static inline const ArmAuthorizationResponse* internal_default_instance() { - return reinterpret_cast( - &_ArmAuthorizationResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(ArmAuthorizationResponse& a, ArmAuthorizationResponse& b) { - a.Swap(&b); - } - inline void Swap(ArmAuthorizationResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ArmAuthorizationResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ArmAuthorizationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ArmAuthorizationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ArmAuthorizationResponse& from) { - ArmAuthorizationResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ArmAuthorizationResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse"; - } - protected: - explicit ArmAuthorizationResponse(::google::protobuf::Arena* arena); - ArmAuthorizationResponse(::google::protobuf::Arena* arena, const ArmAuthorizationResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSystemIdFieldNumber = 1, - }; - // uint32 system_id = 1; - void clear_system_id() ; - ::uint32_t system_id() const; - void set_system_id(::uint32_t value); - - private: - ::uint32_t _internal_system_id() const; - void _internal_set_system_id(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint32_t system_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class AcceptArmAuthorizationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) */ { - public: - inline AcceptArmAuthorizationRequest() : AcceptArmAuthorizationRequest(nullptr) {} - ~AcceptArmAuthorizationRequest() override; - template - explicit PROTOBUF_CONSTEXPR AcceptArmAuthorizationRequest(::google::protobuf::internal::ConstantInitialized); - - inline AcceptArmAuthorizationRequest(const AcceptArmAuthorizationRequest& from) - : AcceptArmAuthorizationRequest(nullptr, from) {} - AcceptArmAuthorizationRequest(AcceptArmAuthorizationRequest&& from) noexcept - : AcceptArmAuthorizationRequest() { - *this = ::std::move(from); - } - - inline AcceptArmAuthorizationRequest& operator=(const AcceptArmAuthorizationRequest& from) { - CopyFrom(from); - return *this; - } - inline AcceptArmAuthorizationRequest& operator=(AcceptArmAuthorizationRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AcceptArmAuthorizationRequest& default_instance() { - return *internal_default_instance(); - } - static inline const AcceptArmAuthorizationRequest* internal_default_instance() { - return reinterpret_cast( - &_AcceptArmAuthorizationRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(AcceptArmAuthorizationRequest& a, AcceptArmAuthorizationRequest& b) { - a.Swap(&b); - } - inline void Swap(AcceptArmAuthorizationRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AcceptArmAuthorizationRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AcceptArmAuthorizationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AcceptArmAuthorizationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AcceptArmAuthorizationRequest& from) { - AcceptArmAuthorizationRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AcceptArmAuthorizationRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest"; - } - protected: - explicit AcceptArmAuthorizationRequest(::google::protobuf::Arena* arena); - AcceptArmAuthorizationRequest(::google::protobuf::Arena* arena, const AcceptArmAuthorizationRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kValidTimeSFieldNumber = 1, - }; - // int32 valid_time_s = 1; - void clear_valid_time_s() ; - ::int32_t valid_time_s() const; - void set_valid_time_s(::int32_t value); - - private: - ::int32_t _internal_valid_time_s() const; - void _internal_set_valid_time_s(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::int32_t valid_time_s_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class RejectArmAuthorizationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) */ { - public: - inline RejectArmAuthorizationResponse() : RejectArmAuthorizationResponse(nullptr) {} - ~RejectArmAuthorizationResponse() override; - template - explicit PROTOBUF_CONSTEXPR RejectArmAuthorizationResponse(::google::protobuf::internal::ConstantInitialized); - - inline RejectArmAuthorizationResponse(const RejectArmAuthorizationResponse& from) - : RejectArmAuthorizationResponse(nullptr, from) {} - RejectArmAuthorizationResponse(RejectArmAuthorizationResponse&& from) noexcept - : RejectArmAuthorizationResponse() { - *this = ::std::move(from); - } - - inline RejectArmAuthorizationResponse& operator=(const RejectArmAuthorizationResponse& from) { - CopyFrom(from); - return *this; - } - inline RejectArmAuthorizationResponse& operator=(RejectArmAuthorizationResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RejectArmAuthorizationResponse& default_instance() { - return *internal_default_instance(); - } - static inline const RejectArmAuthorizationResponse* internal_default_instance() { - return reinterpret_cast( - &_RejectArmAuthorizationResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(RejectArmAuthorizationResponse& a, RejectArmAuthorizationResponse& b) { - a.Swap(&b); - } - inline void Swap(RejectArmAuthorizationResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RejectArmAuthorizationResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RejectArmAuthorizationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RejectArmAuthorizationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RejectArmAuthorizationResponse& from) { - RejectArmAuthorizationResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(RejectArmAuthorizationResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse"; - } - protected: - explicit RejectArmAuthorizationResponse(::google::protobuf::Arena* arena); - RejectArmAuthorizationResponse(::google::protobuf::Arena* arena, const RejectArmAuthorizationResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArmAuthorizerServerResultFieldNumber = 1, - }; - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; - bool has_arm_authorizer_server_result() const; - void clear_arm_authorizer_server_result() ; - const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& arm_authorizer_server_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* release_arm_authorizer_server_result(); - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* mutable_arm_authorizer_server_result(); - void set_allocated_arm_authorizer_server_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value); - void unsafe_arena_set_allocated_arm_authorizer_server_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value); - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* unsafe_arena_release_arm_authorizer_server_result(); - - private: - const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& _internal_arm_authorizer_server_result() const; - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* _internal_mutable_arm_authorizer_server_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* arm_authorizer_server_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; -};// ------------------------------------------------------------------- - -class AcceptArmAuthorizationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) */ { - public: - inline AcceptArmAuthorizationResponse() : AcceptArmAuthorizationResponse(nullptr) {} - ~AcceptArmAuthorizationResponse() override; - template - explicit PROTOBUF_CONSTEXPR AcceptArmAuthorizationResponse(::google::protobuf::internal::ConstantInitialized); - - inline AcceptArmAuthorizationResponse(const AcceptArmAuthorizationResponse& from) - : AcceptArmAuthorizationResponse(nullptr, from) {} - AcceptArmAuthorizationResponse(AcceptArmAuthorizationResponse&& from) noexcept - : AcceptArmAuthorizationResponse() { - *this = ::std::move(from); - } - - inline AcceptArmAuthorizationResponse& operator=(const AcceptArmAuthorizationResponse& from) { - CopyFrom(from); - return *this; - } - inline AcceptArmAuthorizationResponse& operator=(AcceptArmAuthorizationResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AcceptArmAuthorizationResponse& default_instance() { - return *internal_default_instance(); - } - static inline const AcceptArmAuthorizationResponse* internal_default_instance() { - return reinterpret_cast( - &_AcceptArmAuthorizationResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(AcceptArmAuthorizationResponse& a, AcceptArmAuthorizationResponse& b) { - a.Swap(&b); - } - inline void Swap(AcceptArmAuthorizationResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AcceptArmAuthorizationResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AcceptArmAuthorizationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AcceptArmAuthorizationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AcceptArmAuthorizationResponse& from) { - AcceptArmAuthorizationResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AcceptArmAuthorizationResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse"; - } - protected: - explicit AcceptArmAuthorizationResponse(::google::protobuf::Arena* arena); - AcceptArmAuthorizationResponse(::google::protobuf::Arena* arena, const AcceptArmAuthorizationResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArmAuthorizerServerResultFieldNumber = 1, - }; - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; - bool has_arm_authorizer_server_result() const; - void clear_arm_authorizer_server_result() ; - const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& arm_authorizer_server_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* release_arm_authorizer_server_result(); - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* mutable_arm_authorizer_server_result(); - void set_allocated_arm_authorizer_server_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value); - void unsafe_arena_set_allocated_arm_authorizer_server_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value); - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* unsafe_arena_release_arm_authorizer_server_result(); - - private: - const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& _internal_arm_authorizer_server_result() const; - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* _internal_mutable_arm_authorizer_server_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* arm_authorizer_server_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; +class RejectArmAuthorizationRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) + */ +{ +public: + inline RejectArmAuthorizationRequest() : RejectArmAuthorizationRequest(nullptr) {} + ~RejectArmAuthorizationRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(RejectArmAuthorizationRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(RejectArmAuthorizationRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + RejectArmAuthorizationRequest(::google::protobuf::internal::ConstantInitialized); + + inline RejectArmAuthorizationRequest(const RejectArmAuthorizationRequest& from) : + RejectArmAuthorizationRequest(nullptr, from) + {} + inline RejectArmAuthorizationRequest(RejectArmAuthorizationRequest&& from) noexcept : + RejectArmAuthorizationRequest(nullptr, std::move(from)) + {} + inline RejectArmAuthorizationRequest& operator=(const RejectArmAuthorizationRequest& from) + { + CopyFrom(from); + return *this; + } + inline RejectArmAuthorizationRequest& operator=(RejectArmAuthorizationRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const RejectArmAuthorizationRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const RejectArmAuthorizationRequest* internal_default_instance() + { + return reinterpret_cast( + &_RejectArmAuthorizationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(RejectArmAuthorizationRequest& a, RejectArmAuthorizationRequest& b) + { + a.Swap(&b); + } + inline void Swap(RejectArmAuthorizationRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RejectArmAuthorizationRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RejectArmAuthorizationRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const RejectArmAuthorizationRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const RejectArmAuthorizationRequest& from) + { + RejectArmAuthorizationRequest::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(RejectArmAuthorizationRequest* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest"; + } + +protected: + explicit RejectArmAuthorizationRequest(::google::protobuf::Arena* arena); + RejectArmAuthorizationRequest( + ::google::protobuf::Arena* arena, const RejectArmAuthorizationRequest& from); + RejectArmAuthorizationRequest( + ::google::protobuf::Arena* arena, RejectArmAuthorizationRequest&& from) noexcept : + RejectArmAuthorizationRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kTemporarilyFieldNumber = 1, + kReasonFieldNumber = 2, + kExtraInfoFieldNumber = 3, + }; + // bool temporarily = 1; + void clear_temporarily(); + bool temporarily() const; + void set_temporarily(bool value); + +private: + bool _internal_temporarily() const; + void _internal_set_temporarily(bool value); + +public: + // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; + void clear_reason(); + ::mavsdk::rpc::arm_authorizer_server::RejectionReason reason() const; + void set_reason(::mavsdk::rpc::arm_authorizer_server::RejectionReason value); + +private: + ::mavsdk::rpc::arm_authorizer_server::RejectionReason _internal_reason() const; + void _internal_set_reason(::mavsdk::rpc::arm_authorizer_server::RejectionReason value); + +public: + // int32 extra_info = 3; + void clear_extra_info(); + ::int32_t extra_info() const; + void set_extra_info(::int32_t value); + +private: + ::int32_t _internal_extra_info() const; + void _internal_set_extra_info(::int32_t value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const RejectArmAuthorizationRequest& from_msg); + bool temporarily_; + int reason_; + ::int32_t extra_info_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; }; +// ------------------------------------------------------------------- -// =================================================================== +class ArmAuthorizerServerResult final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) + */ +{ +public: + inline ArmAuthorizerServerResult() : ArmAuthorizerServerResult(nullptr) {} + ~ArmAuthorizerServerResult() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmAuthorizerServerResult* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmAuthorizerServerResult)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + ArmAuthorizerServerResult(::google::protobuf::internal::ConstantInitialized); + + inline ArmAuthorizerServerResult(const ArmAuthorizerServerResult& from) : + ArmAuthorizerServerResult(nullptr, from) + {} + inline ArmAuthorizerServerResult(ArmAuthorizerServerResult&& from) noexcept : + ArmAuthorizerServerResult(nullptr, std::move(from)) + {} + inline ArmAuthorizerServerResult& operator=(const ArmAuthorizerServerResult& from) + { + CopyFrom(from); + return *this; + } + inline ArmAuthorizerServerResult& operator=(ArmAuthorizerServerResult&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ArmAuthorizerServerResult& default_instance() + { + return *internal_default_instance(); + } + static inline const ArmAuthorizerServerResult* internal_default_instance() + { + return reinterpret_cast( + &_ArmAuthorizerServerResult_default_instance_); + } + static constexpr int kIndexInFileMessages = 6; + friend void swap(ArmAuthorizerServerResult& a, ArmAuthorizerServerResult& b) { a.Swap(&b); } + inline void Swap(ArmAuthorizerServerResult* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ArmAuthorizerServerResult* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ArmAuthorizerServerResult* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ArmAuthorizerServerResult& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ArmAuthorizerServerResult& from) + { + ArmAuthorizerServerResult::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ArmAuthorizerServerResult* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult"; + } + +protected: + explicit ArmAuthorizerServerResult(::google::protobuf::Arena* arena); + ArmAuthorizerServerResult( + ::google::protobuf::Arena* arena, const ArmAuthorizerServerResult& from); + ArmAuthorizerServerResult( + ::google::protobuf::Arena* arena, ArmAuthorizerServerResult&& from) noexcept : + ArmAuthorizerServerResult(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + using Result = ArmAuthorizerServerResult_Result; + static constexpr Result RESULT_UNKNOWN = ArmAuthorizerServerResult_Result_RESULT_UNKNOWN; + static constexpr Result RESULT_SUCCESS = ArmAuthorizerServerResult_Result_RESULT_SUCCESS; + static constexpr Result RESULT_FAILED = ArmAuthorizerServerResult_Result_RESULT_FAILED; + static inline bool Result_IsValid(int value) + { + return ArmAuthorizerServerResult_Result_IsValid(value); + } + static constexpr Result Result_MIN = ArmAuthorizerServerResult_Result_Result_MIN; + static constexpr Result Result_MAX = ArmAuthorizerServerResult_Result_Result_MAX; + static constexpr int Result_ARRAYSIZE = ArmAuthorizerServerResult_Result_Result_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Result_descriptor() + { + return ArmAuthorizerServerResult_Result_descriptor(); + } + template static inline const std::string& Result_Name(T value) + { + return ArmAuthorizerServerResult_Result_Name(value); + } + static inline bool Result_Parse(absl::string_view name, Result* value) + { + return ArmAuthorizerServerResult_Result_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kResultStrFieldNumber = 2, + kResultFieldNumber = 1, + }; + // string result_str = 2; + void clear_result_str(); + const std::string& result_str() const; + template + void set_result_str(Arg_&& arg, Args_... args); + std::string* mutable_result_str(); + PROTOBUF_NODISCARD std::string* release_result_str(); + void set_allocated_result_str(std::string* value); + +private: + const std::string& _internal_result_str() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str(const std::string& value); + std::string* _internal_mutable_result_str(); + +public: + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; + void clear_result(); + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result result() const; + void set_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result value); + +private: + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result _internal_result() const; + void _internal_set_result( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 77, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ArmAuthorizerServerResult& from_msg); + ::google::protobuf::internal::ArenaStringPtr result_str_; + int result_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class ArmAuthorizationResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) + */ +{ +public: + inline ArmAuthorizationResponse() : ArmAuthorizationResponse(nullptr) {} + ~ArmAuthorizationResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmAuthorizationResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmAuthorizationResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + ArmAuthorizationResponse(::google::protobuf::internal::ConstantInitialized); + + inline ArmAuthorizationResponse(const ArmAuthorizationResponse& from) : + ArmAuthorizationResponse(nullptr, from) + {} + inline ArmAuthorizationResponse(ArmAuthorizationResponse&& from) noexcept : + ArmAuthorizationResponse(nullptr, std::move(from)) + {} + inline ArmAuthorizationResponse& operator=(const ArmAuthorizationResponse& from) + { + CopyFrom(from); + return *this; + } + inline ArmAuthorizationResponse& operator=(ArmAuthorizationResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ArmAuthorizationResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const ArmAuthorizationResponse* internal_default_instance() + { + return reinterpret_cast( + &_ArmAuthorizationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(ArmAuthorizationResponse& a, ArmAuthorizationResponse& b) { a.Swap(&b); } + inline void Swap(ArmAuthorizationResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ArmAuthorizationResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ArmAuthorizationResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ArmAuthorizationResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ArmAuthorizationResponse& from) + { + ArmAuthorizationResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ArmAuthorizationResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse"; + } + +protected: + explicit ArmAuthorizationResponse(::google::protobuf::Arena* arena); + ArmAuthorizationResponse( + ::google::protobuf::Arena* arena, const ArmAuthorizationResponse& from); + ArmAuthorizationResponse( + ::google::protobuf::Arena* arena, ArmAuthorizationResponse&& from) noexcept : + ArmAuthorizationResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSystemIdFieldNumber = 1, + }; + // uint32 system_id = 1; + void clear_system_id(); + ::uint32_t system_id() const; + void set_system_id(::uint32_t value); + +private: + ::uint32_t _internal_system_id() const; + void _internal_set_system_id(::uint32_t value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ArmAuthorizationResponse& from_msg); + ::uint32_t system_id_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class AcceptArmAuthorizationRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) + */ +{ +public: + inline AcceptArmAuthorizationRequest() : AcceptArmAuthorizationRequest(nullptr) {} + ~AcceptArmAuthorizationRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AcceptArmAuthorizationRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AcceptArmAuthorizationRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + AcceptArmAuthorizationRequest(::google::protobuf::internal::ConstantInitialized); + + inline AcceptArmAuthorizationRequest(const AcceptArmAuthorizationRequest& from) : + AcceptArmAuthorizationRequest(nullptr, from) + {} + inline AcceptArmAuthorizationRequest(AcceptArmAuthorizationRequest&& from) noexcept : + AcceptArmAuthorizationRequest(nullptr, std::move(from)) + {} + inline AcceptArmAuthorizationRequest& operator=(const AcceptArmAuthorizationRequest& from) + { + CopyFrom(from); + return *this; + } + inline AcceptArmAuthorizationRequest& operator=(AcceptArmAuthorizationRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const AcceptArmAuthorizationRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const AcceptArmAuthorizationRequest* internal_default_instance() + { + return reinterpret_cast( + &_AcceptArmAuthorizationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(AcceptArmAuthorizationRequest& a, AcceptArmAuthorizationRequest& b) + { + a.Swap(&b); + } + inline void Swap(AcceptArmAuthorizationRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AcceptArmAuthorizationRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AcceptArmAuthorizationRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const AcceptArmAuthorizationRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const AcceptArmAuthorizationRequest& from) + { + AcceptArmAuthorizationRequest::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(AcceptArmAuthorizationRequest* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest"; + } + +protected: + explicit AcceptArmAuthorizationRequest(::google::protobuf::Arena* arena); + AcceptArmAuthorizationRequest( + ::google::protobuf::Arena* arena, const AcceptArmAuthorizationRequest& from); + AcceptArmAuthorizationRequest( + ::google::protobuf::Arena* arena, AcceptArmAuthorizationRequest&& from) noexcept : + AcceptArmAuthorizationRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kValidTimeSFieldNumber = 1, + }; + // int32 valid_time_s = 1; + void clear_valid_time_s(); + ::int32_t valid_time_s() const; + void set_valid_time_s(::int32_t value); + +private: + ::int32_t _internal_valid_time_s() const; + void _internal_set_valid_time_s(::int32_t value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const AcceptArmAuthorizationRequest& from_msg); + ::int32_t valid_time_s_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class RejectArmAuthorizationResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) + */ +{ +public: + inline RejectArmAuthorizationResponse() : RejectArmAuthorizationResponse(nullptr) {} + ~RejectArmAuthorizationResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(RejectArmAuthorizationResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(RejectArmAuthorizationResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + RejectArmAuthorizationResponse(::google::protobuf::internal::ConstantInitialized); + + inline RejectArmAuthorizationResponse(const RejectArmAuthorizationResponse& from) : + RejectArmAuthorizationResponse(nullptr, from) + {} + inline RejectArmAuthorizationResponse(RejectArmAuthorizationResponse&& from) noexcept : + RejectArmAuthorizationResponse(nullptr, std::move(from)) + {} + inline RejectArmAuthorizationResponse& operator=(const RejectArmAuthorizationResponse& from) + { + CopyFrom(from); + return *this; + } + inline RejectArmAuthorizationResponse& operator=(RejectArmAuthorizationResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const RejectArmAuthorizationResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const RejectArmAuthorizationResponse* internal_default_instance() + { + return reinterpret_cast( + &_RejectArmAuthorizationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 5; + friend void swap(RejectArmAuthorizationResponse& a, RejectArmAuthorizationResponse& b) + { + a.Swap(&b); + } + inline void Swap(RejectArmAuthorizationResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RejectArmAuthorizationResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RejectArmAuthorizationResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const RejectArmAuthorizationResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const RejectArmAuthorizationResponse& from) + { + RejectArmAuthorizationResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(RejectArmAuthorizationResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse"; + } + +protected: + explicit RejectArmAuthorizationResponse(::google::protobuf::Arena* arena); + RejectArmAuthorizationResponse( + ::google::protobuf::Arena* arena, const RejectArmAuthorizationResponse& from); + RejectArmAuthorizationResponse( + ::google::protobuf::Arena* arena, RejectArmAuthorizationResponse&& from) noexcept : + RejectArmAuthorizationResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kArmAuthorizerServerResultFieldNumber = 1, + }; + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; + bool has_arm_authorizer_server_result() const; + void clear_arm_authorizer_server_result(); + const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& + arm_authorizer_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* + release_arm_authorizer_server_result(); + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* + mutable_arm_authorizer_server_result(); + void set_allocated_arm_authorizer_server_result( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value); + void unsafe_arena_set_allocated_arm_authorizer_server_result( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value); + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* + unsafe_arena_release_arm_authorizer_server_result(); + +private: + const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& + _internal_arm_authorizer_server_result() const; + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* + _internal_mutable_arm_authorizer_server_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const RejectArmAuthorizationResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* + arm_authorizer_server_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class AcceptArmAuthorizationResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) + */ +{ +public: + inline AcceptArmAuthorizationResponse() : AcceptArmAuthorizationResponse(nullptr) {} + ~AcceptArmAuthorizationResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AcceptArmAuthorizationResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AcceptArmAuthorizationResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + AcceptArmAuthorizationResponse(::google::protobuf::internal::ConstantInitialized); + + inline AcceptArmAuthorizationResponse(const AcceptArmAuthorizationResponse& from) : + AcceptArmAuthorizationResponse(nullptr, from) + {} + inline AcceptArmAuthorizationResponse(AcceptArmAuthorizationResponse&& from) noexcept : + AcceptArmAuthorizationResponse(nullptr, std::move(from)) + {} + inline AcceptArmAuthorizationResponse& operator=(const AcceptArmAuthorizationResponse& from) + { + CopyFrom(from); + return *this; + } + inline AcceptArmAuthorizationResponse& operator=(AcceptArmAuthorizationResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const AcceptArmAuthorizationResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const AcceptArmAuthorizationResponse* internal_default_instance() + { + return reinterpret_cast( + &_AcceptArmAuthorizationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(AcceptArmAuthorizationResponse& a, AcceptArmAuthorizationResponse& b) + { + a.Swap(&b); + } + inline void Swap(AcceptArmAuthorizationResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AcceptArmAuthorizationResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + // implements Message ---------------------------------------------- + AcceptArmAuthorizationResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const AcceptArmAuthorizationResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const AcceptArmAuthorizationResponse& from) + { + AcceptArmAuthorizationResponse::MergeImpl(*this, from); + } +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(AcceptArmAuthorizationResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse"; + } + +protected: + explicit AcceptArmAuthorizationResponse(::google::protobuf::Arena* arena); + AcceptArmAuthorizationResponse( + ::google::protobuf::Arena* arena, const AcceptArmAuthorizationResponse& from); + AcceptArmAuthorizationResponse( + ::google::protobuf::Arena* arena, AcceptArmAuthorizationResponse&& from) noexcept : + AcceptArmAuthorizationResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kArmAuthorizerServerResultFieldNumber = 1, + }; + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; + bool has_arm_authorizer_server_result() const; + void clear_arm_authorizer_server_result(); + const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& + arm_authorizer_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* + release_arm_authorizer_server_result(); + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* + mutable_arm_authorizer_server_result(); + void set_allocated_arm_authorizer_server_result( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value); + void unsafe_arena_set_allocated_arm_authorizer_server_result( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value); + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* + unsafe_arena_release_arm_authorizer_server_result(); + +private: + const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& + _internal_arm_authorizer_server_result() const; + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* + _internal_mutable_arm_authorizer_server_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const AcceptArmAuthorizationResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* + arm_authorizer_server_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; +}; // =================================================================== +// =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ +#endif // __GNUC__ // ------------------------------------------------------------------- // SubscribeArmAuthorizationRequest @@ -1452,26 +1749,30 @@ class AcceptArmAuthorizationResponse final : // ArmAuthorizationResponse // uint32 system_id = 1; -inline void ArmAuthorizationResponse::clear_system_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.system_id_ = 0u; +inline void ArmAuthorizationResponse::clear_system_id() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.system_id_ = 0u; } -inline ::uint32_t ArmAuthorizationResponse::system_id() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse.system_id) - return _internal_system_id(); +inline ::uint32_t ArmAuthorizationResponse::system_id() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse.system_id) + return _internal_system_id(); } -inline void ArmAuthorizationResponse::set_system_id(::uint32_t value) { - _internal_set_system_id(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse.system_id) +inline void ArmAuthorizationResponse::set_system_id(::uint32_t value) +{ + _internal_set_system_id(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse.system_id) } -inline ::uint32_t ArmAuthorizationResponse::_internal_system_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.system_id_; +inline ::uint32_t ArmAuthorizationResponse::_internal_system_id() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.system_id_; } -inline void ArmAuthorizationResponse::_internal_set_system_id(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.system_id_ = value; +inline void ArmAuthorizationResponse::_internal_set_system_id(::uint32_t value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.system_id_ = value; } // ------------------------------------------------------------------- @@ -1479,26 +1780,30 @@ inline void ArmAuthorizationResponse::_internal_set_system_id(::uint32_t value) // AcceptArmAuthorizationRequest // int32 valid_time_s = 1; -inline void AcceptArmAuthorizationRequest::clear_valid_time_s() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.valid_time_s_ = 0; +inline void AcceptArmAuthorizationRequest::clear_valid_time_s() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.valid_time_s_ = 0; } -inline ::int32_t AcceptArmAuthorizationRequest::valid_time_s() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest.valid_time_s) - return _internal_valid_time_s(); +inline ::int32_t AcceptArmAuthorizationRequest::valid_time_s() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest.valid_time_s) + return _internal_valid_time_s(); } -inline void AcceptArmAuthorizationRequest::set_valid_time_s(::int32_t value) { - _internal_set_valid_time_s(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest.valid_time_s) +inline void AcceptArmAuthorizationRequest::set_valid_time_s(::int32_t value) +{ + _internal_set_valid_time_s(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest.valid_time_s) } -inline ::int32_t AcceptArmAuthorizationRequest::_internal_valid_time_s() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.valid_time_s_; +inline ::int32_t AcceptArmAuthorizationRequest::_internal_valid_time_s() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.valid_time_s_; } -inline void AcceptArmAuthorizationRequest::_internal_set_valid_time_s(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.valid_time_s_ = value; +inline void AcceptArmAuthorizationRequest::_internal_set_valid_time_s(::int32_t value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.valid_time_s_ = value; } // ------------------------------------------------------------------- @@ -1506,99 +1811,133 @@ inline void AcceptArmAuthorizationRequest::_internal_set_valid_time_s(::int32_t // AcceptArmAuthorizationResponse // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; -inline bool AcceptArmAuthorizationResponse::has_arm_authorizer_server_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.arm_authorizer_server_result_ != nullptr); - return value; -} -inline void AcceptArmAuthorizationResponse::clear_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.arm_authorizer_server_result_ != nullptr) _impl_.arm_authorizer_server_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& AcceptArmAuthorizationResponse::_internal_arm_authorizer_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* p = _impl_.arm_authorizer_server_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::arm_authorizer_server::_ArmAuthorizerServerResult_default_instance_); -} -inline const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& AcceptArmAuthorizationResponse::arm_authorizer_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse.arm_authorizer_server_result) - return _internal_arm_authorizer_server_result(); -} -inline void AcceptArmAuthorizationResponse::unsafe_arena_set_allocated_arm_authorizer_server_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.arm_authorizer_server_result_); - } - _impl_.arm_authorizer_server_result_ = reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool AcceptArmAuthorizationResponse::has_arm_authorizer_server_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.arm_authorizer_server_result_ != nullptr); + return value; +} +inline void AcceptArmAuthorizationResponse::clear_arm_authorizer_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.arm_authorizer_server_result_ != nullptr) + _impl_.arm_authorizer_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse.arm_authorizer_server_result) -} -inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* AcceptArmAuthorizationResponse::release_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* released = _impl_.arm_authorizer_server_result_; - _impl_.arm_authorizer_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* AcceptArmAuthorizationResponse::unsafe_arena_release_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse.arm_authorizer_server_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* temp = _impl_.arm_authorizer_server_result_; - _impl_.arm_authorizer_server_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* AcceptArmAuthorizationResponse::_internal_mutable_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.arm_authorizer_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(GetArena()); - _impl_.arm_authorizer_server_result_ = reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(p); - } - return _impl_.arm_authorizer_server_result_; -} -inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* AcceptArmAuthorizationResponse::mutable_arm_authorizer_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* _msg = _internal_mutable_arm_authorizer_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse.arm_authorizer_server_result) - return _msg; -} -inline void AcceptArmAuthorizationResponse::set_allocated_arm_authorizer_server_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(_impl_.arm_authorizer_server_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& +AcceptArmAuthorizationResponse::_internal_arm_authorizer_server_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* p = + _impl_.arm_authorizer_server_result_; + return p != nullptr ? + *p : + reinterpret_cast< + const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult&>( + ::mavsdk::rpc::arm_authorizer_server:: + _ArmAuthorizerServerResult_default_instance_); +} +inline const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& +AcceptArmAuthorizationResponse::arm_authorizer_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse.arm_authorizer_server_result) + return _internal_arm_authorizer_server_result(); +} +inline void AcceptArmAuthorizationResponse::unsafe_arena_set_allocated_arm_authorizer_server_result( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>( + _impl_.arm_authorizer_server_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.arm_authorizer_server_result_ = + reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse.arm_authorizer_server_result) +} +inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* +AcceptArmAuthorizationResponse::release_arm_authorizer_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* released = + _impl_.arm_authorizer_server_result_; + _impl_.arm_authorizer_server_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* +AcceptArmAuthorizationResponse::unsafe_arena_release_arm_authorizer_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse.arm_authorizer_server_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* temp = + _impl_.arm_authorizer_server_result_; + _impl_.arm_authorizer_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* +AcceptArmAuthorizationResponse::_internal_mutable_arm_authorizer_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.arm_authorizer_server_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(GetArena()); + _impl_.arm_authorizer_server_result_ = + reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(p); + } + return _impl_.arm_authorizer_server_result_; +} +inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* +AcceptArmAuthorizationResponse::mutable_arm_authorizer_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* _msg = + _internal_mutable_arm_authorizer_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse.arm_authorizer_server_result) + return _msg; +} +inline void AcceptArmAuthorizationResponse::set_allocated_arm_authorizer_server_result( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.arm_authorizer_server_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.arm_authorizer_server_result_ = reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse.arm_authorizer_server_result) + _impl_.arm_authorizer_server_result_ = + reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse.arm_authorizer_server_result) } // ------------------------------------------------------------------- @@ -1606,72 +1945,88 @@ inline void AcceptArmAuthorizationResponse::set_allocated_arm_authorizer_server_ // RejectArmAuthorizationRequest // bool temporarily = 1; -inline void RejectArmAuthorizationRequest::clear_temporarily() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.temporarily_ = false; +inline void RejectArmAuthorizationRequest::clear_temporarily() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.temporarily_ = false; } -inline bool RejectArmAuthorizationRequest::temporarily() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest.temporarily) - return _internal_temporarily(); +inline bool RejectArmAuthorizationRequest::temporarily() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest.temporarily) + return _internal_temporarily(); } -inline void RejectArmAuthorizationRequest::set_temporarily(bool value) { - _internal_set_temporarily(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest.temporarily) +inline void RejectArmAuthorizationRequest::set_temporarily(bool value) +{ + _internal_set_temporarily(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest.temporarily) } -inline bool RejectArmAuthorizationRequest::_internal_temporarily() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.temporarily_; +inline bool RejectArmAuthorizationRequest::_internal_temporarily() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.temporarily_; } -inline void RejectArmAuthorizationRequest::_internal_set_temporarily(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.temporarily_ = value; +inline void RejectArmAuthorizationRequest::_internal_set_temporarily(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.temporarily_ = value; } // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; -inline void RejectArmAuthorizationRequest::clear_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reason_ = 0; -} -inline ::mavsdk::rpc::arm_authorizer_server::RejectionReason RejectArmAuthorizationRequest::reason() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest.reason) - return _internal_reason(); -} -inline void RejectArmAuthorizationRequest::set_reason(::mavsdk::rpc::arm_authorizer_server::RejectionReason value) { - _internal_set_reason(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest.reason) -} -inline ::mavsdk::rpc::arm_authorizer_server::RejectionReason RejectArmAuthorizationRequest::_internal_reason() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::mavsdk::rpc::arm_authorizer_server::RejectionReason>(_impl_.reason_); -} -inline void RejectArmAuthorizationRequest::_internal_set_reason(::mavsdk::rpc::arm_authorizer_server::RejectionReason value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.reason_ = value; +inline void RejectArmAuthorizationRequest::clear_reason() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.reason_ = 0; +} +inline ::mavsdk::rpc::arm_authorizer_server::RejectionReason +RejectArmAuthorizationRequest::reason() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest.reason) + return _internal_reason(); +} +inline void RejectArmAuthorizationRequest::set_reason( + ::mavsdk::rpc::arm_authorizer_server::RejectionReason value) +{ + _internal_set_reason(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest.reason) +} +inline ::mavsdk::rpc::arm_authorizer_server::RejectionReason +RejectArmAuthorizationRequest::_internal_reason() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::mavsdk::rpc::arm_authorizer_server::RejectionReason>(_impl_.reason_); +} +inline void RejectArmAuthorizationRequest::_internal_set_reason( + ::mavsdk::rpc::arm_authorizer_server::RejectionReason value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.reason_ = value; } // int32 extra_info = 3; -inline void RejectArmAuthorizationRequest::clear_extra_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.extra_info_ = 0; +inline void RejectArmAuthorizationRequest::clear_extra_info() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.extra_info_ = 0; } -inline ::int32_t RejectArmAuthorizationRequest::extra_info() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest.extra_info) - return _internal_extra_info(); +inline ::int32_t RejectArmAuthorizationRequest::extra_info() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest.extra_info) + return _internal_extra_info(); } -inline void RejectArmAuthorizationRequest::set_extra_info(::int32_t value) { - _internal_set_extra_info(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest.extra_info) +inline void RejectArmAuthorizationRequest::set_extra_info(::int32_t value) +{ + _internal_set_extra_info(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest.extra_info) } -inline ::int32_t RejectArmAuthorizationRequest::_internal_extra_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.extra_info_; +inline ::int32_t RejectArmAuthorizationRequest::_internal_extra_info() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.extra_info_; } -inline void RejectArmAuthorizationRequest::_internal_set_extra_info(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.extra_info_ = value; +inline void RejectArmAuthorizationRequest::_internal_set_extra_info(::int32_t value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.extra_info_ = value; } // ------------------------------------------------------------------- @@ -1679,99 +2034,133 @@ inline void RejectArmAuthorizationRequest::_internal_set_extra_info(::int32_t va // RejectArmAuthorizationResponse // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; -inline bool RejectArmAuthorizationResponse::has_arm_authorizer_server_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.arm_authorizer_server_result_ != nullptr); - return value; -} -inline void RejectArmAuthorizationResponse::clear_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.arm_authorizer_server_result_ != nullptr) _impl_.arm_authorizer_server_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& RejectArmAuthorizationResponse::_internal_arm_authorizer_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* p = _impl_.arm_authorizer_server_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::arm_authorizer_server::_ArmAuthorizerServerResult_default_instance_); -} -inline const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& RejectArmAuthorizationResponse::arm_authorizer_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse.arm_authorizer_server_result) - return _internal_arm_authorizer_server_result(); -} -inline void RejectArmAuthorizationResponse::unsafe_arena_set_allocated_arm_authorizer_server_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.arm_authorizer_server_result_); - } - _impl_.arm_authorizer_server_result_ = reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool RejectArmAuthorizationResponse::has_arm_authorizer_server_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.arm_authorizer_server_result_ != nullptr); + return value; +} +inline void RejectArmAuthorizationResponse::clear_arm_authorizer_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.arm_authorizer_server_result_ != nullptr) + _impl_.arm_authorizer_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse.arm_authorizer_server_result) -} -inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* RejectArmAuthorizationResponse::release_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* released = _impl_.arm_authorizer_server_result_; - _impl_.arm_authorizer_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* RejectArmAuthorizationResponse::unsafe_arena_release_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse.arm_authorizer_server_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* temp = _impl_.arm_authorizer_server_result_; - _impl_.arm_authorizer_server_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* RejectArmAuthorizationResponse::_internal_mutable_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.arm_authorizer_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(GetArena()); - _impl_.arm_authorizer_server_result_ = reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(p); - } - return _impl_.arm_authorizer_server_result_; -} -inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* RejectArmAuthorizationResponse::mutable_arm_authorizer_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* _msg = _internal_mutable_arm_authorizer_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse.arm_authorizer_server_result) - return _msg; -} -inline void RejectArmAuthorizationResponse::set_allocated_arm_authorizer_server_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(_impl_.arm_authorizer_server_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& +RejectArmAuthorizationResponse::_internal_arm_authorizer_server_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* p = + _impl_.arm_authorizer_server_result_; + return p != nullptr ? + *p : + reinterpret_cast< + const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult&>( + ::mavsdk::rpc::arm_authorizer_server:: + _ArmAuthorizerServerResult_default_instance_); +} +inline const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& +RejectArmAuthorizationResponse::arm_authorizer_server_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse.arm_authorizer_server_result) + return _internal_arm_authorizer_server_result(); +} +inline void RejectArmAuthorizationResponse::unsafe_arena_set_allocated_arm_authorizer_server_result( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>( + _impl_.arm_authorizer_server_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.arm_authorizer_server_result_ = + reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse.arm_authorizer_server_result) +} +inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* +RejectArmAuthorizationResponse::release_arm_authorizer_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* released = + _impl_.arm_authorizer_server_result_; + _impl_.arm_authorizer_server_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* +RejectArmAuthorizationResponse::unsafe_arena_release_arm_authorizer_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse.arm_authorizer_server_result) - _impl_.arm_authorizer_server_result_ = reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse.arm_authorizer_server_result) + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* temp = + _impl_.arm_authorizer_server_result_; + _impl_.arm_authorizer_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* +RejectArmAuthorizationResponse::_internal_mutable_arm_authorizer_server_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.arm_authorizer_server_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(GetArena()); + _impl_.arm_authorizer_server_result_ = + reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(p); + } + return _impl_.arm_authorizer_server_result_; +} +inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* +RejectArmAuthorizationResponse::mutable_arm_authorizer_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* _msg = + _internal_mutable_arm_authorizer_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse.arm_authorizer_server_result) + return _msg; +} +inline void RejectArmAuthorizationResponse::set_allocated_arm_authorizer_server_result( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.arm_authorizer_server_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.arm_authorizer_server_result_ = + reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse.arm_authorizer_server_result) } // ------------------------------------------------------------------- @@ -1779,112 +2168,130 @@ inline void RejectArmAuthorizationResponse::set_allocated_arm_authorizer_server_ // ArmAuthorizerServerResult // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; -inline void ArmAuthorizerServerResult::clear_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_ = 0; -} -inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result ArmAuthorizerServerResult::result() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result) - return _internal_result(); -} -inline void ArmAuthorizerServerResult::set_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result value) { - _internal_set_result(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result) -} -inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result ArmAuthorizerServerResult::_internal_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result>(_impl_.result_); -} -inline void ArmAuthorizerServerResult::_internal_set_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.result_ = value; +inline void ArmAuthorizerServerResult::clear_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_ = 0; +} +inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result +ArmAuthorizerServerResult::result() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result) + return _internal_result(); +} +inline void ArmAuthorizerServerResult::set_result( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result value) +{ + _internal_set_result(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result) +} +inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result +ArmAuthorizerServerResult::_internal_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result>( + _impl_.result_); +} +inline void ArmAuthorizerServerResult::_internal_set_result( + ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_ = value; } // string result_str = 2; -inline void ArmAuthorizerServerResult::clear_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_str_.ClearToEmpty(); -} -inline const std::string& ArmAuthorizerServerResult::result_str() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str) - return _internal_result_str(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ArmAuthorizerServerResult::set_result_str(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.result_str_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str) -} -inline std::string* ArmAuthorizerServerResult::mutable_result_str() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_result_str(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str) - return _s; -} -inline const std::string& ArmAuthorizerServerResult::_internal_result_str() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.result_str_.Get(); -} -inline void ArmAuthorizerServerResult::_internal_set_result_str(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.result_str_.Set(value, GetArena()); -} -inline std::string* ArmAuthorizerServerResult::_internal_mutable_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.result_str_.Mutable( GetArena()); -} -inline std::string* ArmAuthorizerServerResult::release_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str) - return _impl_.result_str_.Release(); -} -inline void ArmAuthorizerServerResult::set_allocated_result_str(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_str_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.result_str_.IsDefault()) { - _impl_.result_str_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str) +inline void ArmAuthorizerServerResult::clear_result_str() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.ClearToEmpty(); +} +inline const std::string& +ArmAuthorizerServerResult::result_str() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str) + return _internal_result_str(); +} +template +inline PROTOBUF_ALWAYS_INLINE void +ArmAuthorizerServerResult::set_result_str(Arg_&& arg, Args_... args) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str) +} +inline std::string* ArmAuthorizerServerResult::mutable_result_str() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + std::string* _s = _internal_mutable_result_str(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str) + return _s; +} +inline const std::string& ArmAuthorizerServerResult::_internal_result_str() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.result_str_.Get(); +} +inline void ArmAuthorizerServerResult::_internal_set_result_str(const std::string& value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.Set(value, GetArena()); +} +inline std::string* ArmAuthorizerServerResult::_internal_mutable_result_str() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.result_str_.Mutable(GetArena()); +} +inline std::string* ArmAuthorizerServerResult::release_result_str() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str) + return _impl_.result_str_.Release(); +} +inline void ArmAuthorizerServerResult::set_allocated_result_str(std::string* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && + _impl_.result_str_.IsDefault()) { + _impl_.result_str_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str) } #ifdef __GNUC__ #pragma GCC diagnostic pop -#endif // __GNUC__ +#endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) -} // namespace arm_authorizer_server -} // namespace rpc -} // namespace mavsdk - +} // namespace arm_authorizer_server +} // namespace rpc +} // namespace mavsdk namespace google { namespace protobuf { -template <> -struct is_proto_enum<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result>() { - return ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result_descriptor(); +template<> +struct is_proto_enum<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result> + : std::true_type {}; +template<> +inline const EnumDescriptor* +GetEnumDescriptor<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result>() +{ + return ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result_descriptor(); } -template <> +template<> struct is_proto_enum<::mavsdk::rpc::arm_authorizer_server::RejectionReason> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::arm_authorizer_server::RejectionReason>() { - return ::mavsdk::rpc::arm_authorizer_server::RejectionReason_descriptor(); +template<> +inline const EnumDescriptor* +GetEnumDescriptor<::mavsdk::rpc::arm_authorizer_server::RejectionReason>() +{ + return ::mavsdk::rpc::arm_authorizer_server::RejectionReason_descriptor(); } -} // namespace protobuf -} // namespace google +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_2epb_2eh +#endif // arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_2epb_2eh diff --git a/src/mavsdk_server/src/generated/calibration/calibration.pb.cc b/src/mavsdk_server/src/generated/calibration/calibration.pb.cc index fbb5ecf546..77e6bb5416 100644 --- a/src/mavsdk_server/src/generated/calibration/calibration.pb.cc +++ b/src/mavsdk_server/src/generated/calibration/calibration.pb.cc @@ -1,17 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: calibration/calibration.proto +// Protobuf C++ Version: 5.29.1 #include "calibration/calibration.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -23,553 +27,733 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace mavsdk { namespace rpc { namespace calibration { - template -PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest(::_pbi::ConstantInitialized) {} -struct SubscribeCalibrateMagnetometerRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeCalibrateMagnetometerRequestDefaultTypeInternal() {} - union { - SubscribeCalibrateMagnetometerRequest _instance; - }; +template +PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest( + ::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeCalibrateMagnetometerRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeCalibrateMagnetometerRequestDefaultTypeInternal() {} + union { + SubscribeCalibrateMagnetometerRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateMagnetometerRequestDefaultTypeInternal _SubscribeCalibrateMagnetometerRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest(::_pbi::ConstantInitialized) {} -struct SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal() {} - union { - SubscribeCalibrateLevelHorizonRequest _instance; - }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeCalibrateMagnetometerRequestDefaultTypeInternal + _SubscribeCalibrateMagnetometerRequest_default_instance_; +template +PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest( + ::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal() {} + union { + SubscribeCalibrateLevelHorizonRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal _SubscribeCalibrateLevelHorizonRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest(::_pbi::ConstantInitialized) {} -struct SubscribeCalibrateGyroRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeCalibrateGyroRequestDefaultTypeInternal() {} - union { - SubscribeCalibrateGyroRequest _instance; - }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal + _SubscribeCalibrateLevelHorizonRequest_default_instance_; +template +PROTOBUF_CONSTEXPR +SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeCalibrateGyroRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeCalibrateGyroRequestDefaultTypeInternal() {} + union { + SubscribeCalibrateGyroRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateGyroRequestDefaultTypeInternal _SubscribeCalibrateGyroRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest(::_pbi::ConstantInitialized) {} -struct SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal() {} - union { - SubscribeCalibrateGimbalAccelerometerRequest _instance; - }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeCalibrateGyroRequestDefaultTypeInternal + _SubscribeCalibrateGyroRequest_default_instance_; +template +PROTOBUF_CONSTEXPR +SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest( + ::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal() {} + union { + SubscribeCalibrateGimbalAccelerometerRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal _SubscribeCalibrateGimbalAccelerometerRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest(::_pbi::ConstantInitialized) {} -struct SubscribeCalibrateAccelerometerRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeCalibrateAccelerometerRequestDefaultTypeInternal() {} - union { - SubscribeCalibrateAccelerometerRequest _instance; - }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal + _SubscribeCalibrateGimbalAccelerometerRequest_default_instance_; +template +PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest( + ::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeCalibrateAccelerometerRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeCalibrateAccelerometerRequestDefaultTypeInternal() {} + union { + SubscribeCalibrateAccelerometerRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateAccelerometerRequestDefaultTypeInternal _SubscribeCalibrateAccelerometerRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeCalibrateAccelerometerRequestDefaultTypeInternal + _SubscribeCalibrateAccelerometerRequest_default_instance_; -inline constexpr ProgressData::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : status_text_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - progress_{0}, - has_progress_{false}, - has_status_text_{false}, - _cached_size_{0} {} +inline constexpr ProgressData::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + status_text_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + progress_{0}, + has_progress_{false}, + has_status_text_{false}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR ProgressData::ProgressData(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ProgressDataDefaultTypeInternal { - PROTOBUF_CONSTEXPR ProgressDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ProgressDataDefaultTypeInternal() {} - union { - ProgressData _instance; - }; + PROTOBUF_CONSTEXPR ProgressDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~ProgressDataDefaultTypeInternal() {} + union { + ProgressData _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProgressDataDefaultTypeInternal _ProgressData_default_instance_; - template -PROTOBUF_CONSTEXPR CancelRequest::CancelRequest(::_pbi::ConstantInitialized) {} -struct CancelRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CancelRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CancelRequestDefaultTypeInternal() {} - union { - CancelRequest _instance; - }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ProgressDataDefaultTypeInternal _ProgressData_default_instance_; +template +PROTOBUF_CONSTEXPR CancelRequest::CancelRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct CancelRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CancelRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~CancelRequestDefaultTypeInternal() {} + union { + CancelRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelRequestDefaultTypeInternal _CancelRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + CancelRequestDefaultTypeInternal _CancelRequest_default_instance_; -inline constexpr CalibrationResult::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : result_str_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - result_{static_cast< ::mavsdk::rpc::calibration::CalibrationResult_Result >(0)}, - _cached_size_{0} {} +inline constexpr CalibrationResult::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + result_str_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + result_{static_cast<::mavsdk::rpc::calibration::CalibrationResult_Result>(0)}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR CalibrationResult::CalibrationResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct CalibrationResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrationResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CalibrationResultDefaultTypeInternal() {} - union { - CalibrationResult _instance; - }; + PROTOBUF_CONSTEXPR CalibrationResultDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~CalibrationResultDefaultTypeInternal() {} + union { + CalibrationResult _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrationResultDefaultTypeInternal _CalibrationResult_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + CalibrationResultDefaultTypeInternal _CalibrationResult_default_instance_; -inline constexpr CancelResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - calibration_result_{nullptr} {} +inline constexpr CancelResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + calibration_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR CancelResponse::CancelResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct CancelResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CancelResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CancelResponseDefaultTypeInternal() {} - union { - CancelResponse _instance; - }; + PROTOBUF_CONSTEXPR CancelResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~CancelResponseDefaultTypeInternal() {} + union { + CancelResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelResponseDefaultTypeInternal _CancelResponse_default_instance_; - -inline constexpr CalibrateMagnetometerResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - calibration_result_{nullptr}, - progress_data_{nullptr} {} - -template -PROTOBUF_CONSTEXPR CalibrateMagnetometerResponse::CalibrateMagnetometerResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + CancelResponseDefaultTypeInternal _CancelResponse_default_instance_; + +inline constexpr CalibrateMagnetometerResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + calibration_result_{nullptr}, + progress_data_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR + CalibrateMagnetometerResponse::CalibrateMagnetometerResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct CalibrateMagnetometerResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrateMagnetometerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CalibrateMagnetometerResponseDefaultTypeInternal() {} - union { - CalibrateMagnetometerResponse _instance; - }; + PROTOBUF_CONSTEXPR CalibrateMagnetometerResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~CalibrateMagnetometerResponseDefaultTypeInternal() {} + union { + CalibrateMagnetometerResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateMagnetometerResponseDefaultTypeInternal _CalibrateMagnetometerResponse_default_instance_; - -inline constexpr CalibrateLevelHorizonResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - calibration_result_{nullptr}, - progress_data_{nullptr} {} - -template -PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponse::CalibrateLevelHorizonResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + CalibrateMagnetometerResponseDefaultTypeInternal + _CalibrateMagnetometerResponse_default_instance_; + +inline constexpr CalibrateLevelHorizonResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + calibration_result_{nullptr}, + progress_data_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR + CalibrateLevelHorizonResponse::CalibrateLevelHorizonResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct CalibrateLevelHorizonResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CalibrateLevelHorizonResponseDefaultTypeInternal() {} - union { - CalibrateLevelHorizonResponse _instance; - }; + PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~CalibrateLevelHorizonResponseDefaultTypeInternal() {} + union { + CalibrateLevelHorizonResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateLevelHorizonResponseDefaultTypeInternal _CalibrateLevelHorizonResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + CalibrateLevelHorizonResponseDefaultTypeInternal + _CalibrateLevelHorizonResponse_default_instance_; -inline constexpr CalibrateGyroResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - calibration_result_{nullptr}, - progress_data_{nullptr} {} +inline constexpr CalibrateGyroResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + calibration_result_{nullptr}, + progress_data_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR CalibrateGyroResponse::CalibrateGyroResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct CalibrateGyroResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrateGyroResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CalibrateGyroResponseDefaultTypeInternal() {} - union { - CalibrateGyroResponse _instance; - }; + PROTOBUF_CONSTEXPR CalibrateGyroResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~CalibrateGyroResponseDefaultTypeInternal() {} + union { + CalibrateGyroResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateGyroResponseDefaultTypeInternal _CalibrateGyroResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + CalibrateGyroResponseDefaultTypeInternal _CalibrateGyroResponse_default_instance_; inline constexpr CalibrateGimbalAccelerometerResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - calibration_result_{nullptr}, - progress_data_{nullptr} {} - -template -PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} + ::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + calibration_result_{nullptr}, + progress_data_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse( + ::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct CalibrateGimbalAccelerometerResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CalibrateGimbalAccelerometerResponseDefaultTypeInternal() {} - union { - CalibrateGimbalAccelerometerResponse _instance; - }; + PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~CalibrateGimbalAccelerometerResponseDefaultTypeInternal() {} + union { + CalibrateGimbalAccelerometerResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateGimbalAccelerometerResponseDefaultTypeInternal _CalibrateGimbalAccelerometerResponse_default_instance_; - -inline constexpr CalibrateAccelerometerResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - calibration_result_{nullptr}, - progress_data_{nullptr} {} - -template -PROTOBUF_CONSTEXPR CalibrateAccelerometerResponse::CalibrateAccelerometerResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + CalibrateGimbalAccelerometerResponseDefaultTypeInternal + _CalibrateGimbalAccelerometerResponse_default_instance_; + +inline constexpr CalibrateAccelerometerResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept + : + _cached_size_{0}, + calibration_result_{nullptr}, + progress_data_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR + CalibrateAccelerometerResponse::CalibrateAccelerometerResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct CalibrateAccelerometerResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrateAccelerometerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CalibrateAccelerometerResponseDefaultTypeInternal() {} - union { - CalibrateAccelerometerResponse _instance; - }; + PROTOBUF_CONSTEXPR CalibrateAccelerometerResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~CalibrateAccelerometerResponseDefaultTypeInternal() {} + union { + CalibrateAccelerometerResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateAccelerometerResponseDefaultTypeInternal _CalibrateAccelerometerResponse_default_instance_; -} // namespace calibration -} // namespace rpc -} // namespace mavsdk -static ::_pb::Metadata file_level_metadata_calibration_2fcalibration_2eproto[14]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_calibration_2fcalibration_2eproto[1]; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + CalibrateAccelerometerResponseDefaultTypeInternal + _CalibrateAccelerometerResponse_default_instance_; +} // namespace calibration +} // namespace rpc +} // namespace mavsdk +static const ::_pb::EnumDescriptor* + file_level_enum_descriptors_calibration_2fcalibration_2eproto[1]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_calibration_2fcalibration_2eproto = nullptr; -const ::uint32_t TableStruct_calibration_2fcalibration_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _impl_.calibration_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _impl_.progress_data_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _impl_.calibration_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _impl_.progress_data_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _impl_.calibration_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _impl_.progress_data_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _impl_.calibration_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _impl_.progress_data_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _impl_.calibration_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _impl_.progress_data_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, _impl_.calibration_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _impl_.result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _impl_.result_str_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.has_progress_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.progress_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.has_status_text_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.status_text_), +const ::uint32_t + TableStruct_calibration_2fcalibration_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateGyroResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateGyroResponse, _impl_.calibration_result_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateGyroResponse, _impl_.progress_data_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest, + _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _impl_.calibration_result_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _impl_.progress_data_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _impl_.calibration_result_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _impl_.progress_data_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _impl_.calibration_result_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _impl_.progress_data_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest, + _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, + _impl_.calibration_result_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, + _impl_.progress_data_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::calibration::CancelResponse, _impl_.calibration_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _impl_.result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _impl_.result_str_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.has_progress_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.progress_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.has_status_text_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.status_text_), }; -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest)}, - {8, 18, -1, sizeof(::mavsdk::rpc::calibration::CalibrateGyroResponse)}, - {20, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest)}, - {28, 38, -1, sizeof(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse)}, - {40, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest)}, - {48, 58, -1, sizeof(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse)}, - {60, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest)}, - {68, 78, -1, sizeof(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse)}, - {80, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest)}, - {88, 98, -1, sizeof(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse)}, - {100, -1, -1, sizeof(::mavsdk::rpc::calibration::CancelRequest)}, - {108, 117, -1, sizeof(::mavsdk::rpc::calibration::CancelResponse)}, - {118, -1, -1, sizeof(::mavsdk::rpc::calibration::CalibrationResult)}, - {128, -1, -1, sizeof(::mavsdk::rpc::calibration::ProgressData)}, +static const ::_pbi::MigrationSchema schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest)}, + {8, 18, -1, sizeof(::mavsdk::rpc::calibration::CalibrateGyroResponse)}, + {20, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest)}, + {28, 38, -1, sizeof(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse)}, + {40, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest)}, + {48, 58, -1, sizeof(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse)}, + {60, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest)}, + {68, 78, -1, sizeof(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse)}, + {80, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest)}, + {88, 98, -1, sizeof(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse)}, + {100, -1, -1, sizeof(::mavsdk::rpc::calibration::CancelRequest)}, + {108, 117, -1, sizeof(::mavsdk::rpc::calibration::CancelResponse)}, + {118, -1, -1, sizeof(::mavsdk::rpc::calibration::CalibrationResult)}, + {128, -1, -1, sizeof(::mavsdk::rpc::calibration::ProgressData)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::calibration::_SubscribeCalibrateGyroRequest_default_instance_._instance, &::mavsdk::rpc::calibration::_CalibrateGyroResponse_default_instance_._instance, - &::mavsdk::rpc::calibration::_SubscribeCalibrateAccelerometerRequest_default_instance_._instance, + &::mavsdk::rpc::calibration::_SubscribeCalibrateAccelerometerRequest_default_instance_ + ._instance, &::mavsdk::rpc::calibration::_CalibrateAccelerometerResponse_default_instance_._instance, &::mavsdk::rpc::calibration::_SubscribeCalibrateMagnetometerRequest_default_instance_._instance, &::mavsdk::rpc::calibration::_CalibrateMagnetometerResponse_default_instance_._instance, &::mavsdk::rpc::calibration::_SubscribeCalibrateLevelHorizonRequest_default_instance_._instance, &::mavsdk::rpc::calibration::_CalibrateLevelHorizonResponse_default_instance_._instance, - &::mavsdk::rpc::calibration::_SubscribeCalibrateGimbalAccelerometerRequest_default_instance_._instance, + &::mavsdk::rpc::calibration::_SubscribeCalibrateGimbalAccelerometerRequest_default_instance_ + ._instance, &::mavsdk::rpc::calibration::_CalibrateGimbalAccelerometerResponse_default_instance_._instance, &::mavsdk::rpc::calibration::_CancelRequest_default_instance_._instance, &::mavsdk::rpc::calibration::_CancelResponse_default_instance_._instance, &::mavsdk::rpc::calibration::_CalibrationResult_default_instance_._instance, &::mavsdk::rpc::calibration::_ProgressData_default_instance_._instance, }; -const char descriptor_table_protodef_calibration_2fcalibration_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\035calibration/calibration.proto\022\026mavsdk." - "rpc.calibration\032\024mavsdk_options.proto\"\037\n" - "\035SubscribeCalibrateGyroRequest\"\233\001\n\025Calib" - "rateGyroResponse\022E\n\022calibration_result\030\001" - " \001(\0132).mavsdk.rpc.calibration.Calibratio" - "nResult\022;\n\rprogress_data\030\002 \001(\0132$.mavsdk." - "rpc.calibration.ProgressData\"(\n&Subscrib" - "eCalibrateAccelerometerRequest\"\244\001\n\036Calib" - "rateAccelerometerResponse\022E\n\022calibration" - "_result\030\001 \001(\0132).mavsdk.rpc.calibration.C" - "alibrationResult\022;\n\rprogress_data\030\002 \001(\0132" - "$.mavsdk.rpc.calibration.ProgressData\"\'\n" - "%SubscribeCalibrateMagnetometerRequest\"\243" - "\001\n\035CalibrateMagnetometerResponse\022E\n\022cali" - "bration_result\030\001 \001(\0132).mavsdk.rpc.calibr" - "ation.CalibrationResult\022;\n\rprogress_data" - "\030\002 \001(\0132$.mavsdk.rpc.calibration.Progress" - "Data\"\'\n%SubscribeCalibrateLevelHorizonRe" - "quest\"\243\001\n\035CalibrateLevelHorizonResponse\022" - "E\n\022calibration_result\030\001 \001(\0132).mavsdk.rpc" - ".calibration.CalibrationResult\022;\n\rprogre" - "ss_data\030\002 \001(\0132$.mavsdk.rpc.calibration.P" - "rogressData\".\n,SubscribeCalibrateGimbalA" - "ccelerometerRequest\"\252\001\n$CalibrateGimbalA" - "ccelerometerResponse\022E\n\022calibration_resu" - "lt\030\001 \001(\0132).mavsdk.rpc.calibration.Calibr" - "ationResult\022;\n\rprogress_data\030\002 \001(\0132$.mav" - "sdk.rpc.calibration.ProgressData\"\017\n\rCanc" - "elRequest\"W\n\016CancelResponse\022E\n\022calibrati" - "on_result\030\001 \001(\0132).mavsdk.rpc.calibration" - ".CalibrationResult\"\372\002\n\021CalibrationResult" - "\022@\n\006result\030\001 \001(\01620.mavsdk.rpc.calibratio" - "n.CalibrationResult.Result\022\022\n\nresult_str" - "\030\002 \001(\t\"\216\002\n\006Result\022\022\n\016RESULT_UNKNOWN\020\000\022\022\n" - "\016RESULT_SUCCESS\020\001\022\017\n\013RESULT_NEXT\020\002\022\021\n\rRE" - "SULT_FAILED\020\003\022\024\n\020RESULT_NO_SYSTEM\020\004\022\033\n\027R" - "ESULT_CONNECTION_ERROR\020\005\022\017\n\013RESULT_BUSY\020" - "\006\022\031\n\025RESULT_COMMAND_DENIED\020\007\022\022\n\016RESULT_T" - "IMEOUT\020\010\022\024\n\020RESULT_CANCELLED\020\t\022\027\n\023RESULT" - "_FAILED_ARMED\020\n\022\026\n\022RESULT_UNSUPPORTED\020\013\"" - "\203\001\n\014ProgressData\022\037\n\014has_progress\030\001 \001(\010B\t" - "\202\265\030\005false\022\031\n\010progress\030\002 \001(\002B\007\202\265\030\003NaN\022\"\n\017" - "has_status_text\030\003 \001(\010B\t\202\265\030\005false\022\023\n\013stat" - "us_text\030\004 \001(\t2\254\007\n\022CalibrationService\022\212\001\n" - "\026SubscribeCalibrateGyro\0225.mavsdk.rpc.cal" - "ibration.SubscribeCalibrateGyroRequest\032-" - ".mavsdk.rpc.calibration.CalibrateGyroRes" - "ponse\"\010\200\265\030\000\210\265\030\0010\001\022\245\001\n\037SubscribeCalibrate" - "Accelerometer\022>.mavsdk.rpc.calibration.S" - "ubscribeCalibrateAccelerometerRequest\0326." - "mavsdk.rpc.calibration.CalibrateAccelero" - "meterResponse\"\010\200\265\030\000\210\265\030\0010\001\022\242\001\n\036SubscribeC" - "alibrateMagnetometer\022=.mavsdk.rpc.calibr" - "ation.SubscribeCalibrateMagnetometerRequ" - "est\0325.mavsdk.rpc.calibration.CalibrateMa" - "gnetometerResponse\"\010\200\265\030\000\210\265\030\0010\001\022\242\001\n\036Subsc" - "ribeCalibrateLevelHorizon\022=.mavsdk.rpc.c" - "alibration.SubscribeCalibrateLevelHorizo" - "nRequest\0325.mavsdk.rpc.calibration.Calibr" - "ateLevelHorizonResponse\"\010\200\265\030\000\210\265\030\0010\001\022\267\001\n%" - "SubscribeCalibrateGimbalAccelerometer\022D." - "mavsdk.rpc.calibration.SubscribeCalibrat" - "eGimbalAccelerometerRequest\032<.mavsdk.rpc" - ".calibration.CalibrateGimbalAcceleromete" - "rResponse\"\010\200\265\030\000\210\265\030\0010\001\022]\n\006Cancel\022%.mavsdk" - ".rpc.calibration.CancelRequest\032&.mavsdk." - "rpc.calibration.CancelResponse\"\004\200\265\030\001B)\n\025" - "io.mavsdk.calibrationB\020CalibrationProtob" - "\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_calibration_2fcalibration_2eproto_deps[1] = - { +const char + descriptor_table_protodef_calibration_2fcalibration_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\035calibration/calibration.proto\022\026mavsdk." + "rpc.calibration\032\024mavsdk_options.proto\"\037\n" + "\035SubscribeCalibrateGyroRequest\"\233\001\n\025Calib" + "rateGyroResponse\022E\n\022calibration_result\030\001" + " \001(\0132).mavsdk.rpc.calibration.Calibratio" + "nResult\022;\n\rprogress_data\030\002 \001(\0132$.mavsdk." + "rpc.calibration.ProgressData\"(\n&Subscrib" + "eCalibrateAccelerometerRequest\"\244\001\n\036Calib" + "rateAccelerometerResponse\022E\n\022calibration" + "_result\030\001 \001(\0132).mavsdk.rpc.calibration.C" + "alibrationResult\022;\n\rprogress_data\030\002 \001(\0132" + "$.mavsdk.rpc.calibration.ProgressData\"\'\n" + "%SubscribeCalibrateMagnetometerRequest\"\243" + "\001\n\035CalibrateMagnetometerResponse\022E\n\022cali" + "bration_result\030\001 \001(\0132).mavsdk.rpc.calibr" + "ation.CalibrationResult\022;\n\rprogress_data" + "\030\002 \001(\0132$.mavsdk.rpc.calibration.Progress" + "Data\"\'\n%SubscribeCalibrateLevelHorizonRe" + "quest\"\243\001\n\035CalibrateLevelHorizonResponse\022" + "E\n\022calibration_result\030\001 \001(\0132).mavsdk.rpc" + ".calibration.CalibrationResult\022;\n\rprogre" + "ss_data\030\002 \001(\0132$.mavsdk.rpc.calibration.P" + "rogressData\".\n,SubscribeCalibrateGimbalA" + "ccelerometerRequest\"\252\001\n$CalibrateGimbalA" + "ccelerometerResponse\022E\n\022calibration_resu" + "lt\030\001 \001(\0132).mavsdk.rpc.calibration.Calibr" + "ationResult\022;\n\rprogress_data\030\002 \001(\0132$.mav" + "sdk.rpc.calibration.ProgressData\"\017\n\rCanc" + "elRequest\"W\n\016CancelResponse\022E\n\022calibrati" + "on_result\030\001 \001(\0132).mavsdk.rpc.calibration" + ".CalibrationResult\"\372\002\n\021CalibrationResult" + "\022@\n\006result\030\001 \001(\01620.mavsdk.rpc.calibratio" + "n.CalibrationResult.Result\022\022\n\nresult_str" + "\030\002 \001(\t\"\216\002\n\006Result\022\022\n\016RESULT_UNKNOWN\020\000\022\022\n" + "\016RESULT_SUCCESS\020\001\022\017\n\013RESULT_NEXT\020\002\022\021\n\rRE" + "SULT_FAILED\020\003\022\024\n\020RESULT_NO_SYSTEM\020\004\022\033\n\027R" + "ESULT_CONNECTION_ERROR\020\005\022\017\n\013RESULT_BUSY\020" + "\006\022\031\n\025RESULT_COMMAND_DENIED\020\007\022\022\n\016RESULT_T" + "IMEOUT\020\010\022\024\n\020RESULT_CANCELLED\020\t\022\027\n\023RESULT" + "_FAILED_ARMED\020\n\022\026\n\022RESULT_UNSUPPORTED\020\013\"" + "\203\001\n\014ProgressData\022\037\n\014has_progress\030\001 \001(\010B\t" + "\202\265\030\005false\022\031\n\010progress\030\002 \001(\002B\007\202\265\030\003NaN\022\"\n\017" + "has_status_text\030\003 \001(\010B\t\202\265\030\005false\022\023\n\013stat" + "us_text\030\004 \001(\t2\254\007\n\022CalibrationService\022\212\001\n" + "\026SubscribeCalibrateGyro\0225.mavsdk.rpc.cal" + "ibration.SubscribeCalibrateGyroRequest\032-" + ".mavsdk.rpc.calibration.CalibrateGyroRes" + "ponse\"\010\200\265\030\000\210\265\030\0010\001\022\245\001\n\037SubscribeCalibrate" + "Accelerometer\022>.mavsdk.rpc.calibration.S" + "ubscribeCalibrateAccelerometerRequest\0326." + "mavsdk.rpc.calibration.CalibrateAccelero" + "meterResponse\"\010\200\265\030\000\210\265\030\0010\001\022\242\001\n\036SubscribeC" + "alibrateMagnetometer\022=.mavsdk.rpc.calibr" + "ation.SubscribeCalibrateMagnetometerRequ" + "est\0325.mavsdk.rpc.calibration.CalibrateMa" + "gnetometerResponse\"\010\200\265\030\000\210\265\030\0010\001\022\242\001\n\036Subsc" + "ribeCalibrateLevelHorizon\022=.mavsdk.rpc.c" + "alibration.SubscribeCalibrateLevelHorizo" + "nRequest\0325.mavsdk.rpc.calibration.Calibr" + "ateLevelHorizonResponse\"\010\200\265\030\000\210\265\030\0010\001\022\267\001\n%" + "SubscribeCalibrateGimbalAccelerometer\022D." + "mavsdk.rpc.calibration.SubscribeCalibrat" + "eGimbalAccelerometerRequest\032<.mavsdk.rpc" + ".calibration.CalibrateGimbalAcceleromete" + "rResponse\"\010\200\265\030\000\210\265\030\0010\001\022]\n\006Cancel\022%.mavsdk" + ".rpc.calibration.CancelRequest\032&.mavsdk." + "rpc.calibration.CancelResponse\"\004\200\265\030\001B)\n\025" + "io.mavsdk.calibrationB\020CalibrationProtob" + "\006proto3"}; +static const ::_pbi::DescriptorTable* const + descriptor_table_calibration_2fcalibration_2eproto_deps[1] = { &::descriptor_table_mavsdk_5foptions_2eproto, }; static ::absl::once_flag descriptor_table_calibration_2fcalibration_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_calibration_2fcalibration_2eproto = { - false, - false, - 2727, - descriptor_table_protodef_calibration_2fcalibration_2eproto, - "calibration/calibration.proto", - &descriptor_table_calibration_2fcalibration_2eproto_once, - descriptor_table_calibration_2fcalibration_2eproto_deps, - 1, - 14, - schemas, - file_default_instances, - TableStruct_calibration_2fcalibration_2eproto::offsets, - file_level_metadata_calibration_2fcalibration_2eproto, - file_level_enum_descriptors_calibration_2fcalibration_2eproto, - file_level_service_descriptors_calibration_2fcalibration_2eproto, +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable + descriptor_table_calibration_2fcalibration_2eproto = { + false, + false, + 2727, + descriptor_table_protodef_calibration_2fcalibration_2eproto, + "calibration/calibration.proto", + &descriptor_table_calibration_2fcalibration_2eproto_once, + descriptor_table_calibration_2fcalibration_2eproto_deps, + 1, + 14, + schemas, + file_default_instances, + TableStruct_calibration_2fcalibration_2eproto::offsets, + file_level_enum_descriptors_calibration_2fcalibration_2eproto, + file_level_service_descriptors_calibration_2fcalibration_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_calibration_2fcalibration_2eproto_getter() { - return &descriptor_table_calibration_2fcalibration_2eproto; -} -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_calibration_2fcalibration_2eproto(&descriptor_table_calibration_2fcalibration_2eproto); namespace mavsdk { namespace rpc { namespace calibration { -const ::google::protobuf::EnumDescriptor* CalibrationResult_Result_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_calibration_2fcalibration_2eproto); - return file_level_enum_descriptors_calibration_2fcalibration_2eproto[0]; +const ::google::protobuf::EnumDescriptor* CalibrationResult_Result_descriptor() +{ + ::google::protobuf::internal::AssignDescriptors( + &descriptor_table_calibration_2fcalibration_2eproto); + return file_level_enum_descriptors_calibration_2fcalibration_2eproto[0]; } PROTOBUF_CONSTINIT const uint32_t CalibrationResult_Result_internal_data_[] = { - 786432u, 0u, }; -bool CalibrationResult_Result_IsValid(int value) { - return 0 <= value && value <= 11; + 786432u, + 0u, +}; +bool CalibrationResult_Result_IsValid(int value) +{ + return 0 <= value && value <= 11; } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr CalibrationResult_Result CalibrationResult::RESULT_UNKNOWN; constexpr CalibrationResult_Result CalibrationResult::RESULT_SUCCESS; @@ -587,2253 +771,3362 @@ constexpr CalibrationResult_Result CalibrationResult::Result_MIN; constexpr CalibrationResult_Result CalibrationResult::Result_MAX; constexpr int CalibrationResult::Result_ARRAYSIZE; -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== class SubscribeCalibrateGyroRequest::_Internal { - public: +public: }; SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) } SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest( - ::google::protobuf::Arena* arena, - const SubscribeCalibrateGyroRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeCalibrateGyroRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) -} - - - - - - - - - -::google::protobuf::Metadata SubscribeCalibrateGyroRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[0]); + ::google::protobuf::Arena* arena, const SubscribeCalibrateGyroRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeCalibrateGyroRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) +} + +inline void* SubscribeCalibrateGyroRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeCalibrateGyroRequest(arena); +} +constexpr auto SubscribeCalibrateGyroRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeCalibrateGyroRequest), alignof(SubscribeCalibrateGyroRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeCalibrateGyroRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeCalibrateGyroRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeCalibrateGyroRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeCalibrateGyroRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &SubscribeCalibrateGyroRequest::ByteSizeLong, + &SubscribeCalibrateGyroRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeCalibrateGyroRequest, _impl_._cached_size_), + false, + }, + &SubscribeCalibrateGyroRequest::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeCalibrateGyroRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeCalibrateGyroRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeCalibrateGyroRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CalibrateGyroResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CalibrateGyroResponse* msg); - static void set_has_calibration_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::calibration::ProgressData& progress_data(const CalibrateGyroResponse* msg); - static void set_has_progress_data(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGyroResponse::_Internal::calibration_result(const CalibrateGyroResponse* msg) { - return *msg->_impl_.calibration_result_; -} -const ::mavsdk::rpc::calibration::ProgressData& CalibrateGyroResponse::_Internal::progress_data(const CalibrateGyroResponse* msg) { - return *msg->_impl_.progress_data_; -} CalibrateGyroResponse::CalibrateGyroResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateGyroResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateGyroResponse) } inline PROTOBUF_NDEBUG_INLINE CalibrateGyroResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::calibration::CalibrateGyroResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} CalibrateGyroResponse::CalibrateGyroResponse( - ::google::protobuf::Arena* arena, - const CalibrateGyroResponse& from) - : ::google::protobuf::Message(arena) { - CalibrateGyroResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(arena, *from._impl_.calibration_result_) - : nullptr; - _impl_.progress_data_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(arena, *from._impl_.progress_data_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateGyroResponse) + ::google::protobuf::Arena* arena, const CalibrateGyroResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + CalibrateGyroResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_) : + nullptr; + _impl_.progress_data_ = + (cached_has_bits & 0x00000002u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::ProgressData>( + arena, *from._impl_.progress_data_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateGyroResponse) } inline PROTOBUF_NDEBUG_INLINE CalibrateGyroResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void CalibrateGyroResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, calibration_result_), - 0, - offsetof(Impl_, progress_data_) - - offsetof(Impl_, calibration_result_) + - sizeof(Impl_::progress_data_)); -} -CalibrateGyroResponse::~CalibrateGyroResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrateGyroResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CalibrateGyroResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.calibration_result_; - delete _impl_.progress_data_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CalibrateGyroResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateGyroResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.calibration_result_ != nullptr); - _impl_.calibration_result_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.progress_data_ != nullptr); - _impl_.progress_data_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CalibrateGyroResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateGyroResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CalibrateGyroResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.progress_data_)}}, - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.calibration_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - {PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.calibration_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - {PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.progress_data_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrationResult>()}, - {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::ProgressData>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void CalibrateGyroResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, calibration_result_), + 0, + offsetof(Impl_, progress_data_) - offsetof(Impl_, calibration_result_) + + sizeof(Impl_::progress_data_)); +} +CalibrateGyroResponse::~CalibrateGyroResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrateGyroResponse) + SharedDtor(*this); +} +inline void CalibrateGyroResponse::SharedDtor(MessageLite& self) +{ + CalibrateGyroResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.calibration_result_; + delete this_._impl_.progress_data_; + this_._impl_.~Impl_(); +} + +inline void* +CalibrateGyroResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) CalibrateGyroResponse(arena); +} +constexpr auto CalibrateGyroResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(CalibrateGyroResponse), alignof(CalibrateGyroResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CalibrateGyroResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CalibrateGyroResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CalibrateGyroResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CalibrateGyroResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &CalibrateGyroResponse::ByteSizeLong, + &CalibrateGyroResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_._cached_size_), + false, + }, + &CalibrateGyroResponse::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* CalibrateGyroResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> + CalibrateGyroResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::calibration::CalibrateGyroResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 1, PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.progress_data_)}}, + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.calibration_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + {PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.calibration_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + {PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.progress_data_), + _Internal::kHasBitsOffset + 1, + 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrationResult>()}, + {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::ProgressData>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void CalibrateGyroResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateGyroResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.progress_data_ != nullptr); + _impl_.progress_data_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* CalibrateGyroResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateGyroResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::calibration_result(this), - _Internal::calibration_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::progress_data(this), - _Internal::progress_data(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateGyroResponse) - return target; -} - -::size_t CalibrateGyroResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateGyroResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const CalibrateGyroResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* CalibrateGyroResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const CalibrateGyroResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateGyroResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.calibration_result_, + this_._impl_.calibration_result_->GetCachedSize(), + target, + stream); } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.progress_data_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, + *this_._impl_.progress_data_, + this_._impl_.progress_data_->GetCachedSize(), + target, + stream); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CalibrateGyroResponse::_class_data_ = { - CalibrateGyroResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CalibrateGyroResponse::GetClassData() const { - return &_class_data_; -} - -void CalibrateGyroResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateGyroResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( - from._internal_calibration_result()); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom( - from._internal_progress_data()); + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateGyroResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CalibrateGyroResponse::ByteSizeLong(const MessageLite& base) +{ + const CalibrateGyroResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CalibrateGyroResponse::ByteSizeLong() const +{ + const CalibrateGyroResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateGyroResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.calibration_result_); + } + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.progress_data_); + } } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void CalibrateGyroResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateGyroResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.calibration_result_ != nullptr); + if (_this->_impl_.calibration_result_ == nullptr) { + _this->_impl_.calibration_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_); + } else { + _this->_impl_.calibration_result_->MergeFrom(*from._impl_.calibration_result_); + } + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(from._impl_.progress_data_ != nullptr); + if (_this->_impl_.progress_data_ == nullptr) { + _this->_impl_.progress_data_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::ProgressData>(arena, *from._impl_.progress_data_); + } else { + _this->_impl_.progress_data_->MergeFrom(*from._impl_.progress_data_); + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -void CalibrateGyroResponse::CopyFrom(const CalibrateGyroResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.CalibrateGyroResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); +void CalibrateGyroResponse::CopyFrom(const CalibrateGyroResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.CalibrateGyroResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -PROTOBUF_NOINLINE bool CalibrateGyroResponse::IsInitialized() const { - return true; +void CalibrateGyroResponse::InternalSwap(CalibrateGyroResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.progress_data_) + + sizeof(CalibrateGyroResponse::_impl_.progress_data_) - + PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.calibration_result_)>( + reinterpret_cast(&_impl_.calibration_result_), + reinterpret_cast(&other->_impl_.calibration_result_)); } -::_pbi::CachedSize* CalibrateGyroResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CalibrateGyroResponse::InternalSwap(CalibrateGyroResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.progress_data_) - + sizeof(CalibrateGyroResponse::_impl_.progress_data_) - - PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.calibration_result_)>( - reinterpret_cast(&_impl_.calibration_result_), - reinterpret_cast(&other->_impl_.calibration_result_)); -} - -::google::protobuf::Metadata CalibrateGyroResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[1]); +::google::protobuf::Metadata CalibrateGyroResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeCalibrateAccelerometerRequest::_Internal { - public: +public: }; -SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) -} SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest( - ::google::protobuf::Arena* arena, - const SubscribeCalibrateAccelerometerRequest& from) + ::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeCalibrateAccelerometerRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) } - - - - - - - - - -::google::protobuf::Metadata SubscribeCalibrateAccelerometerRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[2]); +SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest( + ::google::protobuf::Arena* arena, const SubscribeCalibrateAccelerometerRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeCalibrateAccelerometerRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) +} + +inline void* SubscribeCalibrateAccelerometerRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeCalibrateAccelerometerRequest(arena); +} +constexpr auto SubscribeCalibrateAccelerometerRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeCalibrateAccelerometerRequest), + alignof(SubscribeCalibrateAccelerometerRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull + SubscribeCalibrateAccelerometerRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeCalibrateAccelerometerRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeCalibrateAccelerometerRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl< + SubscribeCalibrateAccelerometerRequest>(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeCalibrateAccelerometerRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl< + SubscribeCalibrateAccelerometerRequest>(), + &SubscribeCalibrateAccelerometerRequest::ByteSizeLong, + &SubscribeCalibrateAccelerometerRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeCalibrateAccelerometerRequest, _impl_._cached_size_), + false, + }, + &SubscribeCalibrateAccelerometerRequest::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker + }; +const ::google::protobuf::internal::ClassData* +SubscribeCalibrateAccelerometerRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeCalibrateAccelerometerRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration:: + SubscribeCalibrateAccelerometerRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeCalibrateAccelerometerRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CalibrateAccelerometerResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CalibrateAccelerometerResponse* msg); - static void set_has_calibration_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::calibration::ProgressData& progress_data(const CalibrateAccelerometerResponse* msg); - static void set_has_progress_data(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateAccelerometerResponse::_Internal::calibration_result(const CalibrateAccelerometerResponse* msg) { - return *msg->_impl_.calibration_result_; -} -const ::mavsdk::rpc::calibration::ProgressData& CalibrateAccelerometerResponse::_Internal::progress_data(const CalibrateAccelerometerResponse* msg) { - return *msg->_impl_.progress_data_; -} CalibrateAccelerometerResponse::CalibrateAccelerometerResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) } inline PROTOBUF_NDEBUG_INLINE CalibrateAccelerometerResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::calibration::CalibrateAccelerometerResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} CalibrateAccelerometerResponse::CalibrateAccelerometerResponse( - ::google::protobuf::Arena* arena, - const CalibrateAccelerometerResponse& from) - : ::google::protobuf::Message(arena) { - CalibrateAccelerometerResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(arena, *from._impl_.calibration_result_) - : nullptr; - _impl_.progress_data_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(arena, *from._impl_.progress_data_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) + ::google::protobuf::Arena* arena, const CalibrateAccelerometerResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + CalibrateAccelerometerResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_) : + nullptr; + _impl_.progress_data_ = + (cached_has_bits & 0x00000002u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::ProgressData>( + arena, *from._impl_.progress_data_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) } inline PROTOBUF_NDEBUG_INLINE CalibrateAccelerometerResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void CalibrateAccelerometerResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, calibration_result_), - 0, - offsetof(Impl_, progress_data_) - - offsetof(Impl_, calibration_result_) + - sizeof(Impl_::progress_data_)); -} -CalibrateAccelerometerResponse::~CalibrateAccelerometerResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CalibrateAccelerometerResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.calibration_result_; - delete _impl_.progress_data_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CalibrateAccelerometerResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.calibration_result_ != nullptr); - _impl_.calibration_result_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.progress_data_ != nullptr); - _impl_.progress_data_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CalibrateAccelerometerResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateAccelerometerResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CalibrateAccelerometerResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.progress_data_)}}, - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.calibration_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - {PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.calibration_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - {PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.progress_data_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrationResult>()}, - {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::ProgressData>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void CalibrateAccelerometerResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, calibration_result_), + 0, + offsetof(Impl_, progress_data_) - offsetof(Impl_, calibration_result_) + + sizeof(Impl_::progress_data_)); +} +CalibrateAccelerometerResponse::~CalibrateAccelerometerResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) + SharedDtor(*this); +} +inline void CalibrateAccelerometerResponse::SharedDtor(MessageLite& self) +{ + CalibrateAccelerometerResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.calibration_result_; + delete this_._impl_.progress_data_; + this_._impl_.~Impl_(); +} + +inline void* CalibrateAccelerometerResponse::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) CalibrateAccelerometerResponse(arena); +} +constexpr auto CalibrateAccelerometerResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(CalibrateAccelerometerResponse), alignof(CalibrateAccelerometerResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CalibrateAccelerometerResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CalibrateAccelerometerResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CalibrateAccelerometerResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CalibrateAccelerometerResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &CalibrateAccelerometerResponse::ByteSizeLong, + &CalibrateAccelerometerResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_._cached_size_), + false, + }, + &CalibrateAccelerometerResponse::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* CalibrateAccelerometerResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> + CalibrateAccelerometerResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::calibration::CalibrateAccelerometerResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + {::_pbi::TcParser::FastMtS1, + {18, + 1, + 1, + PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.progress_data_)}}, + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.calibration_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + {PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.calibration_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + {PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.progress_data_), + _Internal::kHasBitsOffset + 1, + 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrationResult>()}, + {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::ProgressData>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void CalibrateAccelerometerResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.progress_data_ != nullptr); + _impl_.progress_data_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* CalibrateAccelerometerResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::calibration_result(this), - _Internal::calibration_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::progress_data(this), - _Internal::progress_data(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - return target; -} - -::size_t CalibrateAccelerometerResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const CalibrateAccelerometerResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* CalibrateAccelerometerResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const CalibrateAccelerometerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.calibration_result_, + this_._impl_.calibration_result_->GetCachedSize(), + target, + stream); } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.progress_data_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, + *this_._impl_.progress_data_, + this_._impl_.progress_data_->GetCachedSize(), + target, + stream); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CalibrateAccelerometerResponse::_class_data_ = { - CalibrateAccelerometerResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CalibrateAccelerometerResponse::GetClassData() const { - return &_class_data_; -} - -void CalibrateAccelerometerResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( - from._internal_calibration_result()); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom( - from._internal_progress_data()); + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CalibrateAccelerometerResponse::ByteSizeLong(const MessageLite& base) +{ + const CalibrateAccelerometerResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CalibrateAccelerometerResponse::ByteSizeLong() const +{ + const CalibrateAccelerometerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.calibration_result_); + } + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.progress_data_); + } } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void CalibrateAccelerometerResponse::CopyFrom(const CalibrateAccelerometerResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool CalibrateAccelerometerResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* CalibrateAccelerometerResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CalibrateAccelerometerResponse::InternalSwap(CalibrateAccelerometerResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.progress_data_) - + sizeof(CalibrateAccelerometerResponse::_impl_.progress_data_) - - PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.calibration_result_)>( - reinterpret_cast(&_impl_.calibration_result_), - reinterpret_cast(&other->_impl_.calibration_result_)); -} - -::google::protobuf::Metadata CalibrateAccelerometerResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[3]); + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void CalibrateAccelerometerResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.calibration_result_ != nullptr); + if (_this->_impl_.calibration_result_ == nullptr) { + _this->_impl_.calibration_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_); + } else { + _this->_impl_.calibration_result_->MergeFrom(*from._impl_.calibration_result_); + } + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(from._impl_.progress_data_ != nullptr); + if (_this->_impl_.progress_data_ == nullptr) { + _this->_impl_.progress_data_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::ProgressData>(arena, *from._impl_.progress_data_); + } else { + _this->_impl_.progress_data_->MergeFrom(*from._impl_.progress_data_); + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void CalibrateAccelerometerResponse::CopyFrom(const CalibrateAccelerometerResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void CalibrateAccelerometerResponse::InternalSwap( + CalibrateAccelerometerResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.progress_data_) + + sizeof(CalibrateAccelerometerResponse::_impl_.progress_data_) - + PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.calibration_result_)>( + reinterpret_cast(&_impl_.calibration_result_), + reinterpret_cast(&other->_impl_.calibration_result_)); +} + +::google::protobuf::Metadata CalibrateAccelerometerResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeCalibrateMagnetometerRequest::_Internal { - public: +public: }; -SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) -} SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest( - ::google::protobuf::Arena* arena, - const SubscribeCalibrateMagnetometerRequest& from) + ::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeCalibrateMagnetometerRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) } - - - - - - - - - -::google::protobuf::Metadata SubscribeCalibrateMagnetometerRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[4]); +SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest( + ::google::protobuf::Arena* arena, const SubscribeCalibrateMagnetometerRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeCalibrateMagnetometerRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) +} + +inline void* SubscribeCalibrateMagnetometerRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeCalibrateMagnetometerRequest(arena); +} +constexpr auto SubscribeCalibrateMagnetometerRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeCalibrateMagnetometerRequest), + alignof(SubscribeCalibrateMagnetometerRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull + SubscribeCalibrateMagnetometerRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeCalibrateMagnetometerRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeCalibrateMagnetometerRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl< + SubscribeCalibrateMagnetometerRequest>(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeCalibrateMagnetometerRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl< + SubscribeCalibrateMagnetometerRequest>(), + &SubscribeCalibrateMagnetometerRequest::ByteSizeLong, + &SubscribeCalibrateMagnetometerRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeCalibrateMagnetometerRequest, _impl_._cached_size_), + false, + }, + &SubscribeCalibrateMagnetometerRequest::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker + }; +const ::google::protobuf::internal::ClassData* +SubscribeCalibrateMagnetometerRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeCalibrateMagnetometerRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeCalibrateMagnetometerRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CalibrateMagnetometerResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CalibrateMagnetometerResponse* msg); - static void set_has_calibration_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::calibration::ProgressData& progress_data(const CalibrateMagnetometerResponse* msg); - static void set_has_progress_data(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateMagnetometerResponse::_Internal::calibration_result(const CalibrateMagnetometerResponse* msg) { - return *msg->_impl_.calibration_result_; -} -const ::mavsdk::rpc::calibration::ProgressData& CalibrateMagnetometerResponse::_Internal::progress_data(const CalibrateMagnetometerResponse* msg) { - return *msg->_impl_.progress_data_; -} CalibrateMagnetometerResponse::CalibrateMagnetometerResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) } inline PROTOBUF_NDEBUG_INLINE CalibrateMagnetometerResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::calibration::CalibrateMagnetometerResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} CalibrateMagnetometerResponse::CalibrateMagnetometerResponse( - ::google::protobuf::Arena* arena, - const CalibrateMagnetometerResponse& from) - : ::google::protobuf::Message(arena) { - CalibrateMagnetometerResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(arena, *from._impl_.calibration_result_) - : nullptr; - _impl_.progress_data_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(arena, *from._impl_.progress_data_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) + ::google::protobuf::Arena* arena, const CalibrateMagnetometerResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + CalibrateMagnetometerResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_) : + nullptr; + _impl_.progress_data_ = + (cached_has_bits & 0x00000002u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::ProgressData>( + arena, *from._impl_.progress_data_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) } inline PROTOBUF_NDEBUG_INLINE CalibrateMagnetometerResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void CalibrateMagnetometerResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, calibration_result_), - 0, - offsetof(Impl_, progress_data_) - - offsetof(Impl_, calibration_result_) + - sizeof(Impl_::progress_data_)); -} -CalibrateMagnetometerResponse::~CalibrateMagnetometerResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CalibrateMagnetometerResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.calibration_result_; - delete _impl_.progress_data_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CalibrateMagnetometerResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.calibration_result_ != nullptr); - _impl_.calibration_result_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.progress_data_ != nullptr); - _impl_.progress_data_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CalibrateMagnetometerResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateMagnetometerResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CalibrateMagnetometerResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.progress_data_)}}, - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.calibration_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - {PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.calibration_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - {PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.progress_data_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrationResult>()}, - {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::ProgressData>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void CalibrateMagnetometerResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, calibration_result_), + 0, + offsetof(Impl_, progress_data_) - offsetof(Impl_, calibration_result_) + + sizeof(Impl_::progress_data_)); +} +CalibrateMagnetometerResponse::~CalibrateMagnetometerResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) + SharedDtor(*this); +} +inline void CalibrateMagnetometerResponse::SharedDtor(MessageLite& self) +{ + CalibrateMagnetometerResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.calibration_result_; + delete this_._impl_.progress_data_; + this_._impl_.~Impl_(); +} + +inline void* CalibrateMagnetometerResponse::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) CalibrateMagnetometerResponse(arena); +} +constexpr auto CalibrateMagnetometerResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(CalibrateMagnetometerResponse), alignof(CalibrateMagnetometerResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CalibrateMagnetometerResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CalibrateMagnetometerResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CalibrateMagnetometerResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CalibrateMagnetometerResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &CalibrateMagnetometerResponse::ByteSizeLong, + &CalibrateMagnetometerResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_._cached_size_), + false, + }, + &CalibrateMagnetometerResponse::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* CalibrateMagnetometerResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> + CalibrateMagnetometerResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::calibration::CalibrateMagnetometerResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + {::_pbi::TcParser::FastMtS1, + {18, + 1, + 1, + PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.progress_data_)}}, + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.calibration_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + {PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.calibration_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + {PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.progress_data_), + _Internal::kHasBitsOffset + 1, + 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrationResult>()}, + {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::ProgressData>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void CalibrateMagnetometerResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.progress_data_ != nullptr); + _impl_.progress_data_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* CalibrateMagnetometerResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::calibration_result(this), - _Internal::calibration_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::progress_data(this), - _Internal::progress_data(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - return target; -} - -::size_t CalibrateMagnetometerResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const CalibrateMagnetometerResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* CalibrateMagnetometerResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const CalibrateMagnetometerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.calibration_result_, + this_._impl_.calibration_result_->GetCachedSize(), + target, + stream); } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.progress_data_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, + *this_._impl_.progress_data_, + this_._impl_.progress_data_->GetCachedSize(), + target, + stream); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CalibrateMagnetometerResponse::_class_data_ = { - CalibrateMagnetometerResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CalibrateMagnetometerResponse::GetClassData() const { - return &_class_data_; -} - -void CalibrateMagnetometerResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( - from._internal_calibration_result()); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom( - from._internal_progress_data()); + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CalibrateMagnetometerResponse::ByteSizeLong(const MessageLite& base) +{ + const CalibrateMagnetometerResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CalibrateMagnetometerResponse::ByteSizeLong() const +{ + const CalibrateMagnetometerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.calibration_result_); + } + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.progress_data_); + } } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void CalibrateMagnetometerResponse::CopyFrom(const CalibrateMagnetometerResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool CalibrateMagnetometerResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* CalibrateMagnetometerResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CalibrateMagnetometerResponse::InternalSwap(CalibrateMagnetometerResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.progress_data_) - + sizeof(CalibrateMagnetometerResponse::_impl_.progress_data_) - - PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.calibration_result_)>( - reinterpret_cast(&_impl_.calibration_result_), - reinterpret_cast(&other->_impl_.calibration_result_)); -} - -::google::protobuf::Metadata CalibrateMagnetometerResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[5]); + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void CalibrateMagnetometerResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.calibration_result_ != nullptr); + if (_this->_impl_.calibration_result_ == nullptr) { + _this->_impl_.calibration_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_); + } else { + _this->_impl_.calibration_result_->MergeFrom(*from._impl_.calibration_result_); + } + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(from._impl_.progress_data_ != nullptr); + if (_this->_impl_.progress_data_ == nullptr) { + _this->_impl_.progress_data_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::ProgressData>(arena, *from._impl_.progress_data_); + } else { + _this->_impl_.progress_data_->MergeFrom(*from._impl_.progress_data_); + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void CalibrateMagnetometerResponse::CopyFrom(const CalibrateMagnetometerResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void CalibrateMagnetometerResponse::InternalSwap( + CalibrateMagnetometerResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.progress_data_) + + sizeof(CalibrateMagnetometerResponse::_impl_.progress_data_) - + PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.calibration_result_)>( + reinterpret_cast(&_impl_.calibration_result_), + reinterpret_cast(&other->_impl_.calibration_result_)); +} + +::google::protobuf::Metadata CalibrateMagnetometerResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeCalibrateLevelHorizonRequest::_Internal { - public: +public: }; -SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) -} SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest( - ::google::protobuf::Arena* arena, - const SubscribeCalibrateLevelHorizonRequest& from) + ::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeCalibrateLevelHorizonRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) } - - - - - - - - - -::google::protobuf::Metadata SubscribeCalibrateLevelHorizonRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[6]); +SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest( + ::google::protobuf::Arena* arena, const SubscribeCalibrateLevelHorizonRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeCalibrateLevelHorizonRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) +} + +inline void* SubscribeCalibrateLevelHorizonRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeCalibrateLevelHorizonRequest(arena); +} +constexpr auto SubscribeCalibrateLevelHorizonRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeCalibrateLevelHorizonRequest), + alignof(SubscribeCalibrateLevelHorizonRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull + SubscribeCalibrateLevelHorizonRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeCalibrateLevelHorizonRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeCalibrateLevelHorizonRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl< + SubscribeCalibrateLevelHorizonRequest>(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeCalibrateLevelHorizonRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl< + SubscribeCalibrateLevelHorizonRequest>(), + &SubscribeCalibrateLevelHorizonRequest::ByteSizeLong, + &SubscribeCalibrateLevelHorizonRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeCalibrateLevelHorizonRequest, _impl_._cached_size_), + false, + }, + &SubscribeCalibrateLevelHorizonRequest::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker + }; +const ::google::protobuf::internal::ClassData* +SubscribeCalibrateLevelHorizonRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeCalibrateLevelHorizonRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeCalibrateLevelHorizonRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CalibrateLevelHorizonResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CalibrateLevelHorizonResponse* msg); - static void set_has_calibration_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::calibration::ProgressData& progress_data(const CalibrateLevelHorizonResponse* msg); - static void set_has_progress_data(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateLevelHorizonResponse::_Internal::calibration_result(const CalibrateLevelHorizonResponse* msg) { - return *msg->_impl_.calibration_result_; -} -const ::mavsdk::rpc::calibration::ProgressData& CalibrateLevelHorizonResponse::_Internal::progress_data(const CalibrateLevelHorizonResponse* msg) { - return *msg->_impl_.progress_data_; -} CalibrateLevelHorizonResponse::CalibrateLevelHorizonResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) } inline PROTOBUF_NDEBUG_INLINE CalibrateLevelHorizonResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} CalibrateLevelHorizonResponse::CalibrateLevelHorizonResponse( - ::google::protobuf::Arena* arena, - const CalibrateLevelHorizonResponse& from) - : ::google::protobuf::Message(arena) { - CalibrateLevelHorizonResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(arena, *from._impl_.calibration_result_) - : nullptr; - _impl_.progress_data_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(arena, *from._impl_.progress_data_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) + ::google::protobuf::Arena* arena, const CalibrateLevelHorizonResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + CalibrateLevelHorizonResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_) : + nullptr; + _impl_.progress_data_ = + (cached_has_bits & 0x00000002u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::ProgressData>( + arena, *from._impl_.progress_data_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) } inline PROTOBUF_NDEBUG_INLINE CalibrateLevelHorizonResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void CalibrateLevelHorizonResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, calibration_result_), - 0, - offsetof(Impl_, progress_data_) - - offsetof(Impl_, calibration_result_) + - sizeof(Impl_::progress_data_)); -} -CalibrateLevelHorizonResponse::~CalibrateLevelHorizonResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CalibrateLevelHorizonResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.calibration_result_; - delete _impl_.progress_data_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CalibrateLevelHorizonResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.calibration_result_ != nullptr); - _impl_.calibration_result_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.progress_data_ != nullptr); - _impl_.progress_data_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CalibrateLevelHorizonResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateLevelHorizonResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CalibrateLevelHorizonResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.progress_data_)}}, - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.calibration_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - {PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.calibration_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - {PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.progress_data_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrationResult>()}, - {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::ProgressData>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void CalibrateLevelHorizonResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, calibration_result_), + 0, + offsetof(Impl_, progress_data_) - offsetof(Impl_, calibration_result_) + + sizeof(Impl_::progress_data_)); +} +CalibrateLevelHorizonResponse::~CalibrateLevelHorizonResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) + SharedDtor(*this); +} +inline void CalibrateLevelHorizonResponse::SharedDtor(MessageLite& self) +{ + CalibrateLevelHorizonResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.calibration_result_; + delete this_._impl_.progress_data_; + this_._impl_.~Impl_(); +} + +inline void* CalibrateLevelHorizonResponse::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) CalibrateLevelHorizonResponse(arena); +} +constexpr auto CalibrateLevelHorizonResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(CalibrateLevelHorizonResponse), alignof(CalibrateLevelHorizonResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CalibrateLevelHorizonResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CalibrateLevelHorizonResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CalibrateLevelHorizonResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CalibrateLevelHorizonResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &CalibrateLevelHorizonResponse::ByteSizeLong, + &CalibrateLevelHorizonResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_._cached_size_), + false, + }, + &CalibrateLevelHorizonResponse::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* CalibrateLevelHorizonResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> + CalibrateLevelHorizonResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + {::_pbi::TcParser::FastMtS1, + {18, + 1, + 1, + PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.progress_data_)}}, + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.calibration_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + {PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.calibration_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + {PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.progress_data_), + _Internal::kHasBitsOffset + 1, + 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrationResult>()}, + {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::ProgressData>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void CalibrateLevelHorizonResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.progress_data_ != nullptr); + _impl_.progress_data_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* CalibrateLevelHorizonResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::calibration_result(this), - _Internal::calibration_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::progress_data(this), - _Internal::progress_data(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - return target; -} - -::size_t CalibrateLevelHorizonResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const CalibrateLevelHorizonResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* CalibrateLevelHorizonResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const CalibrateLevelHorizonResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.calibration_result_, + this_._impl_.calibration_result_->GetCachedSize(), + target, + stream); } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.progress_data_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, + *this_._impl_.progress_data_, + this_._impl_.progress_data_->GetCachedSize(), + target, + stream); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CalibrateLevelHorizonResponse::_class_data_ = { - CalibrateLevelHorizonResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CalibrateLevelHorizonResponse::GetClassData() const { - return &_class_data_; -} - -void CalibrateLevelHorizonResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( - from._internal_calibration_result()); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom( - from._internal_progress_data()); + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CalibrateLevelHorizonResponse::ByteSizeLong(const MessageLite& base) +{ + const CalibrateLevelHorizonResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CalibrateLevelHorizonResponse::ByteSizeLong() const +{ + const CalibrateLevelHorizonResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.calibration_result_); + } + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.progress_data_); + } } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void CalibrateLevelHorizonResponse::CopyFrom(const CalibrateLevelHorizonResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool CalibrateLevelHorizonResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* CalibrateLevelHorizonResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CalibrateLevelHorizonResponse::InternalSwap(CalibrateLevelHorizonResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.progress_data_) - + sizeof(CalibrateLevelHorizonResponse::_impl_.progress_data_) - - PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.calibration_result_)>( - reinterpret_cast(&_impl_.calibration_result_), - reinterpret_cast(&other->_impl_.calibration_result_)); -} - -::google::protobuf::Metadata CalibrateLevelHorizonResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[7]); + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void CalibrateLevelHorizonResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.calibration_result_ != nullptr); + if (_this->_impl_.calibration_result_ == nullptr) { + _this->_impl_.calibration_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_); + } else { + _this->_impl_.calibration_result_->MergeFrom(*from._impl_.calibration_result_); + } + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(from._impl_.progress_data_ != nullptr); + if (_this->_impl_.progress_data_ == nullptr) { + _this->_impl_.progress_data_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::ProgressData>(arena, *from._impl_.progress_data_); + } else { + _this->_impl_.progress_data_->MergeFrom(*from._impl_.progress_data_); + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void CalibrateLevelHorizonResponse::CopyFrom(const CalibrateLevelHorizonResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void CalibrateLevelHorizonResponse::InternalSwap( + CalibrateLevelHorizonResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.progress_data_) + + sizeof(CalibrateLevelHorizonResponse::_impl_.progress_data_) - + PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.calibration_result_)>( + reinterpret_cast(&_impl_.calibration_result_), + reinterpret_cast(&other->_impl_.calibration_result_)); +} + +::google::protobuf::Metadata CalibrateLevelHorizonResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeCalibrateGimbalAccelerometerRequest::_Internal { - public: +public: }; -SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) -} SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest( - ::google::protobuf::Arena* arena, - const SubscribeCalibrateGimbalAccelerometerRequest& from) + ::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeCalibrateGimbalAccelerometerRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) } - - - - - - - - - -::google::protobuf::Metadata SubscribeCalibrateGimbalAccelerometerRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[8]); +SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest( + ::google::protobuf::Arena* arena, const SubscribeCalibrateGimbalAccelerometerRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeCalibrateGimbalAccelerometerRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) +} + +inline void* SubscribeCalibrateGimbalAccelerometerRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeCalibrateGimbalAccelerometerRequest(arena); +} +constexpr auto SubscribeCalibrateGimbalAccelerometerRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeCalibrateGimbalAccelerometerRequest), + alignof(SubscribeCalibrateGimbalAccelerometerRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull + SubscribeCalibrateGimbalAccelerometerRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeCalibrateGimbalAccelerometerRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeCalibrateGimbalAccelerometerRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl< + SubscribeCalibrateGimbalAccelerometerRequest>(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeCalibrateGimbalAccelerometerRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl< + SubscribeCalibrateGimbalAccelerometerRequest>(), + &SubscribeCalibrateGimbalAccelerometerRequest::ByteSizeLong, + &SubscribeCalibrateGimbalAccelerometerRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET( + SubscribeCalibrateGimbalAccelerometerRequest, _impl_._cached_size_), + false, + }, + &SubscribeCalibrateGimbalAccelerometerRequest::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker + }; +const ::google::protobuf::internal::ClassData* +SubscribeCalibrateGimbalAccelerometerRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeCalibrateGimbalAccelerometerRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::calibration:: + SubscribeCalibrateGimbalAccelerometerRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeCalibrateGimbalAccelerometerRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CalibrateGimbalAccelerometerResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CalibrateGimbalAccelerometerResponse* msg); - static void set_has_calibration_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::calibration::ProgressData& progress_data(const CalibrateGimbalAccelerometerResponse* msg); - static void set_has_progress_data(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } +public: + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGimbalAccelerometerResponse::_Internal::calibration_result(const CalibrateGimbalAccelerometerResponse* msg) { - return *msg->_impl_.calibration_result_; -} -const ::mavsdk::rpc::calibration::ProgressData& CalibrateGimbalAccelerometerResponse::_Internal::progress_data(const CalibrateGimbalAccelerometerResponse* msg) { - return *msg->_impl_.progress_data_; -} -CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) +CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse( + ::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) } inline PROTOBUF_NDEBUG_INLINE CalibrateGimbalAccelerometerResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse( - ::google::protobuf::Arena* arena, - const CalibrateGimbalAccelerometerResponse& from) - : ::google::protobuf::Message(arena) { - CalibrateGimbalAccelerometerResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(arena, *from._impl_.calibration_result_) - : nullptr; - _impl_.progress_data_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(arena, *from._impl_.progress_data_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) + ::google::protobuf::Arena* arena, const CalibrateGimbalAccelerometerResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + CalibrateGimbalAccelerometerResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_) : + nullptr; + _impl_.progress_data_ = + (cached_has_bits & 0x00000002u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::ProgressData>( + arena, *from._impl_.progress_data_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) } inline PROTOBUF_NDEBUG_INLINE CalibrateGimbalAccelerometerResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void CalibrateGimbalAccelerometerResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, calibration_result_), - 0, - offsetof(Impl_, progress_data_) - - offsetof(Impl_, calibration_result_) + - sizeof(Impl_::progress_data_)); -} -CalibrateGimbalAccelerometerResponse::~CalibrateGimbalAccelerometerResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CalibrateGimbalAccelerometerResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.calibration_result_; - delete _impl_.progress_data_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CalibrateGimbalAccelerometerResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.calibration_result_ != nullptr); - _impl_.calibration_result_->Clear(); + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void CalibrateGimbalAccelerometerResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, calibration_result_), + 0, + offsetof(Impl_, progress_data_) - offsetof(Impl_, calibration_result_) + + sizeof(Impl_::progress_data_)); +} +CalibrateGimbalAccelerometerResponse::~CalibrateGimbalAccelerometerResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) + SharedDtor(*this); +} +inline void CalibrateGimbalAccelerometerResponse::SharedDtor(MessageLite& self) +{ + CalibrateGimbalAccelerometerResponse& this_ = + static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.calibration_result_; + delete this_._impl_.progress_data_; + this_._impl_.~Impl_(); +} + +inline void* CalibrateGimbalAccelerometerResponse::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) CalibrateGimbalAccelerometerResponse(arena); +} +constexpr auto CalibrateGimbalAccelerometerResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(CalibrateGimbalAccelerometerResponse), + alignof(CalibrateGimbalAccelerometerResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull + CalibrateGimbalAccelerometerResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CalibrateGimbalAccelerometerResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CalibrateGimbalAccelerometerResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CalibrateGimbalAccelerometerResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &CalibrateGimbalAccelerometerResponse::ByteSizeLong, + &CalibrateGimbalAccelerometerResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_._cached_size_), + false, + }, + &CalibrateGimbalAccelerometerResponse::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker + }; +const ::google::protobuf::internal::ClassData* +CalibrateGimbalAccelerometerResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> + CalibrateGimbalAccelerometerResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + {::_pbi::TcParser::FastMtS1, + {18, + 1, + 1, + PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_.progress_data_)}}, + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, + 0, + 0, + PROTOBUF_FIELD_OFFSET( + CalibrateGimbalAccelerometerResponse, _impl_.calibration_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + {PROTOBUF_FIELD_OFFSET( + CalibrateGimbalAccelerometerResponse, _impl_.calibration_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + {PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_.progress_data_), + _Internal::kHasBitsOffset + 1, + 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrationResult>()}, + {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::ProgressData>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void CalibrateGimbalAccelerometerResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.progress_data_ != nullptr); + _impl_.progress_data_->Clear(); + } } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.progress_data_ != nullptr); - _impl_.progress_data_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CalibrateGimbalAccelerometerResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateGimbalAccelerometerResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CalibrateGimbalAccelerometerResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_.progress_data_)}}, - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_.calibration_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - {PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_.calibration_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - {PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_.progress_data_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrationResult>()}, - {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::ProgressData>()}, - }}, {{ - }}, -}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* CalibrateGimbalAccelerometerResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const CalibrateGimbalAccelerometerResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* CalibrateGimbalAccelerometerResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::calibration_result(this), - _Internal::calibration_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::progress_data(this), - _Internal::progress_data(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - return target; -} - -::size_t CalibrateGimbalAccelerometerResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const CalibrateGimbalAccelerometerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.calibration_result_, + this_._impl_.calibration_result_->GetCachedSize(), + target, + stream); } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.progress_data_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, + *this_._impl_.progress_data_, + this_._impl_.progress_data_->GetCachedSize(), + target, + stream); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CalibrateGimbalAccelerometerResponse::_class_data_ = { - CalibrateGimbalAccelerometerResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CalibrateGimbalAccelerometerResponse::GetClassData() const { - return &_class_data_; -} - -void CalibrateGimbalAccelerometerResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( - from._internal_calibration_result()); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom( - from._internal_progress_data()); + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CalibrateGimbalAccelerometerResponse::ByteSizeLong(const MessageLite& base) +{ + const CalibrateGimbalAccelerometerResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CalibrateGimbalAccelerometerResponse::ByteSizeLong() const +{ + const CalibrateGimbalAccelerometerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.calibration_result_); + } + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.progress_data_); + } } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void CalibrateGimbalAccelerometerResponse::CopyFrom(const CalibrateGimbalAccelerometerResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool CalibrateGimbalAccelerometerResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* CalibrateGimbalAccelerometerResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CalibrateGimbalAccelerometerResponse::InternalSwap(CalibrateGimbalAccelerometerResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_.progress_data_) - + sizeof(CalibrateGimbalAccelerometerResponse::_impl_.progress_data_) - - PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_.calibration_result_)>( - reinterpret_cast(&_impl_.calibration_result_), - reinterpret_cast(&other->_impl_.calibration_result_)); + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void CalibrateGimbalAccelerometerResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.calibration_result_ != nullptr); + if (_this->_impl_.calibration_result_ == nullptr) { + _this->_impl_.calibration_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_); + } else { + _this->_impl_.calibration_result_->MergeFrom(*from._impl_.calibration_result_); + } + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(from._impl_.progress_data_ != nullptr); + if (_this->_impl_.progress_data_ == nullptr) { + _this->_impl_.progress_data_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::ProgressData>(arena, *from._impl_.progress_data_); + } else { + _this->_impl_.progress_data_->MergeFrom(*from._impl_.progress_data_); + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::google::protobuf::Metadata CalibrateGimbalAccelerometerResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[9]); +void CalibrateGimbalAccelerometerResponse::CopyFrom( + const CalibrateGimbalAccelerometerResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void CalibrateGimbalAccelerometerResponse::InternalSwap( + CalibrateGimbalAccelerometerResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_.progress_data_) + + sizeof(CalibrateGimbalAccelerometerResponse::_impl_.progress_data_) - + PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_.calibration_result_)>( + reinterpret_cast(&_impl_.calibration_result_), + reinterpret_cast(&other->_impl_.calibration_result_)); +} + +::google::protobuf::Metadata CalibrateGimbalAccelerometerResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CancelRequest::_Internal { - public: +public: }; CancelRequest::CancelRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CancelRequest) -} -CancelRequest::CancelRequest( - ::google::protobuf::Arena* arena, - const CancelRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - CancelRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CancelRequest) -} - - - - - - - - - -::google::protobuf::Metadata CancelRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[10]); +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CancelRequest) +} +CancelRequest::CancelRequest(::google::protobuf::Arena* arena, const CancelRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + CancelRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CancelRequest) +} + +inline void* CancelRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) CancelRequest(arena); +} +constexpr auto CancelRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(CancelRequest), alignof(CancelRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CancelRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CancelRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CancelRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CancelRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &CancelRequest::ByteSizeLong, + &CancelRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CancelRequest, _impl_._cached_size_), + false, + }, + &CancelRequest::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CancelRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + CancelRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CancelRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata CancelRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CancelResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CancelResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CancelResponse* msg); - static void set_has_calibration_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CancelResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::calibration::CalibrationResult& CancelResponse::_Internal::calibration_result(const CancelResponse* msg) { - return *msg->_impl_.calibration_result_; -} CancelResponse::CancelResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CancelResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CancelResponse) } inline PROTOBUF_NDEBUG_INLINE CancelResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -CancelResponse::CancelResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const CancelResponse& from) - : ::google::protobuf::Message(arena) { - CancelResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(arena, *from._impl_.calibration_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CancelResponse) + const Impl_& from, + const ::mavsdk::rpc::calibration::CancelResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +CancelResponse::CancelResponse(::google::protobuf::Arena* arena, const CancelResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + CancelResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CancelResponse) } inline PROTOBUF_NDEBUG_INLINE CancelResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void CancelResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.calibration_result_ = {}; -} -CancelResponse::~CancelResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CancelResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CancelResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.calibration_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CancelResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CancelResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.calibration_result_ != nullptr); - _impl_.calibration_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CancelResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CancelResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CancelResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CancelResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CancelResponse, _impl_.calibration_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - {PROTOBUF_FIELD_OFFSET(CancelResponse, _impl_.calibration_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrationResult>()}, - }}, {{ - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void CancelResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.calibration_result_ = {}; +} +CancelResponse::~CancelResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CancelResponse) + SharedDtor(*this); +} +inline void CancelResponse::SharedDtor(MessageLite& self) +{ + CancelResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.calibration_result_; + this_._impl_.~Impl_(); +} + +inline void* CancelResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) CancelResponse(arena); +} +constexpr auto CancelResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(CancelResponse), alignof(CancelResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CancelResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CancelResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CancelResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CancelResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &CancelResponse::ByteSizeLong, + &CancelResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CancelResponse, _impl_._cached_size_), + false, + }, + &CancelResponse::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker }; +const ::google::protobuf::internal::ClassData* CancelResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + CancelResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CancelResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CancelResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(CancelResponse, _impl_.calibration_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + {PROTOBUF_FIELD_OFFSET(CancelResponse, _impl_.calibration_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrationResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void CancelResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CancelResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* CancelResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CancelResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::calibration_result(this), - _Internal::calibration_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CancelResponse) - return target; -} - -::size_t CancelResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CancelResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CancelResponse::_class_data_ = { - CancelResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CancelResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const CancelResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* CancelResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const CancelResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CancelResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.calibration_result_, + this_._impl_.calibration_result_->GetCachedSize(), + target, + stream); + } -void CancelResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CancelResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CancelResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CancelResponse::ByteSizeLong(const MessageLite& base) +{ + const CancelResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CancelResponse::ByteSizeLong() const +{ + const CancelResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CancelResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( - from._internal_calibration_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.calibration_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void CancelResponse::CopyFrom(const CancelResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.CancelResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void CancelResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CancelResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool CancelResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.calibration_result_ != nullptr); + if (_this->_impl_.calibration_result_ == nullptr) { + _this->_impl_.calibration_result_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_); + } else { + _this->_impl_.calibration_result_->MergeFrom(*from._impl_.calibration_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* CancelResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void CancelResponse::CopyFrom(const CancelResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.CancelResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void CancelResponse::InternalSwap(CancelResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.calibration_result_, other->_impl_.calibration_result_); + +void CancelResponse::InternalSwap(CancelResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.calibration_result_, other->_impl_.calibration_result_); } -::google::protobuf::Metadata CancelResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[11]); +::google::protobuf::Metadata CancelResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CalibrationResult::_Internal { - public: +public: }; CalibrationResult::CalibrationResult(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrationResult) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrationResult) } inline PROTOBUF_NDEBUG_INLINE CalibrationResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : result_str_(arena, from.result_str_), - _cached_size_{0} {} - -CalibrationResult::CalibrationResult( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const CalibrationResult& from) - : ::google::protobuf::Message(arena) { - CalibrationResult* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.result_ = from._impl_.result_; + const Impl_& from, + const ::mavsdk::rpc::calibration::CalibrationResult& from_msg) : + result_str_(arena, from.result_str_), + _cached_size_{0} +{} - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrationResult) +CalibrationResult::CalibrationResult( + ::google::protobuf::Arena* arena, const CalibrationResult& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + CalibrationResult* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.result_ = from._impl_.result_; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrationResult) } inline PROTOBUF_NDEBUG_INLINE CalibrationResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : result_str_(arena), - _cached_size_{0} {} - -inline void CalibrationResult::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.result_ = {}; -} -CalibrationResult::~CalibrationResult() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrationResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CalibrationResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.result_str_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CalibrationResult::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrationResult) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_str_.ClearToEmpty(); - _impl_.result_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CalibrationResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 59, 2> CalibrationResult::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CalibrationResult_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string result_str = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CalibrationResult, _impl_.result_str_)}}, - // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CalibrationResult, _impl_.result_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(CalibrationResult, _impl_.result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; - {PROTOBUF_FIELD_OFFSET(CalibrationResult, _impl_.result_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // string result_str = 2; - {PROTOBUF_FIELD_OFFSET(CalibrationResult, _impl_.result_str_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\50\0\12\0\0\0\0\0" - "mavsdk.rpc.calibration.CalibrationResult" - "result_str" - }}, + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + result_str_(arena), + _cached_size_{0} +{} + +inline void CalibrationResult::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.result_ = {}; +} +CalibrationResult::~CalibrationResult() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrationResult) + SharedDtor(*this); +} +inline void CalibrationResult::SharedDtor(MessageLite& self) +{ + CalibrationResult& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.result_str_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* +CalibrationResult::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) CalibrationResult(arena); +} +constexpr auto CalibrationResult::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(CalibrationResult), alignof(CalibrationResult)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CalibrationResult::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CalibrationResult_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CalibrationResult::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CalibrationResult::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &CalibrationResult::ByteSizeLong, + &CalibrationResult::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CalibrationResult, _impl_._cached_size_), + false, + }, + &CalibrationResult::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker }; - +const ::google::protobuf::internal::ClassData* CalibrationResult::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 59, 2> + CalibrationResult::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::calibration::CalibrationResult>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // string result_str = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(CalibrationResult, _impl_.result_str_)}}, + // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(CalibrationResult, _impl_.result_), + 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(CalibrationResult, _impl_.result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; + {PROTOBUF_FIELD_OFFSET(CalibrationResult, _impl_.result_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // string result_str = 2; + {PROTOBUF_FIELD_OFFSET(CalibrationResult, _impl_.result_str_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{"\50\0\12\0\0\0\0\0" + "mavsdk.rpc.calibration.CalibrationResult" + "result_str"}}, + }; + +PROTOBUF_NOINLINE void CalibrationResult::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrationResult) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.result_str_.ClearToEmpty(); + _impl_.result_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* CalibrationResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrationResult) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; - if (this->_internal_result() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); - } - - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - const std::string& _s = this->_internal_result_str(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.calibration.CalibrationResult.result_str"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrationResult) - return target; -} - -::size_t CalibrationResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrationResult) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_result_str()); - } - - // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; - if (this->_internal_result() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CalibrationResult::_class_data_ = { - CalibrationResult::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CalibrationResult::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const CalibrationResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* CalibrationResult::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const CalibrationResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrationResult) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void CalibrationResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrationResult) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; + if (this_._internal_result() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray(1, this_._internal_result(), target); + } - if (!from._internal_result_str().empty()) { - _this->_internal_set_result_str(from._internal_result_str()); - } - if (from._internal_result() != 0) { - _this->_internal_set_result(from._internal_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + const std::string& _s = this_._internal_result_str(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), + static_cast(_s.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "mavsdk.rpc.calibration.CalibrationResult.result_str"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } -void CalibrationResult::CopyFrom(const CalibrationResult& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.CalibrationResult) - if (&from == this) return; - Clear(); - MergeFrom(from); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrationResult) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CalibrationResult::ByteSizeLong(const MessageLite& base) +{ + const CalibrationResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CalibrationResult::ByteSizeLong() const +{ + const CalibrationResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrationResult) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_result_str()); + } + // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; + if (this_._internal_result() != 0) { + total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_result()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -PROTOBUF_NOINLINE bool CalibrationResult::IsInitialized() const { - return true; +void CalibrationResult::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrationResult) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (!from._internal_result_str().empty()) { + _this->_internal_set_result_str(from._internal_result_str()); + } + if (from._internal_result() != 0) { + _this->_impl_.result_ = from._impl_.result_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* CalibrationResult::AccessCachedSize() const { - return &_impl_._cached_size_; +void CalibrationResult::CopyFrom(const CalibrationResult& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.CalibrationResult) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void CalibrationResult::InternalSwap(CalibrationResult* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, &other->_impl_.result_str_, arena); - swap(_impl_.result_, other->_impl_.result_); + +void CalibrationResult::InternalSwap(CalibrationResult* PROTOBUF_RESTRICT other) +{ + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, &other->_impl_.result_str_, arena); + swap(_impl_.result_, other->_impl_.result_); } -::google::protobuf::Metadata CalibrationResult::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[12]); +::google::protobuf::Metadata CalibrationResult::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ProgressData::_Internal { - public: +public: }; ProgressData::ProgressData(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.ProgressData) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.ProgressData) } inline PROTOBUF_NDEBUG_INLINE ProgressData::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : status_text_(arena, from.status_text_), - _cached_size_{0} {} - -ProgressData::ProgressData( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const ProgressData& from) - : ::google::protobuf::Message(arena) { - ProgressData* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, progress_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, progress_), - offsetof(Impl_, has_status_text_) - - offsetof(Impl_, progress_) + - sizeof(Impl_::has_status_text_)); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.ProgressData) + const Impl_& from, + const ::mavsdk::rpc::calibration::ProgressData& from_msg) : + status_text_(arena, from.status_text_), + _cached_size_{0} +{} + +ProgressData::ProgressData(::google::protobuf::Arena* arena, const ProgressData& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ProgressData* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy( + reinterpret_cast(&_impl_) + offsetof(Impl_, progress_), + reinterpret_cast(&from._impl_) + offsetof(Impl_, progress_), + offsetof(Impl_, has_status_text_) - offsetof(Impl_, progress_) + + sizeof(Impl_::has_status_text_)); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.ProgressData) } inline PROTOBUF_NDEBUG_INLINE ProgressData::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : status_text_(arena), - _cached_size_{0} {} - -inline void ProgressData::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, progress_), - 0, - offsetof(Impl_, has_status_text_) - - offsetof(Impl_, progress_) + - sizeof(Impl_::has_status_text_)); -} -ProgressData::~ProgressData() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.ProgressData) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ProgressData::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.status_text_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ProgressData::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.ProgressData) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.status_text_.ClearToEmpty(); - ::memset(&_impl_.progress_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.has_status_text_) - - reinterpret_cast(&_impl_.progress_)) + sizeof(_impl_.has_status_text_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ProgressData::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 55, 2> ProgressData::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ProgressData_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string status_text = 4; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.status_text_)}}, - // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.has_progress_)}}, - // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.progress_)}}, - // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.has_status_text_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + status_text_(arena), + _cached_size_{0} +{} + +inline void ProgressData::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, progress_), + 0, + offsetof(Impl_, has_status_text_) - offsetof(Impl_, progress_) + + sizeof(Impl_::has_status_text_)); +} +ProgressData::~ProgressData() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.ProgressData) + SharedDtor(*this); +} +inline void ProgressData::SharedDtor(MessageLite& self) +{ + ProgressData& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.status_text_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* ProgressData::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ProgressData(arena); +} +constexpr auto ProgressData::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(ProgressData), alignof(ProgressData)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ProgressData::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ProgressData_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ProgressData::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ProgressData::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ProgressData::ByteSizeLong, + &ProgressData::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ProgressData, _impl_._cached_size_), + false, + }, + &ProgressData::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ProgressData::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 55, 2> + ProgressData::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 4, + 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::ProgressData>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // string status_text = 4; + {::_pbi::TcParser::FastUS1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.status_text_)}}, + // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; + {::_pbi::TcParser:: + SingularVarintNoZag1(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.has_progress_)}}, + // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; + {::_pbi::TcParser::FastF32S1, + {21, 63, 0, PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.progress_)}}, + // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; + {::_pbi::TcParser:: + SingularVarintNoZag1(), + {24, 63, 0, PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.has_status_text_)}}, + }}, + {{65535, 65535}}, + {{ + // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; + {PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.has_progress_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; + {PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.progress_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; + {PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.has_status_text_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // string status_text = 4; + {PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.status_text_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{"\43\0\0\0\13\0\0\0" + "mavsdk.rpc.calibration.ProgressData" + "status_text"}}, + }; + +PROTOBUF_NOINLINE void ProgressData::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.ProgressData) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.status_text_.ClearToEmpty(); + ::memset( + &_impl_.progress_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.has_status_text_) - + reinterpret_cast(&_impl_.progress_)) + + sizeof(_impl_.has_status_text_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* ProgressData::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ProgressData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ProgressData::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ProgressData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.ProgressData) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; - {PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.has_progress_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + if (this_._internal_has_progress() != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteBoolToArray(1, this_._internal_has_progress(), target); + } + // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; - {PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.progress_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_progress()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this_._internal_progress(), target); + } + // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; - {PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.has_status_text_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + if (this_._internal_has_status_text() != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteBoolToArray(3, this_._internal_has_status_text(), target); + } + // string status_text = 4; - {PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.status_text_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\43\0\0\0\13\0\0\0" - "mavsdk.rpc.calibration.ProgressData" - "status_text" - }}, -}; + if (!this_._internal_status_text().empty()) { + const std::string& _s = this_._internal_status_text(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), + static_cast(_s.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "mavsdk.rpc.calibration.ProgressData.status_text"); + target = stream->WriteStringMaybeAliased(4, _s, target); + } -::uint8_t* ProgressData::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.ProgressData) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; - if (this->_internal_has_progress() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_has_progress(), target); - } - - // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_progress = this->_internal_progress(); - ::uint32_t raw_progress; - memcpy(&raw_progress, &tmp_progress, sizeof(tmp_progress)); - if (raw_progress != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_progress(), target); - } - - // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; - if (this->_internal_has_status_text() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_has_status_text(), target); - } - - // string status_text = 4; - if (!this->_internal_status_text().empty()) { - const std::string& _s = this->_internal_status_text(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.calibration.ProgressData.status_text"); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.ProgressData) - return target; -} - -::size_t ProgressData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.ProgressData) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string status_text = 4; - if (!this->_internal_status_text().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_status_text()); - } - - // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_progress = this->_internal_progress(); - ::uint32_t raw_progress; - memcpy(&raw_progress, &tmp_progress, sizeof(tmp_progress)); - if (raw_progress != 0) { - total_size += 5; - } - - // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; - if (this->_internal_has_progress() != 0) { - total_size += 2; - } - - // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; - if (this->_internal_has_status_text() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ProgressData::_class_data_ = { - ProgressData::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ProgressData::GetClassData() const { - return &_class_data_; -} - -void ProgressData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.ProgressData) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_status_text().empty()) { - _this->_internal_set_status_text(from._internal_status_text()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_progress = from._internal_progress(); - ::uint32_t raw_progress; - memcpy(&raw_progress, &tmp_progress, sizeof(tmp_progress)); - if (raw_progress != 0) { - _this->_internal_set_progress(from._internal_progress()); - } - if (from._internal_has_progress() != 0) { - _this->_internal_set_has_progress(from._internal_has_progress()); - } - if (from._internal_has_status_text() != 0) { - _this->_internal_set_has_status_text(from._internal_has_status_text()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ProgressData::CopyFrom(const ProgressData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.ProgressData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ProgressData::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* ProgressData::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ProgressData::InternalSwap(ProgressData* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.status_text_, &other->_impl_.status_text_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.has_status_text_) - + sizeof(ProgressData::_impl_.has_status_text_) - - PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.progress_)>( - reinterpret_cast(&_impl_.progress_), - reinterpret_cast(&other->_impl_.progress_)); -} - -::google::protobuf::Metadata ProgressData::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[13]); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.ProgressData) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ProgressData::ByteSizeLong(const MessageLite& base) +{ + const ProgressData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ProgressData::ByteSizeLong() const +{ + const ProgressData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.ProgressData) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string status_text = 4; + if (!this_._internal_status_text().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_status_text()); + } + // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; + if (::absl::bit_cast<::uint32_t>(this_._internal_progress()) != 0) { + total_size += 5; + } + // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; + if (this_._internal_has_progress() != 0) { + total_size += 2; + } + // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; + if (this_._internal_has_status_text() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void ProgressData::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.ProgressData) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (!from._internal_status_text().empty()) { + _this->_internal_set_status_text(from._internal_status_text()); + } + if (::absl::bit_cast<::uint32_t>(from._internal_progress()) != 0) { + _this->_impl_.progress_ = from._impl_.progress_; + } + if (from._internal_has_progress() != 0) { + _this->_impl_.has_progress_ = from._impl_.has_progress_; + } + if (from._internal_has_status_text() != 0) { + _this->_impl_.has_status_text_ = from._impl_.has_status_text_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void ProgressData::CopyFrom(const ProgressData& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.calibration.ProgressData) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void ProgressData::InternalSwap(ProgressData* PROTOBUF_RESTRICT other) +{ + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.status_text_, &other->_impl_.status_text_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.has_status_text_) + + sizeof(ProgressData::_impl_.has_status_text_) - + PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.progress_)>( + reinterpret_cast(&_impl_.progress_), + reinterpret_cast(&other->_impl_.progress_)); +} + +::google::protobuf::Metadata ProgressData::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) -} // namespace calibration -} // namespace rpc -} // namespace mavsdk +} // namespace calibration +} // namespace rpc +} // namespace mavsdk namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +namespace protobuf {} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_calibration_2fcalibration_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/src/mavsdk_server/src/generated/calibration/calibration.pb.h b/src/mavsdk_server/src/generated/calibration/calibration.pb.h index aec1afa038..94b3a34ec0 100644 --- a/src/mavsdk_server/src/generated/calibration/calibration.pb.h +++ b/src/mavsdk_server/src/generated/calibration/calibration.pb.h @@ -1,28 +1,22 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: calibration/calibration.proto -// Protobuf C++ Version: 4.25.1 +// Protobuf C++ Version: 5.29.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_calibration_2fcalibration_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_calibration_2fcalibration_2eproto_2epb_2eh +#ifndef calibration_2fcalibration_2eproto_2epb_2eh +#define calibration_2fcalibration_2eproto_2epb_2eh #include #include #include #include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" @@ -32,8 +26,9 @@ #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export #include "google/protobuf/generated_enum_reflection.h" #include "google/protobuf/unknown_field_set.h" #include "mavsdk_options.pb.h" @@ -47,14 +42,14 @@ namespace google { namespace protobuf { namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google +template::absl::string_view GetAnyMessageName(); +} // namespace internal +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_calibration_2fcalibration_2eproto { - static const ::uint32_t offsets[]; + static const ::uint32_t offsets[]; }; extern const ::google::protobuf::internal::DescriptorTable descriptor_table_calibration_2fcalibration_2eproto; @@ -63,19 +58,23 @@ namespace rpc { namespace calibration { class CalibrateAccelerometerResponse; struct CalibrateAccelerometerResponseDefaultTypeInternal; -extern CalibrateAccelerometerResponseDefaultTypeInternal _CalibrateAccelerometerResponse_default_instance_; +extern CalibrateAccelerometerResponseDefaultTypeInternal + _CalibrateAccelerometerResponse_default_instance_; class CalibrateGimbalAccelerometerResponse; struct CalibrateGimbalAccelerometerResponseDefaultTypeInternal; -extern CalibrateGimbalAccelerometerResponseDefaultTypeInternal _CalibrateGimbalAccelerometerResponse_default_instance_; +extern CalibrateGimbalAccelerometerResponseDefaultTypeInternal + _CalibrateGimbalAccelerometerResponse_default_instance_; class CalibrateGyroResponse; struct CalibrateGyroResponseDefaultTypeInternal; extern CalibrateGyroResponseDefaultTypeInternal _CalibrateGyroResponse_default_instance_; class CalibrateLevelHorizonResponse; struct CalibrateLevelHorizonResponseDefaultTypeInternal; -extern CalibrateLevelHorizonResponseDefaultTypeInternal _CalibrateLevelHorizonResponse_default_instance_; +extern CalibrateLevelHorizonResponseDefaultTypeInternal + _CalibrateLevelHorizonResponse_default_instance_; class CalibrateMagnetometerResponse; struct CalibrateMagnetometerResponseDefaultTypeInternal; -extern CalibrateMagnetometerResponseDefaultTypeInternal _CalibrateMagnetometerResponse_default_instance_; +extern CalibrateMagnetometerResponseDefaultTypeInternal + _CalibrateMagnetometerResponse_default_instance_; class CalibrationResult; struct CalibrationResultDefaultTypeInternal; extern CalibrationResultDefaultTypeInternal _CalibrationResult_default_instance_; @@ -90,2518 +89,3022 @@ struct ProgressDataDefaultTypeInternal; extern ProgressDataDefaultTypeInternal _ProgressData_default_instance_; class SubscribeCalibrateAccelerometerRequest; struct SubscribeCalibrateAccelerometerRequestDefaultTypeInternal; -extern SubscribeCalibrateAccelerometerRequestDefaultTypeInternal _SubscribeCalibrateAccelerometerRequest_default_instance_; +extern SubscribeCalibrateAccelerometerRequestDefaultTypeInternal + _SubscribeCalibrateAccelerometerRequest_default_instance_; class SubscribeCalibrateGimbalAccelerometerRequest; struct SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal; -extern SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal _SubscribeCalibrateGimbalAccelerometerRequest_default_instance_; +extern SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal + _SubscribeCalibrateGimbalAccelerometerRequest_default_instance_; class SubscribeCalibrateGyroRequest; struct SubscribeCalibrateGyroRequestDefaultTypeInternal; -extern SubscribeCalibrateGyroRequestDefaultTypeInternal _SubscribeCalibrateGyroRequest_default_instance_; +extern SubscribeCalibrateGyroRequestDefaultTypeInternal + _SubscribeCalibrateGyroRequest_default_instance_; class SubscribeCalibrateLevelHorizonRequest; struct SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal; -extern SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal _SubscribeCalibrateLevelHorizonRequest_default_instance_; +extern SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal + _SubscribeCalibrateLevelHorizonRequest_default_instance_; class SubscribeCalibrateMagnetometerRequest; struct SubscribeCalibrateMagnetometerRequestDefaultTypeInternal; -extern SubscribeCalibrateMagnetometerRequestDefaultTypeInternal _SubscribeCalibrateMagnetometerRequest_default_instance_; -} // namespace calibration -} // namespace rpc -} // namespace mavsdk +extern SubscribeCalibrateMagnetometerRequestDefaultTypeInternal + _SubscribeCalibrateMagnetometerRequest_default_instance_; +} // namespace calibration +} // namespace rpc +} // namespace mavsdk namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +namespace protobuf {} // namespace protobuf +} // namespace google namespace mavsdk { namespace rpc { namespace calibration { enum CalibrationResult_Result : int { - CalibrationResult_Result_RESULT_UNKNOWN = 0, - CalibrationResult_Result_RESULT_SUCCESS = 1, - CalibrationResult_Result_RESULT_NEXT = 2, - CalibrationResult_Result_RESULT_FAILED = 3, - CalibrationResult_Result_RESULT_NO_SYSTEM = 4, - CalibrationResult_Result_RESULT_CONNECTION_ERROR = 5, - CalibrationResult_Result_RESULT_BUSY = 6, - CalibrationResult_Result_RESULT_COMMAND_DENIED = 7, - CalibrationResult_Result_RESULT_TIMEOUT = 8, - CalibrationResult_Result_RESULT_CANCELLED = 9, - CalibrationResult_Result_RESULT_FAILED_ARMED = 10, - CalibrationResult_Result_RESULT_UNSUPPORTED = 11, - CalibrationResult_Result_CalibrationResult_Result_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - CalibrationResult_Result_CalibrationResult_Result_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + CalibrationResult_Result_RESULT_UNKNOWN = 0, + CalibrationResult_Result_RESULT_SUCCESS = 1, + CalibrationResult_Result_RESULT_NEXT = 2, + CalibrationResult_Result_RESULT_FAILED = 3, + CalibrationResult_Result_RESULT_NO_SYSTEM = 4, + CalibrationResult_Result_RESULT_CONNECTION_ERROR = 5, + CalibrationResult_Result_RESULT_BUSY = 6, + CalibrationResult_Result_RESULT_COMMAND_DENIED = 7, + CalibrationResult_Result_RESULT_TIMEOUT = 8, + CalibrationResult_Result_RESULT_CANCELLED = 9, + CalibrationResult_Result_RESULT_FAILED_ARMED = 10, + CalibrationResult_Result_RESULT_UNSUPPORTED = 11, + CalibrationResult_Result_CalibrationResult_Result_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + CalibrationResult_Result_CalibrationResult_Result_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; bool CalibrationResult_Result_IsValid(int value); extern const uint32_t CalibrationResult_Result_internal_data_[]; -constexpr CalibrationResult_Result CalibrationResult_Result_Result_MIN = static_cast(0); -constexpr CalibrationResult_Result CalibrationResult_Result_Result_MAX = static_cast(11); +constexpr CalibrationResult_Result CalibrationResult_Result_Result_MIN = + static_cast(0); +constexpr CalibrationResult_Result CalibrationResult_Result_Result_MAX = + static_cast(11); constexpr int CalibrationResult_Result_Result_ARRAYSIZE = 11 + 1; -const ::google::protobuf::EnumDescriptor* -CalibrationResult_Result_descriptor(); -template -const std::string& CalibrationResult_Result_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to Result_Name()."); - return CalibrationResult_Result_Name(static_cast(value)); -} -template <> -inline const std::string& CalibrationResult_Result_Name(CalibrationResult_Result value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool CalibrationResult_Result_Parse(absl::string_view name, CalibrationResult_Result* value) { - return ::google::protobuf::internal::ParseNamedEnum( - CalibrationResult_Result_descriptor(), name, value); +const ::google::protobuf::EnumDescriptor* CalibrationResult_Result_descriptor(); +template const std::string& CalibrationResult_Result_Name(T value) +{ + static_assert( + std::is_same::value || std::is_integral::value, + "Incorrect type passed to Result_Name()."); + return CalibrationResult_Result_Name(static_cast(value)); +} +template<> inline const std::string& CalibrationResult_Result_Name(CalibrationResult_Result value) +{ + return ::google::protobuf::internal:: + NameOfDenseEnum(static_cast(value)); +} +inline bool CalibrationResult_Result_Parse(absl::string_view name, CalibrationResult_Result* value) +{ + return ::google::protobuf::internal::ParseNamedEnum( + CalibrationResult_Result_descriptor(), name, value); } // =================================================================== +// ------------------------------------------------------------------- + +class SubscribeCalibrateMagnetometerRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) + */ +{ +public: + inline SubscribeCalibrateMagnetometerRequest() : SubscribeCalibrateMagnetometerRequest(nullptr) + {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeCalibrateMagnetometerRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete( + msg, sizeof(SubscribeCalibrateMagnetometerRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SubscribeCalibrateMagnetometerRequest(::google::protobuf::internal::ConstantInitialized); + + inline SubscribeCalibrateMagnetometerRequest( + const SubscribeCalibrateMagnetometerRequest& from) : + SubscribeCalibrateMagnetometerRequest(nullptr, from) + {} + inline SubscribeCalibrateMagnetometerRequest( + SubscribeCalibrateMagnetometerRequest&& from) noexcept : + SubscribeCalibrateMagnetometerRequest(nullptr, std::move(from)) + {} + inline SubscribeCalibrateMagnetometerRequest& + operator=(const SubscribeCalibrateMagnetometerRequest& from) + { + CopyFrom(from); + return *this; + } + inline SubscribeCalibrateMagnetometerRequest& + operator=(SubscribeCalibrateMagnetometerRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SubscribeCalibrateMagnetometerRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const SubscribeCalibrateMagnetometerRequest* internal_default_instance() + { + return reinterpret_cast( + &_SubscribeCalibrateMagnetometerRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void + swap(SubscribeCalibrateMagnetometerRequest& a, SubscribeCalibrateMagnetometerRequest& b) + { + a.Swap(&b); + } + inline void Swap(SubscribeCalibrateMagnetometerRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SubscribeCalibrateMagnetometerRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + // implements Message ---------------------------------------------- + + SubscribeCalibrateMagnetometerRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + SubscribeCalibrateMagnetometerRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeCalibrateMagnetometerRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeCalibrateMagnetometerRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest"; + } + +protected: + explicit SubscribeCalibrateMagnetometerRequest(::google::protobuf::Arena* arena); + SubscribeCalibrateMagnetometerRequest( + ::google::protobuf::Arena* arena, const SubscribeCalibrateMagnetometerRequest& from); + SubscribeCalibrateMagnetometerRequest( + ::google::protobuf::Arena* arena, SubscribeCalibrateMagnetometerRequest&& from) noexcept : + SubscribeCalibrateMagnetometerRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SubscribeCalibrateMagnetometerRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_calibration_2fcalibration_2eproto; +}; // ------------------------------------------------------------------- -class SubscribeCalibrateMagnetometerRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) */ { - public: - inline SubscribeCalibrateMagnetometerRequest() : SubscribeCalibrateMagnetometerRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequest(::google::protobuf::internal::ConstantInitialized); - - inline SubscribeCalibrateMagnetometerRequest(const SubscribeCalibrateMagnetometerRequest& from) - : SubscribeCalibrateMagnetometerRequest(nullptr, from) {} - SubscribeCalibrateMagnetometerRequest(SubscribeCalibrateMagnetometerRequest&& from) noexcept - : SubscribeCalibrateMagnetometerRequest() { - *this = ::std::move(from); - } - - inline SubscribeCalibrateMagnetometerRequest& operator=(const SubscribeCalibrateMagnetometerRequest& from) { - CopyFrom(from); - return *this; - } - inline SubscribeCalibrateMagnetometerRequest& operator=(SubscribeCalibrateMagnetometerRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubscribeCalibrateMagnetometerRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubscribeCalibrateMagnetometerRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeCalibrateMagnetometerRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(SubscribeCalibrateMagnetometerRequest& a, SubscribeCalibrateMagnetometerRequest& b) { - a.Swap(&b); - } - inline void Swap(SubscribeCalibrateMagnetometerRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubscribeCalibrateMagnetometerRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubscribeCalibrateMagnetometerRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeCalibrateMagnetometerRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeCalibrateMagnetometerRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest"; - } - protected: - explicit SubscribeCalibrateMagnetometerRequest(::google::protobuf::Arena* arena); - SubscribeCalibrateMagnetometerRequest(::google::protobuf::Arena* arena, const SubscribeCalibrateMagnetometerRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- - -class SubscribeCalibrateLevelHorizonRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) */ { - public: - inline SubscribeCalibrateLevelHorizonRequest() : SubscribeCalibrateLevelHorizonRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequest(::google::protobuf::internal::ConstantInitialized); - - inline SubscribeCalibrateLevelHorizonRequest(const SubscribeCalibrateLevelHorizonRequest& from) - : SubscribeCalibrateLevelHorizonRequest(nullptr, from) {} - SubscribeCalibrateLevelHorizonRequest(SubscribeCalibrateLevelHorizonRequest&& from) noexcept - : SubscribeCalibrateLevelHorizonRequest() { - *this = ::std::move(from); - } - - inline SubscribeCalibrateLevelHorizonRequest& operator=(const SubscribeCalibrateLevelHorizonRequest& from) { - CopyFrom(from); - return *this; - } - inline SubscribeCalibrateLevelHorizonRequest& operator=(SubscribeCalibrateLevelHorizonRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubscribeCalibrateLevelHorizonRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubscribeCalibrateLevelHorizonRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeCalibrateLevelHorizonRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(SubscribeCalibrateLevelHorizonRequest& a, SubscribeCalibrateLevelHorizonRequest& b) { - a.Swap(&b); - } - inline void Swap(SubscribeCalibrateLevelHorizonRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubscribeCalibrateLevelHorizonRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubscribeCalibrateLevelHorizonRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeCalibrateLevelHorizonRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeCalibrateLevelHorizonRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest"; - } - protected: - explicit SubscribeCalibrateLevelHorizonRequest(::google::protobuf::Arena* arena); - SubscribeCalibrateLevelHorizonRequest(::google::protobuf::Arena* arena, const SubscribeCalibrateLevelHorizonRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- - -class SubscribeCalibrateGyroRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) */ { - public: - inline SubscribeCalibrateGyroRequest() : SubscribeCalibrateGyroRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequest(::google::protobuf::internal::ConstantInitialized); - - inline SubscribeCalibrateGyroRequest(const SubscribeCalibrateGyroRequest& from) - : SubscribeCalibrateGyroRequest(nullptr, from) {} - SubscribeCalibrateGyroRequest(SubscribeCalibrateGyroRequest&& from) noexcept - : SubscribeCalibrateGyroRequest() { - *this = ::std::move(from); - } - - inline SubscribeCalibrateGyroRequest& operator=(const SubscribeCalibrateGyroRequest& from) { - CopyFrom(from); - return *this; - } - inline SubscribeCalibrateGyroRequest& operator=(SubscribeCalibrateGyroRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubscribeCalibrateGyroRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubscribeCalibrateGyroRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeCalibrateGyroRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(SubscribeCalibrateGyroRequest& a, SubscribeCalibrateGyroRequest& b) { - a.Swap(&b); - } - inline void Swap(SubscribeCalibrateGyroRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubscribeCalibrateGyroRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubscribeCalibrateGyroRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeCalibrateGyroRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeCalibrateGyroRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest"; - } - protected: - explicit SubscribeCalibrateGyroRequest(::google::protobuf::Arena* arena); - SubscribeCalibrateGyroRequest(::google::protobuf::Arena* arena, const SubscribeCalibrateGyroRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- - -class SubscribeCalibrateGimbalAccelerometerRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) */ { - public: - inline SubscribeCalibrateGimbalAccelerometerRequest() : SubscribeCalibrateGimbalAccelerometerRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequest(::google::protobuf::internal::ConstantInitialized); - - inline SubscribeCalibrateGimbalAccelerometerRequest(const SubscribeCalibrateGimbalAccelerometerRequest& from) - : SubscribeCalibrateGimbalAccelerometerRequest(nullptr, from) {} - SubscribeCalibrateGimbalAccelerometerRequest(SubscribeCalibrateGimbalAccelerometerRequest&& from) noexcept - : SubscribeCalibrateGimbalAccelerometerRequest() { - *this = ::std::move(from); - } - - inline SubscribeCalibrateGimbalAccelerometerRequest& operator=(const SubscribeCalibrateGimbalAccelerometerRequest& from) { - CopyFrom(from); - return *this; - } - inline SubscribeCalibrateGimbalAccelerometerRequest& operator=(SubscribeCalibrateGimbalAccelerometerRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubscribeCalibrateGimbalAccelerometerRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubscribeCalibrateGimbalAccelerometerRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeCalibrateGimbalAccelerometerRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(SubscribeCalibrateGimbalAccelerometerRequest& a, SubscribeCalibrateGimbalAccelerometerRequest& b) { - a.Swap(&b); - } - inline void Swap(SubscribeCalibrateGimbalAccelerometerRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubscribeCalibrateGimbalAccelerometerRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubscribeCalibrateGimbalAccelerometerRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeCalibrateGimbalAccelerometerRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeCalibrateGimbalAccelerometerRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest"; - } - protected: - explicit SubscribeCalibrateGimbalAccelerometerRequest(::google::protobuf::Arena* arena); - SubscribeCalibrateGimbalAccelerometerRequest(::google::protobuf::Arena* arena, const SubscribeCalibrateGimbalAccelerometerRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- - -class SubscribeCalibrateAccelerometerRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) */ { - public: - inline SubscribeCalibrateAccelerometerRequest() : SubscribeCalibrateAccelerometerRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequest(::google::protobuf::internal::ConstantInitialized); - - inline SubscribeCalibrateAccelerometerRequest(const SubscribeCalibrateAccelerometerRequest& from) - : SubscribeCalibrateAccelerometerRequest(nullptr, from) {} - SubscribeCalibrateAccelerometerRequest(SubscribeCalibrateAccelerometerRequest&& from) noexcept - : SubscribeCalibrateAccelerometerRequest() { - *this = ::std::move(from); - } - - inline SubscribeCalibrateAccelerometerRequest& operator=(const SubscribeCalibrateAccelerometerRequest& from) { - CopyFrom(from); - return *this; - } - inline SubscribeCalibrateAccelerometerRequest& operator=(SubscribeCalibrateAccelerometerRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubscribeCalibrateAccelerometerRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubscribeCalibrateAccelerometerRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeCalibrateAccelerometerRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(SubscribeCalibrateAccelerometerRequest& a, SubscribeCalibrateAccelerometerRequest& b) { - a.Swap(&b); - } - inline void Swap(SubscribeCalibrateAccelerometerRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubscribeCalibrateAccelerometerRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubscribeCalibrateAccelerometerRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeCalibrateAccelerometerRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeCalibrateAccelerometerRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest"; - } - protected: - explicit SubscribeCalibrateAccelerometerRequest(::google::protobuf::Arena* arena); - SubscribeCalibrateAccelerometerRequest(::google::protobuf::Arena* arena, const SubscribeCalibrateAccelerometerRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- - -class ProgressData final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.ProgressData) */ { - public: - inline ProgressData() : ProgressData(nullptr) {} - ~ProgressData() override; - template - explicit PROTOBUF_CONSTEXPR ProgressData(::google::protobuf::internal::ConstantInitialized); - - inline ProgressData(const ProgressData& from) - : ProgressData(nullptr, from) {} - ProgressData(ProgressData&& from) noexcept - : ProgressData() { - *this = ::std::move(from); - } - - inline ProgressData& operator=(const ProgressData& from) { - CopyFrom(from); - return *this; - } - inline ProgressData& operator=(ProgressData&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ProgressData& default_instance() { - return *internal_default_instance(); - } - static inline const ProgressData* internal_default_instance() { - return reinterpret_cast( - &_ProgressData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(ProgressData& a, ProgressData& b) { - a.Swap(&b); - } - inline void Swap(ProgressData* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ProgressData* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ProgressData* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ProgressData& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ProgressData& from) { - ProgressData::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ProgressData* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.ProgressData"; - } - protected: - explicit ProgressData(::google::protobuf::Arena* arena); - ProgressData(::google::protobuf::Arena* arena, const ProgressData& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatusTextFieldNumber = 4, - kProgressFieldNumber = 2, - kHasProgressFieldNumber = 1, - kHasStatusTextFieldNumber = 3, - }; - // string status_text = 4; - void clear_status_text() ; - const std::string& status_text() const; - template - void set_status_text(Arg_&& arg, Args_... args); - std::string* mutable_status_text(); - PROTOBUF_NODISCARD std::string* release_status_text(); - void set_allocated_status_text(std::string* value); - - private: - const std::string& _internal_status_text() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_status_text( - const std::string& value); - std::string* _internal_mutable_status_text(); - - public: - // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; - void clear_progress() ; - float progress() const; - void set_progress(float value); - - private: - float _internal_progress() const; - void _internal_set_progress(float value); - - public: - // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; - void clear_has_progress() ; - bool has_progress() const; - void set_has_progress(bool value); - - private: - bool _internal_has_progress() const; - void _internal_set_has_progress(bool value); - - public: - // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; - void clear_has_status_text() ; - bool has_status_text() const; - void set_has_status_text(bool value); - - private: - bool _internal_has_status_text() const; - void _internal_set_has_status_text(bool value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.ProgressData) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 55, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr status_text_; - float progress_; - bool has_progress_; - bool has_status_text_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- - -class CancelRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CancelRequest) */ { - public: - inline CancelRequest() : CancelRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR CancelRequest(::google::protobuf::internal::ConstantInitialized); - - inline CancelRequest(const CancelRequest& from) - : CancelRequest(nullptr, from) {} - CancelRequest(CancelRequest&& from) noexcept - : CancelRequest() { - *this = ::std::move(from); - } - - inline CancelRequest& operator=(const CancelRequest& from) { - CopyFrom(from); - return *this; - } - inline CancelRequest& operator=(CancelRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CancelRequest& default_instance() { - return *internal_default_instance(); - } - static inline const CancelRequest* internal_default_instance() { - return reinterpret_cast( - &_CancelRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(CancelRequest& a, CancelRequest& b) { - a.Swap(&b); - } - inline void Swap(CancelRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CancelRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CancelRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const CancelRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const CancelRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CancelRequest"; - } - protected: - explicit CancelRequest(::google::protobuf::Arena* arena); - CancelRequest(::google::protobuf::Arena* arena, const CancelRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CancelRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- - -class CalibrationResult final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrationResult) */ { - public: - inline CalibrationResult() : CalibrationResult(nullptr) {} - ~CalibrationResult() override; - template - explicit PROTOBUF_CONSTEXPR CalibrationResult(::google::protobuf::internal::ConstantInitialized); - - inline CalibrationResult(const CalibrationResult& from) - : CalibrationResult(nullptr, from) {} - CalibrationResult(CalibrationResult&& from) noexcept - : CalibrationResult() { - *this = ::std::move(from); - } - - inline CalibrationResult& operator=(const CalibrationResult& from) { - CopyFrom(from); - return *this; - } - inline CalibrationResult& operator=(CalibrationResult&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CalibrationResult& default_instance() { - return *internal_default_instance(); - } - static inline const CalibrationResult* internal_default_instance() { - return reinterpret_cast( - &_CalibrationResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(CalibrationResult& a, CalibrationResult& b) { - a.Swap(&b); - } - inline void Swap(CalibrationResult* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CalibrationResult* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CalibrationResult* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CalibrationResult& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CalibrationResult& from) { - CalibrationResult::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(CalibrationResult* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrationResult"; - } - protected: - explicit CalibrationResult(::google::protobuf::Arena* arena); - CalibrationResult(::google::protobuf::Arena* arena, const CalibrationResult& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - using Result = CalibrationResult_Result; - static constexpr Result RESULT_UNKNOWN = CalibrationResult_Result_RESULT_UNKNOWN; - static constexpr Result RESULT_SUCCESS = CalibrationResult_Result_RESULT_SUCCESS; - static constexpr Result RESULT_NEXT = CalibrationResult_Result_RESULT_NEXT; - static constexpr Result RESULT_FAILED = CalibrationResult_Result_RESULT_FAILED; - static constexpr Result RESULT_NO_SYSTEM = CalibrationResult_Result_RESULT_NO_SYSTEM; - static constexpr Result RESULT_CONNECTION_ERROR = CalibrationResult_Result_RESULT_CONNECTION_ERROR; - static constexpr Result RESULT_BUSY = CalibrationResult_Result_RESULT_BUSY; - static constexpr Result RESULT_COMMAND_DENIED = CalibrationResult_Result_RESULT_COMMAND_DENIED; - static constexpr Result RESULT_TIMEOUT = CalibrationResult_Result_RESULT_TIMEOUT; - static constexpr Result RESULT_CANCELLED = CalibrationResult_Result_RESULT_CANCELLED; - static constexpr Result RESULT_FAILED_ARMED = CalibrationResult_Result_RESULT_FAILED_ARMED; - static constexpr Result RESULT_UNSUPPORTED = CalibrationResult_Result_RESULT_UNSUPPORTED; - static inline bool Result_IsValid(int value) { - return CalibrationResult_Result_IsValid(value); - } - static constexpr Result Result_MIN = CalibrationResult_Result_Result_MIN; - static constexpr Result Result_MAX = CalibrationResult_Result_Result_MAX; - static constexpr int Result_ARRAYSIZE = CalibrationResult_Result_Result_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* Result_descriptor() { - return CalibrationResult_Result_descriptor(); - } - template - static inline const std::string& Result_Name(T value) { - return CalibrationResult_Result_Name(value); - } - static inline bool Result_Parse(absl::string_view name, Result* value) { - return CalibrationResult_Result_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kResultStrFieldNumber = 2, - kResultFieldNumber = 1, - }; - // string result_str = 2; - void clear_result_str() ; - const std::string& result_str() const; - template - void set_result_str(Arg_&& arg, Args_... args); - std::string* mutable_result_str(); - PROTOBUF_NODISCARD std::string* release_result_str(); - void set_allocated_result_str(std::string* value); - - private: - const std::string& _internal_result_str() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str( - const std::string& value); - std::string* _internal_mutable_result_str(); - - public: - // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; - void clear_result() ; - ::mavsdk::rpc::calibration::CalibrationResult_Result result() const; - void set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value); - - private: - ::mavsdk::rpc::calibration::CalibrationResult_Result _internal_result() const; - void _internal_set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrationResult) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 59, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr result_str_; - int result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- - -class CancelResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CancelResponse) */ { - public: - inline CancelResponse() : CancelResponse(nullptr) {} - ~CancelResponse() override; - template - explicit PROTOBUF_CONSTEXPR CancelResponse(::google::protobuf::internal::ConstantInitialized); - - inline CancelResponse(const CancelResponse& from) - : CancelResponse(nullptr, from) {} - CancelResponse(CancelResponse&& from) noexcept - : CancelResponse() { - *this = ::std::move(from); - } - - inline CancelResponse& operator=(const CancelResponse& from) { - CopyFrom(from); - return *this; - } - inline CancelResponse& operator=(CancelResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CancelResponse& default_instance() { - return *internal_default_instance(); - } - static inline const CancelResponse* internal_default_instance() { - return reinterpret_cast( - &_CancelResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(CancelResponse& a, CancelResponse& b) { - a.Swap(&b); - } - inline void Swap(CancelResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CancelResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CancelResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CancelResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CancelResponse& from) { - CancelResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(CancelResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CancelResponse"; - } - protected: - explicit CancelResponse(::google::protobuf::Arena* arena); - CancelResponse(::google::protobuf::Arena* arena, const CancelResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCalibrationResultFieldNumber = 1, - }; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - bool has_calibration_result() const; - void clear_calibration_result() ; - const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); - ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); - void set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); - void unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); - ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - - private: - const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; - ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CancelResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- - -class CalibrateMagnetometerResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) */ { - public: - inline CalibrateMagnetometerResponse() : CalibrateMagnetometerResponse(nullptr) {} - ~CalibrateMagnetometerResponse() override; - template - explicit PROTOBUF_CONSTEXPR CalibrateMagnetometerResponse(::google::protobuf::internal::ConstantInitialized); - - inline CalibrateMagnetometerResponse(const CalibrateMagnetometerResponse& from) - : CalibrateMagnetometerResponse(nullptr, from) {} - CalibrateMagnetometerResponse(CalibrateMagnetometerResponse&& from) noexcept - : CalibrateMagnetometerResponse() { - *this = ::std::move(from); - } - - inline CalibrateMagnetometerResponse& operator=(const CalibrateMagnetometerResponse& from) { - CopyFrom(from); - return *this; - } - inline CalibrateMagnetometerResponse& operator=(CalibrateMagnetometerResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CalibrateMagnetometerResponse& default_instance() { - return *internal_default_instance(); - } - static inline const CalibrateMagnetometerResponse* internal_default_instance() { - return reinterpret_cast( - &_CalibrateMagnetometerResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(CalibrateMagnetometerResponse& a, CalibrateMagnetometerResponse& b) { - a.Swap(&b); - } - inline void Swap(CalibrateMagnetometerResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CalibrateMagnetometerResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CalibrateMagnetometerResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CalibrateMagnetometerResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CalibrateMagnetometerResponse& from) { - CalibrateMagnetometerResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(CalibrateMagnetometerResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrateMagnetometerResponse"; - } - protected: - explicit CalibrateMagnetometerResponse(::google::protobuf::Arena* arena); - CalibrateMagnetometerResponse(::google::protobuf::Arena* arena, const CalibrateMagnetometerResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCalibrationResultFieldNumber = 1, - kProgressDataFieldNumber = 2, - }; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - bool has_calibration_result() const; - void clear_calibration_result() ; - const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); - ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); - void set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); - void unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); - ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - - private: - const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; - ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); - - public: - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - bool has_progress_data() const; - void clear_progress_data() ; - const ::mavsdk::rpc::calibration::ProgressData& progress_data() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::ProgressData* release_progress_data(); - ::mavsdk::rpc::calibration::ProgressData* mutable_progress_data(); - void set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); - void unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); - ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); - - private: - const ::mavsdk::rpc::calibration::ProgressData& _internal_progress_data() const; - ::mavsdk::rpc::calibration::ProgressData* _internal_mutable_progress_data(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - ::mavsdk::rpc::calibration::ProgressData* progress_data_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- - -class CalibrateLevelHorizonResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) */ { - public: - inline CalibrateLevelHorizonResponse() : CalibrateLevelHorizonResponse(nullptr) {} - ~CalibrateLevelHorizonResponse() override; - template - explicit PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponse(::google::protobuf::internal::ConstantInitialized); - - inline CalibrateLevelHorizonResponse(const CalibrateLevelHorizonResponse& from) - : CalibrateLevelHorizonResponse(nullptr, from) {} - CalibrateLevelHorizonResponse(CalibrateLevelHorizonResponse&& from) noexcept - : CalibrateLevelHorizonResponse() { - *this = ::std::move(from); - } - - inline CalibrateLevelHorizonResponse& operator=(const CalibrateLevelHorizonResponse& from) { - CopyFrom(from); - return *this; - } - inline CalibrateLevelHorizonResponse& operator=(CalibrateLevelHorizonResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CalibrateLevelHorizonResponse& default_instance() { - return *internal_default_instance(); - } - static inline const CalibrateLevelHorizonResponse* internal_default_instance() { - return reinterpret_cast( - &_CalibrateLevelHorizonResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(CalibrateLevelHorizonResponse& a, CalibrateLevelHorizonResponse& b) { - a.Swap(&b); - } - inline void Swap(CalibrateLevelHorizonResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CalibrateLevelHorizonResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CalibrateLevelHorizonResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CalibrateLevelHorizonResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CalibrateLevelHorizonResponse& from) { - CalibrateLevelHorizonResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(CalibrateLevelHorizonResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrateLevelHorizonResponse"; - } - protected: - explicit CalibrateLevelHorizonResponse(::google::protobuf::Arena* arena); - CalibrateLevelHorizonResponse(::google::protobuf::Arena* arena, const CalibrateLevelHorizonResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCalibrationResultFieldNumber = 1, - kProgressDataFieldNumber = 2, - }; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - bool has_calibration_result() const; - void clear_calibration_result() ; - const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); - ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); - void set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); - void unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); - ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - - private: - const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; - ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); - - public: - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - bool has_progress_data() const; - void clear_progress_data() ; - const ::mavsdk::rpc::calibration::ProgressData& progress_data() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::ProgressData* release_progress_data(); - ::mavsdk::rpc::calibration::ProgressData* mutable_progress_data(); - void set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); - void unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); - ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); - - private: - const ::mavsdk::rpc::calibration::ProgressData& _internal_progress_data() const; - ::mavsdk::rpc::calibration::ProgressData* _internal_mutable_progress_data(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - ::mavsdk::rpc::calibration::ProgressData* progress_data_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- - -class CalibrateGyroResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateGyroResponse) */ { - public: - inline CalibrateGyroResponse() : CalibrateGyroResponse(nullptr) {} - ~CalibrateGyroResponse() override; - template - explicit PROTOBUF_CONSTEXPR CalibrateGyroResponse(::google::protobuf::internal::ConstantInitialized); - - inline CalibrateGyroResponse(const CalibrateGyroResponse& from) - : CalibrateGyroResponse(nullptr, from) {} - CalibrateGyroResponse(CalibrateGyroResponse&& from) noexcept - : CalibrateGyroResponse() { - *this = ::std::move(from); - } - - inline CalibrateGyroResponse& operator=(const CalibrateGyroResponse& from) { - CopyFrom(from); - return *this; - } - inline CalibrateGyroResponse& operator=(CalibrateGyroResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CalibrateGyroResponse& default_instance() { - return *internal_default_instance(); - } - static inline const CalibrateGyroResponse* internal_default_instance() { - return reinterpret_cast( - &_CalibrateGyroResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(CalibrateGyroResponse& a, CalibrateGyroResponse& b) { - a.Swap(&b); - } - inline void Swap(CalibrateGyroResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CalibrateGyroResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CalibrateGyroResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CalibrateGyroResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CalibrateGyroResponse& from) { - CalibrateGyroResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(CalibrateGyroResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrateGyroResponse"; - } - protected: - explicit CalibrateGyroResponse(::google::protobuf::Arena* arena); - CalibrateGyroResponse(::google::protobuf::Arena* arena, const CalibrateGyroResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCalibrationResultFieldNumber = 1, - kProgressDataFieldNumber = 2, - }; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - bool has_calibration_result() const; - void clear_calibration_result() ; - const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); - ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); - void set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); - void unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); - ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - - private: - const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; - ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); - - public: - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - bool has_progress_data() const; - void clear_progress_data() ; - const ::mavsdk::rpc::calibration::ProgressData& progress_data() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::ProgressData* release_progress_data(); - ::mavsdk::rpc::calibration::ProgressData* mutable_progress_data(); - void set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); - void unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); - ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); - - private: - const ::mavsdk::rpc::calibration::ProgressData& _internal_progress_data() const; - ::mavsdk::rpc::calibration::ProgressData* _internal_mutable_progress_data(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateGyroResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - ::mavsdk::rpc::calibration::ProgressData* progress_data_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- - -class CalibrateGimbalAccelerometerResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) */ { - public: - inline CalibrateGimbalAccelerometerResponse() : CalibrateGimbalAccelerometerResponse(nullptr) {} - ~CalibrateGimbalAccelerometerResponse() override; - template - explicit PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponse(::google::protobuf::internal::ConstantInitialized); - - inline CalibrateGimbalAccelerometerResponse(const CalibrateGimbalAccelerometerResponse& from) - : CalibrateGimbalAccelerometerResponse(nullptr, from) {} - CalibrateGimbalAccelerometerResponse(CalibrateGimbalAccelerometerResponse&& from) noexcept - : CalibrateGimbalAccelerometerResponse() { - *this = ::std::move(from); - } - - inline CalibrateGimbalAccelerometerResponse& operator=(const CalibrateGimbalAccelerometerResponse& from) { - CopyFrom(from); - return *this; - } - inline CalibrateGimbalAccelerometerResponse& operator=(CalibrateGimbalAccelerometerResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CalibrateGimbalAccelerometerResponse& default_instance() { - return *internal_default_instance(); - } - static inline const CalibrateGimbalAccelerometerResponse* internal_default_instance() { - return reinterpret_cast( - &_CalibrateGimbalAccelerometerResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(CalibrateGimbalAccelerometerResponse& a, CalibrateGimbalAccelerometerResponse& b) { - a.Swap(&b); - } - inline void Swap(CalibrateGimbalAccelerometerResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CalibrateGimbalAccelerometerResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CalibrateGimbalAccelerometerResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CalibrateGimbalAccelerometerResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CalibrateGimbalAccelerometerResponse& from) { - CalibrateGimbalAccelerometerResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(CalibrateGimbalAccelerometerResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse"; - } - protected: - explicit CalibrateGimbalAccelerometerResponse(::google::protobuf::Arena* arena); - CalibrateGimbalAccelerometerResponse(::google::protobuf::Arena* arena, const CalibrateGimbalAccelerometerResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCalibrationResultFieldNumber = 1, - kProgressDataFieldNumber = 2, - }; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - bool has_calibration_result() const; - void clear_calibration_result() ; - const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); - ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); - void set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); - void unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); - ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - - private: - const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; - ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); - - public: - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - bool has_progress_data() const; - void clear_progress_data() ; - const ::mavsdk::rpc::calibration::ProgressData& progress_data() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::ProgressData* release_progress_data(); - ::mavsdk::rpc::calibration::ProgressData* mutable_progress_data(); - void set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); - void unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); - ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); - - private: - const ::mavsdk::rpc::calibration::ProgressData& _internal_progress_data() const; - ::mavsdk::rpc::calibration::ProgressData* _internal_mutable_progress_data(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - ::mavsdk::rpc::calibration::ProgressData* progress_data_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- - -class CalibrateAccelerometerResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) */ { - public: - inline CalibrateAccelerometerResponse() : CalibrateAccelerometerResponse(nullptr) {} - ~CalibrateAccelerometerResponse() override; - template - explicit PROTOBUF_CONSTEXPR CalibrateAccelerometerResponse(::google::protobuf::internal::ConstantInitialized); - - inline CalibrateAccelerometerResponse(const CalibrateAccelerometerResponse& from) - : CalibrateAccelerometerResponse(nullptr, from) {} - CalibrateAccelerometerResponse(CalibrateAccelerometerResponse&& from) noexcept - : CalibrateAccelerometerResponse() { - *this = ::std::move(from); - } - - inline CalibrateAccelerometerResponse& operator=(const CalibrateAccelerometerResponse& from) { - CopyFrom(from); - return *this; - } - inline CalibrateAccelerometerResponse& operator=(CalibrateAccelerometerResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CalibrateAccelerometerResponse& default_instance() { - return *internal_default_instance(); - } - static inline const CalibrateAccelerometerResponse* internal_default_instance() { - return reinterpret_cast( - &_CalibrateAccelerometerResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(CalibrateAccelerometerResponse& a, CalibrateAccelerometerResponse& b) { - a.Swap(&b); - } - inline void Swap(CalibrateAccelerometerResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CalibrateAccelerometerResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CalibrateAccelerometerResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CalibrateAccelerometerResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CalibrateAccelerometerResponse& from) { - CalibrateAccelerometerResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(CalibrateAccelerometerResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrateAccelerometerResponse"; - } - protected: - explicit CalibrateAccelerometerResponse(::google::protobuf::Arena* arena); - CalibrateAccelerometerResponse(::google::protobuf::Arena* arena, const CalibrateAccelerometerResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCalibrationResultFieldNumber = 1, - kProgressDataFieldNumber = 2, - }; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - bool has_calibration_result() const; - void clear_calibration_result() ; - const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); - ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); - void set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); - void unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); - ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - - private: - const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; - ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); - - public: - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - bool has_progress_data() const; - void clear_progress_data() ; - const ::mavsdk::rpc::calibration::ProgressData& progress_data() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::ProgressData* release_progress_data(); - ::mavsdk::rpc::calibration::ProgressData* mutable_progress_data(); - void set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); - void unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); - ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); - - private: - const ::mavsdk::rpc::calibration::ProgressData& _internal_progress_data() const; - ::mavsdk::rpc::calibration::ProgressData* _internal_mutable_progress_data(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - ::mavsdk::rpc::calibration::ProgressData* progress_data_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_calibration_2fcalibration_2eproto; +class SubscribeCalibrateLevelHorizonRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) + */ +{ +public: + inline SubscribeCalibrateLevelHorizonRequest() : SubscribeCalibrateLevelHorizonRequest(nullptr) + {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeCalibrateLevelHorizonRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete( + msg, sizeof(SubscribeCalibrateLevelHorizonRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SubscribeCalibrateLevelHorizonRequest(::google::protobuf::internal::ConstantInitialized); + + inline SubscribeCalibrateLevelHorizonRequest( + const SubscribeCalibrateLevelHorizonRequest& from) : + SubscribeCalibrateLevelHorizonRequest(nullptr, from) + {} + inline SubscribeCalibrateLevelHorizonRequest( + SubscribeCalibrateLevelHorizonRequest&& from) noexcept : + SubscribeCalibrateLevelHorizonRequest(nullptr, std::move(from)) + {} + inline SubscribeCalibrateLevelHorizonRequest& + operator=(const SubscribeCalibrateLevelHorizonRequest& from) + { + CopyFrom(from); + return *this; + } + inline SubscribeCalibrateLevelHorizonRequest& + operator=(SubscribeCalibrateLevelHorizonRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SubscribeCalibrateLevelHorizonRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const SubscribeCalibrateLevelHorizonRequest* internal_default_instance() + { + return reinterpret_cast( + &_SubscribeCalibrateLevelHorizonRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 6; + friend void + swap(SubscribeCalibrateLevelHorizonRequest& a, SubscribeCalibrateLevelHorizonRequest& b) + { + a.Swap(&b); + } + inline void Swap(SubscribeCalibrateLevelHorizonRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SubscribeCalibrateLevelHorizonRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SubscribeCalibrateLevelHorizonRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + SubscribeCalibrateLevelHorizonRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeCalibrateLevelHorizonRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeCalibrateLevelHorizonRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest"; + } + +protected: + explicit SubscribeCalibrateLevelHorizonRequest(::google::protobuf::Arena* arena); + SubscribeCalibrateLevelHorizonRequest( + ::google::protobuf::Arena* arena, const SubscribeCalibrateLevelHorizonRequest& from); + SubscribeCalibrateLevelHorizonRequest( + ::google::protobuf::Arena* arena, SubscribeCalibrateLevelHorizonRequest&& from) noexcept : + SubscribeCalibrateLevelHorizonRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SubscribeCalibrateLevelHorizonRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_calibration_2fcalibration_2eproto; }; +// ------------------------------------------------------------------- -// =================================================================== +class SubscribeCalibrateGyroRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) + */ +{ +public: + inline SubscribeCalibrateGyroRequest() : SubscribeCalibrateGyroRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeCalibrateGyroRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeCalibrateGyroRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SubscribeCalibrateGyroRequest(::google::protobuf::internal::ConstantInitialized); + + inline SubscribeCalibrateGyroRequest(const SubscribeCalibrateGyroRequest& from) : + SubscribeCalibrateGyroRequest(nullptr, from) + {} + inline SubscribeCalibrateGyroRequest(SubscribeCalibrateGyroRequest&& from) noexcept : + SubscribeCalibrateGyroRequest(nullptr, std::move(from)) + {} + inline SubscribeCalibrateGyroRequest& operator=(const SubscribeCalibrateGyroRequest& from) + { + CopyFrom(from); + return *this; + } + inline SubscribeCalibrateGyroRequest& operator=(SubscribeCalibrateGyroRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SubscribeCalibrateGyroRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const SubscribeCalibrateGyroRequest* internal_default_instance() + { + return reinterpret_cast( + &_SubscribeCalibrateGyroRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(SubscribeCalibrateGyroRequest& a, SubscribeCalibrateGyroRequest& b) + { + a.Swap(&b); + } + inline void Swap(SubscribeCalibrateGyroRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SubscribeCalibrateGyroRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SubscribeCalibrateGyroRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + SubscribeCalibrateGyroRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeCalibrateGyroRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeCalibrateGyroRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest"; + } + +protected: + explicit SubscribeCalibrateGyroRequest(::google::protobuf::Arena* arena); + SubscribeCalibrateGyroRequest( + ::google::protobuf::Arena* arena, const SubscribeCalibrateGyroRequest& from); + SubscribeCalibrateGyroRequest( + ::google::protobuf::Arena* arena, SubscribeCalibrateGyroRequest&& from) noexcept : + SubscribeCalibrateGyroRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SubscribeCalibrateGyroRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_calibration_2fcalibration_2eproto; +}; +// ------------------------------------------------------------------- + +class SubscribeCalibrateGimbalAccelerometerRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) + */ +{ +public: + inline SubscribeCalibrateGimbalAccelerometerRequest() : + SubscribeCalibrateGimbalAccelerometerRequest(nullptr) + {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void + operator delete(SubscribeCalibrateGimbalAccelerometerRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete( + msg, sizeof(SubscribeCalibrateGimbalAccelerometerRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline SubscribeCalibrateGimbalAccelerometerRequest( + const SubscribeCalibrateGimbalAccelerometerRequest& from) : + SubscribeCalibrateGimbalAccelerometerRequest(nullptr, from) + {} + inline SubscribeCalibrateGimbalAccelerometerRequest( + SubscribeCalibrateGimbalAccelerometerRequest&& from) noexcept : + SubscribeCalibrateGimbalAccelerometerRequest(nullptr, std::move(from)) + {} + inline SubscribeCalibrateGimbalAccelerometerRequest& + operator=(const SubscribeCalibrateGimbalAccelerometerRequest& from) + { + CopyFrom(from); + return *this; + } + inline SubscribeCalibrateGimbalAccelerometerRequest& + operator=(SubscribeCalibrateGimbalAccelerometerRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SubscribeCalibrateGimbalAccelerometerRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const SubscribeCalibrateGimbalAccelerometerRequest* internal_default_instance() + { + return reinterpret_cast( + &_SubscribeCalibrateGimbalAccelerometerRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 8; + friend void swap( + SubscribeCalibrateGimbalAccelerometerRequest& a, + SubscribeCalibrateGimbalAccelerometerRequest& b) + { + a.Swap(&b); + } + inline void Swap(SubscribeCalibrateGimbalAccelerometerRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SubscribeCalibrateGimbalAccelerometerRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SubscribeCalibrateGimbalAccelerometerRequest* + New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + SubscribeCalibrateGimbalAccelerometerRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeCalibrateGimbalAccelerometerRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeCalibrateGimbalAccelerometerRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest"; + } + +protected: + explicit SubscribeCalibrateGimbalAccelerometerRequest(::google::protobuf::Arena* arena); + SubscribeCalibrateGimbalAccelerometerRequest( + ::google::protobuf::Arena* arena, const SubscribeCalibrateGimbalAccelerometerRequest& from); + SubscribeCalibrateGimbalAccelerometerRequest( + ::google::protobuf::Arena* arena, + SubscribeCalibrateGimbalAccelerometerRequest&& from) noexcept : + SubscribeCalibrateGimbalAccelerometerRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SubscribeCalibrateGimbalAccelerometerRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_calibration_2fcalibration_2eproto; +}; +// ------------------------------------------------------------------- + +class SubscribeCalibrateAccelerometerRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) + */ +{ +public: + inline SubscribeCalibrateAccelerometerRequest() : + SubscribeCalibrateAccelerometerRequest(nullptr) + {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeCalibrateAccelerometerRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete( + msg, sizeof(SubscribeCalibrateAccelerometerRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + SubscribeCalibrateAccelerometerRequest(::google::protobuf::internal::ConstantInitialized); + + inline SubscribeCalibrateAccelerometerRequest( + const SubscribeCalibrateAccelerometerRequest& from) : + SubscribeCalibrateAccelerometerRequest(nullptr, from) + {} + inline SubscribeCalibrateAccelerometerRequest( + SubscribeCalibrateAccelerometerRequest&& from) noexcept : + SubscribeCalibrateAccelerometerRequest(nullptr, std::move(from)) + {} + inline SubscribeCalibrateAccelerometerRequest& + operator=(const SubscribeCalibrateAccelerometerRequest& from) + { + CopyFrom(from); + return *this; + } + inline SubscribeCalibrateAccelerometerRequest& + operator=(SubscribeCalibrateAccelerometerRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const SubscribeCalibrateAccelerometerRequest& default_instance() + { + return *internal_default_instance(); + } + static inline const SubscribeCalibrateAccelerometerRequest* internal_default_instance() + { + return reinterpret_cast( + &_SubscribeCalibrateAccelerometerRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void + swap(SubscribeCalibrateAccelerometerRequest& a, SubscribeCalibrateAccelerometerRequest& b) + { + a.Swap(&b); + } + inline void Swap(SubscribeCalibrateAccelerometerRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SubscribeCalibrateAccelerometerRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SubscribeCalibrateAccelerometerRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct< + SubscribeCalibrateAccelerometerRequest>(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeCalibrateAccelerometerRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeCalibrateAccelerometerRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest"; + } + +protected: + explicit SubscribeCalibrateAccelerometerRequest(::google::protobuf::Arena* arena); + SubscribeCalibrateAccelerometerRequest( + ::google::protobuf::Arena* arena, const SubscribeCalibrateAccelerometerRequest& from); + SubscribeCalibrateAccelerometerRequest( + ::google::protobuf::Arena* arena, SubscribeCalibrateAccelerometerRequest&& from) noexcept : + SubscribeCalibrateAccelerometerRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const SubscribeCalibrateAccelerometerRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_calibration_2fcalibration_2eproto; +}; +// ------------------------------------------------------------------- + +class ProgressData final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.ProgressData) */ { +public: + inline ProgressData() : ProgressData(nullptr) {} + ~ProgressData() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ProgressData* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ProgressData)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ProgressData(::google::protobuf::internal::ConstantInitialized); + + inline ProgressData(const ProgressData& from) : ProgressData(nullptr, from) {} + inline ProgressData(ProgressData&& from) noexcept : ProgressData(nullptr, std::move(from)) {} + inline ProgressData& operator=(const ProgressData& from) + { + CopyFrom(from); + return *this; + } + inline ProgressData& operator=(ProgressData&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const ProgressData& default_instance() { return *internal_default_instance(); } + static inline const ProgressData* internal_default_instance() + { + return reinterpret_cast(&_ProgressData_default_instance_); + } + static constexpr int kIndexInFileMessages = 13; + friend void swap(ProgressData& a, ProgressData& b) { a.Swap(&b); } + inline void Swap(ProgressData* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ProgressData* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ProgressData* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ProgressData& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ProgressData& from) { ProgressData::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ProgressData* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.ProgressData"; } + +protected: + explicit ProgressData(::google::protobuf::Arena* arena); + ProgressData(::google::protobuf::Arena* arena, const ProgressData& from); + ProgressData(::google::protobuf::Arena* arena, ProgressData&& from) noexcept : + ProgressData(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kStatusTextFieldNumber = 4, + kProgressFieldNumber = 2, + kHasProgressFieldNumber = 1, + kHasStatusTextFieldNumber = 3, + }; + // string status_text = 4; + void clear_status_text(); + const std::string& status_text() const; + template + void set_status_text(Arg_&& arg, Args_... args); + std::string* mutable_status_text(); + PROTOBUF_NODISCARD std::string* release_status_text(); + void set_allocated_status_text(std::string* value); + +private: + const std::string& _internal_status_text() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_status_text(const std::string& value); + std::string* _internal_mutable_status_text(); + +public: + // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; + void clear_progress(); + float progress() const; + void set_progress(float value); + +private: + float _internal_progress() const; + void _internal_set_progress(float value); + +public: + // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; + void clear_has_progress(); + bool has_progress() const; + void set_has_progress(bool value); + +private: + bool _internal_has_progress() const; + void _internal_set_has_progress(bool value); + +public: + // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; + void clear_has_status_text(); + bool has_status_text() const; + void set_has_status_text(bool value); + +private: + bool _internal_has_status_text() const; + void _internal_set_has_status_text(bool value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.ProgressData) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, 0, 55, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ProgressData& from_msg); + ::google::protobuf::internal::ArenaStringPtr status_text_; + float progress_; + bool has_progress_; + bool has_status_text_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_calibration_2fcalibration_2eproto; +}; +// ------------------------------------------------------------------- + +class CancelRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CancelRequest) */ { +public: + inline CancelRequest() : CancelRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CancelRequest* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CancelRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR CancelRequest(::google::protobuf::internal::ConstantInitialized); + inline CancelRequest(const CancelRequest& from) : CancelRequest(nullptr, from) {} + inline CancelRequest(CancelRequest&& from) noexcept : CancelRequest(nullptr, std::move(from)) {} + inline CancelRequest& operator=(const CancelRequest& from) + { + CopyFrom(from); + return *this; + } + inline CancelRequest& operator=(CancelRequest&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const CancelRequest& default_instance() { return *internal_default_instance(); } + static inline const CancelRequest* internal_default_instance() + { + return reinterpret_cast(&_CancelRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 10; + friend void swap(CancelRequest& a, CancelRequest& b) { a.Swap(&b); } + inline void Swap(CancelRequest* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CancelRequest* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CancelRequest* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const CancelRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const CancelRequest& from) + { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + +public: + bool IsInitialized() const { return true; } + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CancelRequest"; } + +protected: + explicit CancelRequest(::google::protobuf::Arena* arena); + CancelRequest(::google::protobuf::Arena* arena, const CancelRequest& from); + CancelRequest(::google::protobuf::Arena* arena, CancelRequest&& from) noexcept : + CancelRequest(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CancelRequest) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const CancelRequest& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_calibration_2fcalibration_2eproto; +}; +// ------------------------------------------------------------------- + +class CalibrationResult final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrationResult) */ { +public: + inline CalibrationResult() : CalibrationResult(nullptr) {} + ~CalibrationResult() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CalibrationResult* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CalibrationResult)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + CalibrationResult(::google::protobuf::internal::ConstantInitialized); + + inline CalibrationResult(const CalibrationResult& from) : CalibrationResult(nullptr, from) {} + inline CalibrationResult(CalibrationResult&& from) noexcept : + CalibrationResult(nullptr, std::move(from)) + {} + inline CalibrationResult& operator=(const CalibrationResult& from) + { + CopyFrom(from); + return *this; + } + inline CalibrationResult& operator=(CalibrationResult&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const CalibrationResult& default_instance() { return *internal_default_instance(); } + static inline const CalibrationResult* internal_default_instance() + { + return reinterpret_cast(&_CalibrationResult_default_instance_); + } + static constexpr int kIndexInFileMessages = 12; + friend void swap(CalibrationResult& a, CalibrationResult& b) { a.Swap(&b); } + inline void Swap(CalibrationResult* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CalibrationResult* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CalibrationResult* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CalibrationResult& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const CalibrationResult& from) { CalibrationResult::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(CalibrationResult* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.calibration.CalibrationResult"; + } + +protected: + explicit CalibrationResult(::google::protobuf::Arena* arena); + CalibrationResult(::google::protobuf::Arena* arena, const CalibrationResult& from); + CalibrationResult(::google::protobuf::Arena* arena, CalibrationResult&& from) noexcept : + CalibrationResult(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + using Result = CalibrationResult_Result; + static constexpr Result RESULT_UNKNOWN = CalibrationResult_Result_RESULT_UNKNOWN; + static constexpr Result RESULT_SUCCESS = CalibrationResult_Result_RESULT_SUCCESS; + static constexpr Result RESULT_NEXT = CalibrationResult_Result_RESULT_NEXT; + static constexpr Result RESULT_FAILED = CalibrationResult_Result_RESULT_FAILED; + static constexpr Result RESULT_NO_SYSTEM = CalibrationResult_Result_RESULT_NO_SYSTEM; + static constexpr Result RESULT_CONNECTION_ERROR = + CalibrationResult_Result_RESULT_CONNECTION_ERROR; + static constexpr Result RESULT_BUSY = CalibrationResult_Result_RESULT_BUSY; + static constexpr Result RESULT_COMMAND_DENIED = CalibrationResult_Result_RESULT_COMMAND_DENIED; + static constexpr Result RESULT_TIMEOUT = CalibrationResult_Result_RESULT_TIMEOUT; + static constexpr Result RESULT_CANCELLED = CalibrationResult_Result_RESULT_CANCELLED; + static constexpr Result RESULT_FAILED_ARMED = CalibrationResult_Result_RESULT_FAILED_ARMED; + static constexpr Result RESULT_UNSUPPORTED = CalibrationResult_Result_RESULT_UNSUPPORTED; + static inline bool Result_IsValid(int value) { return CalibrationResult_Result_IsValid(value); } + static constexpr Result Result_MIN = CalibrationResult_Result_Result_MIN; + static constexpr Result Result_MAX = CalibrationResult_Result_Result_MAX; + static constexpr int Result_ARRAYSIZE = CalibrationResult_Result_Result_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Result_descriptor() + { + return CalibrationResult_Result_descriptor(); + } + template static inline const std::string& Result_Name(T value) + { + return CalibrationResult_Result_Name(value); + } + static inline bool Result_Parse(absl::string_view name, Result* value) + { + return CalibrationResult_Result_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kResultStrFieldNumber = 2, + kResultFieldNumber = 1, + }; + // string result_str = 2; + void clear_result_str(); + const std::string& result_str() const; + template + void set_result_str(Arg_&& arg, Args_... args); + std::string* mutable_result_str(); + PROTOBUF_NODISCARD std::string* release_result_str(); + void set_allocated_result_str(std::string* value); + +private: + const std::string& _internal_result_str() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str(const std::string& value); + std::string* _internal_mutable_result_str(); + +public: + // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; + void clear_result(); + ::mavsdk::rpc::calibration::CalibrationResult_Result result() const; + void set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value); + +private: + ::mavsdk::rpc::calibration::CalibrationResult_Result _internal_result() const; + void _internal_set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrationResult) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 59, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const CalibrationResult& from_msg); + ::google::protobuf::internal::ArenaStringPtr result_str_; + int result_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_calibration_2fcalibration_2eproto; +}; +// ------------------------------------------------------------------- + +class CancelResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CancelResponse) */ { +public: + inline CancelResponse() : CancelResponse(nullptr) {} + ~CancelResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CancelResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CancelResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR CancelResponse(::google::protobuf::internal::ConstantInitialized); + + inline CancelResponse(const CancelResponse& from) : CancelResponse(nullptr, from) {} + inline CancelResponse(CancelResponse&& from) noexcept : CancelResponse(nullptr, std::move(from)) + {} + inline CancelResponse& operator=(const CancelResponse& from) + { + CopyFrom(from); + return *this; + } + inline CancelResponse& operator=(CancelResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const CancelResponse& default_instance() { return *internal_default_instance(); } + static inline const CancelResponse* internal_default_instance() + { + return reinterpret_cast(&_CancelResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 11; + friend void swap(CancelResponse& a, CancelResponse& b) { a.Swap(&b); } + inline void Swap(CancelResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CancelResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CancelResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CancelResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const CancelResponse& from) { CancelResponse::MergeImpl(*this, from); } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(CancelResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CancelResponse"; } + +protected: + explicit CancelResponse(::google::protobuf::Arena* arena); + CancelResponse(::google::protobuf::Arena* arena, const CancelResponse& from); + CancelResponse(::google::protobuf::Arena* arena, CancelResponse&& from) noexcept : + CancelResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kCalibrationResultFieldNumber = 1, + }; + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + bool has_calibration_result() const; + void clear_calibration_result(); + const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); + ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); + void set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); + void unsafe_arena_set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value); + ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); + +private: + const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; + ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CancelResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const CancelResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_calibration_2fcalibration_2eproto; +}; +// ------------------------------------------------------------------- + +class CalibrateMagnetometerResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) + */ +{ +public: + inline CalibrateMagnetometerResponse() : CalibrateMagnetometerResponse(nullptr) {} + ~CalibrateMagnetometerResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CalibrateMagnetometerResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CalibrateMagnetometerResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + CalibrateMagnetometerResponse(::google::protobuf::internal::ConstantInitialized); + + inline CalibrateMagnetometerResponse(const CalibrateMagnetometerResponse& from) : + CalibrateMagnetometerResponse(nullptr, from) + {} + inline CalibrateMagnetometerResponse(CalibrateMagnetometerResponse&& from) noexcept : + CalibrateMagnetometerResponse(nullptr, std::move(from)) + {} + inline CalibrateMagnetometerResponse& operator=(const CalibrateMagnetometerResponse& from) + { + CopyFrom(from); + return *this; + } + inline CalibrateMagnetometerResponse& operator=(CalibrateMagnetometerResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const CalibrateMagnetometerResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const CalibrateMagnetometerResponse* internal_default_instance() + { + return reinterpret_cast( + &_CalibrateMagnetometerResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 5; + friend void swap(CalibrateMagnetometerResponse& a, CalibrateMagnetometerResponse& b) + { + a.Swap(&b); + } + inline void Swap(CalibrateMagnetometerResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CalibrateMagnetometerResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CalibrateMagnetometerResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CalibrateMagnetometerResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const CalibrateMagnetometerResponse& from) + { + CalibrateMagnetometerResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(CalibrateMagnetometerResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.calibration.CalibrateMagnetometerResponse"; + } + +protected: + explicit CalibrateMagnetometerResponse(::google::protobuf::Arena* arena); + CalibrateMagnetometerResponse( + ::google::protobuf::Arena* arena, const CalibrateMagnetometerResponse& from); + CalibrateMagnetometerResponse( + ::google::protobuf::Arena* arena, CalibrateMagnetometerResponse&& from) noexcept : + CalibrateMagnetometerResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kCalibrationResultFieldNumber = 1, + kProgressDataFieldNumber = 2, + }; + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + bool has_calibration_result() const; + void clear_calibration_result(); + const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); + ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); + void set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); + void unsafe_arena_set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value); + ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); + +private: + const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; + ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); + +public: + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + bool has_progress_data() const; + void clear_progress_data(); + const ::mavsdk::rpc::calibration::ProgressData& progress_data() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::ProgressData* release_progress_data(); + ::mavsdk::rpc::calibration::ProgressData* mutable_progress_data(); + void set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); + void unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); + ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); + +private: + const ::mavsdk::rpc::calibration::ProgressData& _internal_progress_data() const; + ::mavsdk::rpc::calibration::ProgressData* _internal_mutable_progress_data(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 2, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const CalibrateMagnetometerResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; + ::mavsdk::rpc::calibration::ProgressData* progress_data_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_calibration_2fcalibration_2eproto; +}; +// ------------------------------------------------------------------- + +class CalibrateLevelHorizonResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) + */ +{ +public: + inline CalibrateLevelHorizonResponse() : CalibrateLevelHorizonResponse(nullptr) {} + ~CalibrateLevelHorizonResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CalibrateLevelHorizonResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CalibrateLevelHorizonResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + CalibrateLevelHorizonResponse(::google::protobuf::internal::ConstantInitialized); + + inline CalibrateLevelHorizonResponse(const CalibrateLevelHorizonResponse& from) : + CalibrateLevelHorizonResponse(nullptr, from) + {} + inline CalibrateLevelHorizonResponse(CalibrateLevelHorizonResponse&& from) noexcept : + CalibrateLevelHorizonResponse(nullptr, std::move(from)) + {} + inline CalibrateLevelHorizonResponse& operator=(const CalibrateLevelHorizonResponse& from) + { + CopyFrom(from); + return *this; + } + inline CalibrateLevelHorizonResponse& operator=(CalibrateLevelHorizonResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const CalibrateLevelHorizonResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const CalibrateLevelHorizonResponse* internal_default_instance() + { + return reinterpret_cast( + &_CalibrateLevelHorizonResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 7; + friend void swap(CalibrateLevelHorizonResponse& a, CalibrateLevelHorizonResponse& b) + { + a.Swap(&b); + } + inline void Swap(CalibrateLevelHorizonResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CalibrateLevelHorizonResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CalibrateLevelHorizonResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CalibrateLevelHorizonResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const CalibrateLevelHorizonResponse& from) + { + CalibrateLevelHorizonResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(CalibrateLevelHorizonResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.calibration.CalibrateLevelHorizonResponse"; + } + +protected: + explicit CalibrateLevelHorizonResponse(::google::protobuf::Arena* arena); + CalibrateLevelHorizonResponse( + ::google::protobuf::Arena* arena, const CalibrateLevelHorizonResponse& from); + CalibrateLevelHorizonResponse( + ::google::protobuf::Arena* arena, CalibrateLevelHorizonResponse&& from) noexcept : + CalibrateLevelHorizonResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kCalibrationResultFieldNumber = 1, + kProgressDataFieldNumber = 2, + }; + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + bool has_calibration_result() const; + void clear_calibration_result(); + const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); + ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); + void set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); + void unsafe_arena_set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value); + ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); + +private: + const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; + ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); + +public: + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + bool has_progress_data() const; + void clear_progress_data(); + const ::mavsdk::rpc::calibration::ProgressData& progress_data() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::ProgressData* release_progress_data(); + ::mavsdk::rpc::calibration::ProgressData* mutable_progress_data(); + void set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); + void unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); + ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); + +private: + const ::mavsdk::rpc::calibration::ProgressData& _internal_progress_data() const; + ::mavsdk::rpc::calibration::ProgressData* _internal_mutable_progress_data(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 2, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const CalibrateLevelHorizonResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; + ::mavsdk::rpc::calibration::ProgressData* progress_data_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_calibration_2fcalibration_2eproto; +}; +// ------------------------------------------------------------------- + +class CalibrateGyroResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateGyroResponse) */ { +public: + inline CalibrateGyroResponse() : CalibrateGyroResponse(nullptr) {} + ~CalibrateGyroResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CalibrateGyroResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CalibrateGyroResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + CalibrateGyroResponse(::google::protobuf::internal::ConstantInitialized); + + inline CalibrateGyroResponse(const CalibrateGyroResponse& from) : + CalibrateGyroResponse(nullptr, from) + {} + inline CalibrateGyroResponse(CalibrateGyroResponse&& from) noexcept : + CalibrateGyroResponse(nullptr, std::move(from)) + {} + inline CalibrateGyroResponse& operator=(const CalibrateGyroResponse& from) + { + CopyFrom(from); + return *this; + } + inline CalibrateGyroResponse& operator=(CalibrateGyroResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const CalibrateGyroResponse& default_instance() { return *internal_default_instance(); } + static inline const CalibrateGyroResponse* internal_default_instance() + { + return reinterpret_cast( + &_CalibrateGyroResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(CalibrateGyroResponse& a, CalibrateGyroResponse& b) { a.Swap(&b); } + inline void Swap(CalibrateGyroResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CalibrateGyroResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CalibrateGyroResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CalibrateGyroResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const CalibrateGyroResponse& from) + { + CalibrateGyroResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(CalibrateGyroResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.calibration.CalibrateGyroResponse"; + } + +protected: + explicit CalibrateGyroResponse(::google::protobuf::Arena* arena); + CalibrateGyroResponse(::google::protobuf::Arena* arena, const CalibrateGyroResponse& from); + CalibrateGyroResponse(::google::protobuf::Arena* arena, CalibrateGyroResponse&& from) noexcept : + CalibrateGyroResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kCalibrationResultFieldNumber = 1, + kProgressDataFieldNumber = 2, + }; + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + bool has_calibration_result() const; + void clear_calibration_result(); + const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); + ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); + void set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); + void unsafe_arena_set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value); + ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); + +private: + const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; + ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); + +public: + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + bool has_progress_data() const; + void clear_progress_data(); + const ::mavsdk::rpc::calibration::ProgressData& progress_data() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::ProgressData* release_progress_data(); + ::mavsdk::rpc::calibration::ProgressData* mutable_progress_data(); + void set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); + void unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); + ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); + +private: + const ::mavsdk::rpc::calibration::ProgressData& _internal_progress_data() const; + ::mavsdk::rpc::calibration::ProgressData* _internal_mutable_progress_data(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateGyroResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 2, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const CalibrateGyroResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; + ::mavsdk::rpc::calibration::ProgressData* progress_data_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_calibration_2fcalibration_2eproto; +}; +// ------------------------------------------------------------------- + +class CalibrateGimbalAccelerometerResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) + */ +{ +public: + inline CalibrateGimbalAccelerometerResponse() : CalibrateGimbalAccelerometerResponse(nullptr) {} + ~CalibrateGimbalAccelerometerResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CalibrateGimbalAccelerometerResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete( + msg, sizeof(CalibrateGimbalAccelerometerResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + CalibrateGimbalAccelerometerResponse(::google::protobuf::internal::ConstantInitialized); + + inline CalibrateGimbalAccelerometerResponse(const CalibrateGimbalAccelerometerResponse& from) : + CalibrateGimbalAccelerometerResponse(nullptr, from) + {} + inline CalibrateGimbalAccelerometerResponse( + CalibrateGimbalAccelerometerResponse&& from) noexcept : + CalibrateGimbalAccelerometerResponse(nullptr, std::move(from)) + {} + inline CalibrateGimbalAccelerometerResponse& + operator=(const CalibrateGimbalAccelerometerResponse& from) + { + CopyFrom(from); + return *this; + } + inline CalibrateGimbalAccelerometerResponse& + operator=(CalibrateGimbalAccelerometerResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const CalibrateGimbalAccelerometerResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const CalibrateGimbalAccelerometerResponse* internal_default_instance() + { + return reinterpret_cast( + &_CalibrateGimbalAccelerometerResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 9; + friend void + swap(CalibrateGimbalAccelerometerResponse& a, CalibrateGimbalAccelerometerResponse& b) + { + a.Swap(&b); + } + inline void Swap(CalibrateGimbalAccelerometerResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CalibrateGimbalAccelerometerResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CalibrateGimbalAccelerometerResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct( + arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CalibrateGimbalAccelerometerResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const CalibrateGimbalAccelerometerResponse& from) + { + CalibrateGimbalAccelerometerResponse::MergeImpl(*this, from); + } + +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(CalibrateGimbalAccelerometerResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse"; + } + +protected: + explicit CalibrateGimbalAccelerometerResponse(::google::protobuf::Arena* arena); + CalibrateGimbalAccelerometerResponse( + ::google::protobuf::Arena* arena, const CalibrateGimbalAccelerometerResponse& from); + CalibrateGimbalAccelerometerResponse( + ::google::protobuf::Arena* arena, CalibrateGimbalAccelerometerResponse&& from) noexcept : + CalibrateGimbalAccelerometerResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kCalibrationResultFieldNumber = 1, + kProgressDataFieldNumber = 2, + }; + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + bool has_calibration_result() const; + void clear_calibration_result(); + const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); + ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); + void set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); + void unsafe_arena_set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value); + ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); + +private: + const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; + ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); + +public: + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + bool has_progress_data() const; + void clear_progress_data(); + const ::mavsdk::rpc::calibration::ProgressData& progress_data() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::ProgressData* release_progress_data(); + ::mavsdk::rpc::calibration::ProgressData* mutable_progress_data(); + void set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); + void unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); + ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); + +private: + const ::mavsdk::rpc::calibration::ProgressData& _internal_progress_data() const; + ::mavsdk::rpc::calibration::ProgressData* _internal_mutable_progress_data(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 2, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const CalibrateGimbalAccelerometerResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; + ::mavsdk::rpc::calibration::ProgressData* progress_data_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_calibration_2fcalibration_2eproto; +}; +// ------------------------------------------------------------------- + +class CalibrateAccelerometerResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) + */ +{ +public: + inline CalibrateAccelerometerResponse() : CalibrateAccelerometerResponse(nullptr) {} + ~CalibrateAccelerometerResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CalibrateAccelerometerResponse* msg, std::destroying_delete_t) + { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CalibrateAccelerometerResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR + CalibrateAccelerometerResponse(::google::protobuf::internal::ConstantInitialized); + + inline CalibrateAccelerometerResponse(const CalibrateAccelerometerResponse& from) : + CalibrateAccelerometerResponse(nullptr, from) + {} + inline CalibrateAccelerometerResponse(CalibrateAccelerometerResponse&& from) noexcept : + CalibrateAccelerometerResponse(nullptr, std::move(from)) + {} + inline CalibrateAccelerometerResponse& operator=(const CalibrateAccelerometerResponse& from) + { + CopyFrom(from); + return *this; + } + inline CalibrateAccelerometerResponse& operator=(CalibrateAccelerometerResponse&& from) noexcept + { + if (this == &from) + return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& + unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND + { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } + static const ::google::protobuf::Descriptor* GetDescriptor() + { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() + { + return default_instance().GetMetadata().reflection; + } + static const CalibrateAccelerometerResponse& default_instance() + { + return *internal_default_instance(); + } + static inline const CalibrateAccelerometerResponse* internal_default_instance() + { + return reinterpret_cast( + &_CalibrateAccelerometerResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(CalibrateAccelerometerResponse& a, CalibrateAccelerometerResponse& b) + { + a.Swap(&b); + } + inline void Swap(CalibrateAccelerometerResponse* other) + { + if (other == this) + return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CalibrateAccelerometerResponse* other) + { + if (other == this) + return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CalibrateAccelerometerResponse* New(::google::protobuf::Arena* arena = nullptr) const + { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CalibrateAccelerometerResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const CalibrateAccelerometerResponse& from) + { + CalibrateAccelerometerResponse::MergeImpl(*this, from); + } +private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); + +public: + bool IsInitialized() const { return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; +#if defined(PROTOBUF_CUSTOM_VTABLE) +private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + +public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* + _InternalSerialize(::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const + { + return _InternalSerialize(*this, target, stream); + } +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; +#endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + +private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(CalibrateAccelerometerResponse* other); + +private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() + { + return "mavsdk.rpc.calibration.CalibrateAccelerometerResponse"; + } +protected: + explicit CalibrateAccelerometerResponse(::google::protobuf::Arena* arena); + CalibrateAccelerometerResponse( + ::google::protobuf::Arena* arena, const CalibrateAccelerometerResponse& from); + CalibrateAccelerometerResponse( + ::google::protobuf::Arena* arena, CalibrateAccelerometerResponse&& from) noexcept : + CalibrateAccelerometerResponse(arena) + { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + +public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kCalibrationResultFieldNumber = 1, + kProgressDataFieldNumber = 2, + }; + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + bool has_calibration_result() const; + void clear_calibration_result(); + const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); + ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); + void set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value); + void unsafe_arena_set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value); + ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); + +private: + const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; + ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); + +public: + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + bool has_progress_data() const; + void clear_progress_data(); + const ::mavsdk::rpc::calibration::ProgressData& progress_data() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::ProgressData* release_progress_data(); + ::mavsdk::rpc::calibration::ProgressData* mutable_progress_data(); + void set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); + void unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value); + ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); + +private: + const ::mavsdk::rpc::calibration::ProgressData& _internal_progress_data() const; + ::mavsdk::rpc::calibration::ProgressData* _internal_mutable_progress_data(); + +public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) +private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 2, 0, 2> _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const CalibrateAccelerometerResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; + ::mavsdk::rpc::calibration::ProgressData* progress_data_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { + Impl_ _impl_; + }; + friend struct ::TableStruct_calibration_2fcalibration_2eproto; +}; // =================================================================== +// =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ +#endif // __GNUC__ // ------------------------------------------------------------------- // SubscribeCalibrateGyroRequest @@ -2611,195 +3114,244 @@ class CalibrateAccelerometerResponse final : // CalibrateGyroResponse // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; -inline bool CalibrateGyroResponse::has_calibration_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); - return value; -} -inline void CalibrateGyroResponse::clear_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.calibration_result_ != nullptr) _impl_.calibration_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGyroResponse::_internal_calibration_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); -} -inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGyroResponse::calibration_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) - return _internal_calibration_result(); -} -inline void CalibrateGyroResponse::unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); - } - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool CalibrateGyroResponse::has_calibration_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); + return value; +} +inline void CalibrateGyroResponse::clear_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.calibration_result_ != nullptr) + _impl_.calibration_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGyroResponse::release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; - _impl_.calibration_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGyroResponse::unsafe_arena_release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; - _impl_.calibration_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGyroResponse::_internal_mutable_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.calibration_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); - } - return _impl_.calibration_result_; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGyroResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) - return _msg; -} -inline void CalibrateGyroResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::calibration::CalibrationResult& +CalibrateGyroResponse::_internal_calibration_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); +} +inline const ::mavsdk::rpc::calibration::CalibrationResult& +CalibrateGyroResponse::calibration_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) + return _internal_calibration_result(); +} +inline void CalibrateGyroResponse::unsafe_arena_set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateGyroResponse::release_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateGyroResponse::unsafe_arena_release_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateGyroResponse::_internal_mutable_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.calibration_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); + } + return _impl_.calibration_result_; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateGyroResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) + return _msg; +} +inline void CalibrateGyroResponse::set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.calibration_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; -inline bool CalibrateGyroResponse::has_progress_data() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.progress_data_ != nullptr); - return value; -} -inline void CalibrateGyroResponse::clear_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.progress_data_ != nullptr) _impl_.progress_data_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateGyroResponse::_internal_progress_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_ProgressData_default_instance_); -} -inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateGyroResponse::progress_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) - return _internal_progress_data(); -} -inline void CalibrateGyroResponse::unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.progress_data_); - } - _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { +inline bool CalibrateGyroResponse::has_progress_data() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.progress_data_ != nullptr); + return value; +} +inline void CalibrateGyroResponse::clear_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.progress_data_ != nullptr) + _impl_.progress_data_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGyroResponse::release_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; - _impl_.progress_data_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGyroResponse::unsafe_arena_release_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; - _impl_.progress_data_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGyroResponse::_internal_mutable_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.progress_data_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(GetArena()); - _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(p); - } - return _impl_.progress_data_; -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGyroResponse::mutable_progress_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) - return _msg; -} -inline void CalibrateGyroResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(_impl_.progress_data_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::calibration::ProgressData& +CalibrateGyroResponse::_internal_progress_data() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::calibration::_ProgressData_default_instance_); +} +inline const ::mavsdk::rpc::calibration::ProgressData& +CalibrateGyroResponse::progress_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) + return _internal_progress_data(); +} +inline void CalibrateGyroResponse::unsafe_arena_set_allocated_progress_data( + ::mavsdk::rpc::calibration::ProgressData* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.progress_data_); } - _impl_._has_bits_[0] |= 0x00000002u; - } else { + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) +} +inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGyroResponse::release_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateGyroResponse::unsafe_arena_release_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) + _impl_._has_bits_[0] &= ~0x00000002u; - } + ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateGyroResponse::_internal_mutable_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.progress_data_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::ProgressData>( + GetArena()); + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(p); + } + return _impl_.progress_data_; +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateGyroResponse::mutable_progress_data() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) + return _msg; +} +inline void +CalibrateGyroResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.progress_data_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } - _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) } // ------------------------------------------------------------------- @@ -2811,195 +3363,245 @@ inline void CalibrateGyroResponse::set_allocated_progress_data(::mavsdk::rpc::ca // CalibrateAccelerometerResponse // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; -inline bool CalibrateAccelerometerResponse::has_calibration_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); - return value; -} -inline void CalibrateAccelerometerResponse::clear_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.calibration_result_ != nullptr) _impl_.calibration_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateAccelerometerResponse::_internal_calibration_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); -} -inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateAccelerometerResponse::calibration_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) - return _internal_calibration_result(); -} -inline void CalibrateAccelerometerResponse::unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); - } - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool CalibrateAccelerometerResponse::has_calibration_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); + return value; +} +inline void CalibrateAccelerometerResponse::clear_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.calibration_result_ != nullptr) + _impl_.calibration_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateAccelerometerResponse::release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; - _impl_.calibration_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateAccelerometerResponse::unsafe_arena_release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; - _impl_.calibration_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateAccelerometerResponse::_internal_mutable_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.calibration_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); - } - return _impl_.calibration_result_; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateAccelerometerResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) - return _msg; -} -inline void CalibrateAccelerometerResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::calibration::CalibrationResult& +CalibrateAccelerometerResponse::_internal_calibration_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); +} +inline const ::mavsdk::rpc::calibration::CalibrationResult& +CalibrateAccelerometerResponse::calibration_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) + return _internal_calibration_result(); +} +inline void CalibrateAccelerometerResponse::unsafe_arena_set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateAccelerometerResponse::release_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateAccelerometerResponse::unsafe_arena_release_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateAccelerometerResponse::_internal_mutable_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.calibration_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); + } + return _impl_.calibration_result_; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateAccelerometerResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) + return _msg; +} +inline void CalibrateAccelerometerResponse::set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.calibration_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; -inline bool CalibrateAccelerometerResponse::has_progress_data() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.progress_data_ != nullptr); - return value; -} -inline void CalibrateAccelerometerResponse::clear_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.progress_data_ != nullptr) _impl_.progress_data_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateAccelerometerResponse::_internal_progress_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_ProgressData_default_instance_); -} -inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateAccelerometerResponse::progress_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) - return _internal_progress_data(); -} -inline void CalibrateAccelerometerResponse::unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.progress_data_); - } - _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { +inline bool CalibrateAccelerometerResponse::has_progress_data() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.progress_data_ != nullptr); + return value; +} +inline void CalibrateAccelerometerResponse::clear_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.progress_data_ != nullptr) + _impl_.progress_data_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateAccelerometerResponse::release_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; - _impl_.progress_data_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateAccelerometerResponse::unsafe_arena_release_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; - _impl_.progress_data_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateAccelerometerResponse::_internal_mutable_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.progress_data_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(GetArena()); - _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(p); - } - return _impl_.progress_data_; -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateAccelerometerResponse::mutable_progress_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) - return _msg; -} -inline void CalibrateAccelerometerResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(_impl_.progress_data_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::calibration::ProgressData& +CalibrateAccelerometerResponse::_internal_progress_data() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::calibration::_ProgressData_default_instance_); +} +inline const ::mavsdk::rpc::calibration::ProgressData& +CalibrateAccelerometerResponse::progress_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) + return _internal_progress_data(); +} +inline void CalibrateAccelerometerResponse::unsafe_arena_set_allocated_progress_data( + ::mavsdk::rpc::calibration::ProgressData* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.progress_data_); } - _impl_._has_bits_[0] |= 0x00000002u; - } else { + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateAccelerometerResponse::release_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateAccelerometerResponse::unsafe_arena_release_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) + _impl_._has_bits_[0] &= ~0x00000002u; - } + ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateAccelerometerResponse::_internal_mutable_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.progress_data_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::ProgressData>( + GetArena()); + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(p); + } + return _impl_.progress_data_; +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateAccelerometerResponse::mutable_progress_data() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) + return _msg; +} +inline void CalibrateAccelerometerResponse::set_allocated_progress_data( + ::mavsdk::rpc::calibration::ProgressData* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.progress_data_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } - _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) } // ------------------------------------------------------------------- @@ -3011,195 +3613,245 @@ inline void CalibrateAccelerometerResponse::set_allocated_progress_data(::mavsdk // CalibrateMagnetometerResponse // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; -inline bool CalibrateMagnetometerResponse::has_calibration_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); - return value; -} -inline void CalibrateMagnetometerResponse::clear_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.calibration_result_ != nullptr) _impl_.calibration_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateMagnetometerResponse::_internal_calibration_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); -} -inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateMagnetometerResponse::calibration_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) - return _internal_calibration_result(); -} -inline void CalibrateMagnetometerResponse::unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); - } - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool CalibrateMagnetometerResponse::has_calibration_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); + return value; +} +inline void CalibrateMagnetometerResponse::clear_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.calibration_result_ != nullptr) + _impl_.calibration_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateMagnetometerResponse::release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; - _impl_.calibration_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateMagnetometerResponse::unsafe_arena_release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; - _impl_.calibration_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateMagnetometerResponse::_internal_mutable_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.calibration_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); - } - return _impl_.calibration_result_; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateMagnetometerResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) - return _msg; -} -inline void CalibrateMagnetometerResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::calibration::CalibrationResult& +CalibrateMagnetometerResponse::_internal_calibration_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); +} +inline const ::mavsdk::rpc::calibration::CalibrationResult& +CalibrateMagnetometerResponse::calibration_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) + return _internal_calibration_result(); +} +inline void CalibrateMagnetometerResponse::unsafe_arena_set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateMagnetometerResponse::release_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateMagnetometerResponse::unsafe_arena_release_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateMagnetometerResponse::_internal_mutable_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.calibration_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); + } + return _impl_.calibration_result_; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateMagnetometerResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) + return _msg; +} +inline void CalibrateMagnetometerResponse::set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.calibration_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; -inline bool CalibrateMagnetometerResponse::has_progress_data() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.progress_data_ != nullptr); - return value; -} -inline void CalibrateMagnetometerResponse::clear_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.progress_data_ != nullptr) _impl_.progress_data_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateMagnetometerResponse::_internal_progress_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_ProgressData_default_instance_); -} -inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateMagnetometerResponse::progress_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) - return _internal_progress_data(); -} -inline void CalibrateMagnetometerResponse::unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.progress_data_); - } - _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { +inline bool CalibrateMagnetometerResponse::has_progress_data() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.progress_data_ != nullptr); + return value; +} +inline void CalibrateMagnetometerResponse::clear_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.progress_data_ != nullptr) + _impl_.progress_data_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateMagnetometerResponse::release_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; - _impl_.progress_data_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateMagnetometerResponse::unsafe_arena_release_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; - _impl_.progress_data_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateMagnetometerResponse::_internal_mutable_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.progress_data_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(GetArena()); - _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(p); - } - return _impl_.progress_data_; -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateMagnetometerResponse::mutable_progress_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) - return _msg; -} -inline void CalibrateMagnetometerResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(_impl_.progress_data_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::calibration::ProgressData& +CalibrateMagnetometerResponse::_internal_progress_data() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::calibration::_ProgressData_default_instance_); +} +inline const ::mavsdk::rpc::calibration::ProgressData& +CalibrateMagnetometerResponse::progress_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) + return _internal_progress_data(); +} +inline void CalibrateMagnetometerResponse::unsafe_arena_set_allocated_progress_data( + ::mavsdk::rpc::calibration::ProgressData* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.progress_data_); } - _impl_._has_bits_[0] |= 0x00000002u; - } else { + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateMagnetometerResponse::release_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateMagnetometerResponse::unsafe_arena_release_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) + _impl_._has_bits_[0] &= ~0x00000002u; - } + ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateMagnetometerResponse::_internal_mutable_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.progress_data_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::ProgressData>( + GetArena()); + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(p); + } + return _impl_.progress_data_; +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateMagnetometerResponse::mutable_progress_data() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) + return _msg; +} +inline void CalibrateMagnetometerResponse::set_allocated_progress_data( + ::mavsdk::rpc::calibration::ProgressData* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.progress_data_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } - _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) } // ------------------------------------------------------------------- @@ -3211,195 +3863,245 @@ inline void CalibrateMagnetometerResponse::set_allocated_progress_data(::mavsdk: // CalibrateLevelHorizonResponse // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; -inline bool CalibrateLevelHorizonResponse::has_calibration_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); - return value; -} -inline void CalibrateLevelHorizonResponse::clear_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.calibration_result_ != nullptr) _impl_.calibration_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateLevelHorizonResponse::_internal_calibration_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); -} -inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateLevelHorizonResponse::calibration_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) - return _internal_calibration_result(); -} -inline void CalibrateLevelHorizonResponse::unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); - } - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool CalibrateLevelHorizonResponse::has_calibration_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); + return value; +} +inline void CalibrateLevelHorizonResponse::clear_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.calibration_result_ != nullptr) + _impl_.calibration_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateLevelHorizonResponse::release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; - _impl_.calibration_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateLevelHorizonResponse::unsafe_arena_release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; - _impl_.calibration_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateLevelHorizonResponse::_internal_mutable_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.calibration_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); - } - return _impl_.calibration_result_; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateLevelHorizonResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) - return _msg; -} -inline void CalibrateLevelHorizonResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::calibration::CalibrationResult& +CalibrateLevelHorizonResponse::_internal_calibration_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); +} +inline const ::mavsdk::rpc::calibration::CalibrationResult& +CalibrateLevelHorizonResponse::calibration_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) + return _internal_calibration_result(); +} +inline void CalibrateLevelHorizonResponse::unsafe_arena_set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateLevelHorizonResponse::release_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateLevelHorizonResponse::unsafe_arena_release_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateLevelHorizonResponse::_internal_mutable_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.calibration_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); + } + return _impl_.calibration_result_; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateLevelHorizonResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) + return _msg; +} +inline void CalibrateLevelHorizonResponse::set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.calibration_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; -inline bool CalibrateLevelHorizonResponse::has_progress_data() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.progress_data_ != nullptr); - return value; -} -inline void CalibrateLevelHorizonResponse::clear_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.progress_data_ != nullptr) _impl_.progress_data_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateLevelHorizonResponse::_internal_progress_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_ProgressData_default_instance_); -} -inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateLevelHorizonResponse::progress_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) - return _internal_progress_data(); -} -inline void CalibrateLevelHorizonResponse::unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.progress_data_); - } - _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { +inline bool CalibrateLevelHorizonResponse::has_progress_data() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.progress_data_ != nullptr); + return value; +} +inline void CalibrateLevelHorizonResponse::clear_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.progress_data_ != nullptr) + _impl_.progress_data_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateLevelHorizonResponse::release_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; - _impl_.progress_data_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateLevelHorizonResponse::unsafe_arena_release_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; - _impl_.progress_data_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateLevelHorizonResponse::_internal_mutable_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.progress_data_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(GetArena()); - _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(p); - } - return _impl_.progress_data_; -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateLevelHorizonResponse::mutable_progress_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) - return _msg; -} -inline void CalibrateLevelHorizonResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(_impl_.progress_data_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::calibration::ProgressData& +CalibrateLevelHorizonResponse::_internal_progress_data() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::calibration::_ProgressData_default_instance_); +} +inline const ::mavsdk::rpc::calibration::ProgressData& +CalibrateLevelHorizonResponse::progress_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) + return _internal_progress_data(); +} +inline void CalibrateLevelHorizonResponse::unsafe_arena_set_allocated_progress_data( + ::mavsdk::rpc::calibration::ProgressData* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.progress_data_); } - _impl_._has_bits_[0] |= 0x00000002u; - } else { + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateLevelHorizonResponse::release_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateLevelHorizonResponse::unsafe_arena_release_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) + _impl_._has_bits_[0] &= ~0x00000002u; - } + ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateLevelHorizonResponse::_internal_mutable_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.progress_data_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::ProgressData>( + GetArena()); + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(p); + } + return _impl_.progress_data_; +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateLevelHorizonResponse::mutable_progress_data() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) + return _msg; +} +inline void CalibrateLevelHorizonResponse::set_allocated_progress_data( + ::mavsdk::rpc::calibration::ProgressData* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.progress_data_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } - _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) } // ------------------------------------------------------------------- @@ -3411,195 +4113,245 @@ inline void CalibrateLevelHorizonResponse::set_allocated_progress_data(::mavsdk: // CalibrateGimbalAccelerometerResponse // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; -inline bool CalibrateGimbalAccelerometerResponse::has_calibration_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); - return value; -} -inline void CalibrateGimbalAccelerometerResponse::clear_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.calibration_result_ != nullptr) _impl_.calibration_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGimbalAccelerometerResponse::_internal_calibration_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); -} -inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGimbalAccelerometerResponse::calibration_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) - return _internal_calibration_result(); -} -inline void CalibrateGimbalAccelerometerResponse::unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); - } - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool CalibrateGimbalAccelerometerResponse::has_calibration_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); + return value; +} +inline void CalibrateGimbalAccelerometerResponse::clear_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.calibration_result_ != nullptr) + _impl_.calibration_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGimbalAccelerometerResponse::release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; - _impl_.calibration_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGimbalAccelerometerResponse::unsafe_arena_release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; - _impl_.calibration_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGimbalAccelerometerResponse::_internal_mutable_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.calibration_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); - } - return _impl_.calibration_result_; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGimbalAccelerometerResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) - return _msg; -} -inline void CalibrateGimbalAccelerometerResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::calibration::CalibrationResult& +CalibrateGimbalAccelerometerResponse::_internal_calibration_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); +} +inline const ::mavsdk::rpc::calibration::CalibrationResult& +CalibrateGimbalAccelerometerResponse::calibration_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) + return _internal_calibration_result(); +} +inline void CalibrateGimbalAccelerometerResponse::unsafe_arena_set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateGimbalAccelerometerResponse::release_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateGimbalAccelerometerResponse::unsafe_arena_release_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateGimbalAccelerometerResponse::_internal_mutable_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.calibration_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); + } + return _impl_.calibration_result_; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CalibrateGimbalAccelerometerResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) + return _msg; +} +inline void CalibrateGimbalAccelerometerResponse::set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.calibration_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; -inline bool CalibrateGimbalAccelerometerResponse::has_progress_data() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.progress_data_ != nullptr); - return value; -} -inline void CalibrateGimbalAccelerometerResponse::clear_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.progress_data_ != nullptr) _impl_.progress_data_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateGimbalAccelerometerResponse::_internal_progress_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_ProgressData_default_instance_); -} -inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateGimbalAccelerometerResponse::progress_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) - return _internal_progress_data(); -} -inline void CalibrateGimbalAccelerometerResponse::unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.progress_data_); - } - _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { +inline bool CalibrateGimbalAccelerometerResponse::has_progress_data() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.progress_data_ != nullptr); + return value; +} +inline void CalibrateGimbalAccelerometerResponse::clear_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.progress_data_ != nullptr) + _impl_.progress_data_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGimbalAccelerometerResponse::release_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; - _impl_.progress_data_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGimbalAccelerometerResponse::unsafe_arena_release_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; - _impl_.progress_data_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGimbalAccelerometerResponse::_internal_mutable_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.progress_data_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(GetArena()); - _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(p); - } - return _impl_.progress_data_; -} -inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGimbalAccelerometerResponse::mutable_progress_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) - return _msg; -} -inline void CalibrateGimbalAccelerometerResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(_impl_.progress_data_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::calibration::ProgressData& +CalibrateGimbalAccelerometerResponse::_internal_progress_data() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::calibration::_ProgressData_default_instance_); +} +inline const ::mavsdk::rpc::calibration::ProgressData& +CalibrateGimbalAccelerometerResponse::progress_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) + return _internal_progress_data(); +} +inline void CalibrateGimbalAccelerometerResponse::unsafe_arena_set_allocated_progress_data( + ::mavsdk::rpc::calibration::ProgressData* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.progress_data_); } - _impl_._has_bits_[0] |= 0x00000002u; - } else { + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateGimbalAccelerometerResponse::release_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateGimbalAccelerometerResponse::unsafe_arena_release_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) + _impl_._has_bits_[0] &= ~0x00000002u; - } + ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateGimbalAccelerometerResponse::_internal_mutable_progress_data() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.progress_data_ == nullptr) { + auto* p = + ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::ProgressData>( + GetArena()); + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(p); + } + return _impl_.progress_data_; +} +inline ::mavsdk::rpc::calibration::ProgressData* +CalibrateGimbalAccelerometerResponse::mutable_progress_data() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) + return _msg; +} +inline void CalibrateGimbalAccelerometerResponse::set_allocated_progress_data( + ::mavsdk::rpc::calibration::ProgressData* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.progress_data_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } - _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) } // ------------------------------------------------------------------- @@ -3611,99 +4363,124 @@ inline void CalibrateGimbalAccelerometerResponse::set_allocated_progress_data(:: // CancelResponse // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; -inline bool CancelResponse::has_calibration_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); - return value; -} -inline void CancelResponse::clear_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.calibration_result_ != nullptr) _impl_.calibration_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::calibration::CalibrationResult& CancelResponse::_internal_calibration_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); -} -inline const ::mavsdk::rpc::calibration::CalibrationResult& CancelResponse::calibration_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CancelResponse.calibration_result) - return _internal_calibration_result(); -} -inline void CancelResponse::unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); - } - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { +inline bool CancelResponse::has_calibration_result() const +{ + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); + return value; +} +inline void CancelResponse::clear_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.calibration_result_ != nullptr) + _impl_.calibration_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CancelResponse.calibration_result) -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CancelResponse::release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; - _impl_.calibration_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CancelResponse::unsafe_arena_release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CancelResponse.calibration_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; - _impl_.calibration_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CancelResponse::_internal_mutable_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.calibration_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); - } - return _impl_.calibration_result_; -} -inline ::mavsdk::rpc::calibration::CalibrationResult* CancelResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CancelResponse.calibration_result) - return _msg; -} -inline void CancelResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline const ::mavsdk::rpc::calibration::CalibrationResult& +CancelResponse::_internal_calibration_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; + return p != nullptr ? *p : + reinterpret_cast( + ::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); +} +inline const ::mavsdk::rpc::calibration::CalibrationResult& +CancelResponse::calibration_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CancelResponse.calibration_result) + return _internal_calibration_result(); +} +inline void CancelResponse::unsafe_arena_set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); } - _impl_._has_bits_[0] |= 0x00000001u; - } else { + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CancelResponse.calibration_result) +} +inline ::mavsdk::rpc::calibration::CalibrationResult* CancelResponse::release_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000001u; - } + ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CancelResponse::unsafe_arena_release_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CancelResponse.calibration_result) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CancelResponse::_internal_mutable_calibration_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.calibration_result_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct< + ::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); + } + return _impl_.calibration_result_; +} +inline ::mavsdk::rpc::calibration::CalibrationResult* +CancelResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + _impl_._has_bits_[0] |= 0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CancelResponse.calibration_result) + return _msg; +} +inline void CancelResponse::set_allocated_calibration_result( + ::mavsdk::rpc::calibration::CalibrationResult* value) +{ + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete (_impl_.calibration_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CancelResponse.calibration_result) + _impl_.calibration_result_ = + reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CancelResponse.calibration_result) } // ------------------------------------------------------------------- @@ -3711,79 +4488,89 @@ inline void CancelResponse::set_allocated_calibration_result(::mavsdk::rpc::cali // CalibrationResult // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; -inline void CalibrationResult::clear_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_ = 0; -} -inline ::mavsdk::rpc::calibration::CalibrationResult_Result CalibrationResult::result() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrationResult.result) - return _internal_result(); -} -inline void CalibrationResult::set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value) { - _internal_set_result(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.CalibrationResult.result) -} -inline ::mavsdk::rpc::calibration::CalibrationResult_Result CalibrationResult::_internal_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::mavsdk::rpc::calibration::CalibrationResult_Result>(_impl_.result_); -} -inline void CalibrationResult::_internal_set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.result_ = value; +inline void CalibrationResult::clear_result() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_ = 0; +} +inline ::mavsdk::rpc::calibration::CalibrationResult_Result CalibrationResult::result() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrationResult.result) + return _internal_result(); +} +inline void +CalibrationResult::set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value) +{ + _internal_set_result(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.CalibrationResult.result) +} +inline ::mavsdk::rpc::calibration::CalibrationResult_Result +CalibrationResult::_internal_result() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::mavsdk::rpc::calibration::CalibrationResult_Result>(_impl_.result_); +} +inline void +CalibrationResult::_internal_set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_ = value; } // string result_str = 2; -inline void CalibrationResult::clear_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_str_.ClearToEmpty(); -} -inline const std::string& CalibrationResult::result_str() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrationResult.result_str) - return _internal_result_str(); -} -template -inline PROTOBUF_ALWAYS_INLINE void CalibrationResult::set_result_str(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.result_str_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.CalibrationResult.result_str) -} -inline std::string* CalibrationResult::mutable_result_str() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_result_str(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrationResult.result_str) - return _s; -} -inline const std::string& CalibrationResult::_internal_result_str() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.result_str_.Get(); -} -inline void CalibrationResult::_internal_set_result_str(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.result_str_.Set(value, GetArena()); -} -inline std::string* CalibrationResult::_internal_mutable_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.result_str_.Mutable( GetArena()); -} -inline std::string* CalibrationResult::release_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrationResult.result_str) - return _impl_.result_str_.Release(); -} -inline void CalibrationResult::set_allocated_result_str(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_str_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.result_str_.IsDefault()) { - _impl_.result_str_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrationResult.result_str) +inline void CalibrationResult::clear_result_str() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.ClearToEmpty(); +} +inline const std::string& CalibrationResult::result_str() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrationResult.result_str) + return _internal_result_str(); +} +template +inline PROTOBUF_ALWAYS_INLINE void CalibrationResult::set_result_str(Arg_&& arg, Args_... args) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.CalibrationResult.result_str) +} +inline std::string* CalibrationResult::mutable_result_str() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + std::string* _s = _internal_mutable_result_str(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrationResult.result_str) + return _s; +} +inline const std::string& CalibrationResult::_internal_result_str() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.result_str_.Get(); +} +inline void CalibrationResult::_internal_set_result_str(const std::string& value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.Set(value, GetArena()); +} +inline std::string* CalibrationResult::_internal_mutable_result_str() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.result_str_.Mutable(GetArena()); +} +inline std::string* CalibrationResult::release_result_str() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrationResult.result_str) + return _impl_.result_str_.Release(); +} +inline void CalibrationResult::set_allocated_result_str(std::string* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_str_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && + _impl_.result_str_.IsDefault()) { + _impl_.result_str_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrationResult.result_str) } // ------------------------------------------------------------------- @@ -3791,152 +4578,168 @@ inline void CalibrationResult::set_allocated_result_str(std::string* value) { // ProgressData // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; -inline void ProgressData::clear_has_progress() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.has_progress_ = false; +inline void ProgressData::clear_has_progress() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.has_progress_ = false; } -inline bool ProgressData::has_progress() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.ProgressData.has_progress) - return _internal_has_progress(); +inline bool ProgressData::has_progress() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.ProgressData.has_progress) + return _internal_has_progress(); } -inline void ProgressData::set_has_progress(bool value) { - _internal_set_has_progress(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.ProgressData.has_progress) +inline void ProgressData::set_has_progress(bool value) +{ + _internal_set_has_progress(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.ProgressData.has_progress) } -inline bool ProgressData::_internal_has_progress() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.has_progress_; +inline bool ProgressData::_internal_has_progress() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.has_progress_; } -inline void ProgressData::_internal_set_has_progress(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.has_progress_ = value; +inline void ProgressData::_internal_set_has_progress(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.has_progress_ = value; } // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; -inline void ProgressData::clear_progress() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.progress_ = 0; +inline void ProgressData::clear_progress() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.progress_ = 0; } -inline float ProgressData::progress() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.ProgressData.progress) - return _internal_progress(); +inline float ProgressData::progress() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.ProgressData.progress) + return _internal_progress(); } -inline void ProgressData::set_progress(float value) { - _internal_set_progress(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.ProgressData.progress) +inline void ProgressData::set_progress(float value) +{ + _internal_set_progress(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.ProgressData.progress) } -inline float ProgressData::_internal_progress() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.progress_; +inline float ProgressData::_internal_progress() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.progress_; } -inline void ProgressData::_internal_set_progress(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.progress_ = value; +inline void ProgressData::_internal_set_progress(float value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.progress_ = value; } // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; -inline void ProgressData::clear_has_status_text() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.has_status_text_ = false; +inline void ProgressData::clear_has_status_text() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.has_status_text_ = false; } -inline bool ProgressData::has_status_text() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.ProgressData.has_status_text) - return _internal_has_status_text(); +inline bool ProgressData::has_status_text() const +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.ProgressData.has_status_text) + return _internal_has_status_text(); } -inline void ProgressData::set_has_status_text(bool value) { - _internal_set_has_status_text(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.ProgressData.has_status_text) +inline void ProgressData::set_has_status_text(bool value) +{ + _internal_set_has_status_text(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.ProgressData.has_status_text) } -inline bool ProgressData::_internal_has_status_text() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.has_status_text_; +inline bool ProgressData::_internal_has_status_text() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.has_status_text_; } -inline void ProgressData::_internal_set_has_status_text(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.has_status_text_ = value; +inline void ProgressData::_internal_set_has_status_text(bool value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.has_status_text_ = value; } // string status_text = 4; -inline void ProgressData::clear_status_text() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_text_.ClearToEmpty(); -} -inline const std::string& ProgressData::status_text() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.ProgressData.status_text) - return _internal_status_text(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ProgressData::set_status_text(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.status_text_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.ProgressData.status_text) -} -inline std::string* ProgressData::mutable_status_text() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_status_text(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.ProgressData.status_text) - return _s; -} -inline const std::string& ProgressData::_internal_status_text() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.status_text_.Get(); -} -inline void ProgressData::_internal_set_status_text(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.status_text_.Set(value, GetArena()); -} -inline std::string* ProgressData::_internal_mutable_status_text() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.status_text_.Mutable( GetArena()); -} -inline std::string* ProgressData::release_status_text() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.ProgressData.status_text) - return _impl_.status_text_.Release(); -} -inline void ProgressData::set_allocated_status_text(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_text_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.status_text_.IsDefault()) { - _impl_.status_text_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.ProgressData.status_text) +inline void ProgressData::clear_status_text() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_text_.ClearToEmpty(); +} +inline const std::string& ProgressData::status_text() const ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.ProgressData.status_text) + return _internal_status_text(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ProgressData::set_status_text(Arg_&& arg, Args_... args) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_text_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.ProgressData.status_text) +} +inline std::string* ProgressData::mutable_status_text() ABSL_ATTRIBUTE_LIFETIME_BOUND +{ + std::string* _s = _internal_mutable_status_text(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.ProgressData.status_text) + return _s; +} +inline const std::string& ProgressData::_internal_status_text() const +{ + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.status_text_.Get(); +} +inline void ProgressData::_internal_set_status_text(const std::string& value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_text_.Set(value, GetArena()); +} +inline std::string* ProgressData::_internal_mutable_status_text() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.status_text_.Mutable(GetArena()); +} +inline std::string* ProgressData::release_status_text() +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.ProgressData.status_text) + return _impl_.status_text_.Release(); +} +inline void ProgressData::set_allocated_status_text(std::string* value) +{ + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_text_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && + _impl_.status_text_.IsDefault()) { + _impl_.status_text_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.ProgressData.status_text) } #ifdef __GNUC__ #pragma GCC diagnostic pop -#endif // __GNUC__ +#endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) -} // namespace calibration -} // namespace rpc -} // namespace mavsdk - +} // namespace calibration +} // namespace rpc +} // namespace mavsdk namespace google { namespace protobuf { -template <> +template<> struct is_proto_enum<::mavsdk::rpc::calibration::CalibrationResult_Result> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::calibration::CalibrationResult_Result>() { - return ::mavsdk::rpc::calibration::CalibrationResult_Result_descriptor(); +template<> +inline const EnumDescriptor* +GetEnumDescriptor<::mavsdk::rpc::calibration::CalibrationResult_Result>() +{ + return ::mavsdk::rpc::calibration::CalibrationResult_Result_descriptor(); } -} // namespace protobuf -} // namespace google +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_calibration_2fcalibration_2eproto_2epb_2eh +#endif // calibration_2fcalibration_2eproto_2epb_2eh diff --git a/src/mavsdk_server/src/generated/camera/camera.pb.cc b/src/mavsdk_server/src/generated/camera/camera.pb.cc index 415cd73036..7f5eff13de 100644 --- a/src/mavsdk_server/src/generated/camera/camera.pb.cc +++ b/src/mavsdk_server/src/generated/camera/camera.pb.cc @@ -1,17 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: camera/camera.proto +// Protobuf C++ Version: 5.29.1 #include "camera/camera.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -23,2101 +27,2893 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace mavsdk { namespace rpc { namespace camera { - template -PROTOBUF_CONSTEXPR ZoomStopRequest::ZoomStopRequest(::_pbi::ConstantInitialized) {} -struct ZoomStopRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ZoomStopRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ZoomStopRequestDefaultTypeInternal() {} - union { - ZoomStopRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ZoomStopRequestDefaultTypeInternal _ZoomStopRequest_default_instance_; - -inline constexpr ZoomRangeRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : range_{0}, - _cached_size_{0} {} - -template +template +PROTOBUF_CONSTEXPR ZoomStopRequest::ZoomStopRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct ZoomStopRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ZoomStopRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ZoomStopRequestDefaultTypeInternal() {} + union { + ZoomStopRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ZoomStopRequestDefaultTypeInternal _ZoomStopRequest_default_instance_; + +inline constexpr ZoomRangeRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + range_{0}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR ZoomRangeRequest::ZoomRangeRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ZoomRangeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ZoomRangeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ZoomRangeRequestDefaultTypeInternal() {} - union { - ZoomRangeRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ZoomRangeRequestDefaultTypeInternal _ZoomRangeRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ZoomOutStartRequest::ZoomOutStartRequest(::_pbi::ConstantInitialized) {} -struct ZoomOutStartRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ZoomOutStartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ZoomOutStartRequestDefaultTypeInternal() {} - union { - ZoomOutStartRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ZoomOutStartRequestDefaultTypeInternal _ZoomOutStartRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ZoomInStartRequest::ZoomInStartRequest(::_pbi::ConstantInitialized) {} -struct ZoomInStartRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ZoomInStartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ZoomInStartRequestDefaultTypeInternal() {} - union { - ZoomInStartRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ZoomInStartRequestDefaultTypeInternal _ZoomInStartRequest_default_instance_; - -inline constexpr VideoStreamSettings::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : uri_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - frame_rate_hz_{0}, - horizontal_resolution_pix_{0u}, - vertical_resolution_pix_{0u}, - bit_rate_b_s_{0u}, - rotation_deg_{0u}, - horizontal_fov_deg_{0}, - _cached_size_{0} {} - -template + PROTOBUF_CONSTEXPR ZoomRangeRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ZoomRangeRequestDefaultTypeInternal() {} + union { + ZoomRangeRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ZoomRangeRequestDefaultTypeInternal _ZoomRangeRequest_default_instance_; +template +PROTOBUF_CONSTEXPR ZoomOutStartRequest::ZoomOutStartRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct ZoomOutStartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ZoomOutStartRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ZoomOutStartRequestDefaultTypeInternal() {} + union { + ZoomOutStartRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ZoomOutStartRequestDefaultTypeInternal _ZoomOutStartRequest_default_instance_; +template +PROTOBUF_CONSTEXPR ZoomInStartRequest::ZoomInStartRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct ZoomInStartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ZoomInStartRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ZoomInStartRequestDefaultTypeInternal() {} + union { + ZoomInStartRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ZoomInStartRequestDefaultTypeInternal _ZoomInStartRequest_default_instance_; + +inline constexpr VideoStreamSettings::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + uri_(&::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + frame_rate_hz_{0}, + horizontal_resolution_pix_{0u}, + vertical_resolution_pix_{0u}, + bit_rate_b_s_{0u}, + rotation_deg_{0u}, + horizontal_fov_deg_{0}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR VideoStreamSettings::VideoStreamSettings(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct VideoStreamSettingsDefaultTypeInternal { - PROTOBUF_CONSTEXPR VideoStreamSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~VideoStreamSettingsDefaultTypeInternal() {} - union { - VideoStreamSettings _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamSettingsDefaultTypeInternal _VideoStreamSettings_default_instance_; - template -PROTOBUF_CONSTEXPR TrackStopRequest::TrackStopRequest(::_pbi::ConstantInitialized) {} -struct TrackStopRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TrackStopRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TrackStopRequestDefaultTypeInternal() {} - union { - TrackStopRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrackStopRequestDefaultTypeInternal _TrackStopRequest_default_instance_; - -inline constexpr TrackRectangleRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : top_left_x_{0}, - top_left_y_{0}, - bottom_right_x_{0}, - bottom_right_y_{0}, - _cached_size_{0} {} - -template + PROTOBUF_CONSTEXPR VideoStreamSettingsDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~VideoStreamSettingsDefaultTypeInternal() {} + union { + VideoStreamSettings _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + VideoStreamSettingsDefaultTypeInternal _VideoStreamSettings_default_instance_; +template +PROTOBUF_CONSTEXPR TrackStopRequest::TrackStopRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct TrackStopRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TrackStopRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TrackStopRequestDefaultTypeInternal() {} + union { + TrackStopRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TrackStopRequestDefaultTypeInternal _TrackStopRequest_default_instance_; + +inline constexpr TrackRectangleRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + top_left_x_{0}, + top_left_y_{0}, + bottom_right_x_{0}, + bottom_right_y_{0}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR TrackRectangleRequest::TrackRectangleRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct TrackRectangleRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TrackRectangleRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TrackRectangleRequestDefaultTypeInternal() {} - union { - TrackRectangleRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrackRectangleRequestDefaultTypeInternal _TrackRectangleRequest_default_instance_; - -inline constexpr TrackPointRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : point_x_{0}, - point_y_{0}, - radius_{0}, - _cached_size_{0} {} - -template + PROTOBUF_CONSTEXPR TrackRectangleRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TrackRectangleRequestDefaultTypeInternal() {} + union { + TrackRectangleRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TrackRectangleRequestDefaultTypeInternal _TrackRectangleRequest_default_instance_; + +inline constexpr TrackPointRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + point_x_{0}, + point_y_{0}, + radius_{0}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR TrackPointRequest::TrackPointRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct TrackPointRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TrackPointRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TrackPointRequestDefaultTypeInternal() {} - union { - TrackPointRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrackPointRequestDefaultTypeInternal _TrackPointRequest_default_instance_; - template -PROTOBUF_CONSTEXPR TakePhotoRequest::TakePhotoRequest(::_pbi::ConstantInitialized) {} -struct TakePhotoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TakePhotoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TakePhotoRequestDefaultTypeInternal() {} - union { - TakePhotoRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakePhotoRequestDefaultTypeInternal _TakePhotoRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest(::_pbi::ConstantInitialized) {} -struct SubscribeVideoStreamInfoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeVideoStreamInfoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeVideoStreamInfoRequestDefaultTypeInternal() {} - union { - SubscribeVideoStreamInfoRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeVideoStreamInfoRequestDefaultTypeInternal _SubscribeVideoStreamInfoRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeStatusRequest::SubscribeStatusRequest(::_pbi::ConstantInitialized) {} -struct SubscribeStatusRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeStatusRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeStatusRequestDefaultTypeInternal() {} - union { - SubscribeStatusRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeStatusRequestDefaultTypeInternal _SubscribeStatusRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest(::_pbi::ConstantInitialized) {} -struct SubscribePossibleSettingOptionsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribePossibleSettingOptionsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribePossibleSettingOptionsRequestDefaultTypeInternal() {} - union { - SubscribePossibleSettingOptionsRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribePossibleSettingOptionsRequestDefaultTypeInternal _SubscribePossibleSettingOptionsRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeModeRequest::SubscribeModeRequest(::_pbi::ConstantInitialized) {} -struct SubscribeModeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeModeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeModeRequestDefaultTypeInternal() {} - union { - SubscribeModeRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeModeRequestDefaultTypeInternal _SubscribeModeRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeInformationRequest::SubscribeInformationRequest(::_pbi::ConstantInitialized) {} -struct SubscribeInformationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeInformationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeInformationRequestDefaultTypeInternal() {} - union { - SubscribeInformationRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeInformationRequestDefaultTypeInternal _SubscribeInformationRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest(::_pbi::ConstantInitialized) {} -struct SubscribeCurrentSettingsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCurrentSettingsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeCurrentSettingsRequestDefaultTypeInternal() {} - union { - SubscribeCurrentSettingsRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCurrentSettingsRequestDefaultTypeInternal _SubscribeCurrentSettingsRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest(::_pbi::ConstantInitialized) {} -struct SubscribeCaptureInfoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCaptureInfoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeCaptureInfoRequestDefaultTypeInternal() {} - union { - SubscribeCaptureInfoRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCaptureInfoRequestDefaultTypeInternal _SubscribeCaptureInfoRequest_default_instance_; - -inline constexpr StopVideoStreamingRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : stream_id_{0}, - _cached_size_{0} {} - -template + PROTOBUF_CONSTEXPR TrackPointRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TrackPointRequestDefaultTypeInternal() {} + union { + TrackPointRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TrackPointRequestDefaultTypeInternal _TrackPointRequest_default_instance_; +template +PROTOBUF_CONSTEXPR TakePhotoRequest::TakePhotoRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct TakePhotoRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TakePhotoRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TakePhotoRequestDefaultTypeInternal() {} + union { + TakePhotoRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TakePhotoRequestDefaultTypeInternal _TakePhotoRequest_default_instance_; +template +PROTOBUF_CONSTEXPR +SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeVideoStreamInfoRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeVideoStreamInfoRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeVideoStreamInfoRequestDefaultTypeInternal() {} + union { + SubscribeVideoStreamInfoRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeVideoStreamInfoRequestDefaultTypeInternal + _SubscribeVideoStreamInfoRequest_default_instance_; +template +PROTOBUF_CONSTEXPR SubscribeStatusRequest::SubscribeStatusRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeStatusRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeStatusRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeStatusRequestDefaultTypeInternal() {} + union { + SubscribeStatusRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeStatusRequestDefaultTypeInternal _SubscribeStatusRequest_default_instance_; +template +PROTOBUF_CONSTEXPR SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest( + ::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribePossibleSettingOptionsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribePossibleSettingOptionsRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribePossibleSettingOptionsRequestDefaultTypeInternal() {} + union { + SubscribePossibleSettingOptionsRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribePossibleSettingOptionsRequestDefaultTypeInternal + _SubscribePossibleSettingOptionsRequest_default_instance_; +template +PROTOBUF_CONSTEXPR SubscribeModeRequest::SubscribeModeRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeModeRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeModeRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeModeRequestDefaultTypeInternal() {} + union { + SubscribeModeRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeModeRequestDefaultTypeInternal _SubscribeModeRequest_default_instance_; +template +PROTOBUF_CONSTEXPR +SubscribeInformationRequest::SubscribeInformationRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeInformationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeInformationRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeInformationRequestDefaultTypeInternal() {} + union { + SubscribeInformationRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeInformationRequestDefaultTypeInternal _SubscribeInformationRequest_default_instance_; +template +PROTOBUF_CONSTEXPR +SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeCurrentSettingsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeCurrentSettingsRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeCurrentSettingsRequestDefaultTypeInternal() {} + union { + SubscribeCurrentSettingsRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeCurrentSettingsRequestDefaultTypeInternal + _SubscribeCurrentSettingsRequest_default_instance_; +template +PROTOBUF_CONSTEXPR +SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct SubscribeCaptureInfoRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeCaptureInfoRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SubscribeCaptureInfoRequestDefaultTypeInternal() {} + union { + SubscribeCaptureInfoRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SubscribeCaptureInfoRequestDefaultTypeInternal _SubscribeCaptureInfoRequest_default_instance_; + +inline constexpr StopVideoStreamingRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + stream_id_{0}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR StopVideoStreamingRequest::StopVideoStreamingRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct StopVideoStreamingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopVideoStreamingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopVideoStreamingRequestDefaultTypeInternal() {} - union { - StopVideoStreamingRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoStreamingRequestDefaultTypeInternal _StopVideoStreamingRequest_default_instance_; - template -PROTOBUF_CONSTEXPR StopVideoRequest::StopVideoRequest(::_pbi::ConstantInitialized) {} -struct StopVideoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopVideoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopVideoRequestDefaultTypeInternal() {} - union { - StopVideoRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoRequestDefaultTypeInternal _StopVideoRequest_default_instance_; - template -PROTOBUF_CONSTEXPR StopPhotoIntervalRequest::StopPhotoIntervalRequest(::_pbi::ConstantInitialized) {} -struct StopPhotoIntervalRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopPhotoIntervalRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopPhotoIntervalRequestDefaultTypeInternal() {} - union { - StopPhotoIntervalRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopPhotoIntervalRequestDefaultTypeInternal _StopPhotoIntervalRequest_default_instance_; - -inline constexpr Status::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : media_folder_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - video_on_{false}, - photo_interval_on_{false}, - used_storage_mib_{0}, - available_storage_mib_{0}, - total_storage_mib_{0}, - recording_time_s_{0}, - storage_status_{static_cast< ::mavsdk::rpc::camera::Status_StorageStatus >(0)}, - storage_id_{0u}, - storage_type_{static_cast< ::mavsdk::rpc::camera::Status_StorageType >(0)}, - _cached_size_{0} {} - -template + PROTOBUF_CONSTEXPR StopVideoStreamingRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~StopVideoStreamingRequestDefaultTypeInternal() {} + union { + StopVideoStreamingRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + StopVideoStreamingRequestDefaultTypeInternal _StopVideoStreamingRequest_default_instance_; +template +PROTOBUF_CONSTEXPR StopVideoRequest::StopVideoRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct StopVideoRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopVideoRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~StopVideoRequestDefaultTypeInternal() {} + union { + StopVideoRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + StopVideoRequestDefaultTypeInternal _StopVideoRequest_default_instance_; +template +PROTOBUF_CONSTEXPR StopPhotoIntervalRequest::StopPhotoIntervalRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct StopPhotoIntervalRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopPhotoIntervalRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~StopPhotoIntervalRequestDefaultTypeInternal() {} + union { + StopPhotoIntervalRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + StopPhotoIntervalRequestDefaultTypeInternal _StopPhotoIntervalRequest_default_instance_; + +inline constexpr Status::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + media_folder_name_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + video_on_{false}, + photo_interval_on_{false}, + used_storage_mib_{0}, + available_storage_mib_{0}, + total_storage_mib_{0}, + recording_time_s_{0}, + storage_status_{static_cast<::mavsdk::rpc::camera::Status_StorageStatus>(0)}, + storage_id_{0u}, + storage_type_{static_cast<::mavsdk::rpc::camera::Status_StorageType>(0)}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR Status::Status(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct StatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StatusDefaultTypeInternal() {} - union { - Status _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; - -inline constexpr StartVideoStreamingRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : stream_id_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR StartVideoStreamingRequest::StartVideoStreamingRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusDefaultTypeInternal() {} + union { + Status _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + StatusDefaultTypeInternal _Status_default_instance_; + +inline constexpr StartVideoStreamingRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + stream_id_{0}, + _cached_size_{0} +{} + +template +PROTOBUF_CONSTEXPR + StartVideoStreamingRequest::StartVideoStreamingRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct StartVideoStreamingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartVideoStreamingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StartVideoStreamingRequestDefaultTypeInternal() {} - union { - StartVideoStreamingRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoStreamingRequestDefaultTypeInternal _StartVideoStreamingRequest_default_instance_; - template -PROTOBUF_CONSTEXPR StartVideoRequest::StartVideoRequest(::_pbi::ConstantInitialized) {} -struct StartVideoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartVideoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StartVideoRequestDefaultTypeInternal() {} - union { - StartVideoRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoRequestDefaultTypeInternal _StartVideoRequest_default_instance_; - -inline constexpr StartPhotoIntervalRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : interval_s_{0}, - _cached_size_{0} {} - -template + PROTOBUF_CONSTEXPR StartVideoStreamingRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~StartVideoStreamingRequestDefaultTypeInternal() {} + union { + StartVideoStreamingRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + StartVideoStreamingRequestDefaultTypeInternal _StartVideoStreamingRequest_default_instance_; +template +PROTOBUF_CONSTEXPR StartVideoRequest::StartVideoRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct StartVideoRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StartVideoRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~StartVideoRequestDefaultTypeInternal() {} + union { + StartVideoRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + StartVideoRequestDefaultTypeInternal _StartVideoRequest_default_instance_; + +inline constexpr StartPhotoIntervalRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + interval_s_{0}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR StartPhotoIntervalRequest::StartPhotoIntervalRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct StartPhotoIntervalRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartPhotoIntervalRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StartPhotoIntervalRequestDefaultTypeInternal() {} - union { - StartPhotoIntervalRequest _instance; - }; + PROTOBUF_CONSTEXPR StartPhotoIntervalRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~StartPhotoIntervalRequestDefaultTypeInternal() {} + union { + StartPhotoIntervalRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartPhotoIntervalRequestDefaultTypeInternal _StartPhotoIntervalRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + StartPhotoIntervalRequestDefaultTypeInternal _StartPhotoIntervalRequest_default_instance_; -inline constexpr SetModeRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : mode_{static_cast< ::mavsdk::rpc::camera::Mode >(0)}, - _cached_size_{0} {} +inline constexpr SetModeRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + mode_{static_cast<::mavsdk::rpc::camera::Mode>(0)}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR SetModeRequest::SetModeRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetModeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetModeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetModeRequestDefaultTypeInternal() {} - union { - SetModeRequest _instance; - }; + PROTOBUF_CONSTEXPR SetModeRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetModeRequestDefaultTypeInternal() {} + union { + SetModeRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetModeRequestDefaultTypeInternal _SetModeRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetModeRequestDefaultTypeInternal _SetModeRequest_default_instance_; -inline constexpr SelectCameraRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : camera_id_{0}, - _cached_size_{0} {} +inline constexpr SelectCameraRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + camera_id_{0}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR SelectCameraRequest::SelectCameraRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SelectCameraRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SelectCameraRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SelectCameraRequestDefaultTypeInternal() {} - union { - SelectCameraRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SelectCameraRequestDefaultTypeInternal _SelectCameraRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ResetSettingsRequest::ResetSettingsRequest(::_pbi::ConstantInitialized) {} -struct ResetSettingsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResetSettingsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResetSettingsRequestDefaultTypeInternal() {} - union { - ResetSettingsRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResetSettingsRequestDefaultTypeInternal _ResetSettingsRequest_default_instance_; - -inline constexpr Quaternion::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : w_{0}, - x_{0}, - y_{0}, - z_{0}, - _cached_size_{0} {} - -template + PROTOBUF_CONSTEXPR SelectCameraRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SelectCameraRequestDefaultTypeInternal() {} + union { + SelectCameraRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SelectCameraRequestDefaultTypeInternal _SelectCameraRequest_default_instance_; +template +PROTOBUF_CONSTEXPR ResetSettingsRequest::ResetSettingsRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct ResetSettingsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResetSettingsRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ResetSettingsRequestDefaultTypeInternal() {} + union { + ResetSettingsRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ResetSettingsRequestDefaultTypeInternal _ResetSettingsRequest_default_instance_; + +inline constexpr Quaternion::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + w_{0}, + x_{0}, + y_{0}, + z_{0}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR Quaternion::Quaternion(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct QuaternionDefaultTypeInternal { - PROTOBUF_CONSTEXPR QuaternionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~QuaternionDefaultTypeInternal() {} - union { - Quaternion _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuaternionDefaultTypeInternal _Quaternion_default_instance_; - template -PROTOBUF_CONSTEXPR PrepareRequest::PrepareRequest(::_pbi::ConstantInitialized) {} -struct PrepareRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR PrepareRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PrepareRequestDefaultTypeInternal() {} - union { - PrepareRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrepareRequestDefaultTypeInternal _PrepareRequest_default_instance_; - -inline constexpr Position::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : latitude_deg_{0}, - longitude_deg_{0}, - absolute_altitude_m_{0}, - relative_altitude_m_{0}, - _cached_size_{0} {} - -template + PROTOBUF_CONSTEXPR QuaternionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~QuaternionDefaultTypeInternal() {} + union { + Quaternion _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + QuaternionDefaultTypeInternal _Quaternion_default_instance_; +template +PROTOBUF_CONSTEXPR PrepareRequest::PrepareRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct PrepareRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR PrepareRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~PrepareRequestDefaultTypeInternal() {} + union { + PrepareRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + PrepareRequestDefaultTypeInternal _PrepareRequest_default_instance_; + +inline constexpr Position::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + latitude_deg_{0}, + longitude_deg_{0}, + absolute_altitude_m_{0}, + relative_altitude_m_{0}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR Position::Position(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct PositionDefaultTypeInternal { - PROTOBUF_CONSTEXPR PositionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PositionDefaultTypeInternal() {} - union { - Position _instance; - }; + PROTOBUF_CONSTEXPR PositionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PositionDefaultTypeInternal() {} + union { + Position _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PositionDefaultTypeInternal _Position_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + PositionDefaultTypeInternal _Position_default_instance_; -inline constexpr Option::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : option_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - option_description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} +inline constexpr Option::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + option_id_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + option_description_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR Option::Option(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct OptionDefaultTypeInternal { - PROTOBUF_CONSTEXPR OptionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OptionDefaultTypeInternal() {} - union { - Option _instance; - }; + PROTOBUF_CONSTEXPR OptionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~OptionDefaultTypeInternal() {} + union { + Option _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionDefaultTypeInternal _Option_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + OptionDefaultTypeInternal _Option_default_instance_; -inline constexpr ModeResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : mode_{static_cast< ::mavsdk::rpc::camera::Mode >(0)}, - _cached_size_{0} {} +inline constexpr ModeResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + mode_{static_cast<::mavsdk::rpc::camera::Mode>(0)}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR ModeResponse::ModeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ModeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ModeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ModeResponseDefaultTypeInternal() {} - union { - ModeResponse _instance; - }; + PROTOBUF_CONSTEXPR ModeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~ModeResponseDefaultTypeInternal() {} + union { + ModeResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModeResponseDefaultTypeInternal _ModeResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ModeResponseDefaultTypeInternal _ModeResponse_default_instance_; -inline constexpr ListPhotosRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : photos_range_{static_cast< ::mavsdk::rpc::camera::PhotosRange >(0)}, - _cached_size_{0} {} +inline constexpr ListPhotosRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + photos_range_{static_cast<::mavsdk::rpc::camera::PhotosRange>(0)}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR ListPhotosRequest::ListPhotosRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ListPhotosRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListPhotosRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListPhotosRequestDefaultTypeInternal() {} - union { - ListPhotosRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPhotosRequestDefaultTypeInternal _ListPhotosRequest_default_instance_; - -inline constexpr Information::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : vendor_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - model_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - focal_length_mm_{0}, - horizontal_sensor_size_mm_{0}, - vertical_sensor_size_mm_{0}, - horizontal_resolution_px_{0u}, - vertical_resolution_px_{0u}, - _cached_size_{0} {} - -template + PROTOBUF_CONSTEXPR ListPhotosRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ListPhotosRequestDefaultTypeInternal() {} + union { + ListPhotosRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ListPhotosRequestDefaultTypeInternal _ListPhotosRequest_default_instance_; + +inline constexpr Information::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + vendor_name_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + model_name_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + focal_length_mm_{0}, + horizontal_sensor_size_mm_{0}, + vertical_sensor_size_mm_{0}, + horizontal_resolution_px_{0u}, + vertical_resolution_px_{0u}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR Information::Information(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct InformationDefaultTypeInternal { - PROTOBUF_CONSTEXPR InformationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~InformationDefaultTypeInternal() {} - union { - Information _instance; - }; + PROTOBUF_CONSTEXPR InformationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~InformationDefaultTypeInternal() {} + union { + Information _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InformationDefaultTypeInternal _Information_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + InformationDefaultTypeInternal _Information_default_instance_; -inline constexpr FormatStorageRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : storage_id_{0}, - _cached_size_{0} {} +inline constexpr FormatStorageRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + storage_id_{0}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR FormatStorageRequest::FormatStorageRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct FormatStorageRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR FormatStorageRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FormatStorageRequestDefaultTypeInternal() {} - union { - FormatStorageRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FormatStorageRequestDefaultTypeInternal _FormatStorageRequest_default_instance_; - template -PROTOBUF_CONSTEXPR FocusStopRequest::FocusStopRequest(::_pbi::ConstantInitialized) {} -struct FocusStopRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR FocusStopRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FocusStopRequestDefaultTypeInternal() {} - union { - FocusStopRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FocusStopRequestDefaultTypeInternal _FocusStopRequest_default_instance_; - -inline constexpr FocusRangeRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : range_{0}, - _cached_size_{0} {} - -template + PROTOBUF_CONSTEXPR FormatStorageRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~FormatStorageRequestDefaultTypeInternal() {} + union { + FormatStorageRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + FormatStorageRequestDefaultTypeInternal _FormatStorageRequest_default_instance_; +template +PROTOBUF_CONSTEXPR FocusStopRequest::FocusStopRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct FocusStopRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR FocusStopRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~FocusStopRequestDefaultTypeInternal() {} + union { + FocusStopRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + FocusStopRequestDefaultTypeInternal _FocusStopRequest_default_instance_; + +inline constexpr FocusRangeRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + range_{0}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR FocusRangeRequest::FocusRangeRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct FocusRangeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR FocusRangeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FocusRangeRequestDefaultTypeInternal() {} - union { - FocusRangeRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FocusRangeRequestDefaultTypeInternal _FocusRangeRequest_default_instance_; - template -PROTOBUF_CONSTEXPR FocusOutStartRequest::FocusOutStartRequest(::_pbi::ConstantInitialized) {} -struct FocusOutStartRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR FocusOutStartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FocusOutStartRequestDefaultTypeInternal() {} - union { - FocusOutStartRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FocusOutStartRequestDefaultTypeInternal _FocusOutStartRequest_default_instance_; - template -PROTOBUF_CONSTEXPR FocusInStartRequest::FocusInStartRequest(::_pbi::ConstantInitialized) {} -struct FocusInStartRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR FocusInStartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FocusInStartRequestDefaultTypeInternal() {} - union { - FocusInStartRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FocusInStartRequestDefaultTypeInternal _FocusInStartRequest_default_instance_; - -inline constexpr EulerAngle::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : roll_deg_{0}, - pitch_deg_{0}, - yaw_deg_{0}, - _cached_size_{0} {} - -template + PROTOBUF_CONSTEXPR FocusRangeRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~FocusRangeRequestDefaultTypeInternal() {} + union { + FocusRangeRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + FocusRangeRequestDefaultTypeInternal _FocusRangeRequest_default_instance_; +template +PROTOBUF_CONSTEXPR FocusOutStartRequest::FocusOutStartRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct FocusOutStartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR FocusOutStartRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~FocusOutStartRequestDefaultTypeInternal() {} + union { + FocusOutStartRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + FocusOutStartRequestDefaultTypeInternal _FocusOutStartRequest_default_instance_; +template +PROTOBUF_CONSTEXPR FocusInStartRequest::FocusInStartRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::internal::ZeroFieldsBase() +{ +} +#endif // PROTOBUF_CUSTOM_VTABLE + struct FocusInStartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR FocusInStartRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~FocusInStartRequestDefaultTypeInternal() {} + union { + FocusInStartRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + FocusInStartRequestDefaultTypeInternal _FocusInStartRequest_default_instance_; + +inline constexpr EulerAngle::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + roll_deg_{0}, + pitch_deg_{0}, + yaw_deg_{0}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR EulerAngle::EulerAngle(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct EulerAngleDefaultTypeInternal { - PROTOBUF_CONSTEXPR EulerAngleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EulerAngleDefaultTypeInternal() {} - union { - EulerAngle _instance; - }; + PROTOBUF_CONSTEXPR EulerAngleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EulerAngleDefaultTypeInternal() {} + union { + EulerAngle _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EulerAngleDefaultTypeInternal _EulerAngle_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + EulerAngleDefaultTypeInternal _EulerAngle_default_instance_; -inline constexpr CameraResult::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : result_str_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - result_{static_cast< ::mavsdk::rpc::camera::CameraResult_Result >(0)}, - _cached_size_{0} {} +inline constexpr CameraResult::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + result_str_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + result_{static_cast<::mavsdk::rpc::camera::CameraResult_Result>(0)}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR CameraResult::CameraResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct CameraResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR CameraResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CameraResultDefaultTypeInternal() {} - union { - CameraResult _instance; - }; + PROTOBUF_CONSTEXPR CameraResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~CameraResultDefaultTypeInternal() {} + union { + CameraResult _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CameraResultDefaultTypeInternal _CameraResult_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + CameraResultDefaultTypeInternal _CameraResult_default_instance_; -inline constexpr ZoomStopResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr ZoomStopResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR ZoomStopResponse::ZoomStopResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ZoomStopResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ZoomStopResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ZoomStopResponseDefaultTypeInternal() {} - union { - ZoomStopResponse _instance; - }; + PROTOBUF_CONSTEXPR ZoomStopResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ZoomStopResponseDefaultTypeInternal() {} + union { + ZoomStopResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ZoomStopResponseDefaultTypeInternal _ZoomStopResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ZoomStopResponseDefaultTypeInternal _ZoomStopResponse_default_instance_; -inline constexpr ZoomRangeResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr ZoomRangeResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR ZoomRangeResponse::ZoomRangeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ZoomRangeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ZoomRangeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ZoomRangeResponseDefaultTypeInternal() {} - union { - ZoomRangeResponse _instance; - }; + PROTOBUF_CONSTEXPR ZoomRangeResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ZoomRangeResponseDefaultTypeInternal() {} + union { + ZoomRangeResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ZoomRangeResponseDefaultTypeInternal _ZoomRangeResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ZoomRangeResponseDefaultTypeInternal _ZoomRangeResponse_default_instance_; -inline constexpr ZoomOutStartResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr ZoomOutStartResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR ZoomOutStartResponse::ZoomOutStartResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ZoomOutStartResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ZoomOutStartResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ZoomOutStartResponseDefaultTypeInternal() {} - union { - ZoomOutStartResponse _instance; - }; + PROTOBUF_CONSTEXPR ZoomOutStartResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ZoomOutStartResponseDefaultTypeInternal() {} + union { + ZoomOutStartResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ZoomOutStartResponseDefaultTypeInternal _ZoomOutStartResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ZoomOutStartResponseDefaultTypeInternal _ZoomOutStartResponse_default_instance_; -inline constexpr ZoomInStartResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr ZoomInStartResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR ZoomInStartResponse::ZoomInStartResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ZoomInStartResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ZoomInStartResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ZoomInStartResponseDefaultTypeInternal() {} - union { - ZoomInStartResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ZoomInStartResponseDefaultTypeInternal _ZoomInStartResponse_default_instance_; - -inline constexpr VideoStreamInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - settings_{nullptr}, - status_{static_cast< ::mavsdk::rpc::camera::VideoStreamInfo_VideoStreamStatus >(0)}, - spectrum_{static_cast< ::mavsdk::rpc::camera::VideoStreamInfo_VideoStreamSpectrum >(0)} {} - -template + PROTOBUF_CONSTEXPR ZoomInStartResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ZoomInStartResponseDefaultTypeInternal() {} + union { + ZoomInStartResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ZoomInStartResponseDefaultTypeInternal _ZoomInStartResponse_default_instance_; + +inline constexpr VideoStreamInfo::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + settings_{nullptr}, + status_{static_cast<::mavsdk::rpc::camera::VideoStreamInfo_VideoStreamStatus>(0)}, + spectrum_{static_cast<::mavsdk::rpc::camera::VideoStreamInfo_VideoStreamSpectrum>(0)} +{} + +template PROTOBUF_CONSTEXPR VideoStreamInfo::VideoStreamInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct VideoStreamInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR VideoStreamInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~VideoStreamInfoDefaultTypeInternal() {} - union { - VideoStreamInfo _instance; - }; + PROTOBUF_CONSTEXPR VideoStreamInfoDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~VideoStreamInfoDefaultTypeInternal() {} + union { + VideoStreamInfo _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamInfoDefaultTypeInternal _VideoStreamInfo_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + VideoStreamInfoDefaultTypeInternal _VideoStreamInfo_default_instance_; -inline constexpr TrackStopResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr TrackStopResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR TrackStopResponse::TrackStopResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct TrackStopResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TrackStopResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TrackStopResponseDefaultTypeInternal() {} - union { - TrackStopResponse _instance; - }; + PROTOBUF_CONSTEXPR TrackStopResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TrackStopResponseDefaultTypeInternal() {} + union { + TrackStopResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrackStopResponseDefaultTypeInternal _TrackStopResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TrackStopResponseDefaultTypeInternal _TrackStopResponse_default_instance_; -inline constexpr TrackRectangleResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr TrackRectangleResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR TrackRectangleResponse::TrackRectangleResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct TrackRectangleResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TrackRectangleResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TrackRectangleResponseDefaultTypeInternal() {} - union { - TrackRectangleResponse _instance; - }; + PROTOBUF_CONSTEXPR TrackRectangleResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TrackRectangleResponseDefaultTypeInternal() {} + union { + TrackRectangleResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrackRectangleResponseDefaultTypeInternal _TrackRectangleResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TrackRectangleResponseDefaultTypeInternal _TrackRectangleResponse_default_instance_; -inline constexpr TrackPointResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr TrackPointResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR TrackPointResponse::TrackPointResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct TrackPointResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TrackPointResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TrackPointResponseDefaultTypeInternal() {} - union { - TrackPointResponse _instance; - }; + PROTOBUF_CONSTEXPR TrackPointResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TrackPointResponseDefaultTypeInternal() {} + union { + TrackPointResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrackPointResponseDefaultTypeInternal _TrackPointResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TrackPointResponseDefaultTypeInternal _TrackPointResponse_default_instance_; -inline constexpr TakePhotoResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr TakePhotoResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR TakePhotoResponse::TakePhotoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct TakePhotoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TakePhotoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TakePhotoResponseDefaultTypeInternal() {} - union { - TakePhotoResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakePhotoResponseDefaultTypeInternal _TakePhotoResponse_default_instance_; - -inline constexpr StopVideoStreamingResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StopVideoStreamingResponse::StopVideoStreamingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} + PROTOBUF_CONSTEXPR TakePhotoResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~TakePhotoResponseDefaultTypeInternal() {} + union { + TakePhotoResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + TakePhotoResponseDefaultTypeInternal _TakePhotoResponse_default_instance_; + +inline constexpr StopVideoStreamingResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR + StopVideoStreamingResponse::StopVideoStreamingResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct StopVideoStreamingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopVideoStreamingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopVideoStreamingResponseDefaultTypeInternal() {} - union { - StopVideoStreamingResponse _instance; - }; + PROTOBUF_CONSTEXPR StopVideoStreamingResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~StopVideoStreamingResponseDefaultTypeInternal() {} + union { + StopVideoStreamingResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoStreamingResponseDefaultTypeInternal _StopVideoStreamingResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + StopVideoStreamingResponseDefaultTypeInternal _StopVideoStreamingResponse_default_instance_; -inline constexpr StopVideoResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr StopVideoResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR StopVideoResponse::StopVideoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct StopVideoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopVideoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopVideoResponseDefaultTypeInternal() {} - union { - StopVideoResponse _instance; - }; + PROTOBUF_CONSTEXPR StopVideoResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~StopVideoResponseDefaultTypeInternal() {} + union { + StopVideoResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoResponseDefaultTypeInternal _StopVideoResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + StopVideoResponseDefaultTypeInternal _StopVideoResponse_default_instance_; -inline constexpr StopPhotoIntervalResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr StopPhotoIntervalResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR StopPhotoIntervalResponse::StopPhotoIntervalResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct StopPhotoIntervalResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopPhotoIntervalResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopPhotoIntervalResponseDefaultTypeInternal() {} - union { - StopPhotoIntervalResponse _instance; - }; + PROTOBUF_CONSTEXPR StopPhotoIntervalResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~StopPhotoIntervalResponseDefaultTypeInternal() {} + union { + StopPhotoIntervalResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopPhotoIntervalResponseDefaultTypeInternal _StopPhotoIntervalResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + StopPhotoIntervalResponseDefaultTypeInternal _StopPhotoIntervalResponse_default_instance_; -inline constexpr StatusResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_status_{nullptr} {} +inline constexpr StatusResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_status_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR StatusResponse::StatusResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct StatusResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StatusResponseDefaultTypeInternal() {} - union { - StatusResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusResponseDefaultTypeInternal _StatusResponse_default_instance_; - -inline constexpr StartVideoStreamingResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StartVideoStreamingResponse::StartVideoStreamingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} + PROTOBUF_CONSTEXPR StatusResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~StatusResponseDefaultTypeInternal() {} + union { + StatusResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + StatusResponseDefaultTypeInternal _StatusResponse_default_instance_; + +inline constexpr StartVideoStreamingResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR + StartVideoStreamingResponse::StartVideoStreamingResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct StartVideoStreamingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartVideoStreamingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StartVideoStreamingResponseDefaultTypeInternal() {} - union { - StartVideoStreamingResponse _instance; - }; + PROTOBUF_CONSTEXPR StartVideoStreamingResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~StartVideoStreamingResponseDefaultTypeInternal() {} + union { + StartVideoStreamingResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoStreamingResponseDefaultTypeInternal _StartVideoStreamingResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + StartVideoStreamingResponseDefaultTypeInternal _StartVideoStreamingResponse_default_instance_; -inline constexpr StartVideoResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr StartVideoResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR StartVideoResponse::StartVideoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct StartVideoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartVideoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StartVideoResponseDefaultTypeInternal() {} - union { - StartVideoResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoResponseDefaultTypeInternal _StartVideoResponse_default_instance_; - -inline constexpr StartPhotoIntervalResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StartPhotoIntervalResponse::StartPhotoIntervalResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} + PROTOBUF_CONSTEXPR StartVideoResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~StartVideoResponseDefaultTypeInternal() {} + union { + StartVideoResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + StartVideoResponseDefaultTypeInternal _StartVideoResponse_default_instance_; + +inline constexpr StartPhotoIntervalResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} + +template +PROTOBUF_CONSTEXPR + StartPhotoIntervalResponse::StartPhotoIntervalResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct StartPhotoIntervalResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartPhotoIntervalResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StartPhotoIntervalResponseDefaultTypeInternal() {} - union { - StartPhotoIntervalResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartPhotoIntervalResponseDefaultTypeInternal _StartPhotoIntervalResponse_default_instance_; - -inline constexpr SettingOptions::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : options_{}, - setting_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - setting_description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - is_range_{false}, - _cached_size_{0} {} - -template + PROTOBUF_CONSTEXPR StartPhotoIntervalResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~StartPhotoIntervalResponseDefaultTypeInternal() {} + union { + StartPhotoIntervalResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + StartPhotoIntervalResponseDefaultTypeInternal _StartPhotoIntervalResponse_default_instance_; + +inline constexpr SettingOptions::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + options_{}, + setting_id_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + setting_description_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + is_range_{false}, + _cached_size_{0} +{} + +template PROTOBUF_CONSTEXPR SettingOptions::SettingOptions(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SettingOptionsDefaultTypeInternal { - PROTOBUF_CONSTEXPR SettingOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SettingOptionsDefaultTypeInternal() {} - union { - SettingOptions _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SettingOptionsDefaultTypeInternal _SettingOptions_default_instance_; - -inline constexpr Setting::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - setting_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - setting_description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - option_{nullptr}, - is_range_{false} {} - -template + PROTOBUF_CONSTEXPR SettingOptionsDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SettingOptionsDefaultTypeInternal() {} + union { + SettingOptions _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SettingOptionsDefaultTypeInternal _SettingOptions_default_instance_; + +inline constexpr Setting::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + setting_id_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + setting_description_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + option_{nullptr}, + is_range_{false} +{} + +template PROTOBUF_CONSTEXPR Setting::Setting(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SettingDefaultTypeInternal { - PROTOBUF_CONSTEXPR SettingDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SettingDefaultTypeInternal() {} - union { - Setting _instance; - }; + PROTOBUF_CONSTEXPR SettingDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SettingDefaultTypeInternal() {} + union { + Setting _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SettingDefaultTypeInternal _Setting_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SettingDefaultTypeInternal _Setting_default_instance_; -inline constexpr SetSettingResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr SetSettingResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR SetSettingResponse::SetSettingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetSettingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetSettingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetSettingResponseDefaultTypeInternal() {} - union { - SetSettingResponse _instance; - }; + PROTOBUF_CONSTEXPR SetSettingResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetSettingResponseDefaultTypeInternal() {} + union { + SetSettingResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetSettingResponseDefaultTypeInternal _SetSettingResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetSettingResponseDefaultTypeInternal _SetSettingResponse_default_instance_; -inline constexpr SetModeResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr SetModeResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR SetModeResponse::SetModeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetModeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetModeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetModeResponseDefaultTypeInternal() {} - union { - SetModeResponse _instance; - }; + PROTOBUF_CONSTEXPR SetModeResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetModeResponseDefaultTypeInternal() {} + union { + SetModeResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetModeResponseDefaultTypeInternal _SetModeResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetModeResponseDefaultTypeInternal _SetModeResponse_default_instance_; -inline constexpr SelectCameraResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr SelectCameraResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR SelectCameraResponse::SelectCameraResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SelectCameraResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SelectCameraResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SelectCameraResponseDefaultTypeInternal() {} - union { - SelectCameraResponse _instance; - }; + PROTOBUF_CONSTEXPR SelectCameraResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SelectCameraResponseDefaultTypeInternal() {} + union { + SelectCameraResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SelectCameraResponseDefaultTypeInternal _SelectCameraResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SelectCameraResponseDefaultTypeInternal _SelectCameraResponse_default_instance_; -inline constexpr ResetSettingsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr ResetSettingsResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR ResetSettingsResponse::ResetSettingsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ResetSettingsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResetSettingsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResetSettingsResponseDefaultTypeInternal() {} - union { - ResetSettingsResponse _instance; - }; + PROTOBUF_CONSTEXPR ResetSettingsResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ResetSettingsResponseDefaultTypeInternal() {} + union { + ResetSettingsResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResetSettingsResponseDefaultTypeInternal _ResetSettingsResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ResetSettingsResponseDefaultTypeInternal _ResetSettingsResponse_default_instance_; -inline constexpr PrepareResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr PrepareResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR PrepareResponse::PrepareResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct PrepareResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR PrepareResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PrepareResponseDefaultTypeInternal() {} - union { - PrepareResponse _instance; - }; + PROTOBUF_CONSTEXPR PrepareResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~PrepareResponseDefaultTypeInternal() {} + union { + PrepareResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrepareResponseDefaultTypeInternal _PrepareResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + PrepareResponseDefaultTypeInternal _PrepareResponse_default_instance_; -inline constexpr InformationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - information_{nullptr} {} +inline constexpr InformationResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + information_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR InformationResponse::InformationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct InformationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR InformationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~InformationResponseDefaultTypeInternal() {} - union { - InformationResponse _instance; - }; + PROTOBUF_CONSTEXPR InformationResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~InformationResponseDefaultTypeInternal() {} + union { + InformationResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InformationResponseDefaultTypeInternal _InformationResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + InformationResponseDefaultTypeInternal _InformationResponse_default_instance_; -inline constexpr FormatStorageResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr FormatStorageResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR FormatStorageResponse::FormatStorageResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct FormatStorageResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FormatStorageResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FormatStorageResponseDefaultTypeInternal() {} - union { - FormatStorageResponse _instance; - }; + PROTOBUF_CONSTEXPR FormatStorageResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~FormatStorageResponseDefaultTypeInternal() {} + union { + FormatStorageResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FormatStorageResponseDefaultTypeInternal _FormatStorageResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + FormatStorageResponseDefaultTypeInternal _FormatStorageResponse_default_instance_; -inline constexpr FocusStopResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr FocusStopResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR FocusStopResponse::FocusStopResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct FocusStopResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FocusStopResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FocusStopResponseDefaultTypeInternal() {} - union { - FocusStopResponse _instance; - }; + PROTOBUF_CONSTEXPR FocusStopResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~FocusStopResponseDefaultTypeInternal() {} + union { + FocusStopResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FocusStopResponseDefaultTypeInternal _FocusStopResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + FocusStopResponseDefaultTypeInternal _FocusStopResponse_default_instance_; -inline constexpr FocusRangeResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr FocusRangeResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR FocusRangeResponse::FocusRangeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct FocusRangeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FocusRangeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FocusRangeResponseDefaultTypeInternal() {} - union { - FocusRangeResponse _instance; - }; + PROTOBUF_CONSTEXPR FocusRangeResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~FocusRangeResponseDefaultTypeInternal() {} + union { + FocusRangeResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FocusRangeResponseDefaultTypeInternal _FocusRangeResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + FocusRangeResponseDefaultTypeInternal _FocusRangeResponse_default_instance_; -inline constexpr FocusOutStartResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr FocusOutStartResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR FocusOutStartResponse::FocusOutStartResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct FocusOutStartResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FocusOutStartResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FocusOutStartResponseDefaultTypeInternal() {} - union { - FocusOutStartResponse _instance; - }; + PROTOBUF_CONSTEXPR FocusOutStartResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~FocusOutStartResponseDefaultTypeInternal() {} + union { + FocusOutStartResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FocusOutStartResponseDefaultTypeInternal _FocusOutStartResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + FocusOutStartResponseDefaultTypeInternal _FocusOutStartResponse_default_instance_; -inline constexpr FocusInStartResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr} {} +inline constexpr FocusInStartResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR FocusInStartResponse::FocusInStartResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct FocusInStartResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FocusInStartResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FocusInStartResponseDefaultTypeInternal() {} - union { - FocusInStartResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FocusInStartResponseDefaultTypeInternal _FocusInStartResponse_default_instance_; - -inline constexpr CaptureInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - file_url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - position_{nullptr}, - attitude_quaternion_{nullptr}, - attitude_euler_angle_{nullptr}, - time_utc_us_{::uint64_t{0u}}, - is_success_{false}, - index_{0} {} - -template + PROTOBUF_CONSTEXPR FocusInStartResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~FocusInStartResponseDefaultTypeInternal() {} + union { + FocusInStartResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + FocusInStartResponseDefaultTypeInternal _FocusInStartResponse_default_instance_; + +inline constexpr CaptureInfo::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + file_url_( + &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + position_{nullptr}, + attitude_quaternion_{nullptr}, + attitude_euler_angle_{nullptr}, + time_utc_us_{::uint64_t{0u}}, + is_success_{false}, + index_{0} +{} + +template PROTOBUF_CONSTEXPR CaptureInfo::CaptureInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct CaptureInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR CaptureInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CaptureInfoDefaultTypeInternal() {} - union { - CaptureInfo _instance; - }; + PROTOBUF_CONSTEXPR CaptureInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) + {} + ~CaptureInfoDefaultTypeInternal() {} + union { + CaptureInfo _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureInfoDefaultTypeInternal _CaptureInfo_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + CaptureInfoDefaultTypeInternal _CaptureInfo_default_instance_; -inline constexpr VideoStreamInfoResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - video_stream_info_{nullptr} {} +inline constexpr VideoStreamInfoResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + video_stream_info_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR VideoStreamInfoResponse::VideoStreamInfoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct VideoStreamInfoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR VideoStreamInfoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~VideoStreamInfoResponseDefaultTypeInternal() {} - union { - VideoStreamInfoResponse _instance; - }; + PROTOBUF_CONSTEXPR VideoStreamInfoResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~VideoStreamInfoResponseDefaultTypeInternal() {} + union { + VideoStreamInfoResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamInfoResponseDefaultTypeInternal _VideoStreamInfoResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + VideoStreamInfoResponseDefaultTypeInternal _VideoStreamInfoResponse_default_instance_; -inline constexpr SetSettingRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - setting_{nullptr} {} +inline constexpr SetSettingRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + setting_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR SetSettingRequest::SetSettingRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct SetSettingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetSettingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetSettingRequestDefaultTypeInternal() {} - union { - SetSettingRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetSettingRequestDefaultTypeInternal _SetSettingRequest_default_instance_; - -inline constexpr PossibleSettingOptionsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : setting_options_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PossibleSettingOptionsResponse::PossibleSettingOptionsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} + PROTOBUF_CONSTEXPR SetSettingRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~SetSettingRequestDefaultTypeInternal() {} + union { + SetSettingRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + SetSettingRequestDefaultTypeInternal _SetSettingRequest_default_instance_; + +inline constexpr PossibleSettingOptionsResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept + : + setting_options_{}, + _cached_size_{0} +{} + +template +PROTOBUF_CONSTEXPR + PossibleSettingOptionsResponse::PossibleSettingOptionsResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct PossibleSettingOptionsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR PossibleSettingOptionsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PossibleSettingOptionsResponseDefaultTypeInternal() {} - union { - PossibleSettingOptionsResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PossibleSettingOptionsResponseDefaultTypeInternal _PossibleSettingOptionsResponse_default_instance_; - -inline constexpr ListPhotosResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - capture_infos_{}, - camera_result_{nullptr} {} - -template + PROTOBUF_CONSTEXPR PossibleSettingOptionsResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~PossibleSettingOptionsResponseDefaultTypeInternal() {} + union { + PossibleSettingOptionsResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + PossibleSettingOptionsResponseDefaultTypeInternal + _PossibleSettingOptionsResponse_default_instance_; + +inline constexpr ListPhotosResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + capture_infos_{}, + camera_result_{nullptr} +{} + +template PROTOBUF_CONSTEXPR ListPhotosResponse::ListPhotosResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct ListPhotosResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListPhotosResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListPhotosResponseDefaultTypeInternal() {} - union { - ListPhotosResponse _instance; - }; + PROTOBUF_CONSTEXPR ListPhotosResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~ListPhotosResponseDefaultTypeInternal() {} + union { + ListPhotosResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPhotosResponseDefaultTypeInternal _ListPhotosResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + ListPhotosResponseDefaultTypeInternal _ListPhotosResponse_default_instance_; -inline constexpr GetSettingResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - camera_result_{nullptr}, - setting_{nullptr} {} +inline constexpr GetSettingResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + camera_result_{nullptr}, + setting_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR GetSettingResponse::GetSettingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct GetSettingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetSettingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetSettingResponseDefaultTypeInternal() {} - union { - GetSettingResponse _instance; - }; + PROTOBUF_CONSTEXPR GetSettingResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~GetSettingResponseDefaultTypeInternal() {} + union { + GetSettingResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSettingResponseDefaultTypeInternal _GetSettingResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + GetSettingResponseDefaultTypeInternal _GetSettingResponse_default_instance_; -inline constexpr GetSettingRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - setting_{nullptr} {} +inline constexpr GetSettingRequest::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + setting_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR GetSettingRequest::GetSettingRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct GetSettingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetSettingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetSettingRequestDefaultTypeInternal() {} - union { - GetSettingRequest _instance; - }; + PROTOBUF_CONSTEXPR GetSettingRequestDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~GetSettingRequestDefaultTypeInternal() {} + union { + GetSettingRequest _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSettingRequestDefaultTypeInternal _GetSettingRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + GetSettingRequestDefaultTypeInternal _GetSettingRequest_default_instance_; -inline constexpr CurrentSettingsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : current_settings_{}, - _cached_size_{0} {} +inline constexpr CurrentSettingsResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + current_settings_{}, + _cached_size_{0} +{} -template +template PROTOBUF_CONSTEXPR CurrentSettingsResponse::CurrentSettingsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct CurrentSettingsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CurrentSettingsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CurrentSettingsResponseDefaultTypeInternal() {} - union { - CurrentSettingsResponse _instance; - }; + PROTOBUF_CONSTEXPR CurrentSettingsResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~CurrentSettingsResponseDefaultTypeInternal() {} + union { + CurrentSettingsResponse _instance; + }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CurrentSettingsResponseDefaultTypeInternal _CurrentSettingsResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + CurrentSettingsResponseDefaultTypeInternal _CurrentSettingsResponse_default_instance_; -inline constexpr CaptureInfoResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - capture_info_{nullptr} {} +inline constexpr CaptureInfoResponse::Impl_::Impl_(::_pbi::ConstantInitialized) noexcept : + _cached_size_{0}, + capture_info_{nullptr} +{} -template +template PROTOBUF_CONSTEXPR CaptureInfoResponse::CaptureInfoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) +{} struct CaptureInfoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CaptureInfoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CaptureInfoResponseDefaultTypeInternal() {} - union { - CaptureInfoResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureInfoResponseDefaultTypeInternal _CaptureInfoResponse_default_instance_; -} // namespace camera -} // namespace rpc -} // namespace mavsdk -static ::_pb::Metadata file_level_metadata_camera_2fcamera_2eproto[78]; + PROTOBUF_CONSTEXPR CaptureInfoResponseDefaultTypeInternal() : + _instance(::_pbi::ConstantInitialized{}) + {} + ~CaptureInfoResponseDefaultTypeInternal() {} + union { + CaptureInfoResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + CaptureInfoResponseDefaultTypeInternal _CaptureInfoResponse_default_instance_; +} // namespace camera +} // namespace rpc +} // namespace mavsdk static const ::_pb::EnumDescriptor* file_level_enum_descriptors_camera_2fcamera_2eproto[7]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_camera_2fcamera_2eproto = nullptr; -const ::uint32_t TableStruct_camera_2fcamera_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( +const ::uint32_t TableStruct_camera_2fcamera_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalRequest, _impl_.interval_s_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingRequest, _impl_.stream_id_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingResponse, _impl_.camera_result_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::camera::StartVideoStreamingResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingRequest, _impl_.stream_id_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeRequest, _impl_.mode_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosRequest, _impl_.photos_range_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _impl_.camera_result_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _impl_.capture_infos_), 0, ~0u, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeInformationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::InformationResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::InformationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::InformationResponse, _impl_.information_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeModeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ModeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ModeResponse, _impl_.mode_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfoResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfoResponse, _impl_.video_stream_info_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::camera::VideoStreamInfoResponse, _impl_.video_stream_info_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeCaptureInfoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfoResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfoResponse, _impl_.capture_info_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeStatusRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StatusResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StatusResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StatusResponse, _impl_.camera_status_), 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CurrentSettingsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CurrentSettingsResponse, _impl_.current_settings_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PossibleSettingOptionsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PossibleSettingOptionsResponse, _impl_.setting_options_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::camera::PossibleSettingOptionsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::camera::PossibleSettingOptionsResponse, _impl_.setting_options_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingRequest, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingRequest, _impl_.setting_), 0, PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingResponse, _impl_.camera_result_), 0, PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingRequest, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingRequest, _impl_.setting_), 0, PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _impl_.camera_result_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _impl_.setting_), 0, 1, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageRequest, _impl_.storage_id_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageResponse, _impl_.camera_result_), 0, PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraRequest, _impl_.camera_id_), - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ResetSettingsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ResetSettingsResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ResetSettingsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ResetSettingsResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomInStartRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomInStartResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomInStartResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomInStartResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomOutStartRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomOutStartResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomOutStartResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomOutStartResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomStopRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomStopResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomStopResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomStopResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomRangeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomRangeRequest, _impl_.range_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomRangeResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomRangeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomRangeResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointRequest, _impl_.point_x_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointRequest, _impl_.point_y_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointRequest, _impl_.radius_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleRequest, _impl_.top_left_x_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleRequest, _impl_.top_left_y_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleRequest, _impl_.bottom_right_x_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleRequest, _impl_.bottom_right_y_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackStopRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackStopResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackStopResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackStopResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusInStartRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusInStartResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusInStartResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusInStartResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusOutStartRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusOutStartResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusOutStartResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusOutStartResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusStopRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusStopResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusStopResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusStopResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusRangeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusRangeRequest, _impl_.range_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusRangeResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusRangeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusRangeResponse, _impl_.camera_result_), 0, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CameraResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CameraResult, _impl_.result_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CameraResult, _impl_.result_str_), - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.latitude_deg_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.longitude_deg_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.absolute_altitude_m_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.relative_altitude_m_), - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.w_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.x_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.y_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.z_), - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _impl_.roll_deg_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _impl_.pitch_deg_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _impl_.yaw_deg_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.position_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.attitude_quaternion_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.attitude_euler_angle_), @@ -2132,43 +2928,45 @@ const ::uint32_t TableStruct_camera_2fcamera_2eproto::offsets[] PROTOBUF_SECTION ~0u, ~0u, ~0u, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.frame_rate_hz_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.horizontal_resolution_pix_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.vertical_resolution_pix_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::camera::VideoStreamSettings, _impl_.horizontal_resolution_pix_), + PROTOBUF_FIELD_OFFSET( + ::mavsdk::rpc::camera::VideoStreamSettings, _impl_.vertical_resolution_pix_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.bit_rate_b_s_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.rotation_deg_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.uri_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.horizontal_fov_deg_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_.settings_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_.status_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_.spectrum_), 0, ~0u, ~0u, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.video_on_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.photo_interval_on_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.used_storage_mib_), @@ -2179,24 +2977,24 @@ const ::uint32_t TableStruct_camera_2fcamera_2eproto::offsets[] PROTOBUF_SECTION PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.storage_status_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.storage_id_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.storage_type_), - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Option, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Option, _impl_.option_id_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Option, _impl_.option_description_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_.setting_id_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_.setting_description_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_.option_), @@ -2205,26 +3003,26 @@ const ::uint32_t TableStruct_camera_2fcamera_2eproto::offsets[] PROTOBUF_SECTION ~0u, 0, ~0u, - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.setting_id_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.setting_description_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.options_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.is_range_), - ~0u, // no _has_bits_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.vendor_name_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.model_name_), PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.focal_length_mm_), @@ -2234,88 +3032,86 @@ const ::uint32_t TableStruct_camera_2fcamera_2eproto::offsets[] PROTOBUF_SECTION PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.vertical_resolution_px_), }; -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::mavsdk::rpc::camera::PrepareRequest)}, - {8, 17, -1, sizeof(::mavsdk::rpc::camera::PrepareResponse)}, - {18, -1, -1, sizeof(::mavsdk::rpc::camera::TakePhotoRequest)}, - {26, 35, -1, sizeof(::mavsdk::rpc::camera::TakePhotoResponse)}, - {36, -1, -1, sizeof(::mavsdk::rpc::camera::StartPhotoIntervalRequest)}, - {45, 54, -1, sizeof(::mavsdk::rpc::camera::StartPhotoIntervalResponse)}, - {55, -1, -1, sizeof(::mavsdk::rpc::camera::StopPhotoIntervalRequest)}, - {63, 72, -1, sizeof(::mavsdk::rpc::camera::StopPhotoIntervalResponse)}, - {73, -1, -1, sizeof(::mavsdk::rpc::camera::StartVideoRequest)}, - {81, 90, -1, sizeof(::mavsdk::rpc::camera::StartVideoResponse)}, - {91, -1, -1, sizeof(::mavsdk::rpc::camera::StopVideoRequest)}, - {99, 108, -1, sizeof(::mavsdk::rpc::camera::StopVideoResponse)}, - {109, -1, -1, sizeof(::mavsdk::rpc::camera::StartVideoStreamingRequest)}, - {118, 127, -1, sizeof(::mavsdk::rpc::camera::StartVideoStreamingResponse)}, - {128, -1, -1, sizeof(::mavsdk::rpc::camera::StopVideoStreamingRequest)}, - {137, 146, -1, sizeof(::mavsdk::rpc::camera::StopVideoStreamingResponse)}, - {147, -1, -1, sizeof(::mavsdk::rpc::camera::SetModeRequest)}, - {156, 165, -1, sizeof(::mavsdk::rpc::camera::SetModeResponse)}, - {166, -1, -1, sizeof(::mavsdk::rpc::camera::ListPhotosRequest)}, - {175, 185, -1, sizeof(::mavsdk::rpc::camera::ListPhotosResponse)}, - {187, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeInformationRequest)}, - {195, 204, -1, sizeof(::mavsdk::rpc::camera::InformationResponse)}, - {205, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeModeRequest)}, - {213, -1, -1, sizeof(::mavsdk::rpc::camera::ModeResponse)}, - {222, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest)}, - {230, 239, -1, sizeof(::mavsdk::rpc::camera::VideoStreamInfoResponse)}, - {240, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeCaptureInfoRequest)}, - {248, 257, -1, sizeof(::mavsdk::rpc::camera::CaptureInfoResponse)}, - {258, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeStatusRequest)}, - {266, 275, -1, sizeof(::mavsdk::rpc::camera::StatusResponse)}, - {276, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest)}, - {284, -1, -1, sizeof(::mavsdk::rpc::camera::CurrentSettingsResponse)}, - {293, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest)}, - {301, -1, -1, sizeof(::mavsdk::rpc::camera::PossibleSettingOptionsResponse)}, - {310, 319, -1, sizeof(::mavsdk::rpc::camera::SetSettingRequest)}, - {320, 329, -1, sizeof(::mavsdk::rpc::camera::SetSettingResponse)}, - {330, 339, -1, sizeof(::mavsdk::rpc::camera::GetSettingRequest)}, - {340, 350, -1, sizeof(::mavsdk::rpc::camera::GetSettingResponse)}, - {352, -1, -1, sizeof(::mavsdk::rpc::camera::FormatStorageRequest)}, - {361, 370, -1, sizeof(::mavsdk::rpc::camera::FormatStorageResponse)}, - {371, 380, -1, sizeof(::mavsdk::rpc::camera::SelectCameraResponse)}, - {381, -1, -1, sizeof(::mavsdk::rpc::camera::SelectCameraRequest)}, - {390, -1, -1, sizeof(::mavsdk::rpc::camera::ResetSettingsRequest)}, - {398, 407, -1, sizeof(::mavsdk::rpc::camera::ResetSettingsResponse)}, - {408, -1, -1, sizeof(::mavsdk::rpc::camera::ZoomInStartRequest)}, - {416, 425, -1, sizeof(::mavsdk::rpc::camera::ZoomInStartResponse)}, - {426, -1, -1, sizeof(::mavsdk::rpc::camera::ZoomOutStartRequest)}, - {434, 443, -1, sizeof(::mavsdk::rpc::camera::ZoomOutStartResponse)}, - {444, -1, -1, sizeof(::mavsdk::rpc::camera::ZoomStopRequest)}, - {452, 461, -1, sizeof(::mavsdk::rpc::camera::ZoomStopResponse)}, - {462, -1, -1, sizeof(::mavsdk::rpc::camera::ZoomRangeRequest)}, - {471, 480, -1, sizeof(::mavsdk::rpc::camera::ZoomRangeResponse)}, - {481, -1, -1, sizeof(::mavsdk::rpc::camera::TrackPointRequest)}, - {492, 501, -1, sizeof(::mavsdk::rpc::camera::TrackPointResponse)}, - {502, -1, -1, sizeof(::mavsdk::rpc::camera::TrackRectangleRequest)}, - {514, 523, -1, sizeof(::mavsdk::rpc::camera::TrackRectangleResponse)}, - {524, -1, -1, sizeof(::mavsdk::rpc::camera::TrackStopRequest)}, - {532, 541, -1, sizeof(::mavsdk::rpc::camera::TrackStopResponse)}, - {542, -1, -1, sizeof(::mavsdk::rpc::camera::FocusInStartRequest)}, - {550, 559, -1, sizeof(::mavsdk::rpc::camera::FocusInStartResponse)}, - {560, -1, -1, sizeof(::mavsdk::rpc::camera::FocusOutStartRequest)}, - {568, 577, -1, sizeof(::mavsdk::rpc::camera::FocusOutStartResponse)}, - {578, -1, -1, sizeof(::mavsdk::rpc::camera::FocusStopRequest)}, - {586, 595, -1, sizeof(::mavsdk::rpc::camera::FocusStopResponse)}, - {596, -1, -1, sizeof(::mavsdk::rpc::camera::FocusRangeRequest)}, - {605, 614, -1, sizeof(::mavsdk::rpc::camera::FocusRangeResponse)}, - {615, -1, -1, sizeof(::mavsdk::rpc::camera::CameraResult)}, - {625, -1, -1, sizeof(::mavsdk::rpc::camera::Position)}, - {637, -1, -1, sizeof(::mavsdk::rpc::camera::Quaternion)}, - {649, -1, -1, sizeof(::mavsdk::rpc::camera::EulerAngle)}, - {660, 675, -1, sizeof(::mavsdk::rpc::camera::CaptureInfo)}, - {682, -1, -1, sizeof(::mavsdk::rpc::camera::VideoStreamSettings)}, - {697, 708, -1, sizeof(::mavsdk::rpc::camera::VideoStreamInfo)}, - {711, -1, -1, sizeof(::mavsdk::rpc::camera::Status)}, - {729, -1, -1, sizeof(::mavsdk::rpc::camera::Option)}, - {739, 751, -1, sizeof(::mavsdk::rpc::camera::Setting)}, - {755, -1, -1, sizeof(::mavsdk::rpc::camera::SettingOptions)}, - {767, -1, -1, sizeof(::mavsdk::rpc::camera::Information)}, +static const ::_pbi::MigrationSchema schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, -1, -1, sizeof(::mavsdk::rpc::camera::PrepareRequest)}, + {8, 17, -1, sizeof(::mavsdk::rpc::camera::PrepareResponse)}, + {18, -1, -1, sizeof(::mavsdk::rpc::camera::TakePhotoRequest)}, + {26, 35, -1, sizeof(::mavsdk::rpc::camera::TakePhotoResponse)}, + {36, -1, -1, sizeof(::mavsdk::rpc::camera::StartPhotoIntervalRequest)}, + {45, 54, -1, sizeof(::mavsdk::rpc::camera::StartPhotoIntervalResponse)}, + {55, -1, -1, sizeof(::mavsdk::rpc::camera::StopPhotoIntervalRequest)}, + {63, 72, -1, sizeof(::mavsdk::rpc::camera::StopPhotoIntervalResponse)}, + {73, -1, -1, sizeof(::mavsdk::rpc::camera::StartVideoRequest)}, + {81, 90, -1, sizeof(::mavsdk::rpc::camera::StartVideoResponse)}, + {91, -1, -1, sizeof(::mavsdk::rpc::camera::StopVideoRequest)}, + {99, 108, -1, sizeof(::mavsdk::rpc::camera::StopVideoResponse)}, + {109, -1, -1, sizeof(::mavsdk::rpc::camera::StartVideoStreamingRequest)}, + {118, 127, -1, sizeof(::mavsdk::rpc::camera::StartVideoStreamingResponse)}, + {128, -1, -1, sizeof(::mavsdk::rpc::camera::StopVideoStreamingRequest)}, + {137, 146, -1, sizeof(::mavsdk::rpc::camera::StopVideoStreamingResponse)}, + {147, -1, -1, sizeof(::mavsdk::rpc::camera::SetModeRequest)}, + {156, 165, -1, sizeof(::mavsdk::rpc::camera::SetModeResponse)}, + {166, -1, -1, sizeof(::mavsdk::rpc::camera::ListPhotosRequest)}, + {175, 185, -1, sizeof(::mavsdk::rpc::camera::ListPhotosResponse)}, + {187, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeInformationRequest)}, + {195, 204, -1, sizeof(::mavsdk::rpc::camera::InformationResponse)}, + {205, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeModeRequest)}, + {213, -1, -1, sizeof(::mavsdk::rpc::camera::ModeResponse)}, + {222, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest)}, + {230, 239, -1, sizeof(::mavsdk::rpc::camera::VideoStreamInfoResponse)}, + {240, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeCaptureInfoRequest)}, + {248, 257, -1, sizeof(::mavsdk::rpc::camera::CaptureInfoResponse)}, + {258, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeStatusRequest)}, + {266, 275, -1, sizeof(::mavsdk::rpc::camera::StatusResponse)}, + {276, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest)}, + {284, -1, -1, sizeof(::mavsdk::rpc::camera::CurrentSettingsResponse)}, + {293, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest)}, + {301, -1, -1, sizeof(::mavsdk::rpc::camera::PossibleSettingOptionsResponse)}, + {310, 319, -1, sizeof(::mavsdk::rpc::camera::SetSettingRequest)}, + {320, 329, -1, sizeof(::mavsdk::rpc::camera::SetSettingResponse)}, + {330, 339, -1, sizeof(::mavsdk::rpc::camera::GetSettingRequest)}, + {340, 350, -1, sizeof(::mavsdk::rpc::camera::GetSettingResponse)}, + {352, -1, -1, sizeof(::mavsdk::rpc::camera::FormatStorageRequest)}, + {361, 370, -1, sizeof(::mavsdk::rpc::camera::FormatStorageResponse)}, + {371, 380, -1, sizeof(::mavsdk::rpc::camera::SelectCameraResponse)}, + {381, -1, -1, sizeof(::mavsdk::rpc::camera::SelectCameraRequest)}, + {390, -1, -1, sizeof(::mavsdk::rpc::camera::ResetSettingsRequest)}, + {398, 407, -1, sizeof(::mavsdk::rpc::camera::ResetSettingsResponse)}, + {408, -1, -1, sizeof(::mavsdk::rpc::camera::ZoomInStartRequest)}, + {416, 425, -1, sizeof(::mavsdk::rpc::camera::ZoomInStartResponse)}, + {426, -1, -1, sizeof(::mavsdk::rpc::camera::ZoomOutStartRequest)}, + {434, 443, -1, sizeof(::mavsdk::rpc::camera::ZoomOutStartResponse)}, + {444, -1, -1, sizeof(::mavsdk::rpc::camera::ZoomStopRequest)}, + {452, 461, -1, sizeof(::mavsdk::rpc::camera::ZoomStopResponse)}, + {462, -1, -1, sizeof(::mavsdk::rpc::camera::ZoomRangeRequest)}, + {471, 480, -1, sizeof(::mavsdk::rpc::camera::ZoomRangeResponse)}, + {481, -1, -1, sizeof(::mavsdk::rpc::camera::TrackPointRequest)}, + {492, 501, -1, sizeof(::mavsdk::rpc::camera::TrackPointResponse)}, + {502, -1, -1, sizeof(::mavsdk::rpc::camera::TrackRectangleRequest)}, + {514, 523, -1, sizeof(::mavsdk::rpc::camera::TrackRectangleResponse)}, + {524, -1, -1, sizeof(::mavsdk::rpc::camera::TrackStopRequest)}, + {532, 541, -1, sizeof(::mavsdk::rpc::camera::TrackStopResponse)}, + {542, -1, -1, sizeof(::mavsdk::rpc::camera::FocusInStartRequest)}, + {550, 559, -1, sizeof(::mavsdk::rpc::camera::FocusInStartResponse)}, + {560, -1, -1, sizeof(::mavsdk::rpc::camera::FocusOutStartRequest)}, + {568, 577, -1, sizeof(::mavsdk::rpc::camera::FocusOutStartResponse)}, + {578, -1, -1, sizeof(::mavsdk::rpc::camera::FocusStopRequest)}, + {586, 595, -1, sizeof(::mavsdk::rpc::camera::FocusStopResponse)}, + {596, -1, -1, sizeof(::mavsdk::rpc::camera::FocusRangeRequest)}, + {605, 614, -1, sizeof(::mavsdk::rpc::camera::FocusRangeResponse)}, + {615, -1, -1, sizeof(::mavsdk::rpc::camera::CameraResult)}, + {625, -1, -1, sizeof(::mavsdk::rpc::camera::Position)}, + {637, -1, -1, sizeof(::mavsdk::rpc::camera::Quaternion)}, + {649, -1, -1, sizeof(::mavsdk::rpc::camera::EulerAngle)}, + {660, 675, -1, sizeof(::mavsdk::rpc::camera::CaptureInfo)}, + {682, -1, -1, sizeof(::mavsdk::rpc::camera::VideoStreamSettings)}, + {697, 708, -1, sizeof(::mavsdk::rpc::camera::VideoStreamInfo)}, + {711, -1, -1, sizeof(::mavsdk::rpc::camera::Status)}, + {729, -1, -1, sizeof(::mavsdk::rpc::camera::Option)}, + {739, 751, -1, sizeof(::mavsdk::rpc::camera::Setting)}, + {755, -1, -1, sizeof(::mavsdk::rpc::camera::SettingOptions)}, + {767, -1, -1, sizeof(::mavsdk::rpc::camera::Information)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::camera::_PrepareRequest_default_instance_._instance, &::mavsdk::rpc::camera::_PrepareResponse_default_instance_._instance, @@ -2396,7 +3192,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::camera::_SettingOptions_default_instance_._instance, &::mavsdk::rpc::camera::_Information_default_instance_._instance, }; -const char descriptor_table_protodef_camera_2fcamera_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_camera_2fcamera_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n\023camera/camera.proto\022\021mavsdk.rpc.camera" "\032\024mavsdk_options.proto\"\020\n\016PrepareRequest" "\"I\n\017PrepareResponse\0226\n\rcamera_result\030\001 \001" @@ -2653,14 +3450,12 @@ const char descriptor_table_protodef_camera_2fcamera_2eproto[] PROTOBUF_SECTION_ "\"\000\022[\n\nFocusRange\022$.mavsdk.rpc.camera.Foc" "usRangeRequest\032%.mavsdk.rpc.camera.Focus" "RangeResponse\"\000B\037\n\020io.mavsdk.cameraB\013Cam" - "eraProtob\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_camera_2fcamera_2eproto_deps[1] = - { - &::descriptor_table_mavsdk_5foptions_2eproto, + "eraProtob\006proto3"}; +static const ::_pbi::DescriptorTable* const descriptor_table_camera_2fcamera_2eproto_deps[1] = { + &::descriptor_table_mavsdk_5foptions_2eproto, }; static ::absl::once_flag descriptor_table_camera_2fcamera_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_camera_2fcamera_2eproto = { +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_camera_2fcamera_2eproto = { false, false, 10256, @@ -2673,42 +3468,26 @@ const ::_pbi::DescriptorTable descriptor_table_camera_2fcamera_2eproto = { schemas, file_default_instances, TableStruct_camera_2fcamera_2eproto::offsets, - file_level_metadata_camera_2fcamera_2eproto, file_level_enum_descriptors_camera_2fcamera_2eproto, file_level_service_descriptors_camera_2fcamera_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_camera_2fcamera_2eproto_getter() { - return &descriptor_table_camera_2fcamera_2eproto; -} -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_camera_2fcamera_2eproto(&descriptor_table_camera_2fcamera_2eproto); namespace mavsdk { namespace rpc { namespace camera { -const ::google::protobuf::EnumDescriptor* CameraResult_Result_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); - return file_level_enum_descriptors_camera_2fcamera_2eproto[0]; +const ::google::protobuf::EnumDescriptor* CameraResult_Result_descriptor() +{ + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); + return file_level_enum_descriptors_camera_2fcamera_2eproto[0]; } PROTOBUF_CONSTINIT const uint32_t CameraResult_Result_internal_data_[] = { - 655360u, 0u, }; -bool CameraResult_Result_IsValid(int value) { - return 0 <= value && value <= 9; + 655360u, + 0u, +}; +bool CameraResult_Result_IsValid(int value) +{ + return 0 <= value && value <= 9; } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr CameraResult_Result CameraResult::RESULT_UNKNOWN; constexpr CameraResult_Result CameraResult::RESULT_SUCCESS; @@ -2724,19 +3503,22 @@ constexpr CameraResult_Result CameraResult::Result_MIN; constexpr CameraResult_Result CameraResult::Result_MAX; constexpr int CameraResult::Result_ARRAYSIZE; -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::google::protobuf::EnumDescriptor* VideoStreamInfo_VideoStreamStatus_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); - return file_level_enum_descriptors_camera_2fcamera_2eproto[1]; +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* VideoStreamInfo_VideoStreamStatus_descriptor() +{ + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); + return file_level_enum_descriptors_camera_2fcamera_2eproto[1]; } PROTOBUF_CONSTINIT const uint32_t VideoStreamInfo_VideoStreamStatus_internal_data_[] = { - 131072u, 0u, }; -bool VideoStreamInfo_VideoStreamStatus_IsValid(int value) { - return 0 <= value && value <= 1; + 131072u, + 0u, +}; +bool VideoStreamInfo_VideoStreamStatus_IsValid(int value) +{ + return 0 <= value && value <= 1; } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr VideoStreamInfo_VideoStreamStatus VideoStreamInfo::VIDEO_STREAM_STATUS_NOT_RUNNING; constexpr VideoStreamInfo_VideoStreamStatus VideoStreamInfo::VIDEO_STREAM_STATUS_IN_PROGRESS; @@ -2744,19 +3526,22 @@ constexpr VideoStreamInfo_VideoStreamStatus VideoStreamInfo::VideoStreamStatus_M constexpr VideoStreamInfo_VideoStreamStatus VideoStreamInfo::VideoStreamStatus_MAX; constexpr int VideoStreamInfo::VideoStreamStatus_ARRAYSIZE; -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::google::protobuf::EnumDescriptor* VideoStreamInfo_VideoStreamSpectrum_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); - return file_level_enum_descriptors_camera_2fcamera_2eproto[2]; +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* VideoStreamInfo_VideoStreamSpectrum_descriptor() +{ + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); + return file_level_enum_descriptors_camera_2fcamera_2eproto[2]; } PROTOBUF_CONSTINIT const uint32_t VideoStreamInfo_VideoStreamSpectrum_internal_data_[] = { - 196608u, 0u, }; -bool VideoStreamInfo_VideoStreamSpectrum_IsValid(int value) { - return 0 <= value && value <= 2; + 196608u, + 0u, +}; +bool VideoStreamInfo_VideoStreamSpectrum_IsValid(int value) +{ + return 0 <= value && value <= 2; } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr VideoStreamInfo_VideoStreamSpectrum VideoStreamInfo::VIDEO_STREAM_SPECTRUM_UNKNOWN; constexpr VideoStreamInfo_VideoStreamSpectrum VideoStreamInfo::VIDEO_STREAM_SPECTRUM_VISIBLE_LIGHT; @@ -2765,19 +3550,22 @@ constexpr VideoStreamInfo_VideoStreamSpectrum VideoStreamInfo::VideoStreamSpectr constexpr VideoStreamInfo_VideoStreamSpectrum VideoStreamInfo::VideoStreamSpectrum_MAX; constexpr int VideoStreamInfo::VideoStreamSpectrum_ARRAYSIZE; -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::google::protobuf::EnumDescriptor* Status_StorageStatus_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); - return file_level_enum_descriptors_camera_2fcamera_2eproto[3]; +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* Status_StorageStatus_descriptor() +{ + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); + return file_level_enum_descriptors_camera_2fcamera_2eproto[3]; } PROTOBUF_CONSTINIT const uint32_t Status_StorageStatus_internal_data_[] = { - 262144u, 0u, }; -bool Status_StorageStatus_IsValid(int value) { - return 0 <= value && value <= 3; + 262144u, + 0u, +}; +bool Status_StorageStatus_IsValid(int value) +{ + return 0 <= value && value <= 3; } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr Status_StorageStatus Status::STORAGE_STATUS_NOT_AVAILABLE; constexpr Status_StorageStatus Status::STORAGE_STATUS_UNFORMATTED; @@ -2787,19 +3575,24 @@ constexpr Status_StorageStatus Status::StorageStatus_MIN; constexpr Status_StorageStatus Status::StorageStatus_MAX; constexpr int Status::StorageStatus_ARRAYSIZE; -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::google::protobuf::EnumDescriptor* Status_StorageType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); - return file_level_enum_descriptors_camera_2fcamera_2eproto[4]; +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* Status_StorageType_descriptor() +{ + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); + return file_level_enum_descriptors_camera_2fcamera_2eproto[4]; } PROTOBUF_CONSTINIT const uint32_t Status_StorageType_internal_data_[] = { - 262144u, 65568u, 8u, 254u, }; -bool Status_StorageType_IsValid(int value) { - return ::_pbi::ValidateEnum(value, Status_StorageType_internal_data_); + 262144u, + 65568u, + 8u, + 254u, +}; +bool Status_StorageType_IsValid(int value) +{ + return ::_pbi::ValidateEnum(value, Status_StorageType_internal_data_); } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr Status_StorageType Status::STORAGE_TYPE_UNKNOWN; constexpr Status_StorageType Status::STORAGE_TYPE_USB_STICK; @@ -2811,13925 +3604,19280 @@ constexpr Status_StorageType Status::StorageType_MIN; constexpr Status_StorageType Status::StorageType_MAX; constexpr int Status::StorageType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::google::protobuf::EnumDescriptor* Mode_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); - return file_level_enum_descriptors_camera_2fcamera_2eproto[5]; +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* Mode_descriptor() +{ + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); + return file_level_enum_descriptors_camera_2fcamera_2eproto[5]; } PROTOBUF_CONSTINIT const uint32_t Mode_internal_data_[] = { - 196608u, 0u, }; -bool Mode_IsValid(int value) { - return 0 <= value && value <= 2; + 196608u, + 0u, +}; +bool Mode_IsValid(int value) +{ + return 0 <= value && value <= 2; } -const ::google::protobuf::EnumDescriptor* PhotosRange_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); - return file_level_enum_descriptors_camera_2fcamera_2eproto[6]; +const ::google::protobuf::EnumDescriptor* PhotosRange_descriptor() +{ + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); + return file_level_enum_descriptors_camera_2fcamera_2eproto[6]; } PROTOBUF_CONSTINIT const uint32_t PhotosRange_internal_data_[] = { - 131072u, 0u, }; -bool PhotosRange_IsValid(int value) { - return 0 <= value && value <= 1; + 131072u, + 0u, +}; +bool PhotosRange_IsValid(int value) +{ + return 0 <= value && value <= 1; } // =================================================================== class PrepareRequest::_Internal { - public: +public: }; PrepareRequest::PrepareRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.PrepareRequest) -} -PrepareRequest::PrepareRequest( - ::google::protobuf::Arena* arena, - const PrepareRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - PrepareRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.PrepareRequest) -} - - - - - - - - - -::google::protobuf::Metadata PrepareRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[0]); +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.PrepareRequest) +} +PrepareRequest::PrepareRequest(::google::protobuf::Arena* arena, const PrepareRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + PrepareRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.PrepareRequest) +} + +inline void* PrepareRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) PrepareRequest(arena); +} +constexpr auto PrepareRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(PrepareRequest), alignof(PrepareRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull PrepareRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_PrepareRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PrepareRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PrepareRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &PrepareRequest::ByteSizeLong, + &PrepareRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PrepareRequest, _impl_._cached_size_), + false, + }, + &PrepareRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* PrepareRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + PrepareRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::PrepareRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata PrepareRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class PrepareResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(PrepareResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const PrepareResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PrepareResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& PrepareResponse::_Internal::camera_result(const PrepareResponse* msg) { - return *msg->_impl_.camera_result_; -} PrepareResponse::PrepareResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.PrepareResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.PrepareResponse) } inline PROTOBUF_NDEBUG_INLINE PrepareResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -PrepareResponse::PrepareResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const PrepareResponse& from) - : ::google::protobuf::Message(arena) { - PrepareResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.PrepareResponse) + const Impl_& from, + const ::mavsdk::rpc::camera::PrepareResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +PrepareResponse::PrepareResponse(::google::protobuf::Arena* arena, const PrepareResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + PrepareResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.PrepareResponse) } inline PROTOBUF_NDEBUG_INLINE PrepareResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void PrepareResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -PrepareResponse::~PrepareResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.PrepareResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void PrepareResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void PrepareResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.PrepareResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PrepareResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> PrepareResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(PrepareResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PrepareResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(PrepareResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(PrepareResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void PrepareResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +PrepareResponse::~PrepareResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.PrepareResponse) + SharedDtor(*this); +} +inline void PrepareResponse::SharedDtor(MessageLite& self) +{ + PrepareResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +PrepareResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) PrepareResponse(arena); +} +constexpr auto PrepareResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(PrepareResponse), alignof(PrepareResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull PrepareResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_PrepareResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PrepareResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PrepareResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &PrepareResponse::ByteSizeLong, + &PrepareResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PrepareResponse, _impl_._cached_size_), + false, + }, + &PrepareResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* PrepareResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + PrepareResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PrepareResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::PrepareResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(PrepareResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(PrepareResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void PrepareResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.PrepareResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PrepareResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.PrepareResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.PrepareResponse) - return target; -} - -::size_t PrepareResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.PrepareResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData PrepareResponse::_class_data_ = { - PrepareResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* PrepareResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const PrepareResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PrepareResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const PrepareResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.PrepareResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void PrepareResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.PrepareResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.PrepareResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PrepareResponse::ByteSizeLong(const MessageLite& base) +{ + const PrepareResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t PrepareResponse::ByteSizeLong() const +{ + const PrepareResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.PrepareResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void PrepareResponse::CopyFrom(const PrepareResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.PrepareResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void PrepareResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.PrepareResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool PrepareResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* PrepareResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void PrepareResponse::CopyFrom(const PrepareResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.PrepareResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void PrepareResponse::InternalSwap(PrepareResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void PrepareResponse::InternalSwap(PrepareResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata PrepareResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[1]); +::google::protobuf::Metadata PrepareResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TakePhotoRequest::_Internal { - public: +public: }; TakePhotoRequest::TakePhotoRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TakePhotoRequest) -} -TakePhotoRequest::TakePhotoRequest( - ::google::protobuf::Arena* arena, - const TakePhotoRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - TakePhotoRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TakePhotoRequest) -} - - - - - - - - - -::google::protobuf::Metadata TakePhotoRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[2]); +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TakePhotoRequest) +} +TakePhotoRequest::TakePhotoRequest(::google::protobuf::Arena* arena, const TakePhotoRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TakePhotoRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TakePhotoRequest) +} + +inline void* +TakePhotoRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TakePhotoRequest(arena); +} +constexpr auto TakePhotoRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TakePhotoRequest), alignof(TakePhotoRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TakePhotoRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TakePhotoRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TakePhotoRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TakePhotoRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &TakePhotoRequest::ByteSizeLong, + &TakePhotoRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TakePhotoRequest, _impl_._cached_size_), + false, + }, + &TakePhotoRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TakePhotoRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + TakePhotoRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::TakePhotoRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata TakePhotoRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TakePhotoResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TakePhotoResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const TakePhotoResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TakePhotoResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& TakePhotoResponse::_Internal::camera_result(const TakePhotoResponse* msg) { - return *msg->_impl_.camera_result_; -} TakePhotoResponse::TakePhotoResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TakePhotoResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TakePhotoResponse) } inline PROTOBUF_NDEBUG_INLINE TakePhotoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::TakePhotoResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} TakePhotoResponse::TakePhotoResponse( - ::google::protobuf::Arena* arena, - const TakePhotoResponse& from) - : ::google::protobuf::Message(arena) { - TakePhotoResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TakePhotoResponse) + ::google::protobuf::Arena* arena, const TakePhotoResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TakePhotoResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TakePhotoResponse) } inline PROTOBUF_NDEBUG_INLINE TakePhotoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void TakePhotoResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -TakePhotoResponse::~TakePhotoResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TakePhotoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TakePhotoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TakePhotoResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TakePhotoResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TakePhotoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TakePhotoResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TakePhotoResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TakePhotoResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TakePhotoResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(TakePhotoResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void TakePhotoResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +TakePhotoResponse::~TakePhotoResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TakePhotoResponse) + SharedDtor(*this); +} +inline void TakePhotoResponse::SharedDtor(MessageLite& self) +{ + TakePhotoResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +TakePhotoResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TakePhotoResponse(arena); +} +constexpr auto TakePhotoResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TakePhotoResponse), alignof(TakePhotoResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TakePhotoResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TakePhotoResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TakePhotoResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TakePhotoResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &TakePhotoResponse::ByteSizeLong, + &TakePhotoResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TakePhotoResponse, _impl_._cached_size_), + false, + }, + &TakePhotoResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TakePhotoResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + TakePhotoResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(TakePhotoResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::TakePhotoResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(TakePhotoResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(TakePhotoResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void TakePhotoResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TakePhotoResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* TakePhotoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TakePhotoResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TakePhotoResponse) - return target; -} - -::size_t TakePhotoResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TakePhotoResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TakePhotoResponse::_class_data_ = { - TakePhotoResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TakePhotoResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const TakePhotoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* TakePhotoResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const TakePhotoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TakePhotoResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void TakePhotoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TakePhotoResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TakePhotoResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TakePhotoResponse::ByteSizeLong(const MessageLite& base) +{ + const TakePhotoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t TakePhotoResponse::ByteSizeLong() const +{ + const TakePhotoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TakePhotoResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void TakePhotoResponse::CopyFrom(const TakePhotoResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.TakePhotoResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void TakePhotoResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TakePhotoResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool TakePhotoResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* TakePhotoResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void TakePhotoResponse::CopyFrom(const TakePhotoResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.TakePhotoResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void TakePhotoResponse::InternalSwap(TakePhotoResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void TakePhotoResponse::InternalSwap(TakePhotoResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata TakePhotoResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[3]); +::google::protobuf::Metadata TakePhotoResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StartPhotoIntervalRequest::_Internal { - public: +public: }; StartPhotoIntervalRequest::StartPhotoIntervalRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartPhotoIntervalRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartPhotoIntervalRequest) } StartPhotoIntervalRequest::StartPhotoIntervalRequest( - ::google::protobuf::Arena* arena, const StartPhotoIntervalRequest& from) - : StartPhotoIntervalRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const StartPhotoIntervalRequest& from) : + StartPhotoIntervalRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE StartPhotoIntervalRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void StartPhotoIntervalRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.interval_s_ = {}; -} -StartPhotoIntervalRequest::~StartPhotoIntervalRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartPhotoIntervalRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StartPhotoIntervalRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StartPhotoIntervalRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.interval_s_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StartPhotoIntervalRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> StartPhotoIntervalRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_StartPhotoIntervalRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float interval_s = 1; - {::_pbi::TcParser::FastF32S1, - {13, 63, 0, PROTOBUF_FIELD_OFFSET(StartPhotoIntervalRequest, _impl_.interval_s_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // float interval_s = 1; - {PROTOBUF_FIELD_OFFSET(StartPhotoIntervalRequest, _impl_.interval_s_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void StartPhotoIntervalRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.interval_s_ = {}; +} +StartPhotoIntervalRequest::~StartPhotoIntervalRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartPhotoIntervalRequest) + SharedDtor(*this); +} +inline void StartPhotoIntervalRequest::SharedDtor(MessageLite& self) +{ + StartPhotoIntervalRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +StartPhotoIntervalRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) StartPhotoIntervalRequest(arena); +} +constexpr auto StartPhotoIntervalRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(StartPhotoIntervalRequest), alignof(StartPhotoIntervalRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StartPhotoIntervalRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StartPhotoIntervalRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StartPhotoIntervalRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StartPhotoIntervalRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &StartPhotoIntervalRequest::ByteSizeLong, + &StartPhotoIntervalRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StartPhotoIntervalRequest, _impl_._cached_size_), + false, + }, + &StartPhotoIntervalRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StartPhotoIntervalRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + StartPhotoIntervalRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::StartPhotoIntervalRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // float interval_s = 1; + {::_pbi::TcParser::FastF32S1, + {13, 63, 0, PROTOBUF_FIELD_OFFSET(StartPhotoIntervalRequest, _impl_.interval_s_)}}, + }}, + {{65535, 65535}}, + {{ + // float interval_s = 1; + {PROTOBUF_FIELD_OFFSET(StartPhotoIntervalRequest, _impl_.interval_s_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void StartPhotoIntervalRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.interval_s_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* StartPhotoIntervalRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float interval_s = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_interval_s = this->_internal_interval_s(); - ::uint32_t raw_interval_s; - memcpy(&raw_interval_s, &tmp_interval_s, sizeof(tmp_interval_s)); - if (raw_interval_s != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_interval_s(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartPhotoIntervalRequest) - return target; -} - -::size_t StartPhotoIntervalRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // float interval_s = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_interval_s = this->_internal_interval_s(); - ::uint32_t raw_interval_s; - memcpy(&raw_interval_s, &tmp_interval_s, sizeof(tmp_interval_s)); - if (raw_interval_s != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StartPhotoIntervalRequest::_class_data_ = { - StartPhotoIntervalRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StartPhotoIntervalRequest::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const StartPhotoIntervalRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* StartPhotoIntervalRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const StartPhotoIntervalRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void StartPhotoIntervalRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // float interval_s = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_interval_s()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this_._internal_interval_s(), target); + } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_interval_s = from._internal_interval_s(); - ::uint32_t raw_interval_s; - memcpy(&raw_interval_s, &tmp_interval_s, sizeof(tmp_interval_s)); - if (raw_interval_s != 0) { - _this->_internal_set_interval_s(from._internal_interval_s()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartPhotoIntervalRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t StartPhotoIntervalRequest::ByteSizeLong(const MessageLite& base) +{ + const StartPhotoIntervalRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t StartPhotoIntervalRequest::ByteSizeLong() const +{ + const StartPhotoIntervalRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -void StartPhotoIntervalRequest::CopyFrom(const StartPhotoIntervalRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + { + // float interval_s = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_interval_s()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -PROTOBUF_NOINLINE bool StartPhotoIntervalRequest::IsInitialized() const { - return true; +void StartPhotoIntervalRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (::absl::bit_cast<::uint32_t>(from._internal_interval_s()) != 0) { + _this->_impl_.interval_s_ = from._impl_.interval_s_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* StartPhotoIntervalRequest::AccessCachedSize() const { - return &_impl_._cached_size_; +void StartPhotoIntervalRequest::CopyFrom(const StartPhotoIntervalRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void StartPhotoIntervalRequest::InternalSwap(StartPhotoIntervalRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.interval_s_, other->_impl_.interval_s_); + +void StartPhotoIntervalRequest::InternalSwap(StartPhotoIntervalRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.interval_s_, other->_impl_.interval_s_); } -::google::protobuf::Metadata StartPhotoIntervalRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[4]); +::google::protobuf::Metadata StartPhotoIntervalRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StartPhotoIntervalResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StartPhotoIntervalResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StartPhotoIntervalResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StartPhotoIntervalResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& StartPhotoIntervalResponse::_Internal::camera_result(const StartPhotoIntervalResponse* msg) { - return *msg->_impl_.camera_result_; -} StartPhotoIntervalResponse::StartPhotoIntervalResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartPhotoIntervalResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartPhotoIntervalResponse) } inline PROTOBUF_NDEBUG_INLINE StartPhotoIntervalResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::StartPhotoIntervalResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} StartPhotoIntervalResponse::StartPhotoIntervalResponse( - ::google::protobuf::Arena* arena, - const StartPhotoIntervalResponse& from) - : ::google::protobuf::Message(arena) { - StartPhotoIntervalResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartPhotoIntervalResponse) + ::google::protobuf::Arena* arena, const StartPhotoIntervalResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + StartPhotoIntervalResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartPhotoIntervalResponse) } inline PROTOBUF_NDEBUG_INLINE StartPhotoIntervalResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void StartPhotoIntervalResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -StartPhotoIntervalResponse::~StartPhotoIntervalResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartPhotoIntervalResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StartPhotoIntervalResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StartPhotoIntervalResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StartPhotoIntervalResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StartPhotoIntervalResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StartPhotoIntervalResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StartPhotoIntervalResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(StartPhotoIntervalResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(StartPhotoIntervalResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void StartPhotoIntervalResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +StartPhotoIntervalResponse::~StartPhotoIntervalResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartPhotoIntervalResponse) + SharedDtor(*this); +} +inline void StartPhotoIntervalResponse::SharedDtor(MessageLite& self) +{ + StartPhotoIntervalResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +StartPhotoIntervalResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) StartPhotoIntervalResponse(arena); +} +constexpr auto StartPhotoIntervalResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(StartPhotoIntervalResponse), alignof(StartPhotoIntervalResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StartPhotoIntervalResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StartPhotoIntervalResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StartPhotoIntervalResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StartPhotoIntervalResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &StartPhotoIntervalResponse::ByteSizeLong, + &StartPhotoIntervalResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StartPhotoIntervalResponse, _impl_._cached_size_), + false, + }, + &StartPhotoIntervalResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StartPhotoIntervalResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + StartPhotoIntervalResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StartPhotoIntervalResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::StartPhotoIntervalResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(StartPhotoIntervalResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(StartPhotoIntervalResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void StartPhotoIntervalResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* StartPhotoIntervalResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartPhotoIntervalResponse) - return target; -} - -::size_t StartPhotoIntervalResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StartPhotoIntervalResponse::_class_data_ = { - StartPhotoIntervalResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StartPhotoIntervalResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const StartPhotoIntervalResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* StartPhotoIntervalResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const StartPhotoIntervalResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void StartPhotoIntervalResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartPhotoIntervalResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t StartPhotoIntervalResponse::ByteSizeLong(const MessageLite& base) +{ + const StartPhotoIntervalResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t StartPhotoIntervalResponse::ByteSizeLong() const +{ + const StartPhotoIntervalResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void StartPhotoIntervalResponse::CopyFrom(const StartPhotoIntervalResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void StartPhotoIntervalResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool StartPhotoIntervalResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* StartPhotoIntervalResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void StartPhotoIntervalResponse::CopyFrom(const StartPhotoIntervalResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void StartPhotoIntervalResponse::InternalSwap(StartPhotoIntervalResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void StartPhotoIntervalResponse::InternalSwap(StartPhotoIntervalResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata StartPhotoIntervalResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[5]); +::google::protobuf::Metadata StartPhotoIntervalResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StopPhotoIntervalRequest::_Internal { - public: +public: }; StopPhotoIntervalRequest::StopPhotoIntervalRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopPhotoIntervalRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopPhotoIntervalRequest) } StopPhotoIntervalRequest::StopPhotoIntervalRequest( - ::google::protobuf::Arena* arena, - const StopPhotoIntervalRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - StopPhotoIntervalRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopPhotoIntervalRequest) + ::google::protobuf::Arena* arena, const StopPhotoIntervalRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + StopPhotoIntervalRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopPhotoIntervalRequest) +} + +inline void* +StopPhotoIntervalRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) StopPhotoIntervalRequest(arena); +} +constexpr auto StopPhotoIntervalRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(StopPhotoIntervalRequest), alignof(StopPhotoIntervalRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StopPhotoIntervalRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StopPhotoIntervalRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StopPhotoIntervalRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StopPhotoIntervalRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &StopPhotoIntervalRequest::ByteSizeLong, + &StopPhotoIntervalRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StopPhotoIntervalRequest, _impl_._cached_size_), + false, + }, + &StopPhotoIntervalRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StopPhotoIntervalRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + StopPhotoIntervalRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::StopPhotoIntervalRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata StopPhotoIntervalRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } +// =================================================================== +class StopPhotoIntervalResponse::_Internal { +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StopPhotoIntervalResponse, _impl_._has_bits_); +}; - - - - - - - -::google::protobuf::Metadata StopPhotoIntervalRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[6]); -} -// =================================================================== - -class StopPhotoIntervalResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StopPhotoIntervalResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StopPhotoIntervalResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -const ::mavsdk::rpc::camera::CameraResult& StopPhotoIntervalResponse::_Internal::camera_result(const StopPhotoIntervalResponse* msg) { - return *msg->_impl_.camera_result_; -} StopPhotoIntervalResponse::StopPhotoIntervalResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopPhotoIntervalResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopPhotoIntervalResponse) } inline PROTOBUF_NDEBUG_INLINE StopPhotoIntervalResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::StopPhotoIntervalResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} StopPhotoIntervalResponse::StopPhotoIntervalResponse( - ::google::protobuf::Arena* arena, - const StopPhotoIntervalResponse& from) - : ::google::protobuf::Message(arena) { - StopPhotoIntervalResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopPhotoIntervalResponse) + ::google::protobuf::Arena* arena, const StopPhotoIntervalResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + StopPhotoIntervalResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopPhotoIntervalResponse) } inline PROTOBUF_NDEBUG_INLINE StopPhotoIntervalResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void StopPhotoIntervalResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -StopPhotoIntervalResponse::~StopPhotoIntervalResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopPhotoIntervalResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StopPhotoIntervalResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StopPhotoIntervalResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopPhotoIntervalResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StopPhotoIntervalResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StopPhotoIntervalResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StopPhotoIntervalResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(StopPhotoIntervalResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(StopPhotoIntervalResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void StopPhotoIntervalResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +StopPhotoIntervalResponse::~StopPhotoIntervalResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopPhotoIntervalResponse) + SharedDtor(*this); +} +inline void StopPhotoIntervalResponse::SharedDtor(MessageLite& self) +{ + StopPhotoIntervalResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +StopPhotoIntervalResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) StopPhotoIntervalResponse(arena); +} +constexpr auto StopPhotoIntervalResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(StopPhotoIntervalResponse), alignof(StopPhotoIntervalResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StopPhotoIntervalResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StopPhotoIntervalResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StopPhotoIntervalResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StopPhotoIntervalResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &StopPhotoIntervalResponse::ByteSizeLong, + &StopPhotoIntervalResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StopPhotoIntervalResponse, _impl_._cached_size_), + false, + }, + &StopPhotoIntervalResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StopPhotoIntervalResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + StopPhotoIntervalResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StopPhotoIntervalResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::StopPhotoIntervalResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(StopPhotoIntervalResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(StopPhotoIntervalResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void StopPhotoIntervalResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* StopPhotoIntervalResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopPhotoIntervalResponse) - return target; -} - -::size_t StopPhotoIntervalResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StopPhotoIntervalResponse::_class_data_ = { - StopPhotoIntervalResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StopPhotoIntervalResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const StopPhotoIntervalResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* StopPhotoIntervalResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const StopPhotoIntervalResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void StopPhotoIntervalResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopPhotoIntervalResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t StopPhotoIntervalResponse::ByteSizeLong(const MessageLite& base) +{ + const StopPhotoIntervalResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t StopPhotoIntervalResponse::ByteSizeLong() const +{ + const StopPhotoIntervalResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void StopPhotoIntervalResponse::CopyFrom(const StopPhotoIntervalResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void StopPhotoIntervalResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool StopPhotoIntervalResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* StopPhotoIntervalResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void StopPhotoIntervalResponse::CopyFrom(const StopPhotoIntervalResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void StopPhotoIntervalResponse::InternalSwap(StopPhotoIntervalResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void StopPhotoIntervalResponse::InternalSwap(StopPhotoIntervalResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata StopPhotoIntervalResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[7]); +::google::protobuf::Metadata StopPhotoIntervalResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StartVideoRequest::_Internal { - public: +public: }; StartVideoRequest::StartVideoRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoRequest) } StartVideoRequest::StartVideoRequest( - ::google::protobuf::Arena* arena, - const StartVideoRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - StartVideoRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartVideoRequest) -} - - - - - - - - - -::google::protobuf::Metadata StartVideoRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[8]); + ::google::protobuf::Arena* arena, const StartVideoRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + StartVideoRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartVideoRequest) +} + +inline void* +StartVideoRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) StartVideoRequest(arena); +} +constexpr auto StartVideoRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(StartVideoRequest), alignof(StartVideoRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StartVideoRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StartVideoRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StartVideoRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StartVideoRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &StartVideoRequest::ByteSizeLong, + &StartVideoRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StartVideoRequest, _impl_._cached_size_), + false, + }, + &StartVideoRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StartVideoRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + StartVideoRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StartVideoRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata StartVideoRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StartVideoResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StartVideoResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StartVideoResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StartVideoResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& StartVideoResponse::_Internal::camera_result(const StartVideoResponse* msg) { - return *msg->_impl_.camera_result_; -} StartVideoResponse::StartVideoResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoResponse) } inline PROTOBUF_NDEBUG_INLINE StartVideoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::StartVideoResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} StartVideoResponse::StartVideoResponse( - ::google::protobuf::Arena* arena, - const StartVideoResponse& from) - : ::google::protobuf::Message(arena) { - StartVideoResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartVideoResponse) + ::google::protobuf::Arena* arena, const StartVideoResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + StartVideoResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartVideoResponse) } inline PROTOBUF_NDEBUG_INLINE StartVideoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void StartVideoResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -StartVideoResponse::~StartVideoResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartVideoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StartVideoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StartVideoResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartVideoResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StartVideoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StartVideoResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StartVideoResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StartVideoResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(StartVideoResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(StartVideoResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void StartVideoResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +StartVideoResponse::~StartVideoResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartVideoResponse) + SharedDtor(*this); +} +inline void StartVideoResponse::SharedDtor(MessageLite& self) +{ + StartVideoResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +StartVideoResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) StartVideoResponse(arena); +} +constexpr auto StartVideoResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(StartVideoResponse), alignof(StartVideoResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StartVideoResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StartVideoResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StartVideoResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StartVideoResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &StartVideoResponse::ByteSizeLong, + &StartVideoResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StartVideoResponse, _impl_._cached_size_), + false, + }, + &StartVideoResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StartVideoResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + StartVideoResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StartVideoResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StartVideoResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(StartVideoResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(StartVideoResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void StartVideoResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartVideoResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* StartVideoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartVideoResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartVideoResponse) - return target; -} - -::size_t StartVideoResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartVideoResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StartVideoResponse::_class_data_ = { - StartVideoResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StartVideoResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const StartVideoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* StartVideoResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const StartVideoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartVideoResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void StartVideoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartVideoResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartVideoResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t StartVideoResponse::ByteSizeLong(const MessageLite& base) +{ + const StartVideoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t StartVideoResponse::ByteSizeLong() const +{ + const StartVideoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartVideoResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void StartVideoResponse::CopyFrom(const StartVideoResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StartVideoResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void StartVideoResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartVideoResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool StartVideoResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* StartVideoResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void StartVideoResponse::CopyFrom(const StartVideoResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StartVideoResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void StartVideoResponse::InternalSwap(StartVideoResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void StartVideoResponse::InternalSwap(StartVideoResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata StartVideoResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[9]); +::google::protobuf::Metadata StartVideoResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StopVideoRequest::_Internal { - public: +public: }; StopVideoRequest::StopVideoRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoRequest) -} -StopVideoRequest::StopVideoRequest( - ::google::protobuf::Arena* arena, - const StopVideoRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - StopVideoRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopVideoRequest) -} - - - - - - - - - -::google::protobuf::Metadata StopVideoRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[10]); +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoRequest) +} +StopVideoRequest::StopVideoRequest(::google::protobuf::Arena* arena, const StopVideoRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + StopVideoRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopVideoRequest) +} + +inline void* +StopVideoRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) StopVideoRequest(arena); +} +constexpr auto StopVideoRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(StopVideoRequest), alignof(StopVideoRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StopVideoRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StopVideoRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StopVideoRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StopVideoRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &StopVideoRequest::ByteSizeLong, + &StopVideoRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StopVideoRequest, _impl_._cached_size_), + false, + }, + &StopVideoRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StopVideoRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + StopVideoRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StopVideoRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata StopVideoRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StopVideoResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StopVideoResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StopVideoResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StopVideoResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& StopVideoResponse::_Internal::camera_result(const StopVideoResponse* msg) { - return *msg->_impl_.camera_result_; -} StopVideoResponse::StopVideoResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoResponse) } inline PROTOBUF_NDEBUG_INLINE StopVideoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::StopVideoResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} StopVideoResponse::StopVideoResponse( - ::google::protobuf::Arena* arena, - const StopVideoResponse& from) - : ::google::protobuf::Message(arena) { - StopVideoResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopVideoResponse) + ::google::protobuf::Arena* arena, const StopVideoResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + StopVideoResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopVideoResponse) } inline PROTOBUF_NDEBUG_INLINE StopVideoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void StopVideoResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -StopVideoResponse::~StopVideoResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopVideoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StopVideoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StopVideoResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopVideoResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopVideoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StopVideoResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StopVideoResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StopVideoResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(StopVideoResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(StopVideoResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void StopVideoResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +StopVideoResponse::~StopVideoResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopVideoResponse) + SharedDtor(*this); +} +inline void StopVideoResponse::SharedDtor(MessageLite& self) +{ + StopVideoResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +StopVideoResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) StopVideoResponse(arena); +} +constexpr auto StopVideoResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(StopVideoResponse), alignof(StopVideoResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StopVideoResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StopVideoResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StopVideoResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StopVideoResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &StopVideoResponse::ByteSizeLong, + &StopVideoResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StopVideoResponse, _impl_._cached_size_), + false, + }, + &StopVideoResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StopVideoResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + StopVideoResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StopVideoResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StopVideoResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(StopVideoResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(StopVideoResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void StopVideoResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopVideoResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* StopVideoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopVideoResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopVideoResponse) - return target; -} - -::size_t StopVideoResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopVideoResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StopVideoResponse::_class_data_ = { - StopVideoResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StopVideoResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const StopVideoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* StopVideoResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const StopVideoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopVideoResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void StopVideoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopVideoResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopVideoResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t StopVideoResponse::ByteSizeLong(const MessageLite& base) +{ + const StopVideoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t StopVideoResponse::ByteSizeLong() const +{ + const StopVideoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopVideoResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void StopVideoResponse::CopyFrom(const StopVideoResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StopVideoResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void StopVideoResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopVideoResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool StopVideoResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* StopVideoResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void StopVideoResponse::CopyFrom(const StopVideoResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StopVideoResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void StopVideoResponse::InternalSwap(StopVideoResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void StopVideoResponse::InternalSwap(StopVideoResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata StopVideoResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[11]); +::google::protobuf::Metadata StopVideoResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StartVideoStreamingRequest::_Internal { - public: +public: }; StartVideoStreamingRequest::StartVideoStreamingRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoStreamingRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoStreamingRequest) } StartVideoStreamingRequest::StartVideoStreamingRequest( - ::google::protobuf::Arena* arena, const StartVideoStreamingRequest& from) - : StartVideoStreamingRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const StartVideoStreamingRequest& from) : + StartVideoStreamingRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE StartVideoStreamingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void StartVideoStreamingRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.stream_id_ = {}; -} -StartVideoStreamingRequest::~StartVideoStreamingRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartVideoStreamingRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StartVideoStreamingRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StartVideoStreamingRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartVideoStreamingRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.stream_id_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StartVideoStreamingRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> StartVideoStreamingRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_StartVideoStreamingRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int32 stream_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StartVideoStreamingRequest, _impl_.stream_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(StartVideoStreamingRequest, _impl_.stream_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 stream_id = 1; - {PROTOBUF_FIELD_OFFSET(StartVideoStreamingRequest, _impl_.stream_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void StartVideoStreamingRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.stream_id_ = {}; +} +StartVideoStreamingRequest::~StartVideoStreamingRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartVideoStreamingRequest) + SharedDtor(*this); +} +inline void StartVideoStreamingRequest::SharedDtor(MessageLite& self) +{ + StartVideoStreamingRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +StartVideoStreamingRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) StartVideoStreamingRequest(arena); +} +constexpr auto StartVideoStreamingRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(StartVideoStreamingRequest), alignof(StartVideoStreamingRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StartVideoStreamingRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StartVideoStreamingRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StartVideoStreamingRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StartVideoStreamingRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &StartVideoStreamingRequest::ByteSizeLong, + &StartVideoStreamingRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StartVideoStreamingRequest, _impl_._cached_size_), + false, + }, + &StartVideoStreamingRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StartVideoStreamingRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + StartVideoStreamingRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::StartVideoStreamingRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // int32 stream_id = 1; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(StartVideoStreamingRequest, _impl_.stream_id_), + 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(StartVideoStreamingRequest, _impl_.stream_id_)}}, + }}, + {{65535, 65535}}, + {{ + // int32 stream_id = 1; + {PROTOBUF_FIELD_OFFSET(StartVideoStreamingRequest, _impl_.stream_id_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void StartVideoStreamingRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartVideoStreamingRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.stream_id_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* StartVideoStreamingRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartVideoStreamingRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 stream_id = 1; - if (this->_internal_stream_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_stream_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartVideoStreamingRequest) - return target; -} - -::size_t StartVideoStreamingRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartVideoStreamingRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int32 stream_id = 1; - if (this->_internal_stream_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_stream_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StartVideoStreamingRequest::_class_data_ = { - StartVideoStreamingRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StartVideoStreamingRequest::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const StartVideoStreamingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* StartVideoStreamingRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const StartVideoStreamingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartVideoStreamingRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void StartVideoStreamingRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartVideoStreamingRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // int32 stream_id = 1; + if (this_._internal_stream_id() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_stream_id(), target); + } - if (from._internal_stream_id() != 0) { - _this->_internal_set_stream_id(from._internal_stream_id()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartVideoStreamingRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t StartVideoStreamingRequest::ByteSizeLong(const MessageLite& base) +{ + const StartVideoStreamingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t StartVideoStreamingRequest::ByteSizeLong() const +{ + const StartVideoStreamingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartVideoStreamingRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -void StartVideoStreamingRequest::CopyFrom(const StartVideoStreamingRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StartVideoStreamingRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + { + // int32 stream_id = 1; + if (this_._internal_stream_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this_._internal_stream_id()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -PROTOBUF_NOINLINE bool StartVideoStreamingRequest::IsInitialized() const { - return true; +void StartVideoStreamingRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartVideoStreamingRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (from._internal_stream_id() != 0) { + _this->_impl_.stream_id_ = from._impl_.stream_id_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* StartVideoStreamingRequest::AccessCachedSize() const { - return &_impl_._cached_size_; +void StartVideoStreamingRequest::CopyFrom(const StartVideoStreamingRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StartVideoStreamingRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void StartVideoStreamingRequest::InternalSwap(StartVideoStreamingRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.stream_id_, other->_impl_.stream_id_); + +void StartVideoStreamingRequest::InternalSwap(StartVideoStreamingRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.stream_id_, other->_impl_.stream_id_); } -::google::protobuf::Metadata StartVideoStreamingRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[12]); +::google::protobuf::Metadata StartVideoStreamingRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StartVideoStreamingResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StartVideoStreamingResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StartVideoStreamingResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StartVideoStreamingResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& StartVideoStreamingResponse::_Internal::camera_result(const StartVideoStreamingResponse* msg) { - return *msg->_impl_.camera_result_; -} StartVideoStreamingResponse::StartVideoStreamingResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoStreamingResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoStreamingResponse) } inline PROTOBUF_NDEBUG_INLINE StartVideoStreamingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::StartVideoStreamingResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} StartVideoStreamingResponse::StartVideoStreamingResponse( - ::google::protobuf::Arena* arena, - const StartVideoStreamingResponse& from) - : ::google::protobuf::Message(arena) { - StartVideoStreamingResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartVideoStreamingResponse) + ::google::protobuf::Arena* arena, const StartVideoStreamingResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + StartVideoStreamingResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartVideoStreamingResponse) } inline PROTOBUF_NDEBUG_INLINE StartVideoStreamingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void StartVideoStreamingResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -StartVideoStreamingResponse::~StartVideoStreamingResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartVideoStreamingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StartVideoStreamingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StartVideoStreamingResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartVideoStreamingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StartVideoStreamingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StartVideoStreamingResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StartVideoStreamingResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StartVideoStreamingResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(StartVideoStreamingResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(StartVideoStreamingResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void StartVideoStreamingResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +StartVideoStreamingResponse::~StartVideoStreamingResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartVideoStreamingResponse) + SharedDtor(*this); +} +inline void StartVideoStreamingResponse::SharedDtor(MessageLite& self) +{ + StartVideoStreamingResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +StartVideoStreamingResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) StartVideoStreamingResponse(arena); +} +constexpr auto StartVideoStreamingResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(StartVideoStreamingResponse), alignof(StartVideoStreamingResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StartVideoStreamingResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StartVideoStreamingResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StartVideoStreamingResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StartVideoStreamingResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &StartVideoStreamingResponse::ByteSizeLong, + &StartVideoStreamingResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StartVideoStreamingResponse, _impl_._cached_size_), + false, + }, + &StartVideoStreamingResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StartVideoStreamingResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + StartVideoStreamingResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StartVideoStreamingResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::StartVideoStreamingResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(StartVideoStreamingResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(StartVideoStreamingResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void StartVideoStreamingResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartVideoStreamingResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* StartVideoStreamingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartVideoStreamingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartVideoStreamingResponse) - return target; -} - -::size_t StartVideoStreamingResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartVideoStreamingResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StartVideoStreamingResponse::_class_data_ = { - StartVideoStreamingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StartVideoStreamingResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const StartVideoStreamingResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* StartVideoStreamingResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const StartVideoStreamingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartVideoStreamingResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void StartVideoStreamingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartVideoStreamingResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartVideoStreamingResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t StartVideoStreamingResponse::ByteSizeLong(const MessageLite& base) +{ + const StartVideoStreamingResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t StartVideoStreamingResponse::ByteSizeLong() const +{ + const StartVideoStreamingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartVideoStreamingResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void StartVideoStreamingResponse::CopyFrom(const StartVideoStreamingResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StartVideoStreamingResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void StartVideoStreamingResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartVideoStreamingResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool StartVideoStreamingResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* StartVideoStreamingResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void StartVideoStreamingResponse::CopyFrom(const StartVideoStreamingResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StartVideoStreamingResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void StartVideoStreamingResponse::InternalSwap(StartVideoStreamingResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void StartVideoStreamingResponse::InternalSwap(StartVideoStreamingResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata StartVideoStreamingResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[13]); +::google::protobuf::Metadata StartVideoStreamingResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StopVideoStreamingRequest::_Internal { - public: +public: }; StopVideoStreamingRequest::StopVideoStreamingRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoStreamingRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoStreamingRequest) } StopVideoStreamingRequest::StopVideoStreamingRequest( - ::google::protobuf::Arena* arena, const StopVideoStreamingRequest& from) - : StopVideoStreamingRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const StopVideoStreamingRequest& from) : + StopVideoStreamingRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE StopVideoStreamingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void StopVideoStreamingRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.stream_id_ = {}; -} -StopVideoStreamingRequest::~StopVideoStreamingRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopVideoStreamingRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StopVideoStreamingRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StopVideoStreamingRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopVideoStreamingRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.stream_id_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopVideoStreamingRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> StopVideoStreamingRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_StopVideoStreamingRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int32 stream_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StopVideoStreamingRequest, _impl_.stream_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(StopVideoStreamingRequest, _impl_.stream_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 stream_id = 1; - {PROTOBUF_FIELD_OFFSET(StopVideoStreamingRequest, _impl_.stream_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void StopVideoStreamingRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.stream_id_ = {}; +} +StopVideoStreamingRequest::~StopVideoStreamingRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopVideoStreamingRequest) + SharedDtor(*this); +} +inline void StopVideoStreamingRequest::SharedDtor(MessageLite& self) +{ + StopVideoStreamingRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +StopVideoStreamingRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) StopVideoStreamingRequest(arena); +} +constexpr auto StopVideoStreamingRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(StopVideoStreamingRequest), alignof(StopVideoStreamingRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StopVideoStreamingRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StopVideoStreamingRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StopVideoStreamingRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StopVideoStreamingRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &StopVideoStreamingRequest::ByteSizeLong, + &StopVideoStreamingRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StopVideoStreamingRequest, _impl_._cached_size_), + false, + }, + &StopVideoStreamingRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StopVideoStreamingRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + StopVideoStreamingRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::StopVideoStreamingRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // int32 stream_id = 1; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(StopVideoStreamingRequest, _impl_.stream_id_), + 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(StopVideoStreamingRequest, _impl_.stream_id_)}}, + }}, + {{65535, 65535}}, + {{ + // int32 stream_id = 1; + {PROTOBUF_FIELD_OFFSET(StopVideoStreamingRequest, _impl_.stream_id_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void StopVideoStreamingRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopVideoStreamingRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.stream_id_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* StopVideoStreamingRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopVideoStreamingRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 stream_id = 1; - if (this->_internal_stream_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_stream_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopVideoStreamingRequest) - return target; -} - -::size_t StopVideoStreamingRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopVideoStreamingRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int32 stream_id = 1; - if (this->_internal_stream_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_stream_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StopVideoStreamingRequest::_class_data_ = { - StopVideoStreamingRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StopVideoStreamingRequest::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const StopVideoStreamingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* StopVideoStreamingRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const StopVideoStreamingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopVideoStreamingRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // int32 stream_id = 1; + if (this_._internal_stream_id() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_stream_id(), target); + } -void StopVideoStreamingRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopVideoStreamingRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopVideoStreamingRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t StopVideoStreamingRequest::ByteSizeLong(const MessageLite& base) +{ + const StopVideoStreamingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t StopVideoStreamingRequest::ByteSizeLong() const +{ + const StopVideoStreamingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopVideoStreamingRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if (from._internal_stream_id() != 0) { - _this->_internal_set_stream_id(from._internal_stream_id()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // int32 stream_id = 1; + if (this_._internal_stream_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this_._internal_stream_id()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void StopVideoStreamingRequest::CopyFrom(const StopVideoStreamingRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StopVideoStreamingRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void StopVideoStreamingRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopVideoStreamingRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool StopVideoStreamingRequest::IsInitialized() const { - return true; + if (from._internal_stream_id() != 0) { + _this->_impl_.stream_id_ = from._impl_.stream_id_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* StopVideoStreamingRequest::AccessCachedSize() const { - return &_impl_._cached_size_; +void StopVideoStreamingRequest::CopyFrom(const StopVideoStreamingRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StopVideoStreamingRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void StopVideoStreamingRequest::InternalSwap(StopVideoStreamingRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.stream_id_, other->_impl_.stream_id_); + +void StopVideoStreamingRequest::InternalSwap(StopVideoStreamingRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.stream_id_, other->_impl_.stream_id_); } -::google::protobuf::Metadata StopVideoStreamingRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[14]); +::google::protobuf::Metadata StopVideoStreamingRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StopVideoStreamingResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StopVideoStreamingResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StopVideoStreamingResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StopVideoStreamingResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& StopVideoStreamingResponse::_Internal::camera_result(const StopVideoStreamingResponse* msg) { - return *msg->_impl_.camera_result_; -} StopVideoStreamingResponse::StopVideoStreamingResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoStreamingResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoStreamingResponse) } inline PROTOBUF_NDEBUG_INLINE StopVideoStreamingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::StopVideoStreamingResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} StopVideoStreamingResponse::StopVideoStreamingResponse( - ::google::protobuf::Arena* arena, - const StopVideoStreamingResponse& from) - : ::google::protobuf::Message(arena) { - StopVideoStreamingResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopVideoStreamingResponse) + ::google::protobuf::Arena* arena, const StopVideoStreamingResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + StopVideoStreamingResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopVideoStreamingResponse) } inline PROTOBUF_NDEBUG_INLINE StopVideoStreamingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void StopVideoStreamingResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -StopVideoStreamingResponse::~StopVideoStreamingResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopVideoStreamingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StopVideoStreamingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StopVideoStreamingResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopVideoStreamingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopVideoStreamingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StopVideoStreamingResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StopVideoStreamingResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StopVideoStreamingResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(StopVideoStreamingResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(StopVideoStreamingResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void StopVideoStreamingResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +StopVideoStreamingResponse::~StopVideoStreamingResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopVideoStreamingResponse) + SharedDtor(*this); +} +inline void StopVideoStreamingResponse::SharedDtor(MessageLite& self) +{ + StopVideoStreamingResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +StopVideoStreamingResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) StopVideoStreamingResponse(arena); +} +constexpr auto StopVideoStreamingResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(StopVideoStreamingResponse), alignof(StopVideoStreamingResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StopVideoStreamingResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StopVideoStreamingResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StopVideoStreamingResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StopVideoStreamingResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &StopVideoStreamingResponse::ByteSizeLong, + &StopVideoStreamingResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StopVideoStreamingResponse, _impl_._cached_size_), + false, + }, + &StopVideoStreamingResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StopVideoStreamingResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + StopVideoStreamingResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StopVideoStreamingResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::StopVideoStreamingResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(StopVideoStreamingResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(StopVideoStreamingResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void StopVideoStreamingResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopVideoStreamingResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* StopVideoStreamingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopVideoStreamingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopVideoStreamingResponse) - return target; -} - -::size_t StopVideoStreamingResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopVideoStreamingResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StopVideoStreamingResponse::_class_data_ = { - StopVideoStreamingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StopVideoStreamingResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const StopVideoStreamingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* StopVideoStreamingResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const StopVideoStreamingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopVideoStreamingResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void StopVideoStreamingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopVideoStreamingResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopVideoStreamingResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t StopVideoStreamingResponse::ByteSizeLong(const MessageLite& base) +{ + const StopVideoStreamingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t StopVideoStreamingResponse::ByteSizeLong() const +{ + const StopVideoStreamingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopVideoStreamingResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void StopVideoStreamingResponse::CopyFrom(const StopVideoStreamingResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StopVideoStreamingResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void StopVideoStreamingResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopVideoStreamingResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool StopVideoStreamingResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* StopVideoStreamingResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void StopVideoStreamingResponse::CopyFrom(const StopVideoStreamingResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StopVideoStreamingResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void StopVideoStreamingResponse::InternalSwap(StopVideoStreamingResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void StopVideoStreamingResponse::InternalSwap(StopVideoStreamingResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata StopVideoStreamingResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[15]); +::google::protobuf::Metadata StopVideoStreamingResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetModeRequest::_Internal { - public: +public: }; SetModeRequest::SetModeRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetModeRequest) -} -SetModeRequest::SetModeRequest( - ::google::protobuf::Arena* arena, const SetModeRequest& from) - : SetModeRequest(arena) { - MergeFrom(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetModeRequest) +} +SetModeRequest::SetModeRequest(::google::protobuf::Arena* arena, const SetModeRequest& from) : + SetModeRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE SetModeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetModeRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.mode_ = {}; -} -SetModeRequest::~SetModeRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetModeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetModeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetModeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetModeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.mode_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetModeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetModeRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SetModeRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.Mode mode = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SetModeRequest, _impl_.mode_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_.mode_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.Mode mode = 1; - {PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_.mode_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetModeRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.mode_ = {}; +} +SetModeRequest::~SetModeRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetModeRequest) + SharedDtor(*this); +} +inline void SetModeRequest::SharedDtor(MessageLite& self) +{ + SetModeRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* SetModeRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetModeRequest(arena); +} +constexpr auto SetModeRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetModeRequest), alignof(SetModeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetModeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetModeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetModeRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetModeRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetModeRequest::ByteSizeLong, + &SetModeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_._cached_size_), + false, + }, + &SetModeRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetModeRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + SetModeRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SetModeRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.Mode mode = 1; + {::_pbi::TcParser:: + SingularVarintNoZag1<::uint32_t, offsetof(SetModeRequest, _impl_.mode_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_.mode_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.Mode mode = 1; + {PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_.mode_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void SetModeRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetModeRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.mode_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetModeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetModeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.camera.Mode mode = 1; - if (this->_internal_mode() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_mode(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetModeRequest) - return target; -} - -::size_t SetModeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetModeRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.Mode mode = 1; - if (this->_internal_mode() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_mode()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetModeRequest::_class_data_ = { - SetModeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetModeRequest::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetModeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetModeRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetModeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetModeRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SetModeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetModeRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // .mavsdk.rpc.camera.Mode mode = 1; + if (this_._internal_mode() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray(1, this_._internal_mode(), target); + } - if (from._internal_mode() != 0) { - _this->_internal_set_mode(from._internal_mode()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetModeRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetModeRequest::ByteSizeLong(const MessageLite& base) +{ + const SetModeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetModeRequest::ByteSizeLong() const +{ + const SetModeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetModeRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -void SetModeRequest::CopyFrom(const SetModeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.SetModeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + { + // .mavsdk.rpc.camera.Mode mode = 1; + if (this_._internal_mode() != 0) { + total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_mode()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -PROTOBUF_NOINLINE bool SetModeRequest::IsInitialized() const { - return true; +void SetModeRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetModeRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (from._internal_mode() != 0) { + _this->_impl_.mode_ = from._impl_.mode_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* SetModeRequest::AccessCachedSize() const { - return &_impl_._cached_size_; +void SetModeRequest::CopyFrom(const SetModeRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.SetModeRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void SetModeRequest::InternalSwap(SetModeRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.mode_, other->_impl_.mode_); + +void SetModeRequest::InternalSwap(SetModeRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.mode_, other->_impl_.mode_); } -::google::protobuf::Metadata SetModeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[16]); +::google::protobuf::Metadata SetModeRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetModeResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetModeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const SetModeResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetModeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& SetModeResponse::_Internal::camera_result(const SetModeResponse* msg) { - return *msg->_impl_.camera_result_; -} SetModeResponse::SetModeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetModeResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetModeResponse) } inline PROTOBUF_NDEBUG_INLINE SetModeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -SetModeResponse::SetModeResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const SetModeResponse& from) - : ::google::protobuf::Message(arena) { - SetModeResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SetModeResponse) + const Impl_& from, + const ::mavsdk::rpc::camera::SetModeResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +SetModeResponse::SetModeResponse(::google::protobuf::Arena* arena, const SetModeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SetModeResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SetModeResponse) } inline PROTOBUF_NDEBUG_INLINE SetModeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetModeResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -SetModeResponse::~SetModeResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetModeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetModeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetModeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetModeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetModeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetModeResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetModeResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetModeResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetModeResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(SetModeResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetModeResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +SetModeResponse::~SetModeResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetModeResponse) + SharedDtor(*this); +} +inline void SetModeResponse::SharedDtor(MessageLite& self) +{ + SetModeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +SetModeResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetModeResponse(arena); +} +constexpr auto SetModeResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetModeResponse), alignof(SetModeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetModeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetModeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetModeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetModeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetModeResponse::ByteSizeLong, + &SetModeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetModeResponse, _impl_._cached_size_), + false, + }, + &SetModeResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetModeResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + SetModeResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SetModeResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SetModeResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetModeResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(SetModeResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void SetModeResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetModeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetModeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetModeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetModeResponse) - return target; -} - -::size_t SetModeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetModeResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetModeResponse::_class_data_ = { - SetModeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetModeResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetModeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetModeResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetModeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetModeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void SetModeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetModeResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetModeResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetModeResponse::ByteSizeLong(const MessageLite& base) +{ + const SetModeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetModeResponse::ByteSizeLong() const +{ + const SetModeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetModeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void SetModeResponse::CopyFrom(const SetModeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.SetModeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void SetModeResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetModeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool SetModeResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* SetModeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void SetModeResponse::CopyFrom(const SetModeResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.SetModeResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void SetModeResponse::InternalSwap(SetModeResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void SetModeResponse::InternalSwap(SetModeResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata SetModeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[17]); +::google::protobuf::Metadata SetModeResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ListPhotosRequest::_Internal { - public: +public: }; ListPhotosRequest::ListPhotosRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ListPhotosRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ListPhotosRequest) } ListPhotosRequest::ListPhotosRequest( - ::google::protobuf::Arena* arena, const ListPhotosRequest& from) - : ListPhotosRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const ListPhotosRequest& from) : + ListPhotosRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE ListPhotosRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ListPhotosRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.photos_range_ = {}; -} -ListPhotosRequest::~ListPhotosRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ListPhotosRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ListPhotosRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ListPhotosRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ListPhotosRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.photos_range_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListPhotosRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ListPhotosRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ListPhotosRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.PhotosRange photos_range = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ListPhotosRequest, _impl_.photos_range_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ListPhotosRequest, _impl_.photos_range_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.PhotosRange photos_range = 1; - {PROTOBUF_FIELD_OFFSET(ListPhotosRequest, _impl_.photos_range_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ListPhotosRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.photos_range_ = {}; +} +ListPhotosRequest::~ListPhotosRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ListPhotosRequest) + SharedDtor(*this); +} +inline void ListPhotosRequest::SharedDtor(MessageLite& self) +{ + ListPhotosRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +ListPhotosRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ListPhotosRequest(arena); +} +constexpr auto ListPhotosRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ListPhotosRequest), alignof(ListPhotosRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ListPhotosRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ListPhotosRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ListPhotosRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ListPhotosRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ListPhotosRequest::ByteSizeLong, + &ListPhotosRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ListPhotosRequest, _impl_._cached_size_), + false, + }, + &ListPhotosRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ListPhotosRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + ListPhotosRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ListPhotosRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.PhotosRange photos_range = 1; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(ListPhotosRequest, _impl_.photos_range_), + 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(ListPhotosRequest, _impl_.photos_range_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.PhotosRange photos_range = 1; + {PROTOBUF_FIELD_OFFSET(ListPhotosRequest, _impl_.photos_range_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void ListPhotosRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ListPhotosRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.photos_range_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* ListPhotosRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ListPhotosRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.camera.PhotosRange photos_range = 1; - if (this->_internal_photos_range() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_photos_range(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ListPhotosRequest) - return target; -} - -::size_t ListPhotosRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ListPhotosRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.PhotosRange photos_range = 1; - if (this->_internal_photos_range() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_photos_range()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ListPhotosRequest::_class_data_ = { - ListPhotosRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ListPhotosRequest::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ListPhotosRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ListPhotosRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ListPhotosRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ListPhotosRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void ListPhotosRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ListPhotosRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // .mavsdk.rpc.camera.PhotosRange photos_range = 1; + if (this_._internal_photos_range() != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteEnumToArray(1, this_._internal_photos_range(), target); + } - if (from._internal_photos_range() != 0) { - _this->_internal_set_photos_range(from._internal_photos_range()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ListPhotosRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ListPhotosRequest::ByteSizeLong(const MessageLite& base) +{ + const ListPhotosRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ListPhotosRequest::ByteSizeLong() const +{ + const ListPhotosRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ListPhotosRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -void ListPhotosRequest::CopyFrom(const ListPhotosRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ListPhotosRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + { + // .mavsdk.rpc.camera.PhotosRange photos_range = 1; + if (this_._internal_photos_range() != 0) { + total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_photos_range()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -PROTOBUF_NOINLINE bool ListPhotosRequest::IsInitialized() const { - return true; +void ListPhotosRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ListPhotosRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (from._internal_photos_range() != 0) { + _this->_impl_.photos_range_ = from._impl_.photos_range_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* ListPhotosRequest::AccessCachedSize() const { - return &_impl_._cached_size_; +void ListPhotosRequest::CopyFrom(const ListPhotosRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ListPhotosRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void ListPhotosRequest::InternalSwap(ListPhotosRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.photos_range_, other->_impl_.photos_range_); + +void ListPhotosRequest::InternalSwap(ListPhotosRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.photos_range_, other->_impl_.photos_range_); } -::google::protobuf::Metadata ListPhotosRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[18]); +::google::protobuf::Metadata ListPhotosRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ListPhotosResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const ListPhotosResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& ListPhotosResponse::_Internal::camera_result(const ListPhotosResponse* msg) { - return *msg->_impl_.camera_result_; -} ListPhotosResponse::ListPhotosResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ListPhotosResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ListPhotosResponse) } inline PROTOBUF_NDEBUG_INLINE ListPhotosResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - capture_infos_{visibility, arena, from.capture_infos_} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::ListPhotosResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0}, + capture_infos_{visibility, arena, from.capture_infos_} +{} ListPhotosResponse::ListPhotosResponse( - ::google::protobuf::Arena* arena, - const ListPhotosResponse& from) - : ::google::protobuf::Message(arena) { - ListPhotosResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ListPhotosResponse) + ::google::protobuf::Arena* arena, const ListPhotosResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ListPhotosResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ListPhotosResponse) } inline PROTOBUF_NDEBUG_INLINE ListPhotosResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - capture_infos_{visibility, arena} {} - -inline void ListPhotosResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -ListPhotosResponse::~ListPhotosResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ListPhotosResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ListPhotosResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ListPhotosResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ListPhotosResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.capture_infos_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListPhotosResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> ListPhotosResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListPhotosResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; - {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_.capture_infos_)}}, - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; - {PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_.capture_infos_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CaptureInfo>()}, - }}, {{ - }}, -}; - -::uint8_t* ListPhotosResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ListPhotosResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_capture_infos_size()); i < n; i++) { - const auto& repfield = this->_internal_capture_infos().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ListPhotosResponse) - return target; -} - -::size_t ListPhotosResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ListPhotosResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; - total_size += 1UL * this->_internal_capture_infos_size(); - for (const auto& msg : this->_internal_capture_infos()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ListPhotosResponse::_class_data_ = { - ListPhotosResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ListPhotosResponse::GetClassData() const { - return &_class_data_; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0}, + capture_infos_{visibility, arena} +{} + +inline void ListPhotosResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +ListPhotosResponse::~ListPhotosResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ListPhotosResponse) + SharedDtor(*this); +} +inline void ListPhotosResponse::SharedDtor(MessageLite& self) +{ + ListPhotosResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +ListPhotosResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ListPhotosResponse(arena); +} +constexpr auto ListPhotosResponse::InternalNewImpl_() +{ + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_.capture_infos_) + + decltype(ListPhotosResponse::_impl_.capture_infos_)::InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ListPhotosResponse), alignof(ListPhotosResponse), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator( + &ListPhotosResponse::PlacementNew_, + sizeof(ListPhotosResponse), + alignof(ListPhotosResponse)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ListPhotosResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ListPhotosResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ListPhotosResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ListPhotosResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ListPhotosResponse::ByteSizeLong, + &ListPhotosResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_._cached_size_), + false, + }, + &ListPhotosResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ListPhotosResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> + ListPhotosResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ListPhotosResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 1, PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_.capture_infos_)}}, + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; + {PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_.capture_infos_), + -1, + 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CaptureInfo>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void ListPhotosResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ListPhotosResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.capture_infos_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ListPhotosResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ListPhotosResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* ListPhotosResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ListPhotosResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ListPhotosResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ListPhotosResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ListPhotosResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } - _this->_internal_mutable_capture_infos()->MergeFrom( - from._internal_capture_infos()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} + // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; + for (unsigned i = 0, n = static_cast(this_._internal_capture_infos_size()); i < n; + i++) { + const auto& repfield = this_._internal_capture_infos().Get(i); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), target, stream); + } -void ListPhotosResponse::CopyFrom(const ListPhotosResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ListPhotosResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ListPhotosResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ListPhotosResponse::ByteSizeLong(const MessageLite& base) +{ + const ListPhotosResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ListPhotosResponse::ByteSizeLong() const +{ + const ListPhotosResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ListPhotosResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; + { + total_size += 1UL * this_._internal_capture_infos_size(); + for (const auto& msg : this_._internal_capture_infos()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void ListPhotosResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ListPhotosResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + _this->_internal_mutable_capture_infos()->MergeFrom(from._internal_capture_infos()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -PROTOBUF_NOINLINE bool ListPhotosResponse::IsInitialized() const { - return true; +void ListPhotosResponse::CopyFrom(const ListPhotosResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ListPhotosResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -::_pbi::CachedSize* ListPhotosResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListPhotosResponse::InternalSwap(ListPhotosResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.capture_infos_.InternalSwap(&other->_impl_.capture_infos_); - swap(_impl_.camera_result_, other->_impl_.camera_result_); +void ListPhotosResponse::InternalSwap(ListPhotosResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.capture_infos_.InternalSwap(&other->_impl_.capture_infos_); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata ListPhotosResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[19]); +::google::protobuf::Metadata ListPhotosResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeInformationRequest::_Internal { - public: +public: }; SubscribeInformationRequest::SubscribeInformationRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeInformationRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeInformationRequest) } SubscribeInformationRequest::SubscribeInformationRequest( - ::google::protobuf::Arena* arena, - const SubscribeInformationRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeInformationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeInformationRequest) -} - - - - - - - - - -::google::protobuf::Metadata SubscribeInformationRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[20]); + ::google::protobuf::Arena* arena, const SubscribeInformationRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeInformationRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeInformationRequest) +} + +inline void* +SubscribeInformationRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeInformationRequest(arena); +} +constexpr auto SubscribeInformationRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeInformationRequest), alignof(SubscribeInformationRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeInformationRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeInformationRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeInformationRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeInformationRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &SubscribeInformationRequest::ByteSizeLong, + &SubscribeInformationRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeInformationRequest, _impl_._cached_size_), + false, + }, + &SubscribeInformationRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeInformationRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeInformationRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::SubscribeInformationRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeInformationRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class InformationResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(InformationResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::Information& information(const InformationResponse* msg); - static void set_has_information(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(InformationResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::Information& InformationResponse::_Internal::information(const InformationResponse* msg) { - return *msg->_impl_.information_; -} InformationResponse::InformationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.InformationResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.InformationResponse) } inline PROTOBUF_NDEBUG_INLINE InformationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::InformationResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} InformationResponse::InformationResponse( - ::google::protobuf::Arena* arena, - const InformationResponse& from) - : ::google::protobuf::Message(arena) { - InformationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.information_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::Information>(arena, *from._impl_.information_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.InformationResponse) + ::google::protobuf::Arena* arena, const InformationResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + InformationResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.information_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Information>( + arena, *from._impl_.information_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.InformationResponse) } inline PROTOBUF_NDEBUG_INLINE InformationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void InformationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.information_ = {}; -} -InformationResponse::~InformationResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.InformationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void InformationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.information_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void InformationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.InformationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.information_ != nullptr); - _impl_.information_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* InformationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> InformationResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(InformationResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_InformationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.Information information = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(InformationResponse, _impl_.information_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.Information information = 1; - {PROTOBUF_FIELD_OFFSET(InformationResponse, _impl_.information_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Information>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void InformationResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.information_ = {}; +} +InformationResponse::~InformationResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.InformationResponse) + SharedDtor(*this); +} +inline void InformationResponse::SharedDtor(MessageLite& self) +{ + InformationResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.information_; + this_._impl_.~Impl_(); +} + +inline void* +InformationResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) InformationResponse(arena); +} +constexpr auto InformationResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(InformationResponse), alignof(InformationResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull InformationResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_InformationResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &InformationResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &InformationResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &InformationResponse::ByteSizeLong, + &InformationResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(InformationResponse, _impl_._cached_size_), + false, + }, + &InformationResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* InformationResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + InformationResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(InformationResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::InformationResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.Information information = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(InformationResponse, _impl_.information_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.Information information = 1; + {PROTOBUF_FIELD_OFFSET(InformationResponse, _impl_.information_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Information>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void InformationResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.InformationResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.information_ != nullptr); + _impl_.information_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* InformationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.InformationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.Information information = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::information(this), - _Internal::information(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.InformationResponse) - return target; -} - -::size_t InformationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.InformationResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.Information information = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.information_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData InformationResponse::_class_data_ = { - InformationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* InformationResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const InformationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* InformationResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const InformationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.InformationResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.Information information = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.information_, + this_._impl_.information_->GetCachedSize(), + target, + stream); + } -void InformationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.InformationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.InformationResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t InformationResponse::ByteSizeLong(const MessageLite& base) +{ + const InformationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t InformationResponse::ByteSizeLong() const +{ + const InformationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.InformationResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_information()->::mavsdk::rpc::camera::Information::MergeFrom( - from._internal_information()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.Information information = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.information_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void InformationResponse::CopyFrom(const InformationResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.InformationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void InformationResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.InformationResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool InformationResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.information_ != nullptr); + if (_this->_impl_.information_ == nullptr) { + _this->_impl_.information_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Information>( + arena, *from._impl_.information_); + } else { + _this->_impl_.information_->MergeFrom(*from._impl_.information_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* InformationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void InformationResponse::CopyFrom(const InformationResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.InformationResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void InformationResponse::InternalSwap(InformationResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.information_, other->_impl_.information_); + +void InformationResponse::InternalSwap(InformationResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.information_, other->_impl_.information_); } -::google::protobuf::Metadata InformationResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[21]); +::google::protobuf::Metadata InformationResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeModeRequest::_Internal { - public: +public: }; SubscribeModeRequest::SubscribeModeRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeModeRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeModeRequest) } SubscribeModeRequest::SubscribeModeRequest( - ::google::protobuf::Arena* arena, - const SubscribeModeRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeModeRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeModeRequest) -} - - - - - - - - - -::google::protobuf::Metadata SubscribeModeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[22]); + ::google::protobuf::Arena* arena, const SubscribeModeRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeModeRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeModeRequest) +} + +inline void* +SubscribeModeRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeModeRequest(arena); +} +constexpr auto SubscribeModeRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeModeRequest), alignof(SubscribeModeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeModeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeModeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeModeRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeModeRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &SubscribeModeRequest::ByteSizeLong, + &SubscribeModeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeModeRequest, _impl_._cached_size_), + false, + }, + &SubscribeModeRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeModeRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeModeRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::SubscribeModeRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeModeRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ModeResponse::_Internal { - public: +public: }; ModeResponse::ModeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ModeResponse) -} -ModeResponse::ModeResponse( - ::google::protobuf::Arena* arena, const ModeResponse& from) - : ModeResponse(arena) { - MergeFrom(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ModeResponse) +} +ModeResponse::ModeResponse(::google::protobuf::Arena* arena, const ModeResponse& from) : + ModeResponse(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE ModeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ModeResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.mode_ = {}; -} -ModeResponse::~ModeResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ModeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ModeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ModeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ModeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.mode_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ModeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ModeResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ModeResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.Mode mode = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ModeResponse, _impl_.mode_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ModeResponse, _impl_.mode_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.Mode mode = 1; - {PROTOBUF_FIELD_OFFSET(ModeResponse, _impl_.mode_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ModeResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.mode_ = {}; +} +ModeResponse::~ModeResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ModeResponse) + SharedDtor(*this); +} +inline void ModeResponse::SharedDtor(MessageLite& self) +{ + ModeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* ModeResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ModeResponse(arena); +} +constexpr auto ModeResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ModeResponse), alignof(ModeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ModeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ModeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ModeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ModeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ModeResponse::ByteSizeLong, + &ModeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ModeResponse, _impl_._cached_size_), + false, + }, + &ModeResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ModeResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + ModeResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ModeResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.Mode mode = 1; + {::_pbi::TcParser:: + SingularVarintNoZag1<::uint32_t, offsetof(ModeResponse, _impl_.mode_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(ModeResponse, _impl_.mode_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.Mode mode = 1; + {PROTOBUF_FIELD_OFFSET(ModeResponse, _impl_.mode_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void ModeResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ModeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.mode_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* ModeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ModeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.camera.Mode mode = 1; - if (this->_internal_mode() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_mode(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ModeResponse) - return target; -} - -::size_t ModeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ModeResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.Mode mode = 1; - if (this->_internal_mode() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_mode()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ModeResponse::_class_data_ = { - ModeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ModeResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ModeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ModeResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ModeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ModeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void ModeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ModeResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // .mavsdk.rpc.camera.Mode mode = 1; + if (this_._internal_mode() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray(1, this_._internal_mode(), target); + } - if (from._internal_mode() != 0) { - _this->_internal_set_mode(from._internal_mode()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ModeResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ModeResponse::ByteSizeLong(const MessageLite& base) +{ + const ModeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ModeResponse::ByteSizeLong() const +{ + const ModeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ModeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -void ModeResponse::CopyFrom(const ModeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ModeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + { + // .mavsdk.rpc.camera.Mode mode = 1; + if (this_._internal_mode() != 0) { + total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_mode()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -PROTOBUF_NOINLINE bool ModeResponse::IsInitialized() const { - return true; +void ModeResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ModeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (from._internal_mode() != 0) { + _this->_impl_.mode_ = from._impl_.mode_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* ModeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void ModeResponse::CopyFrom(const ModeResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ModeResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void ModeResponse::InternalSwap(ModeResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.mode_, other->_impl_.mode_); + +void ModeResponse::InternalSwap(ModeResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.mode_, other->_impl_.mode_); } -::google::protobuf::Metadata ModeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[23]); +::google::protobuf::Metadata ModeResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeVideoStreamInfoRequest::_Internal { - public: +public: }; SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeVideoStreamInfoRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeVideoStreamInfoRequest) } SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest( - ::google::protobuf::Arena* arena, - const SubscribeVideoStreamInfoRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeVideoStreamInfoRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeVideoStreamInfoRequest) -} - - - - - - - - - -::google::protobuf::Metadata SubscribeVideoStreamInfoRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[24]); + ::google::protobuf::Arena* arena, const SubscribeVideoStreamInfoRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeVideoStreamInfoRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeVideoStreamInfoRequest) +} + +inline void* SubscribeVideoStreamInfoRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeVideoStreamInfoRequest(arena); +} +constexpr auto SubscribeVideoStreamInfoRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeVideoStreamInfoRequest), alignof(SubscribeVideoStreamInfoRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeVideoStreamInfoRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeVideoStreamInfoRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeVideoStreamInfoRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeVideoStreamInfoRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl< + SubscribeVideoStreamInfoRequest>(), + &SubscribeVideoStreamInfoRequest::ByteSizeLong, + &SubscribeVideoStreamInfoRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeVideoStreamInfoRequest, _impl_._cached_size_), + false, + }, + &SubscribeVideoStreamInfoRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeVideoStreamInfoRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeVideoStreamInfoRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeVideoStreamInfoRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class VideoStreamInfoResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(VideoStreamInfoResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::VideoStreamInfo& video_stream_info(const VideoStreamInfoResponse* msg); - static void set_has_video_stream_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(VideoStreamInfoResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::VideoStreamInfo& VideoStreamInfoResponse::_Internal::video_stream_info(const VideoStreamInfoResponse* msg) { - return *msg->_impl_.video_stream_info_; -} VideoStreamInfoResponse::VideoStreamInfoResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.VideoStreamInfoResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.VideoStreamInfoResponse) } inline PROTOBUF_NDEBUG_INLINE VideoStreamInfoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::VideoStreamInfoResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} VideoStreamInfoResponse::VideoStreamInfoResponse( - ::google::protobuf::Arena* arena, - const VideoStreamInfoResponse& from) - : ::google::protobuf::Message(arena) { - VideoStreamInfoResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.video_stream_info_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::VideoStreamInfo>(arena, *from._impl_.video_stream_info_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.VideoStreamInfoResponse) + ::google::protobuf::Arena* arena, const VideoStreamInfoResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + VideoStreamInfoResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.video_stream_info_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::VideoStreamInfo>( + arena, *from._impl_.video_stream_info_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.VideoStreamInfoResponse) } inline PROTOBUF_NDEBUG_INLINE VideoStreamInfoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void VideoStreamInfoResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.video_stream_info_ = {}; -} -VideoStreamInfoResponse::~VideoStreamInfoResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.VideoStreamInfoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void VideoStreamInfoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.video_stream_info_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void VideoStreamInfoResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.VideoStreamInfoResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.video_stream_info_ != nullptr); - _impl_.video_stream_info_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* VideoStreamInfoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> VideoStreamInfoResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(VideoStreamInfoResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_VideoStreamInfoResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(VideoStreamInfoResponse, _impl_.video_stream_info_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; - {PROTOBUF_FIELD_OFFSET(VideoStreamInfoResponse, _impl_.video_stream_info_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::VideoStreamInfo>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void VideoStreamInfoResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.video_stream_info_ = {}; +} +VideoStreamInfoResponse::~VideoStreamInfoResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.VideoStreamInfoResponse) + SharedDtor(*this); +} +inline void VideoStreamInfoResponse::SharedDtor(MessageLite& self) +{ + VideoStreamInfoResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.video_stream_info_; + this_._impl_.~Impl_(); +} + +inline void* +VideoStreamInfoResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) VideoStreamInfoResponse(arena); +} +constexpr auto VideoStreamInfoResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(VideoStreamInfoResponse), alignof(VideoStreamInfoResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull VideoStreamInfoResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_VideoStreamInfoResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &VideoStreamInfoResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &VideoStreamInfoResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &VideoStreamInfoResponse::ByteSizeLong, + &VideoStreamInfoResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(VideoStreamInfoResponse, _impl_._cached_size_), + false, + }, + &VideoStreamInfoResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* VideoStreamInfoResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + VideoStreamInfoResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(VideoStreamInfoResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::VideoStreamInfoResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(VideoStreamInfoResponse, _impl_.video_stream_info_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; + {PROTOBUF_FIELD_OFFSET(VideoStreamInfoResponse, _impl_.video_stream_info_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::VideoStreamInfo>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void VideoStreamInfoResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.VideoStreamInfoResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.video_stream_info_ != nullptr); + _impl_.video_stream_info_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* VideoStreamInfoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.VideoStreamInfoResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::video_stream_info(this), - _Internal::video_stream_info(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.VideoStreamInfoResponse) - return target; -} - -::size_t VideoStreamInfoResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.VideoStreamInfoResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.video_stream_info_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData VideoStreamInfoResponse::_class_data_ = { - VideoStreamInfoResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* VideoStreamInfoResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const VideoStreamInfoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* VideoStreamInfoResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const VideoStreamInfoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.VideoStreamInfoResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.video_stream_info_, + this_._impl_.video_stream_info_->GetCachedSize(), + target, + stream); + } -void VideoStreamInfoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.VideoStreamInfoResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.VideoStreamInfoResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t VideoStreamInfoResponse::ByteSizeLong(const MessageLite& base) +{ + const VideoStreamInfoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t VideoStreamInfoResponse::ByteSizeLong() const +{ + const VideoStreamInfoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.VideoStreamInfoResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_video_stream_info()->::mavsdk::rpc::camera::VideoStreamInfo::MergeFrom( - from._internal_video_stream_info()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.video_stream_info_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void VideoStreamInfoResponse::CopyFrom(const VideoStreamInfoResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.VideoStreamInfoResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void VideoStreamInfoResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.VideoStreamInfoResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool VideoStreamInfoResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.video_stream_info_ != nullptr); + if (_this->_impl_.video_stream_info_ == nullptr) { + _this->_impl_.video_stream_info_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::VideoStreamInfo>( + arena, *from._impl_.video_stream_info_); + } else { + _this->_impl_.video_stream_info_->MergeFrom(*from._impl_.video_stream_info_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* VideoStreamInfoResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void VideoStreamInfoResponse::CopyFrom(const VideoStreamInfoResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.VideoStreamInfoResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void VideoStreamInfoResponse::InternalSwap(VideoStreamInfoResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.video_stream_info_, other->_impl_.video_stream_info_); + +void VideoStreamInfoResponse::InternalSwap(VideoStreamInfoResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.video_stream_info_, other->_impl_.video_stream_info_); } -::google::protobuf::Metadata VideoStreamInfoResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[25]); +::google::protobuf::Metadata VideoStreamInfoResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeCaptureInfoRequest::_Internal { - public: +public: }; SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeCaptureInfoRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeCaptureInfoRequest) } SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest( - ::google::protobuf::Arena* arena, - const SubscribeCaptureInfoRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeCaptureInfoRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeCaptureInfoRequest) -} - - - - - - - - - -::google::protobuf::Metadata SubscribeCaptureInfoRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[26]); + ::google::protobuf::Arena* arena, const SubscribeCaptureInfoRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeCaptureInfoRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeCaptureInfoRequest) +} + +inline void* +SubscribeCaptureInfoRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeCaptureInfoRequest(arena); +} +constexpr auto SubscribeCaptureInfoRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeCaptureInfoRequest), alignof(SubscribeCaptureInfoRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeCaptureInfoRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeCaptureInfoRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeCaptureInfoRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeCaptureInfoRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &SubscribeCaptureInfoRequest::ByteSizeLong, + &SubscribeCaptureInfoRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeCaptureInfoRequest, _impl_._cached_size_), + false, + }, + &SubscribeCaptureInfoRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeCaptureInfoRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeCaptureInfoRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::SubscribeCaptureInfoRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeCaptureInfoRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CaptureInfoResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CaptureInfoResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CaptureInfo& capture_info(const CaptureInfoResponse* msg); - static void set_has_capture_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CaptureInfoResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CaptureInfo& CaptureInfoResponse::_Internal::capture_info(const CaptureInfoResponse* msg) { - return *msg->_impl_.capture_info_; -} CaptureInfoResponse::CaptureInfoResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CaptureInfoResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CaptureInfoResponse) } inline PROTOBUF_NDEBUG_INLINE CaptureInfoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::CaptureInfoResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} CaptureInfoResponse::CaptureInfoResponse( - ::google::protobuf::Arena* arena, - const CaptureInfoResponse& from) - : ::google::protobuf::Message(arena) { - CaptureInfoResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.capture_info_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CaptureInfo>(arena, *from._impl_.capture_info_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CaptureInfoResponse) + ::google::protobuf::Arena* arena, const CaptureInfoResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + CaptureInfoResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.capture_info_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CaptureInfo>( + arena, *from._impl_.capture_info_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CaptureInfoResponse) } inline PROTOBUF_NDEBUG_INLINE CaptureInfoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void CaptureInfoResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.capture_info_ = {}; -} -CaptureInfoResponse::~CaptureInfoResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CaptureInfoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CaptureInfoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.capture_info_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CaptureInfoResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CaptureInfoResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.capture_info_ != nullptr); - _impl_.capture_info_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CaptureInfoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CaptureInfoResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CaptureInfoResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CaptureInfoResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CaptureInfoResponse, _impl_.capture_info_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; - {PROTOBUF_FIELD_OFFSET(CaptureInfoResponse, _impl_.capture_info_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CaptureInfo>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void CaptureInfoResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.capture_info_ = {}; +} +CaptureInfoResponse::~CaptureInfoResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CaptureInfoResponse) + SharedDtor(*this); +} +inline void CaptureInfoResponse::SharedDtor(MessageLite& self) +{ + CaptureInfoResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.capture_info_; + this_._impl_.~Impl_(); +} + +inline void* +CaptureInfoResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) CaptureInfoResponse(arena); +} +constexpr auto CaptureInfoResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(CaptureInfoResponse), alignof(CaptureInfoResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CaptureInfoResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CaptureInfoResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CaptureInfoResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CaptureInfoResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &CaptureInfoResponse::ByteSizeLong, + &CaptureInfoResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CaptureInfoResponse, _impl_._cached_size_), + false, + }, + &CaptureInfoResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CaptureInfoResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + CaptureInfoResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CaptureInfoResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CaptureInfoResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(CaptureInfoResponse, _impl_.capture_info_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; + {PROTOBUF_FIELD_OFFSET(CaptureInfoResponse, _impl_.capture_info_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CaptureInfo>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void CaptureInfoResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CaptureInfoResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.capture_info_ != nullptr); + _impl_.capture_info_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* CaptureInfoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CaptureInfoResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::capture_info(this), - _Internal::capture_info(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CaptureInfoResponse) - return target; -} - -::size_t CaptureInfoResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CaptureInfoResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.capture_info_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CaptureInfoResponse::_class_data_ = { - CaptureInfoResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CaptureInfoResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const CaptureInfoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* CaptureInfoResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const CaptureInfoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CaptureInfoResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.capture_info_, + this_._impl_.capture_info_->GetCachedSize(), + target, + stream); + } -void CaptureInfoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CaptureInfoResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CaptureInfoResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CaptureInfoResponse::ByteSizeLong(const MessageLite& base) +{ + const CaptureInfoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CaptureInfoResponse::ByteSizeLong() const +{ + const CaptureInfoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CaptureInfoResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_capture_info()->::mavsdk::rpc::camera::CaptureInfo::MergeFrom( - from._internal_capture_info()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.capture_info_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void CaptureInfoResponse::CopyFrom(const CaptureInfoResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.CaptureInfoResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void CaptureInfoResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CaptureInfoResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool CaptureInfoResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.capture_info_ != nullptr); + if (_this->_impl_.capture_info_ == nullptr) { + _this->_impl_.capture_info_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CaptureInfo>( + arena, *from._impl_.capture_info_); + } else { + _this->_impl_.capture_info_->MergeFrom(*from._impl_.capture_info_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* CaptureInfoResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void CaptureInfoResponse::CopyFrom(const CaptureInfoResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.CaptureInfoResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void CaptureInfoResponse::InternalSwap(CaptureInfoResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.capture_info_, other->_impl_.capture_info_); + +void CaptureInfoResponse::InternalSwap(CaptureInfoResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.capture_info_, other->_impl_.capture_info_); } -::google::protobuf::Metadata CaptureInfoResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[27]); +::google::protobuf::Metadata CaptureInfoResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeStatusRequest::_Internal { - public: +public: }; SubscribeStatusRequest::SubscribeStatusRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeStatusRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeStatusRequest) } SubscribeStatusRequest::SubscribeStatusRequest( - ::google::protobuf::Arena* arena, - const SubscribeStatusRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeStatusRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeStatusRequest) -} - - - - - - - - - -::google::protobuf::Metadata SubscribeStatusRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[28]); + ::google::protobuf::Arena* arena, const SubscribeStatusRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeStatusRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeStatusRequest) +} + +inline void* +SubscribeStatusRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeStatusRequest(arena); +} +constexpr auto SubscribeStatusRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeStatusRequest), alignof(SubscribeStatusRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeStatusRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeStatusRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeStatusRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeStatusRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &SubscribeStatusRequest::ByteSizeLong, + &SubscribeStatusRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeStatusRequest, _impl_._cached_size_), + false, + }, + &SubscribeStatusRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeStatusRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeStatusRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::SubscribeStatusRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeStatusRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StatusResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::Status& camera_status(const StatusResponse* msg); - static void set_has_camera_status(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::Status& StatusResponse::_Internal::camera_status(const StatusResponse* msg) { - return *msg->_impl_.camera_status_; -} StatusResponse::StatusResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StatusResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StatusResponse) } inline PROTOBUF_NDEBUG_INLINE StatusResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -StatusResponse::StatusResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const StatusResponse& from) - : ::google::protobuf::Message(arena) { - StatusResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_status_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::Status>(arena, *from._impl_.camera_status_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StatusResponse) + const Impl_& from, + const ::mavsdk::rpc::camera::StatusResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +StatusResponse::StatusResponse(::google::protobuf::Arena* arena, const StatusResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + StatusResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_status_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Status>( + arena, *from._impl_.camera_status_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StatusResponse) } inline PROTOBUF_NDEBUG_INLINE StatusResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void StatusResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_status_ = {}; -} -StatusResponse::~StatusResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StatusResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StatusResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_status_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StatusResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StatusResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_status_ != nullptr); - _impl_.camera_status_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StatusResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StatusResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StatusResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.Status camera_status = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_.camera_status_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.Status camera_status = 1; - {PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_.camera_status_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Status>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void StatusResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_status_ = {}; +} +StatusResponse::~StatusResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StatusResponse) + SharedDtor(*this); +} +inline void StatusResponse::SharedDtor(MessageLite& self) +{ + StatusResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_status_; + this_._impl_.~Impl_(); +} + +inline void* StatusResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) StatusResponse(arena); +} +constexpr auto StatusResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(StatusResponse), alignof(StatusResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StatusResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StatusResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StatusResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StatusResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &StatusResponse::ByteSizeLong, + &StatusResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_._cached_size_), + false, + }, + &StatusResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StatusResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + StatusResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StatusResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.Status camera_status = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_.camera_status_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.Status camera_status = 1; + {PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_.camera_status_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Status>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void StatusResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StatusResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_status_ != nullptr); + _impl_.camera_status_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* StatusResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StatusResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.Status camera_status = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_status(this), - _Internal::camera_status(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StatusResponse) - return target; -} - -::size_t StatusResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StatusResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.Status camera_status = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_status_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StatusResponse::_class_data_ = { - StatusResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StatusResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const StatusResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* StatusResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const StatusResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StatusResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.Status camera_status = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_status_, + this_._impl_.camera_status_->GetCachedSize(), + target, + stream); + } -void StatusResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StatusResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StatusResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t StatusResponse::ByteSizeLong(const MessageLite& base) +{ + const StatusResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t StatusResponse::ByteSizeLong() const +{ + const StatusResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StatusResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_status()->::mavsdk::rpc::camera::Status::MergeFrom( - from._internal_camera_status()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.Status camera_status = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_status_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void StatusResponse::CopyFrom(const StatusResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StatusResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void StatusResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StatusResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool StatusResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_status_ != nullptr); + if (_this->_impl_.camera_status_ == nullptr) { + _this->_impl_.camera_status_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Status>( + arena, *from._impl_.camera_status_); + } else { + _this->_impl_.camera_status_->MergeFrom(*from._impl_.camera_status_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* StatusResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void StatusResponse::CopyFrom(const StatusResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.StatusResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void StatusResponse::InternalSwap(StatusResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_status_, other->_impl_.camera_status_); + +void StatusResponse::InternalSwap(StatusResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_status_, other->_impl_.camera_status_); } -::google::protobuf::Metadata StatusResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[29]); +::google::protobuf::Metadata StatusResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribeCurrentSettingsRequest::_Internal { - public: +public: }; SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeCurrentSettingsRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeCurrentSettingsRequest) } SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest( - ::google::protobuf::Arena* arena, - const SubscribeCurrentSettingsRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribeCurrentSettingsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeCurrentSettingsRequest) -} - - - - - - - - - -::google::protobuf::Metadata SubscribeCurrentSettingsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[30]); + ::google::protobuf::Arena* arena, const SubscribeCurrentSettingsRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribeCurrentSettingsRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeCurrentSettingsRequest) +} + +inline void* SubscribeCurrentSettingsRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribeCurrentSettingsRequest(arena); +} +constexpr auto SubscribeCurrentSettingsRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribeCurrentSettingsRequest), alignof(SubscribeCurrentSettingsRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeCurrentSettingsRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeCurrentSettingsRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeCurrentSettingsRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeCurrentSettingsRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl< + SubscribeCurrentSettingsRequest>(), + &SubscribeCurrentSettingsRequest::ByteSizeLong, + &SubscribeCurrentSettingsRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeCurrentSettingsRequest, _impl_._cached_size_), + false, + }, + &SubscribeCurrentSettingsRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeCurrentSettingsRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribeCurrentSettingsRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribeCurrentSettingsRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CurrentSettingsResponse::_Internal { - public: +public: }; CurrentSettingsResponse::CurrentSettingsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CurrentSettingsResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CurrentSettingsResponse) } inline PROTOBUF_NDEBUG_INLINE CurrentSettingsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : current_settings_{visibility, arena, from.current_settings_}, - _cached_size_{0} {} - -CurrentSettingsResponse::CurrentSettingsResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const CurrentSettingsResponse& from) - : ::google::protobuf::Message(arena) { - CurrentSettingsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + const Impl_& from, + const ::mavsdk::rpc::camera::CurrentSettingsResponse& from_msg) : + current_settings_{visibility, arena, from.current_settings_}, + _cached_size_{0} +{} - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CurrentSettingsResponse) +CurrentSettingsResponse::CurrentSettingsResponse( + ::google::protobuf::Arena* arena, const CurrentSettingsResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + CurrentSettingsResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CurrentSettingsResponse) } inline PROTOBUF_NDEBUG_INLINE CurrentSettingsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : current_settings_{visibility, arena}, - _cached_size_{0} {} - -inline void CurrentSettingsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -CurrentSettingsResponse::~CurrentSettingsResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CurrentSettingsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CurrentSettingsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CurrentSettingsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CurrentSettingsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.current_settings_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CurrentSettingsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CurrentSettingsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CurrentSettingsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .mavsdk.rpc.camera.Setting current_settings = 1; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CurrentSettingsResponse, _impl_.current_settings_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + current_settings_{visibility, arena}, + _cached_size_{0} +{} + +inline void CurrentSettingsResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); +} +CurrentSettingsResponse::~CurrentSettingsResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CurrentSettingsResponse) + SharedDtor(*this); +} +inline void CurrentSettingsResponse::SharedDtor(MessageLite& self) +{ + CurrentSettingsResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +CurrentSettingsResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) CurrentSettingsResponse(arena); +} +constexpr auto CurrentSettingsResponse::InternalNewImpl_() +{ + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(CurrentSettingsResponse, _impl_.current_settings_) + + decltype(CurrentSettingsResponse::_impl_.current_settings_)::InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(CurrentSettingsResponse), alignof(CurrentSettingsResponse), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator( + &CurrentSettingsResponse::PlacementNew_, + sizeof(CurrentSettingsResponse), + alignof(CurrentSettingsResponse)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CurrentSettingsResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CurrentSettingsResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CurrentSettingsResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CurrentSettingsResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &CurrentSettingsResponse::ByteSizeLong, + &CurrentSettingsResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CurrentSettingsResponse, _impl_._cached_size_), + false, + }, + &CurrentSettingsResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CurrentSettingsResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + CurrentSettingsResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::CurrentSettingsResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // repeated .mavsdk.rpc.camera.Setting current_settings = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(CurrentSettingsResponse, _impl_.current_settings_)}}, + }}, + {{65535, 65535}}, + {{ + // repeated .mavsdk.rpc.camera.Setting current_settings = 1; + {PROTOBUF_FIELD_OFFSET(CurrentSettingsResponse, _impl_.current_settings_), + 0, + 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Setting>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void CurrentSettingsResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CurrentSettingsResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.current_settings_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* CurrentSettingsResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const CurrentSettingsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* CurrentSettingsResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const CurrentSettingsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CurrentSettingsResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // repeated .mavsdk.rpc.camera.Setting current_settings = 1; - {PROTOBUF_FIELD_OFFSET(CurrentSettingsResponse, _impl_.current_settings_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Setting>()}, - }}, {{ - }}, -}; + for (unsigned i = 0, n = static_cast(this_._internal_current_settings_size()); i < n; + i++) { + const auto& repfield = this_._internal_current_settings().Get(i); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), target, stream); + } -::uint8_t* CurrentSettingsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CurrentSettingsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .mavsdk.rpc.camera.Setting current_settings = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_current_settings_size()); i < n; i++) { - const auto& repfield = this->_internal_current_settings().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CurrentSettingsResponse) - return target; -} - -::size_t CurrentSettingsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CurrentSettingsResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .mavsdk.rpc.camera.Setting current_settings = 1; - total_size += 1UL * this->_internal_current_settings_size(); - for (const auto& msg : this->_internal_current_settings()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CurrentSettingsResponse::_class_data_ = { - CurrentSettingsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CurrentSettingsResponse::GetClassData() const { - return &_class_data_; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CurrentSettingsResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CurrentSettingsResponse::ByteSizeLong(const MessageLite& base) +{ + const CurrentSettingsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CurrentSettingsResponse::ByteSizeLong() const +{ + const CurrentSettingsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CurrentSettingsResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .mavsdk.rpc.camera.Setting current_settings = 1; + { + total_size += 1UL * this_._internal_current_settings_size(); + for (const auto& msg : this_._internal_current_settings()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void CurrentSettingsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CurrentSettingsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; +void CurrentSettingsResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CurrentSettingsResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - _this->_internal_mutable_current_settings()->MergeFrom( - from._internal_current_settings()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_mutable_current_settings()->MergeFrom(from._internal_current_settings()); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -void CurrentSettingsResponse::CopyFrom(const CurrentSettingsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.CurrentSettingsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); +void CurrentSettingsResponse::CopyFrom(const CurrentSettingsResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.CurrentSettingsResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -PROTOBUF_NOINLINE bool CurrentSettingsResponse::IsInitialized() const { - return true; +void CurrentSettingsResponse::InternalSwap(CurrentSettingsResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.current_settings_.InternalSwap(&other->_impl_.current_settings_); } -::_pbi::CachedSize* CurrentSettingsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CurrentSettingsResponse::InternalSwap(CurrentSettingsResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.current_settings_.InternalSwap(&other->_impl_.current_settings_); -} - -::google::protobuf::Metadata CurrentSettingsResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[31]); +::google::protobuf::Metadata CurrentSettingsResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubscribePossibleSettingOptionsRequest::_Internal { - public: +public: }; -SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribePossibleSettingOptionsRequest) -} SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest( - ::google::protobuf::Arena* arena, - const SubscribePossibleSettingOptionsRequest& from) + ::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SubscribePossibleSettingOptionsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribePossibleSettingOptionsRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribePossibleSettingOptionsRequest) } - - - - - - - - - -::google::protobuf::Metadata SubscribePossibleSettingOptionsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[32]); +SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest( + ::google::protobuf::Arena* arena, const SubscribePossibleSettingOptionsRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SubscribePossibleSettingOptionsRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribePossibleSettingOptionsRequest) +} + +inline void* SubscribePossibleSettingOptionsRequest::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SubscribePossibleSettingOptionsRequest(arena); +} +constexpr auto SubscribePossibleSettingOptionsRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SubscribePossibleSettingOptionsRequest), + alignof(SubscribePossibleSettingOptionsRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull + SubscribePossibleSettingOptionsRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribePossibleSettingOptionsRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribePossibleSettingOptionsRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl< + SubscribePossibleSettingOptionsRequest>(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribePossibleSettingOptionsRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl< + SubscribePossibleSettingOptionsRequest>(), + &SubscribePossibleSettingOptionsRequest::ByteSizeLong, + &SubscribePossibleSettingOptionsRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribePossibleSettingOptionsRequest, _impl_._cached_size_), + false, + }, + &SubscribePossibleSettingOptionsRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker + }; +const ::google::protobuf::internal::ClassData* +SubscribePossibleSettingOptionsRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + SubscribePossibleSettingOptionsRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata SubscribePossibleSettingOptionsRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class PossibleSettingOptionsResponse::_Internal { - public: +public: }; PossibleSettingOptionsResponse::PossibleSettingOptionsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.PossibleSettingOptionsResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.PossibleSettingOptionsResponse) } inline PROTOBUF_NDEBUG_INLINE PossibleSettingOptionsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : setting_options_{visibility, arena, from.setting_options_}, - _cached_size_{0} {} - -PossibleSettingOptionsResponse::PossibleSettingOptionsResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const PossibleSettingOptionsResponse& from) - : ::google::protobuf::Message(arena) { - PossibleSettingOptionsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + const Impl_& from, + const ::mavsdk::rpc::camera::PossibleSettingOptionsResponse& from_msg) : + setting_options_{visibility, arena, from.setting_options_}, + _cached_size_{0} +{} - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.PossibleSettingOptionsResponse) +PossibleSettingOptionsResponse::PossibleSettingOptionsResponse( + ::google::protobuf::Arena* arena, const PossibleSettingOptionsResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + PossibleSettingOptionsResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.PossibleSettingOptionsResponse) } inline PROTOBUF_NDEBUG_INLINE PossibleSettingOptionsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : setting_options_{visibility, arena}, - _cached_size_{0} {} - -inline void PossibleSettingOptionsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -PossibleSettingOptionsResponse::~PossibleSettingOptionsResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void PossibleSettingOptionsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void PossibleSettingOptionsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.setting_options_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PossibleSettingOptionsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> PossibleSettingOptionsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PossibleSettingOptionsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(PossibleSettingOptionsResponse, _impl_.setting_options_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; - {PROTOBUF_FIELD_OFFSET(PossibleSettingOptionsResponse, _impl_.setting_options_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SettingOptions>()}, - }}, {{ - }}, -}; - -::uint8_t* PossibleSettingOptionsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_setting_options_size()); i < n; i++) { - const auto& repfield = this->_internal_setting_options().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - return target; -} - -::size_t PossibleSettingOptionsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; - total_size += 1UL * this->_internal_setting_options_size(); - for (const auto& msg : this->_internal_setting_options()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData PossibleSettingOptionsResponse::_class_data_ = { - PossibleSettingOptionsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* PossibleSettingOptionsResponse::GetClassData() const { - return &_class_data_; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + setting_options_{visibility, arena}, + _cached_size_{0} +{} + +inline void PossibleSettingOptionsResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); +} +PossibleSettingOptionsResponse::~PossibleSettingOptionsResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.PossibleSettingOptionsResponse) + SharedDtor(*this); +} +inline void PossibleSettingOptionsResponse::SharedDtor(MessageLite& self) +{ + PossibleSettingOptionsResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* PossibleSettingOptionsResponse::PlacementNew_( + const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) PossibleSettingOptionsResponse(arena); +} +constexpr auto PossibleSettingOptionsResponse::InternalNewImpl_() +{ + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(PossibleSettingOptionsResponse, _impl_.setting_options_) + + decltype(PossibleSettingOptionsResponse::_impl_.setting_options_):: + InternalGetArenaOffset(::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(PossibleSettingOptionsResponse), + alignof(PossibleSettingOptionsResponse), + *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator( + &PossibleSettingOptionsResponse::PlacementNew_, + sizeof(PossibleSettingOptionsResponse), + alignof(PossibleSettingOptionsResponse)); + } } +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull PossibleSettingOptionsResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_PossibleSettingOptionsResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PossibleSettingOptionsResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PossibleSettingOptionsResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &PossibleSettingOptionsResponse::ByteSizeLong, + &PossibleSettingOptionsResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PossibleSettingOptionsResponse, _impl_._cached_size_), + false, + }, + &PossibleSettingOptionsResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* PossibleSettingOptionsResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + PossibleSettingOptionsResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::PossibleSettingOptionsResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; + {::_pbi::TcParser::FastMtR1, + {10, + 63, + 0, + PROTOBUF_FIELD_OFFSET(PossibleSettingOptionsResponse, _impl_.setting_options_)}}, + }}, + {{65535, 65535}}, + {{ + // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; + {PROTOBUF_FIELD_OFFSET(PossibleSettingOptionsResponse, _impl_.setting_options_), + 0, + 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SettingOptions>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void PossibleSettingOptionsResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.setting_options_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PossibleSettingOptionsResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const PossibleSettingOptionsResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PossibleSettingOptionsResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const PossibleSettingOptionsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void PossibleSettingOptionsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; + for (unsigned i = 0, n = static_cast(this_._internal_setting_options_size()); i < n; + i++) { + const auto& repfield = this_._internal_setting_options().Get(i); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), target, stream); + } - _this->_internal_mutable_setting_options()->MergeFrom( - from._internal_setting_options()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.PossibleSettingOptionsResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PossibleSettingOptionsResponse::ByteSizeLong(const MessageLite& base) +{ + const PossibleSettingOptionsResponse& this_ = + static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t PossibleSettingOptionsResponse::ByteSizeLong() const +{ + const PossibleSettingOptionsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; + { + total_size += 1UL * this_._internal_setting_options_size(); + for (const auto& msg : this_._internal_setting_options()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void PossibleSettingOptionsResponse::CopyFrom(const PossibleSettingOptionsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void PossibleSettingOptionsResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool PossibleSettingOptionsResponse::IsInitialized() const { - return true; + _this->_internal_mutable_setting_options()->MergeFrom(from._internal_setting_options()); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* PossibleSettingOptionsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void PossibleSettingOptionsResponse::CopyFrom(const PossibleSettingOptionsResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void PossibleSettingOptionsResponse::InternalSwap(PossibleSettingOptionsResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.setting_options_.InternalSwap(&other->_impl_.setting_options_); + +void PossibleSettingOptionsResponse::InternalSwap( + PossibleSettingOptionsResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.setting_options_.InternalSwap(&other->_impl_.setting_options_); } -::google::protobuf::Metadata PossibleSettingOptionsResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[33]); +::google::protobuf::Metadata PossibleSettingOptionsResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetSettingRequest::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetSettingRequest, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::Setting& setting(const SetSettingRequest* msg); - static void set_has_setting(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetSettingRequest, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::Setting& SetSettingRequest::_Internal::setting(const SetSettingRequest* msg) { - return *msg->_impl_.setting_; -} SetSettingRequest::SetSettingRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetSettingRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetSettingRequest) } inline PROTOBUF_NDEBUG_INLINE SetSettingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::SetSettingRequest& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} SetSettingRequest::SetSettingRequest( - ::google::protobuf::Arena* arena, - const SetSettingRequest& from) - : ::google::protobuf::Message(arena) { - SetSettingRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.setting_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::Setting>(arena, *from._impl_.setting_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SetSettingRequest) + ::google::protobuf::Arena* arena, const SetSettingRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SetSettingRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.setting_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Setting>( + arena, *from._impl_.setting_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SetSettingRequest) } inline PROTOBUF_NDEBUG_INLINE SetSettingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetSettingRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.setting_ = {}; -} -SetSettingRequest::~SetSettingRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetSettingRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetSettingRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.setting_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetSettingRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetSettingRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.setting_ != nullptr); - _impl_.setting_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetSettingRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetSettingRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetSettingRequest, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetSettingRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.Setting setting = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetSettingRequest, _impl_.setting_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.Setting setting = 1; - {PROTOBUF_FIELD_OFFSET(SetSettingRequest, _impl_.setting_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Setting>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetSettingRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.setting_ = {}; +} +SetSettingRequest::~SetSettingRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetSettingRequest) + SharedDtor(*this); +} +inline void SetSettingRequest::SharedDtor(MessageLite& self) +{ + SetSettingRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.setting_; + this_._impl_.~Impl_(); +} + +inline void* +SetSettingRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetSettingRequest(arena); +} +constexpr auto SetSettingRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetSettingRequest), alignof(SetSettingRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetSettingRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetSettingRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetSettingRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetSettingRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetSettingRequest::ByteSizeLong, + &SetSettingRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetSettingRequest, _impl_._cached_size_), + false, + }, + &SetSettingRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetSettingRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + SetSettingRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SetSettingRequest, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SetSettingRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.Setting setting = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetSettingRequest, _impl_.setting_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.Setting setting = 1; + {PROTOBUF_FIELD_OFFSET(SetSettingRequest, _impl_.setting_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Setting>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void SetSettingRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetSettingRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.setting_ != nullptr); + _impl_.setting_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetSettingRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetSettingRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.Setting setting = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::setting(this), - _Internal::setting(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetSettingRequest) - return target; -} - -::size_t SetSettingRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetSettingRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.Setting setting = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.setting_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetSettingRequest::_class_data_ = { - SetSettingRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetSettingRequest::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetSettingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetSettingRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetSettingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetSettingRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.Setting setting = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.setting_, this_._impl_.setting_->GetCachedSize(), target, stream); + } -void SetSettingRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetSettingRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetSettingRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetSettingRequest::ByteSizeLong(const MessageLite& base) +{ + const SetSettingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetSettingRequest::ByteSizeLong() const +{ + const SetSettingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetSettingRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_setting()->::mavsdk::rpc::camera::Setting::MergeFrom( - from._internal_setting()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.Setting setting = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.setting_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void SetSettingRequest::CopyFrom(const SetSettingRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.SetSettingRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void SetSettingRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetSettingRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool SetSettingRequest::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.setting_ != nullptr); + if (_this->_impl_.setting_ == nullptr) { + _this->_impl_.setting_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Setting>( + arena, *from._impl_.setting_); + } else { + _this->_impl_.setting_->MergeFrom(*from._impl_.setting_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* SetSettingRequest::AccessCachedSize() const { - return &_impl_._cached_size_; +void SetSettingRequest::CopyFrom(const SetSettingRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.SetSettingRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void SetSettingRequest::InternalSwap(SetSettingRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.setting_, other->_impl_.setting_); + +void SetSettingRequest::InternalSwap(SetSettingRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.setting_, other->_impl_.setting_); } -::google::protobuf::Metadata SetSettingRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[34]); +::google::protobuf::Metadata SetSettingRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetSettingResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetSettingResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const SetSettingResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetSettingResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& SetSettingResponse::_Internal::camera_result(const SetSettingResponse* msg) { - return *msg->_impl_.camera_result_; -} SetSettingResponse::SetSettingResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetSettingResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetSettingResponse) } inline PROTOBUF_NDEBUG_INLINE SetSettingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::SetSettingResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} SetSettingResponse::SetSettingResponse( - ::google::protobuf::Arena* arena, - const SetSettingResponse& from) - : ::google::protobuf::Message(arena) { - SetSettingResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SetSettingResponse) + ::google::protobuf::Arena* arena, const SetSettingResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SetSettingResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SetSettingResponse) } inline PROTOBUF_NDEBUG_INLINE SetSettingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetSettingResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -SetSettingResponse::~SetSettingResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetSettingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetSettingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetSettingResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetSettingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetSettingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetSettingResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetSettingResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetSettingResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetSettingResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(SetSettingResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SetSettingResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +SetSettingResponse::~SetSettingResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetSettingResponse) + SharedDtor(*this); +} +inline void SetSettingResponse::SharedDtor(MessageLite& self) +{ + SetSettingResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +SetSettingResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SetSettingResponse(arena); +} +constexpr auto SetSettingResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SetSettingResponse), alignof(SetSettingResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetSettingResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetSettingResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetSettingResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetSettingResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SetSettingResponse::ByteSizeLong, + &SetSettingResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetSettingResponse, _impl_._cached_size_), + false, + }, + &SetSettingResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetSettingResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + SetSettingResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SetSettingResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SetSettingResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetSettingResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(SetSettingResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void SetSettingResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetSettingResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SetSettingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetSettingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetSettingResponse) - return target; -} - -::size_t SetSettingResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetSettingResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetSettingResponse::_class_data_ = { - SetSettingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetSettingResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SetSettingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SetSettingResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SetSettingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetSettingResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void SetSettingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetSettingResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetSettingResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SetSettingResponse::ByteSizeLong(const MessageLite& base) +{ + const SetSettingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SetSettingResponse::ByteSizeLong() const +{ + const SetSettingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetSettingResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void SetSettingResponse::CopyFrom(const SetSettingResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.SetSettingResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void SetSettingResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetSettingResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool SetSettingResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* SetSettingResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void SetSettingResponse::CopyFrom(const SetSettingResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.SetSettingResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void SetSettingResponse::InternalSwap(SetSettingResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void SetSettingResponse::InternalSwap(SetSettingResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata SetSettingResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[35]); +::google::protobuf::Metadata SetSettingResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetSettingRequest::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetSettingRequest, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::Setting& setting(const GetSettingRequest* msg); - static void set_has_setting(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetSettingRequest, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::Setting& GetSettingRequest::_Internal::setting(const GetSettingRequest* msg) { - return *msg->_impl_.setting_; -} GetSettingRequest::GetSettingRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.GetSettingRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.GetSettingRequest) } inline PROTOBUF_NDEBUG_INLINE GetSettingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::GetSettingRequest& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} GetSettingRequest::GetSettingRequest( - ::google::protobuf::Arena* arena, - const GetSettingRequest& from) - : ::google::protobuf::Message(arena) { - GetSettingRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.setting_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::Setting>(arena, *from._impl_.setting_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.GetSettingRequest) + ::google::protobuf::Arena* arena, const GetSettingRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + GetSettingRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.setting_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Setting>( + arena, *from._impl_.setting_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.GetSettingRequest) } inline PROTOBUF_NDEBUG_INLINE GetSettingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void GetSettingRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.setting_ = {}; -} -GetSettingRequest::~GetSettingRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.GetSettingRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetSettingRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.setting_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void GetSettingRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.GetSettingRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.setting_ != nullptr); - _impl_.setting_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetSettingRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetSettingRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetSettingRequest, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetSettingRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.Setting setting = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetSettingRequest, _impl_.setting_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.Setting setting = 1; - {PROTOBUF_FIELD_OFFSET(GetSettingRequest, _impl_.setting_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Setting>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void GetSettingRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.setting_ = {}; +} +GetSettingRequest::~GetSettingRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.GetSettingRequest) + SharedDtor(*this); +} +inline void GetSettingRequest::SharedDtor(MessageLite& self) +{ + GetSettingRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.setting_; + this_._impl_.~Impl_(); +} + +inline void* +GetSettingRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) GetSettingRequest(arena); +} +constexpr auto GetSettingRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GetSettingRequest), alignof(GetSettingRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetSettingRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GetSettingRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetSettingRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetSettingRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &GetSettingRequest::ByteSizeLong, + &GetSettingRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetSettingRequest, _impl_._cached_size_), + false, + }, + &GetSettingRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GetSettingRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + GetSettingRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GetSettingRequest, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::GetSettingRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.Setting setting = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetSettingRequest, _impl_.setting_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.Setting setting = 1; + {PROTOBUF_FIELD_OFFSET(GetSettingRequest, _impl_.setting_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Setting>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void GetSettingRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.GetSettingRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.setting_ != nullptr); + _impl_.setting_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* GetSettingRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.GetSettingRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.Setting setting = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::setting(this), - _Internal::setting(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.GetSettingRequest) - return target; -} - -::size_t GetSettingRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.GetSettingRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.Setting setting = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.setting_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GetSettingRequest::_class_data_ = { - GetSettingRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetSettingRequest::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const GetSettingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* GetSettingRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const GetSettingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.GetSettingRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.Setting setting = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.setting_, this_._impl_.setting_->GetCachedSize(), target, stream); + } -void GetSettingRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.GetSettingRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.GetSettingRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetSettingRequest::ByteSizeLong(const MessageLite& base) +{ + const GetSettingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GetSettingRequest::ByteSizeLong() const +{ + const GetSettingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.GetSettingRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_setting()->::mavsdk::rpc::camera::Setting::MergeFrom( - from._internal_setting()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.Setting setting = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.setting_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void GetSettingRequest::CopyFrom(const GetSettingRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.GetSettingRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void GetSettingRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.GetSettingRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool GetSettingRequest::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.setting_ != nullptr); + if (_this->_impl_.setting_ == nullptr) { + _this->_impl_.setting_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Setting>( + arena, *from._impl_.setting_); + } else { + _this->_impl_.setting_->MergeFrom(*from._impl_.setting_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* GetSettingRequest::AccessCachedSize() const { - return &_impl_._cached_size_; +void GetSettingRequest::CopyFrom(const GetSettingRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.GetSettingRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void GetSettingRequest::InternalSwap(GetSettingRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.setting_, other->_impl_.setting_); + +void GetSettingRequest::InternalSwap(GetSettingRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.setting_, other->_impl_.setting_); } -::google::protobuf::Metadata GetSettingRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[36]); +::google::protobuf::Metadata GetSettingRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetSettingResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const GetSettingResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::camera::Setting& setting(const GetSettingResponse* msg); - static void set_has_setting(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& GetSettingResponse::_Internal::camera_result(const GetSettingResponse* msg) { - return *msg->_impl_.camera_result_; -} -const ::mavsdk::rpc::camera::Setting& GetSettingResponse::_Internal::setting(const GetSettingResponse* msg) { - return *msg->_impl_.setting_; -} GetSettingResponse::GetSettingResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.GetSettingResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.GetSettingResponse) } inline PROTOBUF_NDEBUG_INLINE GetSettingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::GetSettingResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} GetSettingResponse::GetSettingResponse( - ::google::protobuf::Arena* arena, - const GetSettingResponse& from) - : ::google::protobuf::Message(arena) { - GetSettingResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - _impl_.setting_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::Setting>(arena, *from._impl_.setting_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.GetSettingResponse) + ::google::protobuf::Arena* arena, const GetSettingResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + GetSettingResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + _impl_.setting_ = + (cached_has_bits & 0x00000002u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Setting>( + arena, *from._impl_.setting_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.GetSettingResponse) } inline PROTOBUF_NDEBUG_INLINE GetSettingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void GetSettingResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, camera_result_), - 0, - offsetof(Impl_, setting_) - - offsetof(Impl_, camera_result_) + - sizeof(Impl_::setting_)); -} -GetSettingResponse::~GetSettingResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.GetSettingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetSettingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - delete _impl_.setting_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void GetSettingResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.GetSettingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void GetSettingResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, camera_result_), + 0, + offsetof(Impl_, setting_) - offsetof(Impl_, camera_result_) + sizeof(Impl_::setting_)); +} +GetSettingResponse::~GetSettingResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.GetSettingResponse) + SharedDtor(*this); +} +inline void GetSettingResponse::SharedDtor(MessageLite& self) +{ + GetSettingResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + delete this_._impl_.setting_; + this_._impl_.~Impl_(); +} + +inline void* +GetSettingResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) GetSettingResponse(arena); +} +constexpr auto GetSettingResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GetSettingResponse), alignof(GetSettingResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetSettingResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GetSettingResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetSettingResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetSettingResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &GetSettingResponse::ByteSizeLong, + &GetSettingResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_._cached_size_), + false, + }, + &GetSettingResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GetSettingResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> + GetSettingResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::GetSettingResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.Setting setting = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 1, PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.setting_)}}, + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .mavsdk.rpc.camera.Setting setting = 2; + {PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.setting_), + _Internal::kHasBitsOffset + 1, + 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Setting>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void GetSettingResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.GetSettingResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.setting_ != nullptr); + _impl_.setting_->Clear(); + } } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.setting_ != nullptr); - _impl_.setting_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetSettingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetSettingResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetSettingResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.Setting setting = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.setting_)}}, - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .mavsdk.rpc.camera.Setting setting = 2; - {PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.setting_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Setting>()}, - }}, {{ - }}, -}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* GetSettingResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const GetSettingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* GetSettingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.GetSettingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.camera.Setting setting = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::setting(this), - _Internal::setting(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.GetSettingResponse) - return target; -} - -::size_t GetSettingResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.GetSettingResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const GetSettingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.GetSettingResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); } // .mavsdk.rpc.camera.Setting setting = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.setting_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.setting_, this_._impl_.setting_->GetCachedSize(), target, stream); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GetSettingResponse::_class_data_ = { - GetSettingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetSettingResponse::GetClassData() const { - return &_class_data_; -} - -void GetSettingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.GetSettingResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_setting()->::mavsdk::rpc::camera::Setting::MergeFrom( - from._internal_setting()); + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.GetSettingResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetSettingResponse::ByteSizeLong(const MessageLite& base) +{ + const GetSettingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GetSettingResponse::ByteSizeLong() const +{ + const GetSettingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.GetSettingResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + // .mavsdk.rpc.camera.Setting setting = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.setting_); + } } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetSettingResponse::CopyFrom(const GetSettingResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.GetSettingResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void GetSettingResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.GetSettingResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(from._impl_.setting_ != nullptr); + if (_this->_impl_.setting_ == nullptr) { + _this->_impl_.setting_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Setting>( + arena, *from._impl_.setting_); + } else { + _this->_impl_.setting_->MergeFrom(*from._impl_.setting_); + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -PROTOBUF_NOINLINE bool GetSettingResponse::IsInitialized() const { - return true; +void GetSettingResponse::CopyFrom(const GetSettingResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.GetSettingResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -::_pbi::CachedSize* GetSettingResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetSettingResponse::InternalSwap(GetSettingResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.setting_) - + sizeof(GetSettingResponse::_impl_.setting_) - - PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.camera_result_)>( - reinterpret_cast(&_impl_.camera_result_), - reinterpret_cast(&other->_impl_.camera_result_)); +void GetSettingResponse::InternalSwap(GetSettingResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.setting_) + + sizeof(GetSettingResponse::_impl_.setting_) - + PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.camera_result_)>( + reinterpret_cast(&_impl_.camera_result_), + reinterpret_cast(&other->_impl_.camera_result_)); } -::google::protobuf::Metadata GetSettingResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[37]); +::google::protobuf::Metadata GetSettingResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FormatStorageRequest::_Internal { - public: +public: }; FormatStorageRequest::FormatStorageRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FormatStorageRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FormatStorageRequest) } FormatStorageRequest::FormatStorageRequest( - ::google::protobuf::Arena* arena, const FormatStorageRequest& from) - : FormatStorageRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const FormatStorageRequest& from) : + FormatStorageRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE FormatStorageRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void FormatStorageRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.storage_id_ = {}; -} -FormatStorageRequest::~FormatStorageRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FormatStorageRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FormatStorageRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void FormatStorageRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FormatStorageRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.storage_id_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FormatStorageRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FormatStorageRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_FormatStorageRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int32 storage_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FormatStorageRequest, _impl_.storage_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(FormatStorageRequest, _impl_.storage_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 storage_id = 1; - {PROTOBUF_FIELD_OFFSET(FormatStorageRequest, _impl_.storage_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void FormatStorageRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.storage_id_ = {}; +} +FormatStorageRequest::~FormatStorageRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FormatStorageRequest) + SharedDtor(*this); +} +inline void FormatStorageRequest::SharedDtor(MessageLite& self) +{ + FormatStorageRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +FormatStorageRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) FormatStorageRequest(arena); +} +constexpr auto FormatStorageRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(FormatStorageRequest), alignof(FormatStorageRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FormatStorageRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FormatStorageRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FormatStorageRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FormatStorageRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &FormatStorageRequest::ByteSizeLong, + &FormatStorageRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FormatStorageRequest, _impl_._cached_size_), + false, + }, + &FormatStorageRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FormatStorageRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + FormatStorageRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::FormatStorageRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // int32 storage_id = 1; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(FormatStorageRequest, _impl_.storage_id_), + 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(FormatStorageRequest, _impl_.storage_id_)}}, + }}, + {{65535, 65535}}, + {{ + // int32 storage_id = 1; + {PROTOBUF_FIELD_OFFSET(FormatStorageRequest, _impl_.storage_id_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void FormatStorageRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FormatStorageRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.storage_id_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* FormatStorageRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FormatStorageRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 storage_id = 1; - if (this->_internal_storage_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_storage_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FormatStorageRequest) - return target; -} - -::size_t FormatStorageRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FormatStorageRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int32 storage_id = 1; - if (this->_internal_storage_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_storage_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FormatStorageRequest::_class_data_ = { - FormatStorageRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FormatStorageRequest::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const FormatStorageRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* FormatStorageRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const FormatStorageRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FormatStorageRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // int32 storage_id = 1; + if (this_._internal_storage_id() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_storage_id(), target); + } -void FormatStorageRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FormatStorageRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FormatStorageRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t FormatStorageRequest::ByteSizeLong(const MessageLite& base) +{ + const FormatStorageRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t FormatStorageRequest::ByteSizeLong() const +{ + const FormatStorageRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FormatStorageRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if (from._internal_storage_id() != 0) { - _this->_internal_set_storage_id(from._internal_storage_id()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // int32 storage_id = 1; + if (this_._internal_storage_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this_._internal_storage_id()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void FormatStorageRequest::CopyFrom(const FormatStorageRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.FormatStorageRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void FormatStorageRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FormatStorageRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool FormatStorageRequest::IsInitialized() const { - return true; + if (from._internal_storage_id() != 0) { + _this->_impl_.storage_id_ = from._impl_.storage_id_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* FormatStorageRequest::AccessCachedSize() const { - return &_impl_._cached_size_; +void FormatStorageRequest::CopyFrom(const FormatStorageRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.FormatStorageRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void FormatStorageRequest::InternalSwap(FormatStorageRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.storage_id_, other->_impl_.storage_id_); + +void FormatStorageRequest::InternalSwap(FormatStorageRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.storage_id_, other->_impl_.storage_id_); } -::google::protobuf::Metadata FormatStorageRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[38]); +::google::protobuf::Metadata FormatStorageRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FormatStorageResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FormatStorageResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const FormatStorageResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(FormatStorageResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& FormatStorageResponse::_Internal::camera_result(const FormatStorageResponse* msg) { - return *msg->_impl_.camera_result_; -} FormatStorageResponse::FormatStorageResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FormatStorageResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FormatStorageResponse) } inline PROTOBUF_NDEBUG_INLINE FormatStorageResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::FormatStorageResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} FormatStorageResponse::FormatStorageResponse( - ::google::protobuf::Arena* arena, - const FormatStorageResponse& from) - : ::google::protobuf::Message(arena) { - FormatStorageResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FormatStorageResponse) + ::google::protobuf::Arena* arena, const FormatStorageResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + FormatStorageResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FormatStorageResponse) } inline PROTOBUF_NDEBUG_INLINE FormatStorageResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void FormatStorageResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -FormatStorageResponse::~FormatStorageResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FormatStorageResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FormatStorageResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void FormatStorageResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FormatStorageResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FormatStorageResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FormatStorageResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(FormatStorageResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FormatStorageResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(FormatStorageResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(FormatStorageResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void FormatStorageResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +FormatStorageResponse::~FormatStorageResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FormatStorageResponse) + SharedDtor(*this); +} +inline void FormatStorageResponse::SharedDtor(MessageLite& self) +{ + FormatStorageResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +FormatStorageResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) FormatStorageResponse(arena); +} +constexpr auto FormatStorageResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(FormatStorageResponse), alignof(FormatStorageResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FormatStorageResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FormatStorageResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FormatStorageResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FormatStorageResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &FormatStorageResponse::ByteSizeLong, + &FormatStorageResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FormatStorageResponse, _impl_._cached_size_), + false, + }, + &FormatStorageResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FormatStorageResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + FormatStorageResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FormatStorageResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::FormatStorageResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(FormatStorageResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(FormatStorageResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void FormatStorageResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FormatStorageResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* FormatStorageResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FormatStorageResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FormatStorageResponse) - return target; -} - -::size_t FormatStorageResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FormatStorageResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FormatStorageResponse::_class_data_ = { - FormatStorageResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FormatStorageResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const FormatStorageResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* FormatStorageResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const FormatStorageResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FormatStorageResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void FormatStorageResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FormatStorageResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FormatStorageResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t FormatStorageResponse::ByteSizeLong(const MessageLite& base) +{ + const FormatStorageResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t FormatStorageResponse::ByteSizeLong() const +{ + const FormatStorageResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FormatStorageResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void FormatStorageResponse::CopyFrom(const FormatStorageResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.FormatStorageResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void FormatStorageResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FormatStorageResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool FormatStorageResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* FormatStorageResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void FormatStorageResponse::CopyFrom(const FormatStorageResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.FormatStorageResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void FormatStorageResponse::InternalSwap(FormatStorageResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void FormatStorageResponse::InternalSwap(FormatStorageResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata FormatStorageResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[39]); +::google::protobuf::Metadata FormatStorageResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SelectCameraResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SelectCameraResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const SelectCameraResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SelectCameraResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& SelectCameraResponse::_Internal::camera_result(const SelectCameraResponse* msg) { - return *msg->_impl_.camera_result_; -} SelectCameraResponse::SelectCameraResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SelectCameraResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SelectCameraResponse) } inline PROTOBUF_NDEBUG_INLINE SelectCameraResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::SelectCameraResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} SelectCameraResponse::SelectCameraResponse( - ::google::protobuf::Arena* arena, - const SelectCameraResponse& from) - : ::google::protobuf::Message(arena) { - SelectCameraResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SelectCameraResponse) + ::google::protobuf::Arena* arena, const SelectCameraResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SelectCameraResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SelectCameraResponse) } inline PROTOBUF_NDEBUG_INLINE SelectCameraResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SelectCameraResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -SelectCameraResponse::~SelectCameraResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SelectCameraResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SelectCameraResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SelectCameraResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SelectCameraResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SelectCameraResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SelectCameraResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SelectCameraResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SelectCameraResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SelectCameraResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(SelectCameraResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SelectCameraResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +SelectCameraResponse::~SelectCameraResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SelectCameraResponse) + SharedDtor(*this); +} +inline void SelectCameraResponse::SharedDtor(MessageLite& self) +{ + SelectCameraResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +SelectCameraResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SelectCameraResponse(arena); +} +constexpr auto SelectCameraResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SelectCameraResponse), alignof(SelectCameraResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SelectCameraResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SelectCameraResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SelectCameraResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SelectCameraResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SelectCameraResponse::ByteSizeLong, + &SelectCameraResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SelectCameraResponse, _impl_._cached_size_), + false, + }, + &SelectCameraResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SelectCameraResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + SelectCameraResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SelectCameraResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::SelectCameraResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SelectCameraResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(SelectCameraResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void SelectCameraResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SelectCameraResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SelectCameraResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SelectCameraResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SelectCameraResponse) - return target; -} - -::size_t SelectCameraResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SelectCameraResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SelectCameraResponse::_class_data_ = { - SelectCameraResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SelectCameraResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SelectCameraResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SelectCameraResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SelectCameraResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SelectCameraResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void SelectCameraResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SelectCameraResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SelectCameraResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SelectCameraResponse::ByteSizeLong(const MessageLite& base) +{ + const SelectCameraResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SelectCameraResponse::ByteSizeLong() const +{ + const SelectCameraResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SelectCameraResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void SelectCameraResponse::CopyFrom(const SelectCameraResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.SelectCameraResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void SelectCameraResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SelectCameraResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool SelectCameraResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* SelectCameraResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void SelectCameraResponse::CopyFrom(const SelectCameraResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.SelectCameraResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void SelectCameraResponse::InternalSwap(SelectCameraResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void SelectCameraResponse::InternalSwap(SelectCameraResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata SelectCameraResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[40]); +::google::protobuf::Metadata SelectCameraResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SelectCameraRequest::_Internal { - public: +public: }; SelectCameraRequest::SelectCameraRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SelectCameraRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SelectCameraRequest) } SelectCameraRequest::SelectCameraRequest( - ::google::protobuf::Arena* arena, const SelectCameraRequest& from) - : SelectCameraRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const SelectCameraRequest& from) : + SelectCameraRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE SelectCameraRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SelectCameraRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_id_ = {}; -} -SelectCameraRequest::~SelectCameraRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SelectCameraRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SelectCameraRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SelectCameraRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SelectCameraRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.camera_id_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SelectCameraRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SelectCameraRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SelectCameraRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int32 camera_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SelectCameraRequest, _impl_.camera_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SelectCameraRequest, _impl_.camera_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 camera_id = 1; - {PROTOBUF_FIELD_OFFSET(SelectCameraRequest, _impl_.camera_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void SelectCameraRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_id_ = {}; +} +SelectCameraRequest::~SelectCameraRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SelectCameraRequest) + SharedDtor(*this); +} +inline void SelectCameraRequest::SharedDtor(MessageLite& self) +{ + SelectCameraRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +SelectCameraRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) SelectCameraRequest(arena); +} +constexpr auto SelectCameraRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SelectCameraRequest), alignof(SelectCameraRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SelectCameraRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SelectCameraRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SelectCameraRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SelectCameraRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &SelectCameraRequest::ByteSizeLong, + &SelectCameraRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SelectCameraRequest, _impl_._cached_size_), + false, + }, + &SelectCameraRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SelectCameraRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + SelectCameraRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SelectCameraRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // int32 camera_id = 1; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(SelectCameraRequest, _impl_.camera_id_), + 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(SelectCameraRequest, _impl_.camera_id_)}}, + }}, + {{65535, 65535}}, + {{ + // int32 camera_id = 1; + {PROTOBUF_FIELD_OFFSET(SelectCameraRequest, _impl_.camera_id_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void SelectCameraRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SelectCameraRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.camera_id_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* SelectCameraRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SelectCameraRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 camera_id = 1; - if (this->_internal_camera_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_camera_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SelectCameraRequest) - return target; -} - -::size_t SelectCameraRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SelectCameraRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int32 camera_id = 1; - if (this->_internal_camera_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_camera_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SelectCameraRequest::_class_data_ = { - SelectCameraRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SelectCameraRequest::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const SelectCameraRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* SelectCameraRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const SelectCameraRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SelectCameraRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SelectCameraRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SelectCameraRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // int32 camera_id = 1; + if (this_._internal_camera_id() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_camera_id(), target); + } - if (from._internal_camera_id() != 0) { - _this->_internal_set_camera_id(from._internal_camera_id()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SelectCameraRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SelectCameraRequest::ByteSizeLong(const MessageLite& base) +{ + const SelectCameraRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SelectCameraRequest::ByteSizeLong() const +{ + const SelectCameraRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SelectCameraRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -void SelectCameraRequest::CopyFrom(const SelectCameraRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.SelectCameraRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + { + // int32 camera_id = 1; + if (this_._internal_camera_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this_._internal_camera_id()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -PROTOBUF_NOINLINE bool SelectCameraRequest::IsInitialized() const { - return true; +void SelectCameraRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SelectCameraRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (from._internal_camera_id() != 0) { + _this->_impl_.camera_id_ = from._impl_.camera_id_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* SelectCameraRequest::AccessCachedSize() const { - return &_impl_._cached_size_; +void SelectCameraRequest::CopyFrom(const SelectCameraRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.SelectCameraRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void SelectCameraRequest::InternalSwap(SelectCameraRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.camera_id_, other->_impl_.camera_id_); + +void SelectCameraRequest::InternalSwap(SelectCameraRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.camera_id_, other->_impl_.camera_id_); } -::google::protobuf::Metadata SelectCameraRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[41]); +::google::protobuf::Metadata SelectCameraRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ResetSettingsRequest::_Internal { - public: +public: }; ResetSettingsRequest::ResetSettingsRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ResetSettingsRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ResetSettingsRequest) } ResetSettingsRequest::ResetSettingsRequest( - ::google::protobuf::Arena* arena, - const ResetSettingsRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ResetSettingsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ResetSettingsRequest) -} - - - - - - - - - -::google::protobuf::Metadata ResetSettingsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[42]); + ::google::protobuf::Arena* arena, const ResetSettingsRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ResetSettingsRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ResetSettingsRequest) +} + +inline void* +ResetSettingsRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ResetSettingsRequest(arena); +} +constexpr auto ResetSettingsRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ResetSettingsRequest), alignof(ResetSettingsRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ResetSettingsRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ResetSettingsRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ResetSettingsRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ResetSettingsRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &ResetSettingsRequest::ByteSizeLong, + &ResetSettingsRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ResetSettingsRequest, _impl_._cached_size_), + false, + }, + &ResetSettingsRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ResetSettingsRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + ResetSettingsRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::ResetSettingsRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata ResetSettingsRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ResetSettingsResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ResetSettingsResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const ResetSettingsResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ResetSettingsResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& ResetSettingsResponse::_Internal::camera_result(const ResetSettingsResponse* msg) { - return *msg->_impl_.camera_result_; -} ResetSettingsResponse::ResetSettingsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ResetSettingsResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ResetSettingsResponse) } inline PROTOBUF_NDEBUG_INLINE ResetSettingsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::ResetSettingsResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} ResetSettingsResponse::ResetSettingsResponse( - ::google::protobuf::Arena* arena, - const ResetSettingsResponse& from) - : ::google::protobuf::Message(arena) { - ResetSettingsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ResetSettingsResponse) + ::google::protobuf::Arena* arena, const ResetSettingsResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ResetSettingsResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ResetSettingsResponse) } inline PROTOBUF_NDEBUG_INLINE ResetSettingsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ResetSettingsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -ResetSettingsResponse::~ResetSettingsResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ResetSettingsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ResetSettingsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ResetSettingsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ResetSettingsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResetSettingsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ResetSettingsResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ResetSettingsResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResetSettingsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ResetSettingsResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(ResetSettingsResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; - -::uint8_t* ResetSettingsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ResetSettingsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ResetSettingsResponse) - return target; -} - -::size_t ResetSettingsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ResetSettingsResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ResetSettingsResponse::_class_data_ = { - ResetSettingsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ResetSettingsResponse::GetClassData() const { - return &_class_data_; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ResetSettingsResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +ResetSettingsResponse::~ResetSettingsResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ResetSettingsResponse) + SharedDtor(*this); +} +inline void ResetSettingsResponse::SharedDtor(MessageLite& self) +{ + ResetSettingsResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +ResetSettingsResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ResetSettingsResponse(arena); +} +constexpr auto ResetSettingsResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ResetSettingsResponse), alignof(ResetSettingsResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ResetSettingsResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ResetSettingsResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ResetSettingsResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ResetSettingsResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ResetSettingsResponse::ByteSizeLong, + &ResetSettingsResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ResetSettingsResponse, _impl_._cached_size_), + false, + }, + &ResetSettingsResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ResetSettingsResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + ResetSettingsResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ResetSettingsResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::ResetSettingsResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ResetSettingsResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(ResetSettingsResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void ResetSettingsResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ResetSettingsResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ResetSettingsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ResetSettingsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* ResetSettingsResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ResetSettingsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ResetSettingsResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ResetSettingsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ResetSettingsResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ResetSettingsResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ResetSettingsResponse::ByteSizeLong(const MessageLite& base) +{ + const ResetSettingsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ResetSettingsResponse::ByteSizeLong() const +{ + const ResetSettingsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ResetSettingsResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -void ResetSettingsResponse::CopyFrom(const ResetSettingsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ResetSettingsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -PROTOBUF_NOINLINE bool ResetSettingsResponse::IsInitialized() const { - return true; +void ResetSettingsResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ResetSettingsResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* ResetSettingsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void ResetSettingsResponse::CopyFrom(const ResetSettingsResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ResetSettingsResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void ResetSettingsResponse::InternalSwap(ResetSettingsResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void ResetSettingsResponse::InternalSwap(ResetSettingsResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata ResetSettingsResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[43]); +::google::protobuf::Metadata ResetSettingsResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ZoomInStartRequest::_Internal { - public: +public: }; ZoomInStartRequest::ZoomInStartRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomInStartRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomInStartRequest) } ZoomInStartRequest::ZoomInStartRequest( - ::google::protobuf::Arena* arena, - const ZoomInStartRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ZoomInStartRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomInStartRequest) -} - - - - - - - - - -::google::protobuf::Metadata ZoomInStartRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[44]); + ::google::protobuf::Arena* arena, const ZoomInStartRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ZoomInStartRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomInStartRequest) +} + +inline void* +ZoomInStartRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ZoomInStartRequest(arena); +} +constexpr auto ZoomInStartRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ZoomInStartRequest), alignof(ZoomInStartRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomInStartRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomInStartRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomInStartRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomInStartRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &ZoomInStartRequest::ByteSizeLong, + &ZoomInStartRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomInStartRequest, _impl_._cached_size_), + false, + }, + &ZoomInStartRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomInStartRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + ZoomInStartRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ZoomInStartRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata ZoomInStartRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ZoomInStartResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ZoomInStartResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const ZoomInStartResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ZoomInStartResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& ZoomInStartResponse::_Internal::camera_result(const ZoomInStartResponse* msg) { - return *msg->_impl_.camera_result_; -} ZoomInStartResponse::ZoomInStartResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomInStartResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomInStartResponse) } inline PROTOBUF_NDEBUG_INLINE ZoomInStartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::ZoomInStartResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} ZoomInStartResponse::ZoomInStartResponse( - ::google::protobuf::Arena* arena, - const ZoomInStartResponse& from) - : ::google::protobuf::Message(arena) { - ZoomInStartResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomInStartResponse) + ::google::protobuf::Arena* arena, const ZoomInStartResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ZoomInStartResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomInStartResponse) } inline PROTOBUF_NDEBUG_INLINE ZoomInStartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ZoomInStartResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -ZoomInStartResponse::~ZoomInStartResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ZoomInStartResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ZoomInStartResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ZoomInStartResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomInStartResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ZoomInStartResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomInStartResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ZoomInStartResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ZoomInStartResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ZoomInStartResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(ZoomInStartResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ZoomInStartResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +ZoomInStartResponse::~ZoomInStartResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ZoomInStartResponse) + SharedDtor(*this); +} +inline void ZoomInStartResponse::SharedDtor(MessageLite& self) +{ + ZoomInStartResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +ZoomInStartResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ZoomInStartResponse(arena); +} +constexpr auto ZoomInStartResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ZoomInStartResponse), alignof(ZoomInStartResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomInStartResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomInStartResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomInStartResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomInStartResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ZoomInStartResponse::ByteSizeLong, + &ZoomInStartResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomInStartResponse, _impl_._cached_size_), + false, + }, + &ZoomInStartResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomInStartResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + ZoomInStartResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ZoomInStartResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ZoomInStartResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ZoomInStartResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(ZoomInStartResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void ZoomInStartResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomInStartResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* ZoomInStartResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomInStartResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomInStartResponse) - return target; -} - -::size_t ZoomInStartResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomInStartResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ZoomInStartResponse::_class_data_ = { - ZoomInStartResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ZoomInStartResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ZoomInStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ZoomInStartResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ZoomInStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomInStartResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void ZoomInStartResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ZoomInStartResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomInStartResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ZoomInStartResponse::ByteSizeLong(const MessageLite& base) +{ + const ZoomInStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ZoomInStartResponse::ByteSizeLong() const +{ + const ZoomInStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomInStartResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void ZoomInStartResponse::CopyFrom(const ZoomInStartResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ZoomInStartResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void ZoomInStartResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ZoomInStartResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool ZoomInStartResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* ZoomInStartResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void ZoomInStartResponse::CopyFrom(const ZoomInStartResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ZoomInStartResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void ZoomInStartResponse::InternalSwap(ZoomInStartResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void ZoomInStartResponse::InternalSwap(ZoomInStartResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata ZoomInStartResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[45]); +::google::protobuf::Metadata ZoomInStartResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ZoomOutStartRequest::_Internal { - public: +public: }; ZoomOutStartRequest::ZoomOutStartRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomOutStartRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomOutStartRequest) } ZoomOutStartRequest::ZoomOutStartRequest( - ::google::protobuf::Arena* arena, - const ZoomOutStartRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ZoomOutStartRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomOutStartRequest) -} - - - - - - - - - -::google::protobuf::Metadata ZoomOutStartRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[46]); + ::google::protobuf::Arena* arena, const ZoomOutStartRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ZoomOutStartRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomOutStartRequest) +} + +inline void* +ZoomOutStartRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ZoomOutStartRequest(arena); +} +constexpr auto ZoomOutStartRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ZoomOutStartRequest), alignof(ZoomOutStartRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomOutStartRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomOutStartRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomOutStartRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomOutStartRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &ZoomOutStartRequest::ByteSizeLong, + &ZoomOutStartRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomOutStartRequest, _impl_._cached_size_), + false, + }, + &ZoomOutStartRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomOutStartRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + ZoomOutStartRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ZoomOutStartRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata ZoomOutStartRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ZoomOutStartResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ZoomOutStartResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const ZoomOutStartResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ZoomOutStartResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& ZoomOutStartResponse::_Internal::camera_result(const ZoomOutStartResponse* msg) { - return *msg->_impl_.camera_result_; -} ZoomOutStartResponse::ZoomOutStartResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomOutStartResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomOutStartResponse) } inline PROTOBUF_NDEBUG_INLINE ZoomOutStartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::ZoomOutStartResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} ZoomOutStartResponse::ZoomOutStartResponse( - ::google::protobuf::Arena* arena, - const ZoomOutStartResponse& from) - : ::google::protobuf::Message(arena) { - ZoomOutStartResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomOutStartResponse) + ::google::protobuf::Arena* arena, const ZoomOutStartResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ZoomOutStartResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomOutStartResponse) } inline PROTOBUF_NDEBUG_INLINE ZoomOutStartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ZoomOutStartResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -ZoomOutStartResponse::~ZoomOutStartResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ZoomOutStartResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ZoomOutStartResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ZoomOutStartResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomOutStartResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ZoomOutStartResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomOutStartResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ZoomOutStartResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ZoomOutStartResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ZoomOutStartResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(ZoomOutStartResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ZoomOutStartResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +ZoomOutStartResponse::~ZoomOutStartResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ZoomOutStartResponse) + SharedDtor(*this); +} +inline void ZoomOutStartResponse::SharedDtor(MessageLite& self) +{ + ZoomOutStartResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +ZoomOutStartResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ZoomOutStartResponse(arena); +} +constexpr auto ZoomOutStartResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ZoomOutStartResponse), alignof(ZoomOutStartResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomOutStartResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomOutStartResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomOutStartResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomOutStartResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ZoomOutStartResponse::ByteSizeLong, + &ZoomOutStartResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomOutStartResponse, _impl_._cached_size_), + false, + }, + &ZoomOutStartResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomOutStartResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + ZoomOutStartResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ZoomOutStartResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::ZoomOutStartResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ZoomOutStartResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(ZoomOutStartResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void ZoomOutStartResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomOutStartResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* ZoomOutStartResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomOutStartResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomOutStartResponse) - return target; -} - -::size_t ZoomOutStartResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomOutStartResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ZoomOutStartResponse::_class_data_ = { - ZoomOutStartResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ZoomOutStartResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ZoomOutStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ZoomOutStartResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ZoomOutStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomOutStartResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void ZoomOutStartResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ZoomOutStartResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomOutStartResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ZoomOutStartResponse::ByteSizeLong(const MessageLite& base) +{ + const ZoomOutStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ZoomOutStartResponse::ByteSizeLong() const +{ + const ZoomOutStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomOutStartResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void ZoomOutStartResponse::CopyFrom(const ZoomOutStartResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ZoomOutStartResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void ZoomOutStartResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ZoomOutStartResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool ZoomOutStartResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* ZoomOutStartResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void ZoomOutStartResponse::CopyFrom(const ZoomOutStartResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ZoomOutStartResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void ZoomOutStartResponse::InternalSwap(ZoomOutStartResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void ZoomOutStartResponse::InternalSwap(ZoomOutStartResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata ZoomOutStartResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[47]); +::google::protobuf::Metadata ZoomOutStartResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ZoomStopRequest::_Internal { - public: +public: }; ZoomStopRequest::ZoomStopRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomStopRequest) -} -ZoomStopRequest::ZoomStopRequest( - ::google::protobuf::Arena* arena, - const ZoomStopRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ZoomStopRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomStopRequest) -} - - - - - - - - - -::google::protobuf::Metadata ZoomStopRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[48]); +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomStopRequest) +} +ZoomStopRequest::ZoomStopRequest(::google::protobuf::Arena* arena, const ZoomStopRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ZoomStopRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomStopRequest) +} + +inline void* +ZoomStopRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ZoomStopRequest(arena); +} +constexpr auto ZoomStopRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ZoomStopRequest), alignof(ZoomStopRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomStopRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomStopRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomStopRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomStopRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &ZoomStopRequest::ByteSizeLong, + &ZoomStopRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomStopRequest, _impl_._cached_size_), + false, + }, + &ZoomStopRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomStopRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + ZoomStopRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ZoomStopRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata ZoomStopRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ZoomStopResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ZoomStopResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const ZoomStopResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ZoomStopResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& ZoomStopResponse::_Internal::camera_result(const ZoomStopResponse* msg) { - return *msg->_impl_.camera_result_; -} ZoomStopResponse::ZoomStopResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomStopResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomStopResponse) } inline PROTOBUF_NDEBUG_INLINE ZoomStopResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ZoomStopResponse::ZoomStopResponse( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const ZoomStopResponse& from) - : ::google::protobuf::Message(arena) { - ZoomStopResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomStopResponse) + const Impl_& from, + const ::mavsdk::rpc::camera::ZoomStopResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +ZoomStopResponse::ZoomStopResponse(::google::protobuf::Arena* arena, const ZoomStopResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ZoomStopResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomStopResponse) } inline PROTOBUF_NDEBUG_INLINE ZoomStopResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ZoomStopResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -ZoomStopResponse::~ZoomStopResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ZoomStopResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ZoomStopResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ZoomStopResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomStopResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ZoomStopResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomStopResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ZoomStopResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ZoomStopResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ZoomStopResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(ZoomStopResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ZoomStopResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +ZoomStopResponse::~ZoomStopResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ZoomStopResponse) + SharedDtor(*this); +} +inline void ZoomStopResponse::SharedDtor(MessageLite& self) +{ + ZoomStopResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +ZoomStopResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ZoomStopResponse(arena); +} +constexpr auto ZoomStopResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ZoomStopResponse), alignof(ZoomStopResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomStopResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomStopResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomStopResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomStopResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ZoomStopResponse::ByteSizeLong, + &ZoomStopResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomStopResponse, _impl_._cached_size_), + false, + }, + &ZoomStopResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomStopResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + ZoomStopResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ZoomStopResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ZoomStopResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ZoomStopResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(ZoomStopResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void ZoomStopResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomStopResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* ZoomStopResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomStopResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomStopResponse) - return target; -} - -::size_t ZoomStopResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomStopResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ZoomStopResponse::_class_data_ = { - ZoomStopResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ZoomStopResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ZoomStopResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ZoomStopResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ZoomStopResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomStopResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void ZoomStopResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ZoomStopResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomStopResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ZoomStopResponse::ByteSizeLong(const MessageLite& base) +{ + const ZoomStopResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ZoomStopResponse::ByteSizeLong() const +{ + const ZoomStopResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomStopResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void ZoomStopResponse::CopyFrom(const ZoomStopResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ZoomStopResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void ZoomStopResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ZoomStopResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool ZoomStopResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* ZoomStopResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void ZoomStopResponse::CopyFrom(const ZoomStopResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ZoomStopResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void ZoomStopResponse::InternalSwap(ZoomStopResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void ZoomStopResponse::InternalSwap(ZoomStopResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata ZoomStopResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[49]); +::google::protobuf::Metadata ZoomStopResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ZoomRangeRequest::_Internal { - public: +public: }; ZoomRangeRequest::ZoomRangeRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomRangeRequest) -} -ZoomRangeRequest::ZoomRangeRequest( - ::google::protobuf::Arena* arena, const ZoomRangeRequest& from) - : ZoomRangeRequest(arena) { - MergeFrom(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomRangeRequest) +} +ZoomRangeRequest::ZoomRangeRequest(::google::protobuf::Arena* arena, const ZoomRangeRequest& from) : + ZoomRangeRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE ZoomRangeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ZoomRangeRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.range_ = {}; -} -ZoomRangeRequest::~ZoomRangeRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ZoomRangeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ZoomRangeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ZoomRangeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomRangeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.range_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ZoomRangeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ZoomRangeRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ZoomRangeRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float range = 1; - {::_pbi::TcParser::FastF32S1, - {13, 63, 0, PROTOBUF_FIELD_OFFSET(ZoomRangeRequest, _impl_.range_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // float range = 1; - {PROTOBUF_FIELD_OFFSET(ZoomRangeRequest, _impl_.range_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ZoomRangeRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.range_ = {}; +} +ZoomRangeRequest::~ZoomRangeRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ZoomRangeRequest) + SharedDtor(*this); +} +inline void ZoomRangeRequest::SharedDtor(MessageLite& self) +{ + ZoomRangeRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +ZoomRangeRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ZoomRangeRequest(arena); +} +constexpr auto ZoomRangeRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ZoomRangeRequest), alignof(ZoomRangeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomRangeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomRangeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomRangeRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomRangeRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ZoomRangeRequest::ByteSizeLong, + &ZoomRangeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomRangeRequest, _impl_._cached_size_), + false, + }, + &ZoomRangeRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomRangeRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + ZoomRangeRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ZoomRangeRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // float range = 1; + {::_pbi::TcParser::FastF32S1, + {13, 63, 0, PROTOBUF_FIELD_OFFSET(ZoomRangeRequest, _impl_.range_)}}, + }}, + {{65535, 65535}}, + {{ + // float range = 1; + {PROTOBUF_FIELD_OFFSET(ZoomRangeRequest, _impl_.range_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void ZoomRangeRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomRangeRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.range_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* ZoomRangeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomRangeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float range = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_range = this->_internal_range(); - ::uint32_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_range(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomRangeRequest) - return target; -} - -::size_t ZoomRangeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomRangeRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // float range = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_range = this->_internal_range(); - ::uint32_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ZoomRangeRequest::_class_data_ = { - ZoomRangeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ZoomRangeRequest::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ZoomRangeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ZoomRangeRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ZoomRangeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomRangeRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void ZoomRangeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ZoomRangeRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // float range = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_range()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this_._internal_range(), target); + } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_range = from._internal_range(); - ::uint32_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - _this->_internal_set_range(from._internal_range()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomRangeRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ZoomRangeRequest::ByteSizeLong(const MessageLite& base) +{ + const ZoomRangeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ZoomRangeRequest::ByteSizeLong() const +{ + const ZoomRangeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomRangeRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -void ZoomRangeRequest::CopyFrom(const ZoomRangeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ZoomRangeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + { + // float range = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_range()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -PROTOBUF_NOINLINE bool ZoomRangeRequest::IsInitialized() const { - return true; +void ZoomRangeRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ZoomRangeRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (::absl::bit_cast<::uint32_t>(from._internal_range()) != 0) { + _this->_impl_.range_ = from._impl_.range_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* ZoomRangeRequest::AccessCachedSize() const { - return &_impl_._cached_size_; +void ZoomRangeRequest::CopyFrom(const ZoomRangeRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ZoomRangeRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void ZoomRangeRequest::InternalSwap(ZoomRangeRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.range_, other->_impl_.range_); + +void ZoomRangeRequest::InternalSwap(ZoomRangeRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.range_, other->_impl_.range_); } -::google::protobuf::Metadata ZoomRangeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[50]); +::google::protobuf::Metadata ZoomRangeRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ZoomRangeResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ZoomRangeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const ZoomRangeResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ZoomRangeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& ZoomRangeResponse::_Internal::camera_result(const ZoomRangeResponse* msg) { - return *msg->_impl_.camera_result_; -} ZoomRangeResponse::ZoomRangeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomRangeResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomRangeResponse) } inline PROTOBUF_NDEBUG_INLINE ZoomRangeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::ZoomRangeResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} ZoomRangeResponse::ZoomRangeResponse( - ::google::protobuf::Arena* arena, - const ZoomRangeResponse& from) - : ::google::protobuf::Message(arena) { - ZoomRangeResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomRangeResponse) + ::google::protobuf::Arena* arena, const ZoomRangeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + ZoomRangeResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomRangeResponse) } inline PROTOBUF_NDEBUG_INLINE ZoomRangeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ZoomRangeResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -ZoomRangeResponse::~ZoomRangeResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ZoomRangeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ZoomRangeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ZoomRangeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomRangeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ZoomRangeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomRangeResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ZoomRangeResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ZoomRangeResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ZoomRangeResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(ZoomRangeResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void ZoomRangeResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +ZoomRangeResponse::~ZoomRangeResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ZoomRangeResponse) + SharedDtor(*this); +} +inline void ZoomRangeResponse::SharedDtor(MessageLite& self) +{ + ZoomRangeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +ZoomRangeResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) ZoomRangeResponse(arena); +} +constexpr auto ZoomRangeResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ZoomRangeResponse), alignof(ZoomRangeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomRangeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomRangeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomRangeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomRangeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &ZoomRangeResponse::ByteSizeLong, + &ZoomRangeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomRangeResponse, _impl_._cached_size_), + false, + }, + &ZoomRangeResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomRangeResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + ZoomRangeResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ZoomRangeResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ZoomRangeResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ZoomRangeResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(ZoomRangeResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void ZoomRangeResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomRangeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* ZoomRangeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomRangeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomRangeResponse) - return target; -} - -::size_t ZoomRangeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomRangeResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ZoomRangeResponse::_class_data_ = { - ZoomRangeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ZoomRangeResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const ZoomRangeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* ZoomRangeResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const ZoomRangeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomRangeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void ZoomRangeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ZoomRangeResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomRangeResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ZoomRangeResponse::ByteSizeLong(const MessageLite& base) +{ + const ZoomRangeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ZoomRangeResponse::ByteSizeLong() const +{ + const ZoomRangeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomRangeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void ZoomRangeResponse::CopyFrom(const ZoomRangeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ZoomRangeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void ZoomRangeResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ZoomRangeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool ZoomRangeResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* ZoomRangeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void ZoomRangeResponse::CopyFrom(const ZoomRangeResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.ZoomRangeResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void ZoomRangeResponse::InternalSwap(ZoomRangeResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void ZoomRangeResponse::InternalSwap(ZoomRangeResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata ZoomRangeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[51]); +::google::protobuf::Metadata ZoomRangeResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TrackPointRequest::_Internal { - public: +public: }; TrackPointRequest::TrackPointRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackPointRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackPointRequest) } TrackPointRequest::TrackPointRequest( - ::google::protobuf::Arena* arena, const TrackPointRequest& from) - : TrackPointRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const TrackPointRequest& from) : + TrackPointRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE TrackPointRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void TrackPointRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, point_x_), - 0, - offsetof(Impl_, radius_) - - offsetof(Impl_, point_x_) + - sizeof(Impl_::radius_)); -} -TrackPointRequest::~TrackPointRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TrackPointRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TrackPointRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TrackPointRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackPointRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.point_x_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.radius_) - - reinterpret_cast(&_impl_.point_x_)) + sizeof(_impl_.radius_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TrackPointRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> TrackPointRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_TrackPointRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // float point_x = 1; - {::_pbi::TcParser::FastF32S1, - {13, 63, 0, PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.point_x_)}}, - // float point_y = 2; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.point_y_)}}, - // float radius = 3; - {::_pbi::TcParser::FastF32S1, - {29, 63, 0, PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.radius_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void TrackPointRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, point_x_), + 0, + offsetof(Impl_, radius_) - offsetof(Impl_, point_x_) + sizeof(Impl_::radius_)); +} +TrackPointRequest::~TrackPointRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TrackPointRequest) + SharedDtor(*this); +} +inline void TrackPointRequest::SharedDtor(MessageLite& self) +{ + TrackPointRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +TrackPointRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TrackPointRequest(arena); +} +constexpr auto TrackPointRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TrackPointRequest), alignof(TrackPointRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TrackPointRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TrackPointRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TrackPointRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TrackPointRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &TrackPointRequest::ByteSizeLong, + &TrackPointRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_._cached_size_), + false, + }, + &TrackPointRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TrackPointRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> + TrackPointRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, + 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::TrackPointRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + // float point_x = 1; + {::_pbi::TcParser::FastF32S1, + {13, 63, 0, PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.point_x_)}}, + // float point_y = 2; + {::_pbi::TcParser::FastF32S1, + {21, 63, 0, PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.point_y_)}}, + // float radius = 3; + {::_pbi::TcParser::FastF32S1, + {29, 63, 0, PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.radius_)}}, + }}, + {{65535, 65535}}, + {{ + // float point_x = 1; + {PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.point_x_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float point_y = 2; + {PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.point_y_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float radius = 3; + {PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.radius_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void TrackPointRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackPointRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::memset( + &_impl_.point_x_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.radius_) - reinterpret_cast(&_impl_.point_x_)) + + sizeof(_impl_.radius_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* TrackPointRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const TrackPointRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* TrackPointRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const TrackPointRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackPointRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // float point_x = 1; - {PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.point_x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_point_x()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this_._internal_point_x(), target); + } + // float point_y = 2; - {PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.point_y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_point_y()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this_._internal_point_y(), target); + } + // float radius = 3; - {PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.radius_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; + if (::absl::bit_cast<::uint32_t>(this_._internal_radius()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this_._internal_radius(), target); + } -::uint8_t* TrackPointRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackPointRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float point_x = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_point_x = this->_internal_point_x(); - ::uint32_t raw_point_x; - memcpy(&raw_point_x, &tmp_point_x, sizeof(tmp_point_x)); - if (raw_point_x != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_point_x(), target); - } - - // float point_y = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_point_y = this->_internal_point_y(); - ::uint32_t raw_point_y; - memcpy(&raw_point_y, &tmp_point_y, sizeof(tmp_point_y)); - if (raw_point_y != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_point_y(), target); - } - - // float radius = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_radius = this->_internal_radius(); - ::uint32_t raw_radius; - memcpy(&raw_radius, &tmp_radius, sizeof(tmp_radius)); - if (raw_radius != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_radius(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackPointRequest) - return target; -} - -::size_t TrackPointRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackPointRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // float point_x = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_point_x = this->_internal_point_x(); - ::uint32_t raw_point_x; - memcpy(&raw_point_x, &tmp_point_x, sizeof(tmp_point_x)); - if (raw_point_x != 0) { - total_size += 5; - } - - // float point_y = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_point_y = this->_internal_point_y(); - ::uint32_t raw_point_y; - memcpy(&raw_point_y, &tmp_point_y, sizeof(tmp_point_y)); - if (raw_point_y != 0) { - total_size += 5; - } - - // float radius = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_radius = this->_internal_radius(); - ::uint32_t raw_radius; - memcpy(&raw_radius, &tmp_radius, sizeof(tmp_radius)); - if (raw_radius != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TrackPointRequest::_class_data_ = { - TrackPointRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TrackPointRequest::GetClassData() const { - return &_class_data_; -} - -void TrackPointRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TrackPointRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_point_x = from._internal_point_x(); - ::uint32_t raw_point_x; - memcpy(&raw_point_x, &tmp_point_x, sizeof(tmp_point_x)); - if (raw_point_x != 0) { - _this->_internal_set_point_x(from._internal_point_x()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_point_y = from._internal_point_y(); - ::uint32_t raw_point_y; - memcpy(&raw_point_y, &tmp_point_y, sizeof(tmp_point_y)); - if (raw_point_y != 0) { - _this->_internal_set_point_y(from._internal_point_y()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_radius = from._internal_radius(); - ::uint32_t raw_radius; - memcpy(&raw_radius, &tmp_radius, sizeof(tmp_radius)); - if (raw_radius != 0) { - _this->_internal_set_radius(from._internal_radius()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TrackPointRequest::CopyFrom(const TrackPointRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.TrackPointRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool TrackPointRequest::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* TrackPointRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TrackPointRequest::InternalSwap(TrackPointRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.radius_) - + sizeof(TrackPointRequest::_impl_.radius_) - - PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.point_x_)>( - reinterpret_cast(&_impl_.point_x_), - reinterpret_cast(&other->_impl_.point_x_)); -} - -::google::protobuf::Metadata TrackPointRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[52]); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackPointRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TrackPointRequest::ByteSizeLong(const MessageLite& base) +{ + const TrackPointRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t TrackPointRequest::ByteSizeLong() const +{ + const TrackPointRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackPointRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // float point_x = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_point_x()) != 0) { + total_size += 5; + } + // float point_y = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_point_y()) != 0) { + total_size += 5; + } + // float radius = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_radius()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void TrackPointRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TrackPointRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (::absl::bit_cast<::uint32_t>(from._internal_point_x()) != 0) { + _this->_impl_.point_x_ = from._impl_.point_x_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_point_y()) != 0) { + _this->_impl_.point_y_ = from._impl_.point_y_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_radius()) != 0) { + _this->_impl_.radius_ = from._impl_.radius_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void TrackPointRequest::CopyFrom(const TrackPointRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.TrackPointRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void TrackPointRequest::InternalSwap(TrackPointRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.radius_) + + sizeof(TrackPointRequest::_impl_.radius_) - + PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_.point_x_)>( + reinterpret_cast(&_impl_.point_x_), + reinterpret_cast(&other->_impl_.point_x_)); +} + +::google::protobuf::Metadata TrackPointRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TrackPointResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TrackPointResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const TrackPointResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TrackPointResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& TrackPointResponse::_Internal::camera_result(const TrackPointResponse* msg) { - return *msg->_impl_.camera_result_; -} TrackPointResponse::TrackPointResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackPointResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackPointResponse) } inline PROTOBUF_NDEBUG_INLINE TrackPointResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::TrackPointResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} TrackPointResponse::TrackPointResponse( - ::google::protobuf::Arena* arena, - const TrackPointResponse& from) - : ::google::protobuf::Message(arena) { - TrackPointResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TrackPointResponse) + ::google::protobuf::Arena* arena, const TrackPointResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TrackPointResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TrackPointResponse) } inline PROTOBUF_NDEBUG_INLINE TrackPointResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void TrackPointResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -TrackPointResponse::~TrackPointResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TrackPointResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TrackPointResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TrackPointResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackPointResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TrackPointResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TrackPointResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TrackPointResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TrackPointResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TrackPointResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(TrackPointResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void TrackPointResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +TrackPointResponse::~TrackPointResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TrackPointResponse) + SharedDtor(*this); +} +inline void TrackPointResponse::SharedDtor(MessageLite& self) +{ + TrackPointResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +TrackPointResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TrackPointResponse(arena); +} +constexpr auto TrackPointResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TrackPointResponse), alignof(TrackPointResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TrackPointResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TrackPointResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TrackPointResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TrackPointResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &TrackPointResponse::ByteSizeLong, + &TrackPointResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TrackPointResponse, _impl_._cached_size_), + false, + }, + &TrackPointResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TrackPointResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + TrackPointResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(TrackPointResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::TrackPointResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(TrackPointResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(TrackPointResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void TrackPointResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackPointResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* TrackPointResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackPointResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackPointResponse) - return target; -} - -::size_t TrackPointResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackPointResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TrackPointResponse::_class_data_ = { - TrackPointResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TrackPointResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const TrackPointResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* TrackPointResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const TrackPointResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackPointResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void TrackPointResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TrackPointResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackPointResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TrackPointResponse::ByteSizeLong(const MessageLite& base) +{ + const TrackPointResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t TrackPointResponse::ByteSizeLong() const +{ + const TrackPointResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackPointResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void TrackPointResponse::CopyFrom(const TrackPointResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.TrackPointResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void TrackPointResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TrackPointResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool TrackPointResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* TrackPointResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void TrackPointResponse::CopyFrom(const TrackPointResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.TrackPointResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void TrackPointResponse::InternalSwap(TrackPointResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void TrackPointResponse::InternalSwap(TrackPointResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata TrackPointResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[53]); +::google::protobuf::Metadata TrackPointResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TrackRectangleRequest::_Internal { - public: +public: }; TrackRectangleRequest::TrackRectangleRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackRectangleRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackRectangleRequest) } TrackRectangleRequest::TrackRectangleRequest( - ::google::protobuf::Arena* arena, const TrackRectangleRequest& from) - : TrackRectangleRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const TrackRectangleRequest& from) : + TrackRectangleRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE TrackRectangleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void TrackRectangleRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, top_left_x_), - 0, - offsetof(Impl_, bottom_right_y_) - - offsetof(Impl_, top_left_x_) + - sizeof(Impl_::bottom_right_y_)); -} -TrackRectangleRequest::~TrackRectangleRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TrackRectangleRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TrackRectangleRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TrackRectangleRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackRectangleRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.top_left_x_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.bottom_right_y_) - - reinterpret_cast(&_impl_.top_left_x_)) + sizeof(_impl_.bottom_right_y_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TrackRectangleRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> TrackRectangleRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_TrackRectangleRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float bottom_right_y = 4; - {::_pbi::TcParser::FastF32S1, - {37, 63, 0, PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.bottom_right_y_)}}, - // float top_left_x = 1; - {::_pbi::TcParser::FastF32S1, - {13, 63, 0, PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.top_left_x_)}}, - // float top_left_y = 2; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.top_left_y_)}}, - // float bottom_right_x = 3; - {::_pbi::TcParser::FastF32S1, - {29, 63, 0, PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.bottom_right_x_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void TrackRectangleRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, top_left_x_), + 0, + offsetof(Impl_, bottom_right_y_) - offsetof(Impl_, top_left_x_) + + sizeof(Impl_::bottom_right_y_)); +} +TrackRectangleRequest::~TrackRectangleRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TrackRectangleRequest) + SharedDtor(*this); +} +inline void TrackRectangleRequest::SharedDtor(MessageLite& self) +{ + TrackRectangleRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +TrackRectangleRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TrackRectangleRequest(arena); +} +constexpr auto TrackRectangleRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TrackRectangleRequest), alignof(TrackRectangleRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TrackRectangleRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TrackRectangleRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TrackRectangleRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TrackRectangleRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &TrackRectangleRequest::ByteSizeLong, + &TrackRectangleRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_._cached_size_), + false, + }, + &TrackRectangleRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TrackRectangleRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> + TrackRectangleRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 4, + 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::TrackRectangleRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // float bottom_right_y = 4; + {::_pbi::TcParser::FastF32S1, + {37, 63, 0, PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.bottom_right_y_)}}, + // float top_left_x = 1; + {::_pbi::TcParser::FastF32S1, + {13, 63, 0, PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.top_left_x_)}}, + // float top_left_y = 2; + {::_pbi::TcParser::FastF32S1, + {21, 63, 0, PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.top_left_y_)}}, + // float bottom_right_x = 3; + {::_pbi::TcParser::FastF32S1, + {29, 63, 0, PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.bottom_right_x_)}}, + }}, + {{65535, 65535}}, + {{ + // float top_left_x = 1; + {PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.top_left_x_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float top_left_y = 2; + {PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.top_left_y_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float bottom_right_x = 3; + {PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.bottom_right_x_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float bottom_right_y = 4; + {PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.bottom_right_y_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void TrackRectangleRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackRectangleRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::memset( + &_impl_.top_left_x_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.bottom_right_y_) - + reinterpret_cast(&_impl_.top_left_x_)) + + sizeof(_impl_.bottom_right_y_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* TrackRectangleRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const TrackRectangleRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* TrackRectangleRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const TrackRectangleRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackRectangleRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // float top_left_x = 1; - {PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.top_left_x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_top_left_x()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this_._internal_top_left_x(), target); + } + // float top_left_y = 2; - {PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.top_left_y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_top_left_y()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this_._internal_top_left_y(), target); + } + // float bottom_right_x = 3; - {PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.bottom_right_x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_bottom_right_x()) != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteFloatToArray(3, this_._internal_bottom_right_x(), target); + } + // float bottom_right_y = 4; - {PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.bottom_right_y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; + if (::absl::bit_cast<::uint32_t>(this_._internal_bottom_right_y()) != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteFloatToArray(4, this_._internal_bottom_right_y(), target); + } -::uint8_t* TrackRectangleRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackRectangleRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float top_left_x = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_top_left_x = this->_internal_top_left_x(); - ::uint32_t raw_top_left_x; - memcpy(&raw_top_left_x, &tmp_top_left_x, sizeof(tmp_top_left_x)); - if (raw_top_left_x != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_top_left_x(), target); - } - - // float top_left_y = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_top_left_y = this->_internal_top_left_y(); - ::uint32_t raw_top_left_y; - memcpy(&raw_top_left_y, &tmp_top_left_y, sizeof(tmp_top_left_y)); - if (raw_top_left_y != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_top_left_y(), target); - } - - // float bottom_right_x = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_bottom_right_x = this->_internal_bottom_right_x(); - ::uint32_t raw_bottom_right_x; - memcpy(&raw_bottom_right_x, &tmp_bottom_right_x, sizeof(tmp_bottom_right_x)); - if (raw_bottom_right_x != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_bottom_right_x(), target); - } - - // float bottom_right_y = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_bottom_right_y = this->_internal_bottom_right_y(); - ::uint32_t raw_bottom_right_y; - memcpy(&raw_bottom_right_y, &tmp_bottom_right_y, sizeof(tmp_bottom_right_y)); - if (raw_bottom_right_y != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 4, this->_internal_bottom_right_y(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackRectangleRequest) - return target; -} - -::size_t TrackRectangleRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackRectangleRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // float top_left_x = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_top_left_x = this->_internal_top_left_x(); - ::uint32_t raw_top_left_x; - memcpy(&raw_top_left_x, &tmp_top_left_x, sizeof(tmp_top_left_x)); - if (raw_top_left_x != 0) { - total_size += 5; - } - - // float top_left_y = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_top_left_y = this->_internal_top_left_y(); - ::uint32_t raw_top_left_y; - memcpy(&raw_top_left_y, &tmp_top_left_y, sizeof(tmp_top_left_y)); - if (raw_top_left_y != 0) { - total_size += 5; - } - - // float bottom_right_x = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_bottom_right_x = this->_internal_bottom_right_x(); - ::uint32_t raw_bottom_right_x; - memcpy(&raw_bottom_right_x, &tmp_bottom_right_x, sizeof(tmp_bottom_right_x)); - if (raw_bottom_right_x != 0) { - total_size += 5; - } - - // float bottom_right_y = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_bottom_right_y = this->_internal_bottom_right_y(); - ::uint32_t raw_bottom_right_y; - memcpy(&raw_bottom_right_y, &tmp_bottom_right_y, sizeof(tmp_bottom_right_y)); - if (raw_bottom_right_y != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TrackRectangleRequest::_class_data_ = { - TrackRectangleRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TrackRectangleRequest::GetClassData() const { - return &_class_data_; -} - -void TrackRectangleRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TrackRectangleRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_top_left_x = from._internal_top_left_x(); - ::uint32_t raw_top_left_x; - memcpy(&raw_top_left_x, &tmp_top_left_x, sizeof(tmp_top_left_x)); - if (raw_top_left_x != 0) { - _this->_internal_set_top_left_x(from._internal_top_left_x()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_top_left_y = from._internal_top_left_y(); - ::uint32_t raw_top_left_y; - memcpy(&raw_top_left_y, &tmp_top_left_y, sizeof(tmp_top_left_y)); - if (raw_top_left_y != 0) { - _this->_internal_set_top_left_y(from._internal_top_left_y()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_bottom_right_x = from._internal_bottom_right_x(); - ::uint32_t raw_bottom_right_x; - memcpy(&raw_bottom_right_x, &tmp_bottom_right_x, sizeof(tmp_bottom_right_x)); - if (raw_bottom_right_x != 0) { - _this->_internal_set_bottom_right_x(from._internal_bottom_right_x()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_bottom_right_y = from._internal_bottom_right_y(); - ::uint32_t raw_bottom_right_y; - memcpy(&raw_bottom_right_y, &tmp_bottom_right_y, sizeof(tmp_bottom_right_y)); - if (raw_bottom_right_y != 0) { - _this->_internal_set_bottom_right_y(from._internal_bottom_right_y()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TrackRectangleRequest::CopyFrom(const TrackRectangleRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.TrackRectangleRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool TrackRectangleRequest::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* TrackRectangleRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TrackRectangleRequest::InternalSwap(TrackRectangleRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.bottom_right_y_) - + sizeof(TrackRectangleRequest::_impl_.bottom_right_y_) - - PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.top_left_x_)>( - reinterpret_cast(&_impl_.top_left_x_), - reinterpret_cast(&other->_impl_.top_left_x_)); -} - -::google::protobuf::Metadata TrackRectangleRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[54]); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackRectangleRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TrackRectangleRequest::ByteSizeLong(const MessageLite& base) +{ + const TrackRectangleRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t TrackRectangleRequest::ByteSizeLong() const +{ + const TrackRectangleRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackRectangleRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // float top_left_x = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_top_left_x()) != 0) { + total_size += 5; + } + // float top_left_y = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_top_left_y()) != 0) { + total_size += 5; + } + // float bottom_right_x = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_bottom_right_x()) != 0) { + total_size += 5; + } + // float bottom_right_y = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_bottom_right_y()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -// =================================================================== -class TrackRectangleResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TrackRectangleResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const TrackRectangleResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; +void TrackRectangleRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TrackRectangleRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -const ::mavsdk::rpc::camera::CameraResult& TrackRectangleResponse::_Internal::camera_result(const TrackRectangleResponse* msg) { - return *msg->_impl_.camera_result_; -} -TrackRectangleResponse::TrackRectangleResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackRectangleResponse) -} + if (::absl::bit_cast<::uint32_t>(from._internal_top_left_x()) != 0) { + _this->_impl_.top_left_x_ = from._impl_.top_left_x_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_top_left_y()) != 0) { + _this->_impl_.top_left_y_ = from._impl_.top_left_y_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_bottom_right_x()) != 0) { + _this->_impl_.bottom_right_x_ = from._impl_.bottom_right_x_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_bottom_right_y()) != 0) { + _this->_impl_.bottom_right_y_ = from._impl_.bottom_right_y_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void TrackRectangleRequest::CopyFrom(const TrackRectangleRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.TrackRectangleRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void TrackRectangleRequest::InternalSwap(TrackRectangleRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.bottom_right_y_) + + sizeof(TrackRectangleRequest::_impl_.bottom_right_y_) - + PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_.top_left_x_)>( + reinterpret_cast(&_impl_.top_left_x_), + reinterpret_cast(&other->_impl_.top_left_x_)); +} + +::google::protobuf::Metadata TrackRectangleRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class TrackRectangleResponse::_Internal { +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TrackRectangleResponse, _impl_._has_bits_); +}; + +TrackRectangleResponse::TrackRectangleResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackRectangleResponse) +} inline PROTOBUF_NDEBUG_INLINE TrackRectangleResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::TrackRectangleResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} TrackRectangleResponse::TrackRectangleResponse( - ::google::protobuf::Arena* arena, - const TrackRectangleResponse& from) - : ::google::protobuf::Message(arena) { - TrackRectangleResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TrackRectangleResponse) + ::google::protobuf::Arena* arena, const TrackRectangleResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TrackRectangleResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TrackRectangleResponse) } inline PROTOBUF_NDEBUG_INLINE TrackRectangleResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void TrackRectangleResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -TrackRectangleResponse::~TrackRectangleResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TrackRectangleResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TrackRectangleResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TrackRectangleResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackRectangleResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TrackRectangleResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TrackRectangleResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TrackRectangleResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TrackRectangleResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TrackRectangleResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(TrackRectangleResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void TrackRectangleResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +TrackRectangleResponse::~TrackRectangleResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TrackRectangleResponse) + SharedDtor(*this); +} +inline void TrackRectangleResponse::SharedDtor(MessageLite& self) +{ + TrackRectangleResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +TrackRectangleResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TrackRectangleResponse(arena); +} +constexpr auto TrackRectangleResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TrackRectangleResponse), alignof(TrackRectangleResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TrackRectangleResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TrackRectangleResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TrackRectangleResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TrackRectangleResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &TrackRectangleResponse::ByteSizeLong, + &TrackRectangleResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TrackRectangleResponse, _impl_._cached_size_), + false, + }, + &TrackRectangleResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TrackRectangleResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + TrackRectangleResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(TrackRectangleResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::TrackRectangleResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(TrackRectangleResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(TrackRectangleResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void TrackRectangleResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackRectangleResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* TrackRectangleResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackRectangleResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackRectangleResponse) - return target; -} - -::size_t TrackRectangleResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackRectangleResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TrackRectangleResponse::_class_data_ = { - TrackRectangleResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TrackRectangleResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const TrackRectangleResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* TrackRectangleResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const TrackRectangleResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackRectangleResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void TrackRectangleResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TrackRectangleResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackRectangleResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TrackRectangleResponse::ByteSizeLong(const MessageLite& base) +{ + const TrackRectangleResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t TrackRectangleResponse::ByteSizeLong() const +{ + const TrackRectangleResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackRectangleResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void TrackRectangleResponse::CopyFrom(const TrackRectangleResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.TrackRectangleResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void TrackRectangleResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TrackRectangleResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool TrackRectangleResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* TrackRectangleResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void TrackRectangleResponse::CopyFrom(const TrackRectangleResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.TrackRectangleResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void TrackRectangleResponse::InternalSwap(TrackRectangleResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void TrackRectangleResponse::InternalSwap(TrackRectangleResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata TrackRectangleResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[55]); +::google::protobuf::Metadata TrackRectangleResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TrackStopRequest::_Internal { - public: +public: }; TrackStopRequest::TrackStopRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackStopRequest) -} -TrackStopRequest::TrackStopRequest( - ::google::protobuf::Arena* arena, - const TrackStopRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - TrackStopRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TrackStopRequest) -} - - - - - - - - - -::google::protobuf::Metadata TrackStopRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[56]); +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackStopRequest) +} +TrackStopRequest::TrackStopRequest(::google::protobuf::Arena* arena, const TrackStopRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TrackStopRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TrackStopRequest) +} + +inline void* +TrackStopRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TrackStopRequest(arena); +} +constexpr auto TrackStopRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TrackStopRequest), alignof(TrackStopRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TrackStopRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TrackStopRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TrackStopRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TrackStopRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &TrackStopRequest::ByteSizeLong, + &TrackStopRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TrackStopRequest, _impl_._cached_size_), + false, + }, + &TrackStopRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TrackStopRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + TrackStopRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::TrackStopRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata TrackStopRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TrackStopResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TrackStopResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const TrackStopResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TrackStopResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& TrackStopResponse::_Internal::camera_result(const TrackStopResponse* msg) { - return *msg->_impl_.camera_result_; -} TrackStopResponse::TrackStopResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackStopResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackStopResponse) } inline PROTOBUF_NDEBUG_INLINE TrackStopResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::TrackStopResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} TrackStopResponse::TrackStopResponse( - ::google::protobuf::Arena* arena, - const TrackStopResponse& from) - : ::google::protobuf::Message(arena) { - TrackStopResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TrackStopResponse) + ::google::protobuf::Arena* arena, const TrackStopResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + TrackStopResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TrackStopResponse) } inline PROTOBUF_NDEBUG_INLINE TrackStopResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void TrackStopResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -TrackStopResponse::~TrackStopResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TrackStopResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TrackStopResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TrackStopResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackStopResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TrackStopResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TrackStopResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TrackStopResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TrackStopResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TrackStopResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(TrackStopResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void TrackStopResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +TrackStopResponse::~TrackStopResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TrackStopResponse) + SharedDtor(*this); +} +inline void TrackStopResponse::SharedDtor(MessageLite& self) +{ + TrackStopResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +TrackStopResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) TrackStopResponse(arena); +} +constexpr auto TrackStopResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(TrackStopResponse), alignof(TrackStopResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TrackStopResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TrackStopResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TrackStopResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TrackStopResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &TrackStopResponse::ByteSizeLong, + &TrackStopResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TrackStopResponse, _impl_._cached_size_), + false, + }, + &TrackStopResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TrackStopResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + TrackStopResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(TrackStopResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::TrackStopResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(TrackStopResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(TrackStopResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void TrackStopResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackStopResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* TrackStopResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackStopResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackStopResponse) - return target; -} - -::size_t TrackStopResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackStopResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TrackStopResponse::_class_data_ = { - TrackStopResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TrackStopResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const TrackStopResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* TrackStopResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const TrackStopResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackStopResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void TrackStopResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TrackStopResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackStopResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TrackStopResponse::ByteSizeLong(const MessageLite& base) +{ + const TrackStopResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t TrackStopResponse::ByteSizeLong() const +{ + const TrackStopResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackStopResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void TrackStopResponse::CopyFrom(const TrackStopResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.TrackStopResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void TrackStopResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TrackStopResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool TrackStopResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* TrackStopResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void TrackStopResponse::CopyFrom(const TrackStopResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.TrackStopResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void TrackStopResponse::InternalSwap(TrackStopResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void TrackStopResponse::InternalSwap(TrackStopResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata TrackStopResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[57]); +::google::protobuf::Metadata TrackStopResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FocusInStartRequest::_Internal { - public: +public: }; FocusInStartRequest::FocusInStartRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusInStartRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusInStartRequest) } FocusInStartRequest::FocusInStartRequest( - ::google::protobuf::Arena* arena, - const FocusInStartRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - FocusInStartRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusInStartRequest) -} - - - - - - - - - -::google::protobuf::Metadata FocusInStartRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[58]); + ::google::protobuf::Arena* arena, const FocusInStartRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + FocusInStartRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusInStartRequest) +} + +inline void* +FocusInStartRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) FocusInStartRequest(arena); +} +constexpr auto FocusInStartRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(FocusInStartRequest), alignof(FocusInStartRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusInStartRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusInStartRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusInStartRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusInStartRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &FocusInStartRequest::ByteSizeLong, + &FocusInStartRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusInStartRequest, _impl_._cached_size_), + false, + }, + &FocusInStartRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusInStartRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + FocusInStartRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::FocusInStartRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata FocusInStartRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FocusInStartResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FocusInStartResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const FocusInStartResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(FocusInStartResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& FocusInStartResponse::_Internal::camera_result(const FocusInStartResponse* msg) { - return *msg->_impl_.camera_result_; -} FocusInStartResponse::FocusInStartResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusInStartResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusInStartResponse) } inline PROTOBUF_NDEBUG_INLINE FocusInStartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::FocusInStartResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} FocusInStartResponse::FocusInStartResponse( - ::google::protobuf::Arena* arena, - const FocusInStartResponse& from) - : ::google::protobuf::Message(arena) { - FocusInStartResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusInStartResponse) + ::google::protobuf::Arena* arena, const FocusInStartResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + FocusInStartResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusInStartResponse) } inline PROTOBUF_NDEBUG_INLINE FocusInStartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void FocusInStartResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -FocusInStartResponse::~FocusInStartResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FocusInStartResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FocusInStartResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void FocusInStartResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusInStartResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FocusInStartResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusInStartResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(FocusInStartResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FocusInStartResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(FocusInStartResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(FocusInStartResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void FocusInStartResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +FocusInStartResponse::~FocusInStartResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FocusInStartResponse) + SharedDtor(*this); +} +inline void FocusInStartResponse::SharedDtor(MessageLite& self) +{ + FocusInStartResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +FocusInStartResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) FocusInStartResponse(arena); +} +constexpr auto FocusInStartResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(FocusInStartResponse), alignof(FocusInStartResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusInStartResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusInStartResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusInStartResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusInStartResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &FocusInStartResponse::ByteSizeLong, + &FocusInStartResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusInStartResponse, _impl_._cached_size_), + false, + }, + &FocusInStartResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusInStartResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + FocusInStartResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FocusInStartResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::FocusInStartResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(FocusInStartResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(FocusInStartResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void FocusInStartResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusInStartResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* FocusInStartResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusInStartResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusInStartResponse) - return target; -} - -::size_t FocusInStartResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusInStartResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FocusInStartResponse::_class_data_ = { - FocusInStartResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FocusInStartResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const FocusInStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* FocusInStartResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const FocusInStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusInStartResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void FocusInStartResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FocusInStartResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusInStartResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t FocusInStartResponse::ByteSizeLong(const MessageLite& base) +{ + const FocusInStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t FocusInStartResponse::ByteSizeLong() const +{ + const FocusInStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusInStartResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void FocusInStartResponse::CopyFrom(const FocusInStartResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.FocusInStartResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void FocusInStartResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FocusInStartResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool FocusInStartResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* FocusInStartResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void FocusInStartResponse::CopyFrom(const FocusInStartResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.FocusInStartResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void FocusInStartResponse::InternalSwap(FocusInStartResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void FocusInStartResponse::InternalSwap(FocusInStartResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata FocusInStartResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[59]); +::google::protobuf::Metadata FocusInStartResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FocusOutStartRequest::_Internal { - public: +public: }; FocusOutStartRequest::FocusOutStartRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusOutStartRequest) +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusOutStartRequest) } FocusOutStartRequest::FocusOutStartRequest( - ::google::protobuf::Arena* arena, - const FocusOutStartRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - FocusOutStartRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusOutStartRequest) -} - - - - - - - - - -::google::protobuf::Metadata FocusOutStartRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[60]); + ::google::protobuf::Arena* arena, const FocusOutStartRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + FocusOutStartRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusOutStartRequest) +} + +inline void* +FocusOutStartRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) FocusOutStartRequest(arena); +} +constexpr auto FocusOutStartRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(FocusOutStartRequest), alignof(FocusOutStartRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusOutStartRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusOutStartRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusOutStartRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusOutStartRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &FocusOutStartRequest::ByteSizeLong, + &FocusOutStartRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusOutStartRequest, _impl_._cached_size_), + false, + }, + &FocusOutStartRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusOutStartRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + FocusOutStartRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::FocusOutStartRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata FocusOutStartRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FocusOutStartResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FocusOutStartResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const FocusOutStartResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(FocusOutStartResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& FocusOutStartResponse::_Internal::camera_result(const FocusOutStartResponse* msg) { - return *msg->_impl_.camera_result_; -} FocusOutStartResponse::FocusOutStartResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusOutStartResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusOutStartResponse) } inline PROTOBUF_NDEBUG_INLINE FocusOutStartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::FocusOutStartResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} FocusOutStartResponse::FocusOutStartResponse( - ::google::protobuf::Arena* arena, - const FocusOutStartResponse& from) - : ::google::protobuf::Message(arena) { - FocusOutStartResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusOutStartResponse) + ::google::protobuf::Arena* arena, const FocusOutStartResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + FocusOutStartResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusOutStartResponse) } inline PROTOBUF_NDEBUG_INLINE FocusOutStartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void FocusOutStartResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -FocusOutStartResponse::~FocusOutStartResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FocusOutStartResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FocusOutStartResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void FocusOutStartResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusOutStartResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FocusOutStartResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusOutStartResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(FocusOutStartResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FocusOutStartResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(FocusOutStartResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(FocusOutStartResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void FocusOutStartResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +FocusOutStartResponse::~FocusOutStartResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FocusOutStartResponse) + SharedDtor(*this); +} +inline void FocusOutStartResponse::SharedDtor(MessageLite& self) +{ + FocusOutStartResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +FocusOutStartResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) FocusOutStartResponse(arena); +} +constexpr auto FocusOutStartResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(FocusOutStartResponse), alignof(FocusOutStartResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusOutStartResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusOutStartResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusOutStartResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusOutStartResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &FocusOutStartResponse::ByteSizeLong, + &FocusOutStartResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusOutStartResponse, _impl_._cached_size_), + false, + }, + &FocusOutStartResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusOutStartResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + FocusOutStartResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FocusOutStartResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable< + ::mavsdk::rpc::camera::FocusOutStartResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(FocusOutStartResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(FocusOutStartResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void FocusOutStartResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusOutStartResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* FocusOutStartResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusOutStartResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusOutStartResponse) - return target; -} - -::size_t FocusOutStartResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusOutStartResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FocusOutStartResponse::_class_data_ = { - FocusOutStartResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FocusOutStartResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const FocusOutStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* FocusOutStartResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const FocusOutStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusOutStartResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void FocusOutStartResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FocusOutStartResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusOutStartResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t FocusOutStartResponse::ByteSizeLong(const MessageLite& base) +{ + const FocusOutStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t FocusOutStartResponse::ByteSizeLong() const +{ + const FocusOutStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusOutStartResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void FocusOutStartResponse::CopyFrom(const FocusOutStartResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.FocusOutStartResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void FocusOutStartResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FocusOutStartResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool FocusOutStartResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* FocusOutStartResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void FocusOutStartResponse::CopyFrom(const FocusOutStartResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.FocusOutStartResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void FocusOutStartResponse::InternalSwap(FocusOutStartResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void FocusOutStartResponse::InternalSwap(FocusOutStartResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata FocusOutStartResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[61]); +::google::protobuf::Metadata FocusOutStartResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FocusStopRequest::_Internal { - public: +public: }; FocusStopRequest::FocusStopRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusStopRequest) -} -FocusStopRequest::FocusStopRequest( - ::google::protobuf::Arena* arena, - const FocusStopRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - FocusStopRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusStopRequest) -} - - - - - - - - - -::google::protobuf::Metadata FocusStopRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[62]); +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusStopRequest) +} +FocusStopRequest::FocusStopRequest(::google::protobuf::Arena* arena, const FocusStopRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + FocusStopRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusStopRequest) +} + +inline void* +FocusStopRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) FocusStopRequest(arena); +} +constexpr auto FocusStopRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(FocusStopRequest), alignof(FocusStopRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusStopRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusStopRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusStopRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusStopRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), + &FocusStopRequest::ByteSizeLong, + &FocusStopRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusStopRequest, _impl_._cached_size_), + false, + }, + &FocusStopRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusStopRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> + FocusStopRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::FocusStopRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + // no field_entries, or aux_entries + {{}}, + }; + +::google::protobuf::Metadata FocusStopRequest::GetMetadata() const +{ + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FocusStopResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FocusStopResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const FocusStopResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(FocusStopResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& FocusStopResponse::_Internal::camera_result(const FocusStopResponse* msg) { - return *msg->_impl_.camera_result_; -} FocusStopResponse::FocusStopResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusStopResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusStopResponse) } inline PROTOBUF_NDEBUG_INLINE FocusStopResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::FocusStopResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} FocusStopResponse::FocusStopResponse( - ::google::protobuf::Arena* arena, - const FocusStopResponse& from) - : ::google::protobuf::Message(arena) { - FocusStopResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusStopResponse) + ::google::protobuf::Arena* arena, const FocusStopResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + FocusStopResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusStopResponse) } inline PROTOBUF_NDEBUG_INLINE FocusStopResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void FocusStopResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -FocusStopResponse::~FocusStopResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FocusStopResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FocusStopResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void FocusStopResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusStopResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FocusStopResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusStopResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(FocusStopResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FocusStopResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(FocusStopResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(FocusStopResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void FocusStopResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +FocusStopResponse::~FocusStopResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FocusStopResponse) + SharedDtor(*this); +} +inline void FocusStopResponse::SharedDtor(MessageLite& self) +{ + FocusStopResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +FocusStopResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) FocusStopResponse(arena); +} +constexpr auto FocusStopResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(FocusStopResponse), alignof(FocusStopResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusStopResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusStopResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusStopResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusStopResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &FocusStopResponse::ByteSizeLong, + &FocusStopResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusStopResponse, _impl_._cached_size_), + false, + }, + &FocusStopResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusStopResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + FocusStopResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FocusStopResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::FocusStopResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(FocusStopResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(FocusStopResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void FocusStopResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusStopResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* FocusStopResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusStopResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusStopResponse) - return target; -} - -::size_t FocusStopResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusStopResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FocusStopResponse::_class_data_ = { - FocusStopResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FocusStopResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const FocusStopResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* FocusStopResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const FocusStopResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusStopResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void FocusStopResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FocusStopResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusStopResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t FocusStopResponse::ByteSizeLong(const MessageLite& base) +{ + const FocusStopResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t FocusStopResponse::ByteSizeLong() const +{ + const FocusStopResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusStopResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void FocusStopResponse::CopyFrom(const FocusStopResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.FocusStopResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void FocusStopResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FocusStopResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool FocusStopResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* FocusStopResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void FocusStopResponse::CopyFrom(const FocusStopResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.FocusStopResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void FocusStopResponse::InternalSwap(FocusStopResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void FocusStopResponse::InternalSwap(FocusStopResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata FocusStopResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[63]); +::google::protobuf::Metadata FocusStopResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FocusRangeRequest::_Internal { - public: +public: }; FocusRangeRequest::FocusRangeRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusRangeRequest) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusRangeRequest) } FocusRangeRequest::FocusRangeRequest( - ::google::protobuf::Arena* arena, const FocusRangeRequest& from) - : FocusRangeRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, const FocusRangeRequest& from) : + FocusRangeRequest(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE FocusRangeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void FocusRangeRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.range_ = {}; -} -FocusRangeRequest::~FocusRangeRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FocusRangeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FocusRangeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void FocusRangeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusRangeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.range_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FocusRangeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FocusRangeRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_FocusRangeRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float range = 1; - {::_pbi::TcParser::FastF32S1, - {13, 63, 0, PROTOBUF_FIELD_OFFSET(FocusRangeRequest, _impl_.range_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // float range = 1; - {PROTOBUF_FIELD_OFFSET(FocusRangeRequest, _impl_.range_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void FocusRangeRequest::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.range_ = {}; +} +FocusRangeRequest::~FocusRangeRequest() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FocusRangeRequest) + SharedDtor(*this); +} +inline void FocusRangeRequest::SharedDtor(MessageLite& self) +{ + FocusRangeRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* +FocusRangeRequest::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) FocusRangeRequest(arena); +} +constexpr auto FocusRangeRequest::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(FocusRangeRequest), alignof(FocusRangeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusRangeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusRangeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusRangeRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusRangeRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &FocusRangeRequest::ByteSizeLong, + &FocusRangeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusRangeRequest, _impl_._cached_size_), + false, + }, + &FocusRangeRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusRangeRequest::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> + FocusRangeRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::FocusRangeRequest>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // float range = 1; + {::_pbi::TcParser::FastF32S1, + {13, 63, 0, PROTOBUF_FIELD_OFFSET(FocusRangeRequest, _impl_.range_)}}, + }}, + {{65535, 65535}}, + {{ + // float range = 1; + {PROTOBUF_FIELD_OFFSET(FocusRangeRequest, _impl_.range_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void FocusRangeRequest::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusRangeRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.range_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* FocusRangeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusRangeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float range = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_range = this->_internal_range(); - ::uint32_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_range(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusRangeRequest) - return target; -} - -::size_t FocusRangeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusRangeRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // float range = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_range = this->_internal_range(); - ::uint32_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FocusRangeRequest::_class_data_ = { - FocusRangeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FocusRangeRequest::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const FocusRangeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* FocusRangeRequest::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const FocusRangeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusRangeRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void FocusRangeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FocusRangeRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // float range = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_range()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this_._internal_range(), target); + } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_range = from._internal_range(); - ::uint32_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - _this->_internal_set_range(from._internal_range()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusRangeRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t FocusRangeRequest::ByteSizeLong(const MessageLite& base) +{ + const FocusRangeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t FocusRangeRequest::ByteSizeLong() const +{ + const FocusRangeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusRangeRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -void FocusRangeRequest::CopyFrom(const FocusRangeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.FocusRangeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + { + // float range = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_range()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -PROTOBUF_NOINLINE bool FocusRangeRequest::IsInitialized() const { - return true; +void FocusRangeRequest::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FocusRangeRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (::absl::bit_cast<::uint32_t>(from._internal_range()) != 0) { + _this->_impl_.range_ = from._impl_.range_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* FocusRangeRequest::AccessCachedSize() const { - return &_impl_._cached_size_; +void FocusRangeRequest::CopyFrom(const FocusRangeRequest& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.FocusRangeRequest) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void FocusRangeRequest::InternalSwap(FocusRangeRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.range_, other->_impl_.range_); + +void FocusRangeRequest::InternalSwap(FocusRangeRequest* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.range_, other->_impl_.range_); } -::google::protobuf::Metadata FocusRangeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[64]); +::google::protobuf::Metadata FocusRangeRequest::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FocusRangeResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FocusRangeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const FocusRangeResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(FocusRangeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& FocusRangeResponse::_Internal::camera_result(const FocusRangeResponse* msg) { - return *msg->_impl_.camera_result_; -} FocusRangeResponse::FocusRangeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusRangeResponse) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusRangeResponse) } inline PROTOBUF_NDEBUG_INLINE FocusRangeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::FocusRangeResponse& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} FocusRangeResponse::FocusRangeResponse( - ::google::protobuf::Arena* arena, - const FocusRangeResponse& from) - : ::google::protobuf::Message(arena) { - FocusRangeResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusRangeResponse) + ::google::protobuf::Arena* arena, const FocusRangeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + FocusRangeResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.camera_result_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) : + nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusRangeResponse) } inline PROTOBUF_NDEBUG_INLINE FocusRangeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void FocusRangeResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.camera_result_ = {}; -} -FocusRangeResponse::~FocusRangeResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FocusRangeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FocusRangeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void FocusRangeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusRangeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FocusRangeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusRangeResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(FocusRangeResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FocusRangeResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(FocusRangeResponse, _impl_.camera_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - {PROTOBUF_FIELD_OFFSET(FocusRangeResponse, _impl_.camera_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, - }}, {{ - }}, -}; + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void FocusRangeResponse::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; +} +FocusRangeResponse::~FocusRangeResponse() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FocusRangeResponse) + SharedDtor(*this); +} +inline void FocusRangeResponse::SharedDtor(MessageLite& self) +{ + FocusRangeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* +FocusRangeResponse::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) FocusRangeResponse(arena); +} +constexpr auto FocusRangeResponse::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(FocusRangeResponse), alignof(FocusRangeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusRangeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusRangeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusRangeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusRangeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &FocusRangeResponse::ByteSizeLong, + &FocusRangeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusRangeResponse, _impl_._cached_size_), + false, + }, + &FocusRangeResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusRangeResponse::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> + FocusRangeResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FocusRangeResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, + 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::FocusRangeResponse>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(FocusRangeResponse, _impl_.camera_result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + {PROTOBUF_FIELD_OFFSET(FocusRangeResponse, _impl_.camera_result_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void FocusRangeResponse::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusRangeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* FocusRangeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusRangeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusRangeResponse) - return target; -} - -::size_t FocusRangeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusRangeResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FocusRangeResponse::_class_data_ = { - FocusRangeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FocusRangeResponse::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const FocusRangeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* FocusRangeResponse::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const FocusRangeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusRangeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, + *this_._impl_.camera_result_, + this_._impl_.camera_result_->GetCachedSize(), + target, + stream); + } -void FocusRangeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FocusRangeResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusRangeResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t FocusRangeResponse::ByteSizeLong(const MessageLite& base) +{ + const FocusRangeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t FocusRangeResponse::ByteSizeLong() const +{ + const FocusRangeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusRangeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void FocusRangeResponse::CopyFrom(const FocusRangeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.FocusRangeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void FocusRangeResponse::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FocusRangeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -PROTOBUF_NOINLINE bool FocusRangeResponse::IsInitialized() const { - return true; + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* FocusRangeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; +void FocusRangeResponse::CopyFrom(const FocusRangeResponse& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.FocusRangeResponse) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void FocusRangeResponse::InternalSwap(FocusRangeResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.camera_result_, other->_impl_.camera_result_); + +void FocusRangeResponse::InternalSwap(FocusRangeResponse* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::google::protobuf::Metadata FocusRangeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[65]); +::google::protobuf::Metadata FocusRangeResponse::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CameraResult::_Internal { - public: +public: }; CameraResult::CameraResult(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CameraResult) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CameraResult) } inline PROTOBUF_NDEBUG_INLINE CameraResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : result_str_(arena, from.result_str_), - _cached_size_{0} {} - -CameraResult::CameraResult( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const CameraResult& from) - : ::google::protobuf::Message(arena) { - CameraResult* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.result_ = from._impl_.result_; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CameraResult) + const Impl_& from, + const ::mavsdk::rpc::camera::CameraResult& from_msg) : + result_str_(arena, from.result_str_), + _cached_size_{0} +{} + +CameraResult::CameraResult(::google::protobuf::Arena* arena, const CameraResult& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + CameraResult* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.result_ = from._impl_.result_; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CameraResult) } inline PROTOBUF_NDEBUG_INLINE CameraResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : result_str_(arena), - _cached_size_{0} {} - -inline void CameraResult::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.result_ = {}; -} -CameraResult::~CameraResult() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CameraResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CameraResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.result_str_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CameraResult::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CameraResult) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_str_.ClearToEmpty(); - _impl_.result_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CameraResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 49, 2> CameraResult::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CameraResult_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string result_str = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CameraResult, _impl_.result_str_)}}, - // .mavsdk.rpc.camera.CameraResult.Result result = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CameraResult, _impl_.result_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(CameraResult, _impl_.result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.CameraResult.Result result = 1; - {PROTOBUF_FIELD_OFFSET(CameraResult, _impl_.result_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // string result_str = 2; - {PROTOBUF_FIELD_OFFSET(CameraResult, _impl_.result_str_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\36\0\12\0\0\0\0\0" - "mavsdk.rpc.camera.CameraResult" - "result_str" - }}, -}; - + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + result_str_(arena), + _cached_size_{0} +{} + +inline void CameraResult::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.result_ = {}; +} +CameraResult::~CameraResult() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CameraResult) + SharedDtor(*this); +} +inline void CameraResult::SharedDtor(MessageLite& self) +{ + CameraResult& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.result_str_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* CameraResult::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) CameraResult(arena); +} +constexpr auto CameraResult::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(CameraResult), alignof(CameraResult)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CameraResult::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CameraResult_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CameraResult::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CameraResult::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &CameraResult::ByteSizeLong, + &CameraResult::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CameraResult, _impl_._cached_size_), + false, + }, + &CameraResult::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CameraResult::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 49, 2> + CameraResult::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, + 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // string result_str = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(CameraResult, _impl_.result_str_)}}, + // .mavsdk.rpc.camera.CameraResult.Result result = 1; + {::_pbi::TcParser:: + SingularVarintNoZag1<::uint32_t, offsetof(CameraResult, _impl_.result_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(CameraResult, _impl_.result_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.CameraResult.Result result = 1; + {PROTOBUF_FIELD_OFFSET(CameraResult, _impl_.result_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // string result_str = 2; + {PROTOBUF_FIELD_OFFSET(CameraResult, _impl_.result_str_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{"\36\0\12\0\0\0\0\0" + "mavsdk.rpc.camera.CameraResult" + "result_str"}}, + }; + +PROTOBUF_NOINLINE void CameraResult::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CameraResult) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.result_str_.ClearToEmpty(); + _impl_.result_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* CameraResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CameraResult) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult.Result result = 1; - if (this->_internal_result() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); - } - - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - const std::string& _s = this->_internal_result_str(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.CameraResult.result_str"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CameraResult) - return target; -} - -::size_t CameraResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CameraResult) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_result_str()); - } - - // .mavsdk.rpc.camera.CameraResult.Result result = 1; - if (this->_internal_result() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CameraResult::_class_data_ = { - CameraResult::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CameraResult::GetClassData() const { - return &_class_data_; -} + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const CameraResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* CameraResult::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const CameraResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CameraResult) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void CameraResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CameraResult) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // .mavsdk.rpc.camera.CameraResult.Result result = 1; + if (this_._internal_result() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray(1, this_._internal_result(), target); + } - if (!from._internal_result_str().empty()) { - _this->_internal_set_result_str(from._internal_result_str()); - } - if (from._internal_result() != 0) { - _this->_internal_set_result(from._internal_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + const std::string& _s = this_._internal_result_str(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), + static_cast(_s.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "mavsdk.rpc.camera.CameraResult.result_str"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } -void CameraResult::CopyFrom(const CameraResult& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.CameraResult) - if (&from == this) return; - Clear(); - MergeFrom(from); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CameraResult) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CameraResult::ByteSizeLong(const MessageLite& base) +{ + const CameraResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CameraResult::ByteSizeLong() const +{ + const CameraResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CameraResult) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_result_str()); + } + // .mavsdk.rpc.camera.CameraResult.Result result = 1; + if (this_._internal_result() != 0) { + total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_result()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -PROTOBUF_NOINLINE bool CameraResult::IsInitialized() const { - return true; +void CameraResult::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CameraResult) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (!from._internal_result_str().empty()) { + _this->_internal_set_result_str(from._internal_result_str()); + } + if (from._internal_result() != 0) { + _this->_impl_.result_ = from._impl_.result_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -::_pbi::CachedSize* CameraResult::AccessCachedSize() const { - return &_impl_._cached_size_; +void CameraResult::CopyFrom(const CameraResult& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.CameraResult) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -void CameraResult::InternalSwap(CameraResult* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, &other->_impl_.result_str_, arena); - swap(_impl_.result_, other->_impl_.result_); + +void CameraResult::InternalSwap(CameraResult* PROTOBUF_RESTRICT other) +{ + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, &other->_impl_.result_str_, arena); + swap(_impl_.result_, other->_impl_.result_); } -::google::protobuf::Metadata CameraResult::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[66]); +::google::protobuf::Metadata CameraResult::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class Position::_Internal { - public: +public: }; Position::Position(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Position) -} -Position::Position( - ::google::protobuf::Arena* arena, const Position& from) - : Position(arena) { - MergeFrom(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Position) +} +Position::Position(::google::protobuf::Arena* arena, const Position& from) : Position(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE Position::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void Position::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, latitude_deg_), - 0, - offsetof(Impl_, relative_altitude_m_) - - offsetof(Impl_, latitude_deg_) + - sizeof(Impl_::relative_altitude_m_)); -} -Position::~Position() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.Position) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Position::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Position::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Position) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.latitude_deg_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.relative_altitude_m_) - - reinterpret_cast(&_impl_.latitude_deg_)) + sizeof(_impl_.relative_altitude_m_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Position::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> Position::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Position_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float relative_altitude_m = 4; - {::_pbi::TcParser::FastF32S1, - {37, 63, 0, PROTOBUF_FIELD_OFFSET(Position, _impl_.relative_altitude_m_)}}, - // double latitude_deg = 1; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(Position, _impl_.latitude_deg_)}}, - // double longitude_deg = 2; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(Position, _impl_.longitude_deg_)}}, - // float absolute_altitude_m = 3; - {::_pbi::TcParser::FastF32S1, - {29, 63, 0, PROTOBUF_FIELD_OFFSET(Position, _impl_.absolute_altitude_m_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void Position::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, latitude_deg_), + 0, + offsetof(Impl_, relative_altitude_m_) - offsetof(Impl_, latitude_deg_) + + sizeof(Impl_::relative_altitude_m_)); +} +Position::~Position() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.Position) + SharedDtor(*this); +} +inline void Position::SharedDtor(MessageLite& self) +{ + Position& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* Position::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) Position(arena); +} +constexpr auto Position::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(Position), alignof(Position)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull Position::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Position_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Position::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Position::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &Position::ByteSizeLong, + &Position::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Position, _impl_._cached_size_), + false, + }, + &Position::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* Position::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> + Position::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 4, + 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Position>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // float relative_altitude_m = 4; + {::_pbi::TcParser::FastF32S1, + {37, 63, 0, PROTOBUF_FIELD_OFFSET(Position, _impl_.relative_altitude_m_)}}, + // double latitude_deg = 1; + {::_pbi::TcParser::FastF64S1, + {9, 63, 0, PROTOBUF_FIELD_OFFSET(Position, _impl_.latitude_deg_)}}, + // double longitude_deg = 2; + {::_pbi::TcParser::FastF64S1, + {17, 63, 0, PROTOBUF_FIELD_OFFSET(Position, _impl_.longitude_deg_)}}, + // float absolute_altitude_m = 3; + {::_pbi::TcParser::FastF32S1, + {29, 63, 0, PROTOBUF_FIELD_OFFSET(Position, _impl_.absolute_altitude_m_)}}, + }}, + {{65535, 65535}}, + {{ + // double latitude_deg = 1; + {PROTOBUF_FIELD_OFFSET(Position, _impl_.latitude_deg_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + // double longitude_deg = 2; + {PROTOBUF_FIELD_OFFSET(Position, _impl_.longitude_deg_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + // float absolute_altitude_m = 3; + {PROTOBUF_FIELD_OFFSET(Position, _impl_.absolute_altitude_m_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float relative_altitude_m = 4; + {PROTOBUF_FIELD_OFFSET(Position, _impl_.relative_altitude_m_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void Position::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Position) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::memset( + &_impl_.latitude_deg_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.relative_altitude_m_) - + reinterpret_cast(&_impl_.latitude_deg_)) + + sizeof(_impl_.relative_altitude_m_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* Position::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const Position& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* Position::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const Position& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Position) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // double latitude_deg = 1; - {PROTOBUF_FIELD_OFFSET(Position, _impl_.latitude_deg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + if (::absl::bit_cast<::uint64_t>(this_._internal_latitude_deg()) != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteDoubleToArray(1, this_._internal_latitude_deg(), target); + } + // double longitude_deg = 2; - {PROTOBUF_FIELD_OFFSET(Position, _impl_.longitude_deg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + if (::absl::bit_cast<::uint64_t>(this_._internal_longitude_deg()) != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteDoubleToArray(2, this_._internal_longitude_deg(), target); + } + // float absolute_altitude_m = 3; - {PROTOBUF_FIELD_OFFSET(Position, _impl_.absolute_altitude_m_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_absolute_altitude_m()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_absolute_altitude_m(), target); + } + // float relative_altitude_m = 4; - {PROTOBUF_FIELD_OFFSET(Position, _impl_.relative_altitude_m_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; + if (::absl::bit_cast<::uint32_t>(this_._internal_relative_altitude_m()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_relative_altitude_m(), target); + } -::uint8_t* Position::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Position) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // double latitude_deg = 1; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = this->_internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_latitude_deg(), target); - } - - // double longitude_deg = 2; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = this->_internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_longitude_deg(), target); - } - - // float absolute_altitude_m = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - ::uint32_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_absolute_altitude_m(), target); - } - - // float relative_altitude_m = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 4, this->_internal_relative_altitude_m(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.Position) - return target; -} - -::size_t Position::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Position) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // double latitude_deg = 1; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = this->_internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - total_size += 9; - } - - // double longitude_deg = 2; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = this->_internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - total_size += 9; - } - - // float absolute_altitude_m = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - ::uint32_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - total_size += 5; - } - - // float relative_altitude_m = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData Position::_class_data_ = { - Position::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Position::GetClassData() const { - return &_class_data_; -} - -void Position::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.Position) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = from._internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - _this->_internal_set_latitude_deg(from._internal_latitude_deg()); - } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = from._internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - _this->_internal_set_longitude_deg(from._internal_longitude_deg()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_absolute_altitude_m = from._internal_absolute_altitude_m(); - ::uint32_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - _this->_internal_set_absolute_altitude_m(from._internal_absolute_altitude_m()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = from._internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - _this->_internal_set_relative_altitude_m(from._internal_relative_altitude_m()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Position::CopyFrom(const Position& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.Position) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Position::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* Position::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Position::InternalSwap(Position* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Position, _impl_.relative_altitude_m_) - + sizeof(Position::_impl_.relative_altitude_m_) - - PROTOBUF_FIELD_OFFSET(Position, _impl_.latitude_deg_)>( - reinterpret_cast(&_impl_.latitude_deg_), - reinterpret_cast(&other->_impl_.latitude_deg_)); -} - -::google::protobuf::Metadata Position::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[67]); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.Position) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Position::ByteSizeLong(const MessageLite& base) +{ + const Position& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Position::ByteSizeLong() const +{ + const Position& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Position) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // double latitude_deg = 1; + if (::absl::bit_cast<::uint64_t>(this_._internal_latitude_deg()) != 0) { + total_size += 9; + } + // double longitude_deg = 2; + if (::absl::bit_cast<::uint64_t>(this_._internal_longitude_deg()) != 0) { + total_size += 9; + } + // float absolute_altitude_m = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_absolute_altitude_m()) != 0) { + total_size += 5; + } + // float relative_altitude_m = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_relative_altitude_m()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void Position::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.Position) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (::absl::bit_cast<::uint64_t>(from._internal_latitude_deg()) != 0) { + _this->_impl_.latitude_deg_ = from._impl_.latitude_deg_; + } + if (::absl::bit_cast<::uint64_t>(from._internal_longitude_deg()) != 0) { + _this->_impl_.longitude_deg_ = from._impl_.longitude_deg_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_absolute_altitude_m()) != 0) { + _this->_impl_.absolute_altitude_m_ = from._impl_.absolute_altitude_m_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_relative_altitude_m()) != 0) { + _this->_impl_.relative_altitude_m_ = from._impl_.relative_altitude_m_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void Position::CopyFrom(const Position& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.Position) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void Position::InternalSwap(Position* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(Position, _impl_.relative_altitude_m_) + + sizeof(Position::_impl_.relative_altitude_m_) - + PROTOBUF_FIELD_OFFSET(Position, _impl_.latitude_deg_)>( + reinterpret_cast(&_impl_.latitude_deg_), + reinterpret_cast(&other->_impl_.latitude_deg_)); +} + +::google::protobuf::Metadata Position::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class Quaternion::_Internal { - public: +public: }; Quaternion::Quaternion(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Quaternion) -} -Quaternion::Quaternion( - ::google::protobuf::Arena* arena, const Quaternion& from) - : Quaternion(arena) { - MergeFrom(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Quaternion) +} +Quaternion::Quaternion(::google::protobuf::Arena* arena, const Quaternion& from) : Quaternion(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE Quaternion::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void Quaternion::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, w_), - 0, - offsetof(Impl_, z_) - - offsetof(Impl_, w_) + - sizeof(Impl_::z_)); -} -Quaternion::~Quaternion() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.Quaternion) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Quaternion::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Quaternion::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Quaternion) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.w_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.z_) - - reinterpret_cast(&_impl_.w_)) + sizeof(_impl_.z_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Quaternion::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> Quaternion::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Quaternion_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float z = 4; - {::_pbi::TcParser::FastF32S1, - {37, 63, 0, PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.z_)}}, - // float w = 1; - {::_pbi::TcParser::FastF32S1, - {13, 63, 0, PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.w_)}}, - // float x = 2; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.x_)}}, - // float y = 3; - {::_pbi::TcParser::FastF32S1, - {29, 63, 0, PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.y_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void Quaternion::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, w_), + 0, + offsetof(Impl_, z_) - offsetof(Impl_, w_) + sizeof(Impl_::z_)); +} +Quaternion::~Quaternion() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.Quaternion) + SharedDtor(*this); +} +inline void Quaternion::SharedDtor(MessageLite& self) +{ + Quaternion& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* Quaternion::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) Quaternion(arena); +} +constexpr auto Quaternion::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(Quaternion), alignof(Quaternion)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull Quaternion::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Quaternion_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Quaternion::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Quaternion::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &Quaternion::ByteSizeLong, + &Quaternion::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Quaternion, _impl_._cached_size_), + false, + }, + &Quaternion::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* Quaternion::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> + Quaternion::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 4, + 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Quaternion>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + // float z = 4; + {::_pbi::TcParser::FastF32S1, + {37, 63, 0, PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.z_)}}, + // float w = 1; + {::_pbi::TcParser::FastF32S1, + {13, 63, 0, PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.w_)}}, + // float x = 2; + {::_pbi::TcParser::FastF32S1, + {21, 63, 0, PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.x_)}}, + // float y = 3; + {::_pbi::TcParser::FastF32S1, + {29, 63, 0, PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.y_)}}, + }}, + {{65535, 65535}}, + {{ + // float w = 1; + {PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.w_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float x = 2; + {PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.x_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float y = 3; + {PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.y_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float z = 4; + {PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.z_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void Quaternion::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Quaternion) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::memset( + &_impl_.w_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.z_) - reinterpret_cast(&_impl_.w_)) + + sizeof(_impl_.z_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* Quaternion::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const Quaternion& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* Quaternion::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const Quaternion& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Quaternion) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // float w = 1; - {PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.w_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_w()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this_._internal_w(), target); + } + // float x = 2; - {PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_x()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this_._internal_x(), target); + } + // float y = 3; - {PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_y()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this_._internal_y(), target); + } + // float z = 4; - {PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.z_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; + if (::absl::bit_cast<::uint32_t>(this_._internal_z()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this_._internal_z(), target); + } -::uint8_t* Quaternion::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Quaternion) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float w = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_w = this->_internal_w(); - ::uint32_t raw_w; - memcpy(&raw_w, &tmp_w, sizeof(tmp_w)); - if (raw_w != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_w(), target); - } - - // float x = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_x = this->_internal_x(); - ::uint32_t raw_x; - memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); - if (raw_x != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_x(), target); - } - - // float y = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_y = this->_internal_y(); - ::uint32_t raw_y; - memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); - if (raw_y != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_y(), target); - } - - // float z = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_z = this->_internal_z(); - ::uint32_t raw_z; - memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); - if (raw_z != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 4, this->_internal_z(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.Quaternion) - return target; -} - -::size_t Quaternion::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Quaternion) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // float w = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_w = this->_internal_w(); - ::uint32_t raw_w; - memcpy(&raw_w, &tmp_w, sizeof(tmp_w)); - if (raw_w != 0) { - total_size += 5; - } - - // float x = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_x = this->_internal_x(); - ::uint32_t raw_x; - memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); - if (raw_x != 0) { - total_size += 5; - } - - // float y = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_y = this->_internal_y(); - ::uint32_t raw_y; - memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); - if (raw_y != 0) { - total_size += 5; - } - - // float z = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_z = this->_internal_z(); - ::uint32_t raw_z; - memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); - if (raw_z != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData Quaternion::_class_data_ = { - Quaternion::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Quaternion::GetClassData() const { - return &_class_data_; -} - -void Quaternion::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.Quaternion) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_w = from._internal_w(); - ::uint32_t raw_w; - memcpy(&raw_w, &tmp_w, sizeof(tmp_w)); - if (raw_w != 0) { - _this->_internal_set_w(from._internal_w()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_x = from._internal_x(); - ::uint32_t raw_x; - memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); - if (raw_x != 0) { - _this->_internal_set_x(from._internal_x()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_y = from._internal_y(); - ::uint32_t raw_y; - memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); - if (raw_y != 0) { - _this->_internal_set_y(from._internal_y()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_z = from._internal_z(); - ::uint32_t raw_z; - memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); - if (raw_z != 0) { - _this->_internal_set_z(from._internal_z()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Quaternion::CopyFrom(const Quaternion& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.Quaternion) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Quaternion::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* Quaternion::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Quaternion::InternalSwap(Quaternion* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.z_) - + sizeof(Quaternion::_impl_.z_) - - PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.w_)>( - reinterpret_cast(&_impl_.w_), - reinterpret_cast(&other->_impl_.w_)); -} - -::google::protobuf::Metadata Quaternion::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[68]); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.Quaternion) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Quaternion::ByteSizeLong(const MessageLite& base) +{ + const Quaternion& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Quaternion::ByteSizeLong() const +{ + const Quaternion& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Quaternion) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // float w = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_w()) != 0) { + total_size += 5; + } + // float x = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_x()) != 0) { + total_size += 5; + } + // float y = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_y()) != 0) { + total_size += 5; + } + // float z = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_z()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void Quaternion::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.Quaternion) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (::absl::bit_cast<::uint32_t>(from._internal_w()) != 0) { + _this->_impl_.w_ = from._impl_.w_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_x()) != 0) { + _this->_impl_.x_ = from._impl_.x_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_y()) != 0) { + _this->_impl_.y_ = from._impl_.y_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_z()) != 0) { + _this->_impl_.z_ = from._impl_.z_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void Quaternion::CopyFrom(const Quaternion& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.Quaternion) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void Quaternion::InternalSwap(Quaternion* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.z_) + sizeof(Quaternion::_impl_.z_) - + PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.w_)>( + reinterpret_cast(&_impl_.w_), reinterpret_cast(&other->_impl_.w_)); +} + +::google::protobuf::Metadata Quaternion::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class EulerAngle::_Internal { - public: +public: }; EulerAngle::EulerAngle(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.EulerAngle) -} -EulerAngle::EulerAngle( - ::google::protobuf::Arena* arena, const EulerAngle& from) - : EulerAngle(arena) { - MergeFrom(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.EulerAngle) +} +EulerAngle::EulerAngle(::google::protobuf::Arena* arena, const EulerAngle& from) : EulerAngle(arena) +{ + MergeFrom(from); } inline PROTOBUF_NDEBUG_INLINE EulerAngle::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void EulerAngle::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, roll_deg_), - 0, - offsetof(Impl_, yaw_deg_) - - offsetof(Impl_, roll_deg_) + - sizeof(Impl_::yaw_deg_)); -} -EulerAngle::~EulerAngle() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.EulerAngle) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void EulerAngle::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void EulerAngle::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.EulerAngle) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.roll_deg_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.yaw_deg_) - - reinterpret_cast(&_impl_.roll_deg_)) + sizeof(_impl_.yaw_deg_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EulerAngle::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> EulerAngle::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EulerAngle_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // float roll_deg = 1; - {::_pbi::TcParser::FastF32S1, - {13, 63, 0, PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.roll_deg_)}}, - // float pitch_deg = 2; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.pitch_deg_)}}, - // float yaw_deg = 3; - {::_pbi::TcParser::FastF32S1, - {29, 63, 0, PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.yaw_deg_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void EulerAngle::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, roll_deg_), + 0, + offsetof(Impl_, yaw_deg_) - offsetof(Impl_, roll_deg_) + sizeof(Impl_::yaw_deg_)); +} +EulerAngle::~EulerAngle() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.EulerAngle) + SharedDtor(*this); +} +inline void EulerAngle::SharedDtor(MessageLite& self) +{ + EulerAngle& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* EulerAngle::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) EulerAngle(arena); +} +constexpr auto EulerAngle::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(EulerAngle), alignof(EulerAngle)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull EulerAngle::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_EulerAngle_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EulerAngle::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EulerAngle::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &EulerAngle::ByteSizeLong, + &EulerAngle::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_._cached_size_), + false, + }, + &EulerAngle::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* EulerAngle::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> + EulerAngle::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, + 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::EulerAngle>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + // float roll_deg = 1; + {::_pbi::TcParser::FastF32S1, + {13, 63, 0, PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.roll_deg_)}}, + // float pitch_deg = 2; + {::_pbi::TcParser::FastF32S1, + {21, 63, 0, PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.pitch_deg_)}}, + // float yaw_deg = 3; + {::_pbi::TcParser::FastF32S1, + {29, 63, 0, PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.yaw_deg_)}}, + }}, + {{65535, 65535}}, + {{ + // float roll_deg = 1; + {PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.roll_deg_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float pitch_deg = 2; + {PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.pitch_deg_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float yaw_deg = 3; + {PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.yaw_deg_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{}}, + }; + +PROTOBUF_NOINLINE void EulerAngle::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.EulerAngle) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::memset( + &_impl_.roll_deg_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.yaw_deg_) - + reinterpret_cast(&_impl_.roll_deg_)) + + sizeof(_impl_.yaw_deg_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* EulerAngle::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const EulerAngle& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* EulerAngle::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const EulerAngle& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.EulerAngle) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // float roll_deg = 1; - {PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.roll_deg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_roll_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this_._internal_roll_deg(), target); + } + // float pitch_deg = 2; - {PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.pitch_deg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_pitch_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this_._internal_pitch_deg(), target); + } + // float yaw_deg = 3; - {PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.yaw_deg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; + if (::absl::bit_cast<::uint32_t>(this_._internal_yaw_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this_._internal_yaw_deg(), target); + } -::uint8_t* EulerAngle::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.EulerAngle) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float roll_deg = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_roll_deg = this->_internal_roll_deg(); - ::uint32_t raw_roll_deg; - memcpy(&raw_roll_deg, &tmp_roll_deg, sizeof(tmp_roll_deg)); - if (raw_roll_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_roll_deg(), target); - } - - // float pitch_deg = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_pitch_deg = this->_internal_pitch_deg(); - ::uint32_t raw_pitch_deg; - memcpy(&raw_pitch_deg, &tmp_pitch_deg, sizeof(tmp_pitch_deg)); - if (raw_pitch_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_pitch_deg(), target); - } - - // float yaw_deg = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_yaw_deg = this->_internal_yaw_deg(); - ::uint32_t raw_yaw_deg; - memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); - if (raw_yaw_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_yaw_deg(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.EulerAngle) - return target; -} - -::size_t EulerAngle::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.EulerAngle) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // float roll_deg = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_roll_deg = this->_internal_roll_deg(); - ::uint32_t raw_roll_deg; - memcpy(&raw_roll_deg, &tmp_roll_deg, sizeof(tmp_roll_deg)); - if (raw_roll_deg != 0) { - total_size += 5; - } - - // float pitch_deg = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_pitch_deg = this->_internal_pitch_deg(); - ::uint32_t raw_pitch_deg; - memcpy(&raw_pitch_deg, &tmp_pitch_deg, sizeof(tmp_pitch_deg)); - if (raw_pitch_deg != 0) { - total_size += 5; - } - - // float yaw_deg = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_yaw_deg = this->_internal_yaw_deg(); - ::uint32_t raw_yaw_deg; - memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); - if (raw_yaw_deg != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData EulerAngle::_class_data_ = { - EulerAngle::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* EulerAngle::GetClassData() const { - return &_class_data_; -} - -void EulerAngle::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.EulerAngle) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_roll_deg = from._internal_roll_deg(); - ::uint32_t raw_roll_deg; - memcpy(&raw_roll_deg, &tmp_roll_deg, sizeof(tmp_roll_deg)); - if (raw_roll_deg != 0) { - _this->_internal_set_roll_deg(from._internal_roll_deg()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_pitch_deg = from._internal_pitch_deg(); - ::uint32_t raw_pitch_deg; - memcpy(&raw_pitch_deg, &tmp_pitch_deg, sizeof(tmp_pitch_deg)); - if (raw_pitch_deg != 0) { - _this->_internal_set_pitch_deg(from._internal_pitch_deg()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_yaw_deg = from._internal_yaw_deg(); - ::uint32_t raw_yaw_deg; - memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); - if (raw_yaw_deg != 0) { - _this->_internal_set_yaw_deg(from._internal_yaw_deg()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void EulerAngle::CopyFrom(const EulerAngle& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.EulerAngle) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool EulerAngle::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* EulerAngle::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EulerAngle::InternalSwap(EulerAngle* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.yaw_deg_) - + sizeof(EulerAngle::_impl_.yaw_deg_) - - PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.roll_deg_)>( - reinterpret_cast(&_impl_.roll_deg_), - reinterpret_cast(&other->_impl_.roll_deg_)); -} - -::google::protobuf::Metadata EulerAngle::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[69]); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.EulerAngle) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t EulerAngle::ByteSizeLong(const MessageLite& base) +{ + const EulerAngle& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t EulerAngle::ByteSizeLong() const +{ + const EulerAngle& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.EulerAngle) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // float roll_deg = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_roll_deg()) != 0) { + total_size += 5; + } + // float pitch_deg = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_pitch_deg()) != 0) { + total_size += 5; + } + // float yaw_deg = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_yaw_deg()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -// =================================================================== -class CaptureInfo::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::Position& position(const CaptureInfo* msg); - static void set_has_position(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::camera::Quaternion& attitude_quaternion(const CaptureInfo* msg); - static void set_has_attitude_quaternion(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::mavsdk::rpc::camera::EulerAngle& attitude_euler_angle(const CaptureInfo* msg); - static void set_has_attitude_euler_angle(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } -}; +void EulerAngle::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.EulerAngle) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (::absl::bit_cast<::uint32_t>(from._internal_roll_deg()) != 0) { + _this->_impl_.roll_deg_ = from._impl_.roll_deg_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_pitch_deg()) != 0) { + _this->_impl_.pitch_deg_ = from._impl_.pitch_deg_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_yaw_deg()) != 0) { + _this->_impl_.yaw_deg_ = from._impl_.yaw_deg_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} -const ::mavsdk::rpc::camera::Position& CaptureInfo::_Internal::position(const CaptureInfo* msg) { - return *msg->_impl_.position_; +void EulerAngle::CopyFrom(const EulerAngle& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.EulerAngle) + if (&from == this) + return; + Clear(); + MergeFrom(from); } -const ::mavsdk::rpc::camera::Quaternion& CaptureInfo::_Internal::attitude_quaternion(const CaptureInfo* msg) { - return *msg->_impl_.attitude_quaternion_; + +void EulerAngle::InternalSwap(EulerAngle* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.yaw_deg_) + sizeof(EulerAngle::_impl_.yaw_deg_) - + PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.roll_deg_)>( + reinterpret_cast(&_impl_.roll_deg_), + reinterpret_cast(&other->_impl_.roll_deg_)); } -const ::mavsdk::rpc::camera::EulerAngle& CaptureInfo::_Internal::attitude_euler_angle(const CaptureInfo* msg) { - return *msg->_impl_.attitude_euler_angle_; + +::google::protobuf::Metadata EulerAngle::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } +// =================================================================== + +class CaptureInfo::_Internal { +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_._has_bits_); +}; + CaptureInfo::CaptureInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CaptureInfo) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CaptureInfo) } inline PROTOBUF_NDEBUG_INLINE CaptureInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - file_url_(arena, from.file_url_) {} - -CaptureInfo::CaptureInfo( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const CaptureInfo& from) - : ::google::protobuf::Message(arena) { - CaptureInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.position_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::Position>(arena, *from._impl_.position_) - : nullptr; - _impl_.attitude_quaternion_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::Quaternion>(arena, *from._impl_.attitude_quaternion_) - : nullptr; - _impl_.attitude_euler_angle_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::EulerAngle>(arena, *from._impl_.attitude_euler_angle_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, time_utc_us_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, time_utc_us_), - offsetof(Impl_, index_) - - offsetof(Impl_, time_utc_us_) + - sizeof(Impl_::index_)); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CaptureInfo) + const Impl_& from, + const ::mavsdk::rpc::camera::CaptureInfo& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0}, + file_url_(arena, from.file_url_) +{} + +CaptureInfo::CaptureInfo(::google::protobuf::Arena* arena, const CaptureInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + CaptureInfo* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.position_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Position>( + arena, *from._impl_.position_) : + nullptr; + _impl_.attitude_quaternion_ = + (cached_has_bits & 0x00000002u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Quaternion>( + arena, *from._impl_.attitude_quaternion_) : + nullptr; + _impl_.attitude_euler_angle_ = + (cached_has_bits & 0x00000004u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::EulerAngle>( + arena, *from._impl_.attitude_euler_angle_) : + nullptr; + ::memcpy( + reinterpret_cast(&_impl_) + offsetof(Impl_, time_utc_us_), + reinterpret_cast(&from._impl_) + offsetof(Impl_, time_utc_us_), + offsetof(Impl_, index_) - offsetof(Impl_, time_utc_us_) + sizeof(Impl_::index_)); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CaptureInfo) } inline PROTOBUF_NDEBUG_INLINE CaptureInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - file_url_(arena) {} - -inline void CaptureInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, position_), - 0, - offsetof(Impl_, index_) - - offsetof(Impl_, position_) + - sizeof(Impl_::index_)); -} -CaptureInfo::~CaptureInfo() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CaptureInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CaptureInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.file_url_.Destroy(); - delete _impl_.position_; - delete _impl_.attitude_quaternion_; - delete _impl_.attitude_euler_angle_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CaptureInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CaptureInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.file_url_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.position_ != nullptr); - _impl_.position_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.attitude_quaternion_ != nullptr); - _impl_.attitude_quaternion_->Clear(); + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0}, + file_url_(arena) +{} + +inline void CaptureInfo::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, position_), + 0, + offsetof(Impl_, index_) - offsetof(Impl_, position_) + sizeof(Impl_::index_)); +} +CaptureInfo::~CaptureInfo() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CaptureInfo) + SharedDtor(*this); +} +inline void CaptureInfo::SharedDtor(MessageLite& self) +{ + CaptureInfo& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.file_url_.Destroy(); + delete this_._impl_.position_; + delete this_._impl_.attitude_quaternion_; + delete this_._impl_.attitude_euler_angle_; + this_._impl_.~Impl_(); +} + +inline void* CaptureInfo::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) CaptureInfo(arena); +} +constexpr auto CaptureInfo::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(CaptureInfo), alignof(CaptureInfo)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CaptureInfo::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CaptureInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CaptureInfo::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CaptureInfo::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &CaptureInfo::ByteSizeLong, + &CaptureInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_._cached_size_), + false, + }, + &CaptureInfo::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CaptureInfo::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<3, 7, 3, 46, 2> + CaptureInfo::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_._has_bits_), + 0, // no _extensions_ + 7, + 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967168, // skipmap + offsetof(decltype(_table_), field_entries), + 7, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CaptureInfo>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + // .mavsdk.rpc.camera.Position position = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.position_)}}, + // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 1, PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.attitude_quaternion_)}}, + // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; + {::_pbi::TcParser::FastMtS1, + {26, 2, 2, PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.attitude_euler_angle_)}}, + // uint64 time_utc_us = 4; + {::_pbi::TcParser:: + SingularVarintNoZag1<::uint64_t, offsetof(CaptureInfo, _impl_.time_utc_us_), 63>(), + {32, 63, 0, PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.time_utc_us_)}}, + // bool is_success = 5; + {::_pbi::TcParser:: + SingularVarintNoZag1(), + {40, 63, 0, PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.is_success_)}}, + // int32 index = 6; + {::_pbi::TcParser:: + SingularVarintNoZag1<::uint32_t, offsetof(CaptureInfo, _impl_.index_), 63>(), + {48, 63, 0, PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.index_)}}, + // string file_url = 7; + {::_pbi::TcParser::FastUS1, + {58, 63, 0, PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.file_url_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.Position position = 1; + {PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.position_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; + {PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.attitude_quaternion_), + _Internal::kHasBitsOffset + 1, + 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; + {PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.attitude_euler_angle_), + _Internal::kHasBitsOffset + 2, + 2, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // uint64 time_utc_us = 4; + {PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.time_utc_us_), + -1, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + // bool is_success = 5; + {PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.is_success_), + -1, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // int32 index = 6; + {PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.index_), + -1, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + // string file_url = 7; + {PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.file_url_), + -1, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Position>()}, + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Quaternion>()}, + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::EulerAngle>()}, + }}, + {{"\35\0\0\0\0\0\0\10" + "mavsdk.rpc.camera.CaptureInfo" + "file_url"}}, + }; + +PROTOBUF_NOINLINE void CaptureInfo::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CaptureInfo) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.file_url_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.position_ != nullptr); + _impl_.position_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.attitude_quaternion_ != nullptr); + _impl_.attitude_quaternion_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + ABSL_DCHECK(_impl_.attitude_euler_angle_ != nullptr); + _impl_.attitude_euler_angle_->Clear(); + } } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.attitude_euler_angle_ != nullptr); - _impl_.attitude_euler_angle_->Clear(); - } - } - ::memset(&_impl_.time_utc_us_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.index_) - - reinterpret_cast(&_impl_.time_utc_us_)) + sizeof(_impl_.index_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CaptureInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 3, 46, 2> CaptureInfo::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_._has_bits_), - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CaptureInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .mavsdk.rpc.camera.Position position = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.position_)}}, - // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.attitude_quaternion_)}}, - // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; - {::_pbi::TcParser::FastMtS1, - {26, 2, 2, PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.attitude_euler_angle_)}}, - // uint64 time_utc_us = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CaptureInfo, _impl_.time_utc_us_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.time_utc_us_)}}, - // bool is_success = 5; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.is_success_)}}, - // int32 index = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CaptureInfo, _impl_.index_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.index_)}}, - // string file_url = 7; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.file_url_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.camera.Position position = 1; - {PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.position_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; - {PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.attitude_quaternion_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; - {PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.attitude_euler_angle_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint64 time_utc_us = 4; - {PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.time_utc_us_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bool is_success = 5; - {PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.is_success_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // int32 index = 6; - {PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.index_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // string file_url = 7; - {PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.file_url_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Position>()}, - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Quaternion>()}, - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::EulerAngle>()}, - }}, {{ - "\35\0\0\0\0\0\0\10" - "mavsdk.rpc.camera.CaptureInfo" - "file_url" - }}, -}; - + ::memset( + &_impl_.time_utc_us_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.index_) - + reinterpret_cast(&_impl_.time_utc_us_)) + + sizeof(_impl_.index_)); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* CaptureInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CaptureInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.Position position = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::position(this), - _Internal::position(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::attitude_quaternion(this), - _Internal::attitude_quaternion(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::attitude_euler_angle(this), - _Internal::attitude_euler_angle(this).GetCachedSize(), target, stream); - } - - // uint64 time_utc_us = 4; - if (this->_internal_time_utc_us() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_time_utc_us(), target); - } - - // bool is_success = 5; - if (this->_internal_is_success() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this->_internal_is_success(), target); - } - - // int32 index = 6; - if (this->_internal_index() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<6>( - stream, this->_internal_index(), target); - } - - // string file_url = 7; - if (!this->_internal_file_url().empty()) { - const std::string& _s = this->_internal_file_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.CaptureInfo.file_url"); - target = stream->WriteStringMaybeAliased(7, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CaptureInfo) - return target; -} - -::size_t CaptureInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CaptureInfo) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string file_url = 7; - if (!this->_internal_file_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_file_url()); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const CaptureInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* CaptureInfo::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const CaptureInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CaptureInfo) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; // .mavsdk.rpc.camera.Position position = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.position_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.position_, this_._impl_.position_->GetCachedSize(), target, stream); } // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.attitude_quaternion_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, + *this_._impl_.attitude_quaternion_, + this_._impl_.attitude_quaternion_->GetCachedSize(), + target, + stream); } // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.attitude_euler_angle_); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, + *this_._impl_.attitude_euler_angle_, + this_._impl_.attitude_euler_angle_->GetCachedSize(), + target, + stream); } - } - // uint64 time_utc_us = 4; - if (this->_internal_time_utc_us() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_time_utc_us()); - } + // uint64 time_utc_us = 4; + if (this_._internal_time_utc_us() != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this_._internal_time_utc_us(), target); + } - // bool is_success = 5; - if (this->_internal_is_success() != 0) { - total_size += 2; - } + // bool is_success = 5; + if (this_._internal_is_success() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this_._internal_is_success(), target); + } - // int32 index = 6; - if (this->_internal_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_index()); - } + // int32 index = 6; + if (this_._internal_index() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( + stream, this_._internal_index(), target); + } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} + // string file_url = 7; + if (!this_._internal_file_url().empty()) { + const std::string& _s = this_._internal_file_url(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), + static_cast(_s.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "mavsdk.rpc.camera.CaptureInfo.file_url"); + target = stream->WriteStringMaybeAliased(7, _s, target); + } -const ::google::protobuf::Message::ClassData CaptureInfo::_class_data_ = { - CaptureInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CaptureInfo::GetClassData() const { - return &_class_data_; -} - -void CaptureInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CaptureInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_file_url().empty()) { - _this->_internal_set_file_url(from._internal_file_url()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_position()->::mavsdk::rpc::camera::Position::MergeFrom( - from._internal_position()); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_attitude_quaternion()->::mavsdk::rpc::camera::Quaternion::MergeFrom( - from._internal_attitude_quaternion()); + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CaptureInfo) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CaptureInfo::ByteSizeLong(const MessageLite& base) +{ + const CaptureInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CaptureInfo::ByteSizeLong() const +{ + const CaptureInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CaptureInfo) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string file_url = 7; + if (!this_._internal_file_url().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_file_url()); + } } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_attitude_euler_angle()->::mavsdk::rpc::camera::EulerAngle::MergeFrom( - from._internal_attitude_euler_angle()); - } - } - if (from._internal_time_utc_us() != 0) { - _this->_internal_set_time_utc_us(from._internal_time_utc_us()); - } - if (from._internal_is_success() != 0) { - _this->_internal_set_is_success(from._internal_is_success()); - } - if (from._internal_index() != 0) { - _this->_internal_set_index(from._internal_index()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void CaptureInfo::CopyFrom(const CaptureInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.CaptureInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool CaptureInfo::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* CaptureInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CaptureInfo::InternalSwap(CaptureInfo* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.file_url_, &other->_impl_.file_url_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.index_) - + sizeof(CaptureInfo::_impl_.index_) - - PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.position_)>( - reinterpret_cast(&_impl_.position_), - reinterpret_cast(&other->_impl_.position_)); -} - -::google::protobuf::Metadata CaptureInfo::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[70]); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // .mavsdk.rpc.camera.Position position = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.position_); + } + // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.attitude_quaternion_); + } + // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.attitude_euler_angle_); + } + } + { + // uint64 time_utc_us = 4; + if (this_._internal_time_utc_us() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this_._internal_time_utc_us()); + } + // bool is_success = 5; + if (this_._internal_is_success() != 0) { + total_size += 2; + } + // int32 index = 6; + if (this_._internal_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this_._internal_index()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void CaptureInfo::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CaptureInfo) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (!from._internal_file_url().empty()) { + _this->_internal_set_file_url(from._internal_file_url()); + } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.position_ != nullptr); + if (_this->_impl_.position_ == nullptr) { + _this->_impl_.position_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Position>( + arena, *from._impl_.position_); + } else { + _this->_impl_.position_->MergeFrom(*from._impl_.position_); + } + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(from._impl_.attitude_quaternion_ != nullptr); + if (_this->_impl_.attitude_quaternion_ == nullptr) { + _this->_impl_.attitude_quaternion_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Quaternion>( + arena, *from._impl_.attitude_quaternion_); + } else { + _this->_impl_.attitude_quaternion_->MergeFrom(*from._impl_.attitude_quaternion_); + } + } + if (cached_has_bits & 0x00000004u) { + ABSL_DCHECK(from._impl_.attitude_euler_angle_ != nullptr); + if (_this->_impl_.attitude_euler_angle_ == nullptr) { + _this->_impl_.attitude_euler_angle_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::EulerAngle>( + arena, *from._impl_.attitude_euler_angle_); + } else { + _this->_impl_.attitude_euler_angle_->MergeFrom(*from._impl_.attitude_euler_angle_); + } + } + } + if (from._internal_time_utc_us() != 0) { + _this->_impl_.time_utc_us_ = from._impl_.time_utc_us_; + } + if (from._internal_is_success() != 0) { + _this->_impl_.is_success_ = from._impl_.is_success_; + } + if (from._internal_index() != 0) { + _this->_impl_.index_ = from._impl_.index_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void CaptureInfo::CopyFrom(const CaptureInfo& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.CaptureInfo) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void CaptureInfo::InternalSwap(CaptureInfo* PROTOBUF_RESTRICT other) +{ + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.file_url_, &other->_impl_.file_url_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.index_) + sizeof(CaptureInfo::_impl_.index_) - + PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.position_)>( + reinterpret_cast(&_impl_.position_), + reinterpret_cast(&other->_impl_.position_)); +} + +::google::protobuf::Metadata CaptureInfo::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class VideoStreamSettings::_Internal { - public: +public: }; VideoStreamSettings::VideoStreamSettings(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.VideoStreamSettings) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.VideoStreamSettings) } inline PROTOBUF_NDEBUG_INLINE VideoStreamSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : uri_(arena, from.uri_), - _cached_size_{0} {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, + const Impl_& from, + const ::mavsdk::rpc::camera::VideoStreamSettings& from_msg) : + uri_(arena, from.uri_), + _cached_size_{0} +{} VideoStreamSettings::VideoStreamSettings( - ::google::protobuf::Arena* arena, - const VideoStreamSettings& from) - : ::google::protobuf::Message(arena) { - VideoStreamSettings* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, frame_rate_hz_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, frame_rate_hz_), - offsetof(Impl_, horizontal_fov_deg_) - - offsetof(Impl_, frame_rate_hz_) + - sizeof(Impl_::horizontal_fov_deg_)); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.VideoStreamSettings) + ::google::protobuf::Arena* arena, const VideoStreamSettings& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + VideoStreamSettings* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy( + reinterpret_cast(&_impl_) + offsetof(Impl_, frame_rate_hz_), + reinterpret_cast(&from._impl_) + offsetof(Impl_, frame_rate_hz_), + offsetof(Impl_, horizontal_fov_deg_) - offsetof(Impl_, frame_rate_hz_) + + sizeof(Impl_::horizontal_fov_deg_)); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.VideoStreamSettings) } inline PROTOBUF_NDEBUG_INLINE VideoStreamSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : uri_(arena), - _cached_size_{0} {} - -inline void VideoStreamSettings::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, frame_rate_hz_), - 0, - offsetof(Impl_, horizontal_fov_deg_) - - offsetof(Impl_, frame_rate_hz_) + - sizeof(Impl_::horizontal_fov_deg_)); -} -VideoStreamSettings::~VideoStreamSettings() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.VideoStreamSettings) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void VideoStreamSettings::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.uri_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void VideoStreamSettings::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.VideoStreamSettings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.uri_.ClearToEmpty(); - ::memset(&_impl_.frame_rate_hz_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.horizontal_fov_deg_) - - reinterpret_cast(&_impl_.frame_rate_hz_)) + sizeof(_impl_.horizontal_fov_deg_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* VideoStreamSettings::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 0, 49, 2> VideoStreamSettings::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_VideoStreamSettings_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // float frame_rate_hz = 1; - {::_pbi::TcParser::FastF32S1, - {13, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.frame_rate_hz_)}}, - // uint32 horizontal_resolution_pix = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(VideoStreamSettings, _impl_.horizontal_resolution_pix_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.horizontal_resolution_pix_)}}, - // uint32 vertical_resolution_pix = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(VideoStreamSettings, _impl_.vertical_resolution_pix_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.vertical_resolution_pix_)}}, - // uint32 bit_rate_b_s = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(VideoStreamSettings, _impl_.bit_rate_b_s_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.bit_rate_b_s_)}}, - // uint32 rotation_deg = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(VideoStreamSettings, _impl_.rotation_deg_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.rotation_deg_)}}, - // string uri = 6; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.uri_)}}, - // float horizontal_fov_deg = 7; - {::_pbi::TcParser::FastF32S1, - {61, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.horizontal_fov_deg_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + uri_(arena), + _cached_size_{0} +{} + +inline void VideoStreamSettings::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, frame_rate_hz_), + 0, + offsetof(Impl_, horizontal_fov_deg_) - offsetof(Impl_, frame_rate_hz_) + + sizeof(Impl_::horizontal_fov_deg_)); +} +VideoStreamSettings::~VideoStreamSettings() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.VideoStreamSettings) + SharedDtor(*this); +} +inline void VideoStreamSettings::SharedDtor(MessageLite& self) +{ + VideoStreamSettings& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.uri_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* +VideoStreamSettings::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) VideoStreamSettings(arena); +} +constexpr auto VideoStreamSettings::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(VideoStreamSettings), alignof(VideoStreamSettings)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull VideoStreamSettings::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_VideoStreamSettings_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &VideoStreamSettings::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &VideoStreamSettings::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &VideoStreamSettings::ByteSizeLong, + &VideoStreamSettings::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_._cached_size_), + false, + }, + &VideoStreamSettings::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* VideoStreamSettings::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<3, 7, 0, 49, 2> + VideoStreamSettings::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 7, + 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967168, // skipmap + offsetof(decltype(_table_), field_entries), + 7, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::VideoStreamSettings>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + // float frame_rate_hz = 1; + {::_pbi::TcParser::FastF32S1, + {13, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.frame_rate_hz_)}}, + // uint32 horizontal_resolution_pix = 2; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(VideoStreamSettings, _impl_.horizontal_resolution_pix_), + 63>(), + {16, + 63, + 0, + PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.horizontal_resolution_pix_)}}, + // uint32 vertical_resolution_pix = 3; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(VideoStreamSettings, _impl_.vertical_resolution_pix_), + 63>(), + {24, + 63, + 0, + PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.vertical_resolution_pix_)}}, + // uint32 bit_rate_b_s = 4; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(VideoStreamSettings, _impl_.bit_rate_b_s_), + 63>(), + {32, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.bit_rate_b_s_)}}, + // uint32 rotation_deg = 5; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(VideoStreamSettings, _impl_.rotation_deg_), + 63>(), + {40, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.rotation_deg_)}}, + // string uri = 6; + {::_pbi::TcParser::FastUS1, + {50, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.uri_)}}, + // float horizontal_fov_deg = 7; + {::_pbi::TcParser::FastF32S1, + {61, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.horizontal_fov_deg_)}}, + }}, + {{65535, 65535}}, + {{ + // float frame_rate_hz = 1; + {PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.frame_rate_hz_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // uint32 horizontal_resolution_pix = 2; + {PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.horizontal_resolution_pix_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // uint32 vertical_resolution_pix = 3; + {PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.vertical_resolution_pix_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // uint32 bit_rate_b_s = 4; + {PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.bit_rate_b_s_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // uint32 rotation_deg = 5; + {PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.rotation_deg_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // string uri = 6; + {PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.uri_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // float horizontal_fov_deg = 7; + {PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.horizontal_fov_deg_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{"\45\0\0\0\0\0\3\0" + "mavsdk.rpc.camera.VideoStreamSettings" + "uri"}}, + }; + +PROTOBUF_NOINLINE void VideoStreamSettings::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.VideoStreamSettings) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.uri_.ClearToEmpty(); + ::memset( + &_impl_.frame_rate_hz_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.horizontal_fov_deg_) - + reinterpret_cast(&_impl_.frame_rate_hz_)) + + sizeof(_impl_.horizontal_fov_deg_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* VideoStreamSettings::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const VideoStreamSettings& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* VideoStreamSettings::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const VideoStreamSettings& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.VideoStreamSettings) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // float frame_rate_hz = 1; - {PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.frame_rate_hz_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_frame_rate_hz()) != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteFloatToArray(1, this_._internal_frame_rate_hz(), target); + } + // uint32 horizontal_resolution_pix = 2; - {PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.horizontal_resolution_pix_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + if (this_._internal_horizontal_resolution_pix() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this_._internal_horizontal_resolution_pix(), target); + } + // uint32 vertical_resolution_pix = 3; - {PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.vertical_resolution_pix_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + if (this_._internal_vertical_resolution_pix() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 3, this_._internal_vertical_resolution_pix(), target); + } + // uint32 bit_rate_b_s = 4; - {PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.bit_rate_b_s_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + if (this_._internal_bit_rate_b_s() != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this_._internal_bit_rate_b_s(), target); + } + // uint32 rotation_deg = 5; - {PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.rotation_deg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + if (this_._internal_rotation_deg() != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this_._internal_rotation_deg(), target); + } + // string uri = 6; - {PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.uri_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + if (!this_._internal_uri().empty()) { + const std::string& _s = this_._internal_uri(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), + static_cast(_s.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "mavsdk.rpc.camera.VideoStreamSettings.uri"); + target = stream->WriteStringMaybeAliased(6, _s, target); + } + // float horizontal_fov_deg = 7; - {PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.horizontal_fov_deg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - "\45\0\0\0\0\0\3\0" - "mavsdk.rpc.camera.VideoStreamSettings" - "uri" - }}, -}; + if (::absl::bit_cast<::uint32_t>(this_._internal_horizontal_fov_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 7, this_._internal_horizontal_fov_deg(), target); + } -::uint8_t* VideoStreamSettings::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.VideoStreamSettings) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float frame_rate_hz = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_frame_rate_hz = this->_internal_frame_rate_hz(); - ::uint32_t raw_frame_rate_hz; - memcpy(&raw_frame_rate_hz, &tmp_frame_rate_hz, sizeof(tmp_frame_rate_hz)); - if (raw_frame_rate_hz != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_frame_rate_hz(), target); - } - - // uint32 horizontal_resolution_pix = 2; - if (this->_internal_horizontal_resolution_pix() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_horizontal_resolution_pix(), target); - } - - // uint32 vertical_resolution_pix = 3; - if (this->_internal_vertical_resolution_pix() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_vertical_resolution_pix(), target); - } - - // uint32 bit_rate_b_s = 4; - if (this->_internal_bit_rate_b_s() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 4, this->_internal_bit_rate_b_s(), target); - } - - // uint32 rotation_deg = 5; - if (this->_internal_rotation_deg() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 5, this->_internal_rotation_deg(), target); - } - - // string uri = 6; - if (!this->_internal_uri().empty()) { - const std::string& _s = this->_internal_uri(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.VideoStreamSettings.uri"); - target = stream->WriteStringMaybeAliased(6, _s, target); - } - - // float horizontal_fov_deg = 7; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_horizontal_fov_deg = this->_internal_horizontal_fov_deg(); - ::uint32_t raw_horizontal_fov_deg; - memcpy(&raw_horizontal_fov_deg, &tmp_horizontal_fov_deg, sizeof(tmp_horizontal_fov_deg)); - if (raw_horizontal_fov_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 7, this->_internal_horizontal_fov_deg(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.VideoStreamSettings) - return target; -} - -::size_t VideoStreamSettings::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.VideoStreamSettings) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string uri = 6; - if (!this->_internal_uri().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_uri()); - } - - // float frame_rate_hz = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_frame_rate_hz = this->_internal_frame_rate_hz(); - ::uint32_t raw_frame_rate_hz; - memcpy(&raw_frame_rate_hz, &tmp_frame_rate_hz, sizeof(tmp_frame_rate_hz)); - if (raw_frame_rate_hz != 0) { - total_size += 5; - } - - // uint32 horizontal_resolution_pix = 2; - if (this->_internal_horizontal_resolution_pix() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_horizontal_resolution_pix()); - } - - // uint32 vertical_resolution_pix = 3; - if (this->_internal_vertical_resolution_pix() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_vertical_resolution_pix()); - } - - // uint32 bit_rate_b_s = 4; - if (this->_internal_bit_rate_b_s() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_bit_rate_b_s()); - } - - // uint32 rotation_deg = 5; - if (this->_internal_rotation_deg() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_rotation_deg()); - } - - // float horizontal_fov_deg = 7; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_horizontal_fov_deg = this->_internal_horizontal_fov_deg(); - ::uint32_t raw_horizontal_fov_deg; - memcpy(&raw_horizontal_fov_deg, &tmp_horizontal_fov_deg, sizeof(tmp_horizontal_fov_deg)); - if (raw_horizontal_fov_deg != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData VideoStreamSettings::_class_data_ = { - VideoStreamSettings::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* VideoStreamSettings::GetClassData() const { - return &_class_data_; -} - -void VideoStreamSettings::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.VideoStreamSettings) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_uri().empty()) { - _this->_internal_set_uri(from._internal_uri()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_frame_rate_hz = from._internal_frame_rate_hz(); - ::uint32_t raw_frame_rate_hz; - memcpy(&raw_frame_rate_hz, &tmp_frame_rate_hz, sizeof(tmp_frame_rate_hz)); - if (raw_frame_rate_hz != 0) { - _this->_internal_set_frame_rate_hz(from._internal_frame_rate_hz()); - } - if (from._internal_horizontal_resolution_pix() != 0) { - _this->_internal_set_horizontal_resolution_pix(from._internal_horizontal_resolution_pix()); - } - if (from._internal_vertical_resolution_pix() != 0) { - _this->_internal_set_vertical_resolution_pix(from._internal_vertical_resolution_pix()); - } - if (from._internal_bit_rate_b_s() != 0) { - _this->_internal_set_bit_rate_b_s(from._internal_bit_rate_b_s()); - } - if (from._internal_rotation_deg() != 0) { - _this->_internal_set_rotation_deg(from._internal_rotation_deg()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_horizontal_fov_deg = from._internal_horizontal_fov_deg(); - ::uint32_t raw_horizontal_fov_deg; - memcpy(&raw_horizontal_fov_deg, &tmp_horizontal_fov_deg, sizeof(tmp_horizontal_fov_deg)); - if (raw_horizontal_fov_deg != 0) { - _this->_internal_set_horizontal_fov_deg(from._internal_horizontal_fov_deg()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void VideoStreamSettings::CopyFrom(const VideoStreamSettings& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.VideoStreamSettings) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool VideoStreamSettings::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* VideoStreamSettings::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void VideoStreamSettings::InternalSwap(VideoStreamSettings* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.uri_, &other->_impl_.uri_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.horizontal_fov_deg_) - + sizeof(VideoStreamSettings::_impl_.horizontal_fov_deg_) - - PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.frame_rate_hz_)>( - reinterpret_cast(&_impl_.frame_rate_hz_), - reinterpret_cast(&other->_impl_.frame_rate_hz_)); -} - -::google::protobuf::Metadata VideoStreamSettings::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[71]); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.VideoStreamSettings) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t VideoStreamSettings::ByteSizeLong(const MessageLite& base) +{ + const VideoStreamSettings& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t VideoStreamSettings::ByteSizeLong() const +{ + const VideoStreamSettings& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.VideoStreamSettings) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string uri = 6; + if (!this_._internal_uri().empty()) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::StringSize(this_._internal_uri()); + } + // float frame_rate_hz = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_frame_rate_hz()) != 0) { + total_size += 5; + } + // uint32 horizontal_resolution_pix = 2; + if (this_._internal_horizontal_resolution_pix() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_horizontal_resolution_pix()); + } + // uint32 vertical_resolution_pix = 3; + if (this_._internal_vertical_resolution_pix() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_vertical_resolution_pix()); + } + // uint32 bit_rate_b_s = 4; + if (this_._internal_bit_rate_b_s() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this_._internal_bit_rate_b_s()); + } + // uint32 rotation_deg = 5; + if (this_._internal_rotation_deg() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this_._internal_rotation_deg()); + } + // float horizontal_fov_deg = 7; + if (::absl::bit_cast<::uint32_t>(this_._internal_horizontal_fov_deg()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void VideoStreamSettings::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.VideoStreamSettings) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (!from._internal_uri().empty()) { + _this->_internal_set_uri(from._internal_uri()); + } + if (::absl::bit_cast<::uint32_t>(from._internal_frame_rate_hz()) != 0) { + _this->_impl_.frame_rate_hz_ = from._impl_.frame_rate_hz_; + } + if (from._internal_horizontal_resolution_pix() != 0) { + _this->_impl_.horizontal_resolution_pix_ = from._impl_.horizontal_resolution_pix_; + } + if (from._internal_vertical_resolution_pix() != 0) { + _this->_impl_.vertical_resolution_pix_ = from._impl_.vertical_resolution_pix_; + } + if (from._internal_bit_rate_b_s() != 0) { + _this->_impl_.bit_rate_b_s_ = from._impl_.bit_rate_b_s_; + } + if (from._internal_rotation_deg() != 0) { + _this->_impl_.rotation_deg_ = from._impl_.rotation_deg_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_horizontal_fov_deg()) != 0) { + _this->_impl_.horizontal_fov_deg_ = from._impl_.horizontal_fov_deg_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void VideoStreamSettings::CopyFrom(const VideoStreamSettings& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.VideoStreamSettings) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void VideoStreamSettings::InternalSwap(VideoStreamSettings* PROTOBUF_RESTRICT other) +{ + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.uri_, &other->_impl_.uri_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.horizontal_fov_deg_) + + sizeof(VideoStreamSettings::_impl_.horizontal_fov_deg_) - + PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.frame_rate_hz_)>( + reinterpret_cast(&_impl_.frame_rate_hz_), + reinterpret_cast(&other->_impl_.frame_rate_hz_)); +} + +::google::protobuf::Metadata VideoStreamSettings::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class VideoStreamInfo::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::VideoStreamSettings& settings(const VideoStreamInfo* msg); - static void set_has_settings(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } +public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::VideoStreamSettings& VideoStreamInfo::_Internal::settings(const VideoStreamInfo* msg) { - return *msg->_impl_.settings_; -} VideoStreamInfo::VideoStreamInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.VideoStreamInfo) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.VideoStreamInfo) } inline PROTOBUF_NDEBUG_INLINE VideoStreamInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -VideoStreamInfo::VideoStreamInfo( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const VideoStreamInfo& from) - : ::google::protobuf::Message(arena) { - VideoStreamInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.settings_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::VideoStreamSettings>(arena, *from._impl_.settings_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, status_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, status_), - offsetof(Impl_, spectrum_) - - offsetof(Impl_, status_) + - sizeof(Impl_::spectrum_)); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.VideoStreamInfo) + const Impl_& from, + const ::mavsdk::rpc::camera::VideoStreamInfo& from_msg) : + _has_bits_{from._has_bits_}, + _cached_size_{0} +{} + +VideoStreamInfo::VideoStreamInfo(::google::protobuf::Arena* arena, const VideoStreamInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + VideoStreamInfo* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.settings_ = + (cached_has_bits & 0x00000001u) ? + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::VideoStreamSettings>( + arena, *from._impl_.settings_) : + nullptr; + ::memcpy( + reinterpret_cast(&_impl_) + offsetof(Impl_, status_), + reinterpret_cast(&from._impl_) + offsetof(Impl_, status_), + offsetof(Impl_, spectrum_) - offsetof(Impl_, status_) + sizeof(Impl_::spectrum_)); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.VideoStreamInfo) } inline PROTOBUF_NDEBUG_INLINE VideoStreamInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void VideoStreamInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, settings_), - 0, - offsetof(Impl_, spectrum_) - - offsetof(Impl_, settings_) + - sizeof(Impl_::spectrum_)); -} -VideoStreamInfo::~VideoStreamInfo() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.VideoStreamInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void VideoStreamInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.settings_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void VideoStreamInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.VideoStreamInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.settings_ != nullptr); - _impl_.settings_->Clear(); - } - ::memset(&_impl_.status_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.spectrum_) - - reinterpret_cast(&_impl_.status_)) + sizeof(_impl_.spectrum_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* VideoStreamInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 0, 2> VideoStreamInfo::_table_ = { - { - PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_VideoStreamInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.settings_)}}, - // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamStatus status = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(VideoStreamInfo, _impl_.status_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.status_)}}, - // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamSpectrum spectrum = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(VideoStreamInfo, _impl_.spectrum_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.spectrum_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + _cached_size_{0} +{} + +inline void VideoStreamInfo::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, settings_), + 0, + offsetof(Impl_, spectrum_) - offsetof(Impl_, settings_) + sizeof(Impl_::spectrum_)); +} +VideoStreamInfo::~VideoStreamInfo() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.VideoStreamInfo) + SharedDtor(*this); +} +inline void VideoStreamInfo::SharedDtor(MessageLite& self) +{ + VideoStreamInfo& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.settings_; + this_._impl_.~Impl_(); +} + +inline void* +VideoStreamInfo::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) VideoStreamInfo(arena); +} +constexpr auto VideoStreamInfo::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(VideoStreamInfo), alignof(VideoStreamInfo)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull VideoStreamInfo::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_VideoStreamInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &VideoStreamInfo::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &VideoStreamInfo::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &VideoStreamInfo::ByteSizeLong, + &VideoStreamInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_._cached_size_), + false, + }, + &VideoStreamInfo::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* VideoStreamInfo::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 1, 0, 2> + VideoStreamInfo::_table_ = { + { + PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_._has_bits_), + 0, // no _extensions_ + 3, + 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::VideoStreamInfo>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.settings_)}}, + // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamStatus status = 2; + {::_pbi::TcParser:: + SingularVarintNoZag1<::uint32_t, offsetof(VideoStreamInfo, _impl_.status_), 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.status_)}}, + // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamSpectrum spectrum = 3; + {::_pbi::TcParser::SingularVarintNoZag1< + ::uint32_t, + offsetof(VideoStreamInfo, _impl_.spectrum_), + 63>(), + {24, 63, 0, PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.spectrum_)}}, + }}, + {{65535, 65535}}, + {{ + // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; + {PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.settings_), + _Internal::kHasBitsOffset + 0, + 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamStatus status = 2; + {PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.status_), + -1, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamSpectrum spectrum = 3; + {PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.spectrum_), + -1, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::VideoStreamSettings>()}, + }}, + {{}}, + }; + +PROTOBUF_NOINLINE void VideoStreamInfo::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.VideoStreamInfo) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.settings_ != nullptr); + _impl_.settings_->Clear(); + } + ::memset( + &_impl_.status_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.spectrum_) - reinterpret_cast(&_impl_.status_)) + + sizeof(_impl_.spectrum_)); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* VideoStreamInfo::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const VideoStreamInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* VideoStreamInfo::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const VideoStreamInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.VideoStreamInfo) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; - {PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.settings_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.settings_, this_._impl_.settings_->GetCachedSize(), target, stream); + } + // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamStatus status = 2; - {PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.status_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + if (this_._internal_status() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray(2, this_._internal_status(), target); + } + // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamSpectrum spectrum = 3; - {PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.spectrum_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::VideoStreamSettings>()}, - }}, {{ - }}, -}; + if (this_._internal_spectrum() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray(3, this_._internal_spectrum(), target); + } -::uint8_t* VideoStreamInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.VideoStreamInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::settings(this), - _Internal::settings(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamStatus status = 2; - if (this->_internal_status() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_status(), target); - } - - // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamSpectrum spectrum = 3; - if (this->_internal_spectrum() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_spectrum(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.VideoStreamInfo) - return target; -} - -::size_t VideoStreamInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.VideoStreamInfo) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.settings_); - } - - // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamStatus status = 2; - if (this->_internal_status() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); - } - - // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamSpectrum spectrum = 3; - if (this->_internal_spectrum() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_spectrum()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData VideoStreamInfo::_class_data_ = { - VideoStreamInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* VideoStreamInfo::GetClassData() const { - return &_class_data_; -} - -void VideoStreamInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.VideoStreamInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_settings()->::mavsdk::rpc::camera::VideoStreamSettings::MergeFrom( - from._internal_settings()); - } - if (from._internal_status() != 0) { - _this->_internal_set_status(from._internal_status()); - } - if (from._internal_spectrum() != 0) { - _this->_internal_set_spectrum(from._internal_spectrum()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void VideoStreamInfo::CopyFrom(const VideoStreamInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.VideoStreamInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool VideoStreamInfo::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* VideoStreamInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void VideoStreamInfo::InternalSwap(VideoStreamInfo* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.spectrum_) - + sizeof(VideoStreamInfo::_impl_.spectrum_) - - PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.settings_)>( - reinterpret_cast(&_impl_.settings_), - reinterpret_cast(&other->_impl_.settings_)); -} - -::google::protobuf::Metadata VideoStreamInfo::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[72]); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.VideoStreamInfo) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t VideoStreamInfo::ByteSizeLong(const MessageLite& base) +{ + const VideoStreamInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t VideoStreamInfo::ByteSizeLong() const +{ + const VideoStreamInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.VideoStreamInfo) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this_._impl_.settings_); + } + } + { + // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamStatus status = 2; + if (this_._internal_status() != 0) { + total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_status()); + } + // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamSpectrum spectrum = 3; + if (this_._internal_spectrum() != 0) { + total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_spectrum()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void VideoStreamInfo::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.VideoStreamInfo) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.settings_ != nullptr); + if (_this->_impl_.settings_ == nullptr) { + _this->_impl_.settings_ = ::google::protobuf::Message::CopyConstruct< + ::mavsdk::rpc::camera::VideoStreamSettings>(arena, *from._impl_.settings_); + } else { + _this->_impl_.settings_->MergeFrom(*from._impl_.settings_); + } + } + if (from._internal_status() != 0) { + _this->_impl_.status_ = from._impl_.status_; + } + if (from._internal_spectrum() != 0) { + _this->_impl_.spectrum_ = from._impl_.spectrum_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void VideoStreamInfo::CopyFrom(const VideoStreamInfo& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.VideoStreamInfo) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void VideoStreamInfo::InternalSwap(VideoStreamInfo* PROTOBUF_RESTRICT other) +{ + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.spectrum_) + + sizeof(VideoStreamInfo::_impl_.spectrum_) - + PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.settings_)>( + reinterpret_cast(&_impl_.settings_), + reinterpret_cast(&other->_impl_.settings_)); +} + +::google::protobuf::Metadata VideoStreamInfo::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class Status::_Internal { - public: +public: }; Status::Status(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Status) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Status) } inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : media_folder_name_(arena, from.media_folder_name_), - _cached_size_{0} {} - -Status::Status( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Status& from) - : ::google::protobuf::Message(arena) { - Status* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, video_on_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, video_on_), - offsetof(Impl_, storage_type_) - - offsetof(Impl_, video_on_) + - sizeof(Impl_::storage_type_)); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.Status) + const Impl_& from, + const ::mavsdk::rpc::camera::Status& from_msg) : + media_folder_name_(arena, from.media_folder_name_), + _cached_size_{0} +{} + +Status::Status(::google::protobuf::Arena* arena, const Status& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + Status* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy( + reinterpret_cast(&_impl_) + offsetof(Impl_, video_on_), + reinterpret_cast(&from._impl_) + offsetof(Impl_, video_on_), + offsetof(Impl_, storage_type_) - offsetof(Impl_, video_on_) + sizeof(Impl_::storage_type_)); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.Status) } inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : media_folder_name_(arena), - _cached_size_{0} {} - -inline void Status::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, video_on_), - 0, - offsetof(Impl_, storage_type_) - - offsetof(Impl_, video_on_) + - sizeof(Impl_::storage_type_)); -} -Status::~Status() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.Status) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Status::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.media_folder_name_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Status::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Status) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.media_folder_name_.ClearToEmpty(); - ::memset(&_impl_.video_on_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.storage_type_) - - reinterpret_cast(&_impl_.video_on_)) + sizeof(_impl_.storage_type_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Status::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 10, 0, 58, 2> Status::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 10, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966272, // skipmap - offsetof(decltype(_table_), field_entries), - 10, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Status_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bool video_on = 1; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.video_on_)}}, - // bool photo_interval_on = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.photo_interval_on_)}}, - // float used_storage_mib = 3; - {::_pbi::TcParser::FastF32S1, - {29, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.used_storage_mib_)}}, - // float available_storage_mib = 4; - {::_pbi::TcParser::FastF32S1, - {37, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.available_storage_mib_)}}, - // float total_storage_mib = 5; - {::_pbi::TcParser::FastF32S1, - {45, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.total_storage_mib_)}}, - // float recording_time_s = 6; - {::_pbi::TcParser::FastF32S1, - {53, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.recording_time_s_)}}, - // string media_folder_name = 7; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.media_folder_name_)}}, - // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Status, _impl_.storage_status_), 63>(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.storage_status_)}}, - // uint32 storage_id = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Status, _impl_.storage_id_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.storage_id_)}}, - // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Status, _impl_.storage_type_), 63>(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.storage_type_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + media_folder_name_(arena), + _cached_size_{0} +{} + +inline void Status::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset( + reinterpret_cast(&_impl_) + offsetof(Impl_, video_on_), + 0, + offsetof(Impl_, storage_type_) - offsetof(Impl_, video_on_) + sizeof(Impl_::storage_type_)); +} +Status::~Status() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.Status) + SharedDtor(*this); +} +inline void Status::SharedDtor(MessageLite& self) +{ + Status& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.media_folder_name_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* Status::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) Status(arena); +} +constexpr auto Status::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Status), alignof(Status)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull Status::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Status_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Status::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Status::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), + &Status::ByteSizeLong, + &Status::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Status, _impl_._cached_size_), + false, + }, + &Status::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* Status::GetClassData() const +{ + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<4, 10, 0, 58, 2> + Status::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 10, + 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966272, // skipmap + offsetof(decltype(_table_), field_entries), + 10, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback +#ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Status>(), // to_prefetch +#endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, + {{ + {::_pbi::TcParser::MiniParse, {}}, + // bool video_on = 1; + {::_pbi::TcParser::SingularVarintNoZag1(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.video_on_)}}, + // bool photo_interval_on = 2; + {::_pbi::TcParser:: + SingularVarintNoZag1(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.photo_interval_on_)}}, + // float used_storage_mib = 3; + {::_pbi::TcParser::FastF32S1, + {29, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.used_storage_mib_)}}, + // float available_storage_mib = 4; + {::_pbi::TcParser::FastF32S1, + {37, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.available_storage_mib_)}}, + // float total_storage_mib = 5; + {::_pbi::TcParser::FastF32S1, + {45, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.total_storage_mib_)}}, + // float recording_time_s = 6; + {::_pbi::TcParser::FastF32S1, + {53, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.recording_time_s_)}}, + // string media_folder_name = 7; + {::_pbi::TcParser::FastUS1, + {58, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.media_folder_name_)}}, + // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; + {::_pbi::TcParser:: + SingularVarintNoZag1<::uint32_t, offsetof(Status, _impl_.storage_status_), 63>(), + {64, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.storage_status_)}}, + // uint32 storage_id = 9; + {::_pbi::TcParser:: + SingularVarintNoZag1<::uint32_t, offsetof(Status, _impl_.storage_id_), 63>(), + {72, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.storage_id_)}}, + // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; + {::_pbi::TcParser:: + SingularVarintNoZag1<::uint32_t, offsetof(Status, _impl_.storage_type_), 63>(), + {80, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.storage_type_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, + {{65535, 65535}}, + {{ + // bool video_on = 1; + {PROTOBUF_FIELD_OFFSET(Status, _impl_.video_on_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // bool photo_interval_on = 2; + {PROTOBUF_FIELD_OFFSET(Status, _impl_.photo_interval_on_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // float used_storage_mib = 3; + {PROTOBUF_FIELD_OFFSET(Status, _impl_.used_storage_mib_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float available_storage_mib = 4; + {PROTOBUF_FIELD_OFFSET(Status, _impl_.available_storage_mib_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float total_storage_mib = 5; + {PROTOBUF_FIELD_OFFSET(Status, _impl_.total_storage_mib_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float recording_time_s = 6; + {PROTOBUF_FIELD_OFFSET(Status, _impl_.recording_time_s_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // string media_folder_name = 7; + {PROTOBUF_FIELD_OFFSET(Status, _impl_.media_folder_name_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; + {PROTOBUF_FIELD_OFFSET(Status, _impl_.storage_status_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // uint32 storage_id = 9; + {PROTOBUF_FIELD_OFFSET(Status, _impl_.storage_id_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; + {PROTOBUF_FIELD_OFFSET(Status, _impl_.storage_type_), + 0, + 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + }}, + // no aux_entries + {{"\30\0\0\0\0\0\0\21\0\0\0\0\0\0\0\0" + "mavsdk.rpc.camera.Status" + "media_folder_name"}}, + }; + +PROTOBUF_NOINLINE void Status::Clear() +{ + // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Status) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + _impl_.media_folder_name_.ClearToEmpty(); + ::memset( + &_impl_.video_on_, + 0, + static_cast<::size_t>( + reinterpret_cast(&_impl_.storage_type_) - + reinterpret_cast(&_impl_.video_on_)) + + sizeof(_impl_.storage_type_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* Status::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) +{ + const Status& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* Status::_InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const +{ + const Status& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Status) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + // bool video_on = 1; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.video_on_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + if (this_._internal_video_on() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this_._internal_video_on(), target); + } + // bool photo_interval_on = 2; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.photo_interval_on_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + if (this_._internal_photo_interval_on() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_photo_interval_on(), target); + } + // float used_storage_mib = 3; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.used_storage_mib_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_used_storage_mib()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_used_storage_mib(), target); + } + // float available_storage_mib = 4; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.available_storage_mib_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_available_storage_mib()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_available_storage_mib(), target); + } + // float total_storage_mib = 5; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.total_storage_mib_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_total_storage_mib()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 5, this_._internal_total_storage_mib(), target); + } + // float recording_time_s = 6; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.recording_time_s_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + if (::absl::bit_cast<::uint32_t>(this_._internal_recording_time_s()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 6, this_._internal_recording_time_s(), target); + } + // string media_folder_name = 7; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.media_folder_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + if (!this_._internal_media_folder_name().empty()) { + const std::string& _s = this_._internal_media_folder_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), + static_cast(_s.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "mavsdk.rpc.camera.Status.media_folder_name"); + target = stream->WriteStringMaybeAliased(7, _s, target); + } + // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.storage_status_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + if (this_._internal_storage_status() != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteEnumToArray(8, this_._internal_storage_status(), target); + } + // uint32 storage_id = 9; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.storage_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + if (this_._internal_storage_id() != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this_._internal_storage_id(), target); + } + // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.storage_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - "\30\0\0\0\0\0\0\21\0\0\0\0\0\0\0\0" - "mavsdk.rpc.camera.Status" - "media_folder_name" - }}, -}; + if (this_._internal_storage_type() != 0) { + target = stream->EnsureSpace(target); + target = + ::_pbi::WireFormatLite::WriteEnumToArray(10, this_._internal_storage_type(), target); + } -::uint8_t* Status::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Status) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool video_on = 1; - if (this->_internal_video_on() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_video_on(), target); - } - - // bool photo_interval_on = 2; - if (this->_internal_photo_interval_on() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_photo_interval_on(), target); - } - - // float used_storage_mib = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_used_storage_mib = this->_internal_used_storage_mib(); - ::uint32_t raw_used_storage_mib; - memcpy(&raw_used_storage_mib, &tmp_used_storage_mib, sizeof(tmp_used_storage_mib)); - if (raw_used_storage_mib != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_used_storage_mib(), target); - } - - // float available_storage_mib = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_available_storage_mib = this->_internal_available_storage_mib(); - ::uint32_t raw_available_storage_mib; - memcpy(&raw_available_storage_mib, &tmp_available_storage_mib, sizeof(tmp_available_storage_mib)); - if (raw_available_storage_mib != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 4, this->_internal_available_storage_mib(), target); - } - - // float total_storage_mib = 5; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_total_storage_mib = this->_internal_total_storage_mib(); - ::uint32_t raw_total_storage_mib; - memcpy(&raw_total_storage_mib, &tmp_total_storage_mib, sizeof(tmp_total_storage_mib)); - if (raw_total_storage_mib != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 5, this->_internal_total_storage_mib(), target); - } - - // float recording_time_s = 6; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_recording_time_s = this->_internal_recording_time_s(); - ::uint32_t raw_recording_time_s; - memcpy(&raw_recording_time_s, &tmp_recording_time_s, sizeof(tmp_recording_time_s)); - if (raw_recording_time_s != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 6, this->_internal_recording_time_s(), target); - } - - // string media_folder_name = 7; - if (!this->_internal_media_folder_name().empty()) { - const std::string& _s = this->_internal_media_folder_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Status.media_folder_name"); - target = stream->WriteStringMaybeAliased(7, _s, target); - } - - // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; - if (this->_internal_storage_status() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 8, this->_internal_storage_status(), target); - } - - // uint32 storage_id = 9; - if (this->_internal_storage_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 9, this->_internal_storage_id(), target); - } - - // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; - if (this->_internal_storage_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 10, this->_internal_storage_type(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.Status) - return target; -} - -::size_t Status::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Status) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string media_folder_name = 7; - if (!this->_internal_media_folder_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_media_folder_name()); - } - - // bool video_on = 1; - if (this->_internal_video_on() != 0) { - total_size += 2; - } - - // bool photo_interval_on = 2; - if (this->_internal_photo_interval_on() != 0) { - total_size += 2; - } - - // float used_storage_mib = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_used_storage_mib = this->_internal_used_storage_mib(); - ::uint32_t raw_used_storage_mib; - memcpy(&raw_used_storage_mib, &tmp_used_storage_mib, sizeof(tmp_used_storage_mib)); - if (raw_used_storage_mib != 0) { - total_size += 5; - } - - // float available_storage_mib = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_available_storage_mib = this->_internal_available_storage_mib(); - ::uint32_t raw_available_storage_mib; - memcpy(&raw_available_storage_mib, &tmp_available_storage_mib, sizeof(tmp_available_storage_mib)); - if (raw_available_storage_mib != 0) { - total_size += 5; - } - - // float total_storage_mib = 5; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_total_storage_mib = this->_internal_total_storage_mib(); - ::uint32_t raw_total_storage_mib; - memcpy(&raw_total_storage_mib, &tmp_total_storage_mib, sizeof(tmp_total_storage_mib)); - if (raw_total_storage_mib != 0) { - total_size += 5; - } - - // float recording_time_s = 6; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_recording_time_s = this->_internal_recording_time_s(); - ::uint32_t raw_recording_time_s; - memcpy(&raw_recording_time_s, &tmp_recording_time_s, sizeof(tmp_recording_time_s)); - if (raw_recording_time_s != 0) { - total_size += 5; - } - - // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; - if (this->_internal_storage_status() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_storage_status()); - } - - // uint32 storage_id = 9; - if (this->_internal_storage_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_storage_id()); - } - - // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; - if (this->_internal_storage_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_storage_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData Status::_class_data_ = { - Status::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Status::GetClassData() const { - return &_class_data_; -} - -void Status::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.Status) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_media_folder_name().empty()) { - _this->_internal_set_media_folder_name(from._internal_media_folder_name()); - } - if (from._internal_video_on() != 0) { - _this->_internal_set_video_on(from._internal_video_on()); - } - if (from._internal_photo_interval_on() != 0) { - _this->_internal_set_photo_interval_on(from._internal_photo_interval_on()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_used_storage_mib = from._internal_used_storage_mib(); - ::uint32_t raw_used_storage_mib; - memcpy(&raw_used_storage_mib, &tmp_used_storage_mib, sizeof(tmp_used_storage_mib)); - if (raw_used_storage_mib != 0) { - _this->_internal_set_used_storage_mib(from._internal_used_storage_mib()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_available_storage_mib = from._internal_available_storage_mib(); - ::uint32_t raw_available_storage_mib; - memcpy(&raw_available_storage_mib, &tmp_available_storage_mib, sizeof(tmp_available_storage_mib)); - if (raw_available_storage_mib != 0) { - _this->_internal_set_available_storage_mib(from._internal_available_storage_mib()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_total_storage_mib = from._internal_total_storage_mib(); - ::uint32_t raw_total_storage_mib; - memcpy(&raw_total_storage_mib, &tmp_total_storage_mib, sizeof(tmp_total_storage_mib)); - if (raw_total_storage_mib != 0) { - _this->_internal_set_total_storage_mib(from._internal_total_storage_mib()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_recording_time_s = from._internal_recording_time_s(); - ::uint32_t raw_recording_time_s; - memcpy(&raw_recording_time_s, &tmp_recording_time_s, sizeof(tmp_recording_time_s)); - if (raw_recording_time_s != 0) { - _this->_internal_set_recording_time_s(from._internal_recording_time_s()); - } - if (from._internal_storage_status() != 0) { - _this->_internal_set_storage_status(from._internal_storage_status()); - } - if (from._internal_storage_id() != 0) { - _this->_internal_set_storage_id(from._internal_storage_id()); - } - if (from._internal_storage_type() != 0) { - _this->_internal_set_storage_type(from._internal_storage_type()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Status::CopyFrom(const Status& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.Status) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Status::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* Status::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Status::InternalSwap(Status* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.media_folder_name_, &other->_impl_.media_folder_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Status, _impl_.storage_type_) - + sizeof(Status::_impl_.storage_type_) - - PROTOBUF_FIELD_OFFSET(Status, _impl_.video_on_)>( - reinterpret_cast(&_impl_.video_on_), - reinterpret_cast(&other->_impl_.video_on_)); -} - -::google::protobuf::Metadata Status::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[73]); + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>( + ::google::protobuf::UnknownFieldSet::default_instance), + target, + stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.Status) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Status::ByteSizeLong(const MessageLite& base) +{ + const Status& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Status::ByteSizeLong() const +{ + const Status& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Status) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string media_folder_name = 7; + if (!this_._internal_media_folder_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_media_folder_name()); + } + // bool video_on = 1; + if (this_._internal_video_on() != 0) { + total_size += 2; + } + // bool photo_interval_on = 2; + if (this_._internal_photo_interval_on() != 0) { + total_size += 2; + } + // float used_storage_mib = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_used_storage_mib()) != 0) { + total_size += 5; + } + // float available_storage_mib = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_available_storage_mib()) != 0) { + total_size += 5; + } + // float total_storage_mib = 5; + if (::absl::bit_cast<::uint32_t>(this_._internal_total_storage_mib()) != 0) { + total_size += 5; + } + // float recording_time_s = 6; + if (::absl::bit_cast<::uint32_t>(this_._internal_recording_time_s()) != 0) { + total_size += 5; + } + // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; + if (this_._internal_storage_status() != 0) { + total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_storage_status()); + } + // uint32 storage_id = 9; + if (this_._internal_storage_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this_._internal_storage_id()); + } + // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; + if (this_._internal_storage_type() != 0) { + total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_storage_type()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); +} + +void Status::MergeImpl( + ::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) +{ + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.Status) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + if (!from._internal_media_folder_name().empty()) { + _this->_internal_set_media_folder_name(from._internal_media_folder_name()); + } + if (from._internal_video_on() != 0) { + _this->_impl_.video_on_ = from._impl_.video_on_; + } + if (from._internal_photo_interval_on() != 0) { + _this->_impl_.photo_interval_on_ = from._impl_.photo_interval_on_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_used_storage_mib()) != 0) { + _this->_impl_.used_storage_mib_ = from._impl_.used_storage_mib_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_available_storage_mib()) != 0) { + _this->_impl_.available_storage_mib_ = from._impl_.available_storage_mib_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_total_storage_mib()) != 0) { + _this->_impl_.total_storage_mib_ = from._impl_.total_storage_mib_; + } + if (::absl::bit_cast<::uint32_t>(from._internal_recording_time_s()) != 0) { + _this->_impl_.recording_time_s_ = from._impl_.recording_time_s_; + } + if (from._internal_storage_status() != 0) { + _this->_impl_.storage_status_ = from._impl_.storage_status_; + } + if (from._internal_storage_id() != 0) { + _this->_impl_.storage_id_ = from._impl_.storage_id_; + } + if (from._internal_storage_type() != 0) { + _this->_impl_.storage_type_ = from._impl_.storage_type_; + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void Status::CopyFrom(const Status& from) +{ + // @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.camera.Status) + if (&from == this) + return; + Clear(); + MergeFrom(from); +} + +void Status::InternalSwap(Status* PROTOBUF_RESTRICT other) +{ + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap( + &_impl_.media_folder_name_, &other->_impl_.media_folder_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(Status, _impl_.storage_type_) + sizeof(Status::_impl_.storage_type_) - + PROTOBUF_FIELD_OFFSET(Status, _impl_.video_on_)>( + reinterpret_cast(&_impl_.video_on_), + reinterpret_cast(&other->_impl_.video_on_)); +} + +::google::protobuf::Metadata Status::GetMetadata() const +{ + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class Option::_Internal { - public: +public: }; Option::Option(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Option) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Option) } inline PROTOBUF_NDEBUG_INLINE Option::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : option_id_(arena, from.option_id_), - option_description_(arena, from.option_description_), - _cached_size_{0} {} - -Option::Option( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Option& from) - : ::google::protobuf::Message(arena) { - Option* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.Option) + const Impl_& from, + const ::mavsdk::rpc::camera::Option& from_msg) : + option_id_(arena, from.option_id_), + option_description_(arena, from.option_description_), + _cached_size_{0} +{} + +Option::Option(::google::protobuf::Arena* arena, const Option& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : + ::google::protobuf::Message(arena, _class_data_.base()) +{ +#else // PROTOBUF_CUSTOM_VTABLE + : + ::google::protobuf::Message(arena) +{ +#endif // PROTOBUF_CUSTOM_VTABLE + Option* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.Option) } inline PROTOBUF_NDEBUG_INLINE Option::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : option_id_(arena), - option_description_(arena), - _cached_size_{0} {} - -inline void Option::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -Option::~Option() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.Option) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Option::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.option_id_.Destroy(); - _impl_.option_description_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Option::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Option) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.option_id_.ClearToEmpty(); - _impl_.option_description_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Option::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 60, 2> Option::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Option_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string option_description = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Option, _impl_.option_description_)}}, - // string option_id = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Option, _impl_.option_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : + option_id_(arena), + option_description_(arena), + _cached_size_{0} +{} + +inline void Option::SharedCtor(::_pb::Arena* arena) +{ + new (&_impl_) Impl_(internal_visibility(), arena); +} +Option::~Option() +{ + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.Option) + SharedDtor(*this); +} +inline void Option::SharedDtor(MessageLite& self) +{ + Option& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.option_id_.Destroy(); + this_._impl_.option_description_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* Option::PlacementNew_(const void*, void* mem, ::google::protobuf::Arena* arena) +{ + return ::new (mem) Option(arena); +} +constexpr auto Option::InternalNewImpl_() +{ + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Option), alignof(Option)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull Option::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Option_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Option::MergeImpl, + ::google::protobuf::Message::GetNewImpl